Skip to content

Guard plugin to alphabetically sort keys in I18n translation files in Ruby on Rails

License

Notifications You must be signed in to change notification settings

thomasv314/guard-yamlsort

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Guard::Yamlsort

Guard::Yamlsort alphabetically sorts keys in yaml files when a modification is detected.

Preview of guard-yamlsort

Requirements

  • The Guard rubygem.
  • Ruby 1.9.2 or higher.

Install

Add guard-yamlsort to your Gemfile (inside development group):

gem 'guard-yamlsort'

Install or update your bundle:

bundle install

Add the default guard-yard definition to your Guardfile:

  guard init yamlsort

Guardfile

guard 'yamlsort' do
  watch(%r{^config/locales/.+\.yml})
end

About

Guard plugin to alphabetically sort keys in I18n translation files in Ruby on Rails

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages