I\'ve been trying to sort an i18n translations YAML file with Ruby so I can manage new translations in a better and organized way, but I\'ve been wondering if there is something
Using Rails 3.2.13, Ruby 1.9.3p489:
I just used the i18n_yaml_sorter gem ( https://github.com/redealumni/i18n_yaml_sorter ).
Simply add to your Gemfile:
gem 'i18n_yaml_sorter', group: :development
Then run the rake task to sort your locales' files:
rake i18n:sort
Worked perfectly, even though the gem has been last authored 2 years ago. It took 5 minutes max.