internationalization - How to display two different translation in one view - Rails ? -



internationalization - How to display two different translation in one view - Rails ? -

i have app 2 translation: :pl , :en. want send email in both languages (one view file)

something that:

=t(".my_translation_key", :en) =t(".my_translation_key", :pl)

instead of

-i18n.locale = :en =t(".my_translation_key") -i18n.locale = :pl =t(".my_translation_key")

is there way ?

just send :locale option:

= t(".my_translation_key", :locale => :en) = t(".my_translation_key", :locale => :pl)

ruby-on-rails-3 internationalization rails-i18n

Comments

Popular posts from this blog

web services - java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.proxy.Enhancer -

Accessing MATLAB's unicode strings from C -

javascript - mongodb won't find my schema method in nested container -