Module: Granite::Projector::Translations

Extended by:
ActiveSupport::Concern
Included in:
Granite::Projector
Defined in:
lib/granite/projector/translations.rb,
lib/granite/projector/translations/helper.rb,
lib/granite/projector/translations/view_helper.rb

Defined Under Namespace

Modules: ClassMethods, Helper, ViewHelper Classes: TranslationsWrapper

Instance Method Summary collapse

Instance Method Details

#translate(*args) ⇒ Object Also known as: t



10
11
12
# File 'lib/granite/projector/translations.rb', line 10

def translate(*args)
  TranslationsWrapper.new.translate(*self.class.scope_translation_args_by_projector(args))
end