Module: Weeler::ActionView::Helpers::TranslationHelper

Extended by:
ActiveSupport::Concern
Defined in:
lib/weeler/action_view/helpers/translation_helper.rb

Instance Method Summary collapse

Instance Method Details

#translate(key, **options) ⇒ Object Also known as: t



7
8
9
# File 'lib/weeler/action_view/helpers/translation_helper.rb', line 7

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