Ruby on Rails: Loading Locales with Yes, No, On, and Off
Ruby on Rails uses the gem psych to load the YAML files for locales.
If you have something like this in your en.yml file:
en:
terms:
yes: Yes
no: No
switch_on: On
switch_off: Off
accept: true
reject: false
And then you will...
allaboutcoding.ghinda.com4 min read