Overview¶ ↑
Rake Task for sorting locales keys.
Code Quality Metrics¶ ↑
<img src=“https://codeclimate.com/badge.png” />
Installation¶ ↑
gem install i18n_sort_keys
Then , just require it by
gem i18n_sort_keys
A new rake task, i18n:sort_keys will be added to your rails tasks.
Usage¶ ↑
Without parameter, recursively sort all yaml locales under RAILS_ROOT/config/locales
rake i18n:sort_keys
With parameter, sort only one locale
rake i18n:sort_keys[path_to_locale]
Licence¶ ↑
MIT Licence