Sha256: d2cbe510430c3960beb8118d5e1e25faaf623a0d671ec7aaaf138f1f639ed24a

Contents?: true

Size: 340 Bytes

Versions: 13

Compression:

Stored size: 340 Bytes

Contents

module Weeler
  module ActionView
    module Helpers
      module TranslationHelper
        extend ActiveSupport::Concern

        def translate(key, options = {})
          request.present? && request.params[:show_translation_keys] == "true" ? key : super(key, options)
        end
        alias :t :translate

      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
weeler-2.0.0 lib/weeler/action_view/helpers/translation_helper.rb
weeler-1.6.0 lib/weeler/action_view/helpers/translation_helper.rb
weeler-1.5.4 lib/weeler/action_view/helpers/translation_helper.rb
weeler-1.5.2 lib/weeler/action_view/helpers/translation_helper.rb
weeler-1.5.1 lib/weeler/action_view/helpers/translation_helper.rb
weeler-1.4.0 lib/weeler/action_view/helpers/translation_helper.rb
weeler-1.2.0 lib/weeler/action_view/helpers/translation_helper.rb
weeler-1.1.0 lib/weeler/action_view/helpers/translation_helper.rb
weeler-1.0.4 lib/weeler/action_view/helpers/translation_helper.rb
weeler-1.0.3 lib/weeler/action_view/helpers/translation_helper.rb
weeler-1.0.2 lib/weeler/action_view/helpers/translation_helper.rb
weeler-1.0.1 lib/weeler/action_view/helpers/translation_helper.rb
weeler-1.0.0 lib/weeler/action_view/helpers/translation_helper.rb