Hi,
I have two language sets in my app (es and en)
Default is set to es
so when I do t(“akey”)
I get the spanish translation of “akey”
How can I get the english translation of “akey” without changing the
locale to en?
Any hints?
Hi,
I have two language sets in my app (es and en)
Default is set to es
so when I do t(“akey”)
I get the spanish translation of “akey”
How can I get the english translation of “akey” without changing the
locale to en?
Any hints?
comopasta Gr wrote in post #1007816:
Hi,
I have two language sets in my app (es and en)
Default is set to esso when I do t(“akey”)
I get the spanish translation of “akey”
How can I get the english translation of “akey” without changing the
locale to en?Any hints?
Anyone? Someone?
comopasta Gr wrote in post #1008411:
comopasta Gr wrote in post #1007816:
Hi,
I have two language sets in my app (es and en)
Default is set to esso when I do t(“akey”)
I get the spanish translation of “akey”
How can I get the english translation of “akey” without changing the
locale to en?Any hints?
Anyone? Someone?
t(“akey”, :locale => :en) is the way.
Thanks to the rubyonrails IRC
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs