https://github.com/govtechsg/i18n_yaml_sort
Sort your locales (yml file) in alphabetical order for better readability.
https://github.com/govtechsg/i18n_yaml_sort
Last synced: 5 days ago
JSON representation
Sort your locales (yml file) in alphabetical order for better readability.
- Host: GitHub
- URL: https://github.com/govtechsg/i18n_yaml_sort
- Owner: GovTechSG
- License: mit
- Created: 2016-03-14T05:00:20.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2023-03-17T05:26:53.000Z (about 3 years ago)
- Last Synced: 2025-01-03T03:13:04.834Z (over 1 year ago)
- Language: Ruby
- Size: 13.7 KB
- Stars: 2
- Watchers: 11
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# I18nYamlSort
[](https://travis-ci.org/GovTechSG/i18n_yaml_sort)
Sort your locales (yml file) in alphabetical order for better readability.
## Installation
Add this line to your application's Gemfile:
```ruby
gem 'i18n_yaml_sort', git: 'https://github.com/GovTechSG/i18n_yaml_sort.git'
```
And then execute:
$ bundle
Or install it yourself as:
$ gem install i18n_yaml_sort
## Usage
**Default:** Run `rake i18n:sort` to sort all your locales.
Pass the filename as a param to the task `rake i18n:sort[path/to/yaml/file]` to sort the given file alone.
## Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/GovTechSG/i18n_yaml_sort. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
## License
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).