Way to find and log actual localization keys into your i18n locale files
It can be difficult to find actual localization keys after months of maintenance of rails project
This gem collect all executed I18n.translate
and I18n.t
calls and dump it into YAML file at
#{Rails.root}/log/
group :development do
gem 'the_actual_locales', '~> 0.0.1'
end
And then execute:
bundle
- Install gem
- exec
rails s
- Visit required pages with required locales
- Learn
/log/actual_locale.LOCALE_NAME.yml