i18n-checker
This gem provides a Rake task to check translation file mistakes and translated text references from template files etc.
Current version supports Ruby source code, Haml template file.
- Ruby source
- Haml template
Basic usage
Add the following tasks to your Rakefile.
require 'i18n_checker/rake_task'
I18nChecker::RakeTask.new do |task|
task.source_paths = FileList['app/models/*', 'app/views/*'] # haml templates, ruby sources
task.locale_file_paths = FileList['config/locales/*'] # locale file paths
end
After that we just execute the task.
bundle exec rake locale_check
Run the test
bundle install
bundle exec rake spec