Rails 3 force localization language for specific text
It could be done this way:
I18n.t :foo, :locale => :fr
equivalent too:
t("my.text", :locale => :fr)
t("my.text", locale: :fr)
More options here
It could be done this way:
I18n.t :foo, :locale => :fr
equivalent too:
t("my.text", :locale => :fr)
t("my.text", locale: :fr)
More options here