TheActualLocales

Way to find and log actual localization keys into your i18n locale files

The Problem

It can be difficult to find actual localization keys after months of maintenance of rails project

The Solution

This gem collect all executed I18n.translate and I18n.t calls and dump it into YAML file at #{Rails.root}/log/

Installation

group :development do
  gem 'the_actual_locales', '~> 0.0.1'
end

And then execute:

bundle

Usage

  1. Install gem
  2. exec rails s
  3. Visit required pages with required locales
  4. Learn /log/actual_locale.LOCALE_NAME.yml

MIT license