module MtkFramework::ActiveInteractionConcerns::I18nable
Public Instance Methods
i18n_scope()
click to toggle source
# File lib/mtk_framework/active_interaction_concerns/i18nable.rb, line 8 def i18n_scope "#{self.class.i18n_scope}.#{self.class.name.underscore}" end
t(*args, **h_args)
click to toggle source
# File lib/mtk_framework/active_interaction_concerns/i18nable.rb, line 12 def t(*args, **h_args) h_args.reverse_merge!(scope: i18n_scope) I18n.t(*args, **h_args) end