Sha256: f16ebfbe479677c073ead42003f63e69ce5ece6d0d7a6afc4aa7c4186d5d18f6

Contents?: true

Size: 281 Bytes

Versions: 7

Compression:

Stored size: 281 Bytes

Contents

module Trestle
  module I18nHelper
    def i18n_javascript_translations
      Trestle.config.javascript_i18n_keys.map { |key|
        begin
          [key, t(key, raise: true)]
        rescue I18n::MissingTranslationData
          nil
        end
      }.compact
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
trestle-0.9.8 app/helpers/trestle/i18n_helper.rb
trestle-0.9.7 app/helpers/trestle/i18n_helper.rb
trestle-0.9.6 app/helpers/trestle/i18n_helper.rb
trestle-0.9.5 app/helpers/trestle/i18n_helper.rb
trestle-0.9.4 app/helpers/trestle/i18n_helper.rb
trestle-0.9.3 app/helpers/trestle/i18n_helper.rb
trestle-0.9.2 app/helpers/trestle/i18n_helper.rb