I would like to know the standard code for Chinese language
in the available locales of I18n
standards. For example :en
for English. Also tell me how to name the yml
file for chinese langauge (en.yml for English).
adding zh.yml
into /config/locales/
and specifying code for chinese as :zh
is not working.
I18n.available_locales in rails console gives only the below lines.
irb(main):022:0> I18n.available_locales
=> [:ar, :en, :de]
I couldn't see :zh there inside. How we can include chinese translation code inside this?
Thanks :)-