04 Jun '17, 5pm

1. Expose `self.i18n_scope` => `:domain` on your object(s) 2. Add :domain/locales folder to the i18n load path:

) files for storing your translations in SimpleStore. YAML is the preferred option among Rails developers. However, it has one big disadvantage. YAML is very sensitive to whitespace and special characters, so the application may not load your dictionary properly. Ruby files will crash your application on first request, so you may easily find what's wrong. (If you encounter any "weird issues" with YAML dictionaries, try putting the relevant portion of your dictionary into a Ruby file.)

Full article: http://guides.rubyonrails.org/i18n.html#configure-the-i18...

Tweets

TIL:

api.rubyonrails.org 15 Jun '17, 3pm