Ruby on Rails Saturday, June 2, 2018

I'm using the rails-i18n gem  and one of the locales I'm using is zh-TW If I take the gem out of my gemfile and rename the locale file to just zh.yml instead of it's previous name zh-TW.yml and change the first line from zh-TW: to zh: I can then use the short locale names in application.rb without the gem complaining the locale isn't valid?

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/6a4fc208-1bd6-4e33-8e88-7d4a422b780b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment