Sort locales keys in lexical order. Sort all locales if no path parameter given
Ruby
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
.gitignore
Gemfile
MIT-LICENCE.txt
README.rdoc
Rakefile
i18n_sort_keys.gemspec

README.rdoc

Overview

Rake Task for sorting locales keys.

Code Quality Metrics

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