I18n::Analyzer

I18n-Analyzer is a small and mountable gem developed by open-circle-ltd for analyzing I18n translations. It gives you an additional page, where you can exactly see, which model classes are translated and which fields of those model classes are still missing.

RubyGems: https://rubygems.org/gems/i18n-analyzer

Usage

Look at the installation section

Installation

Before you start adding the gem to your app, make sure you have I18n.available_locales defined. More information on I18n.available_locales at https://guides.rubyonrails.org/i18n.html#configure-the-i18n-module

Add this line to your application's Gemfile:

gem "i18n-analyzer"

Then add this line to your application's routes.rb:

mount I18n::Analyzer::Engine, at: '/analyzer'

it is also possible to create another link, if it is necessary

Or install it yourself as:

$ gem install i18n-analyzer

And then execute:

$ bundle

Security Note

If the analyzer is being mounted, it is recommended to safeguard it by mounting the analyzer in a protected namespace, an example would look like this in routes.rb:

authenticate :admin do
  # other mountable apps, not visible for the world
  mount I18n::Analyzer::Engine, at: '/analyzer'
end

Using Library locally

You can also use the library locally, the steps are as follows:

gem "i18n-analyzer", path: '/path/to/your/gem/i18n-analyzer'

Then add this line to your application's routes.rb:

mount I18n::Analyzer::Engine, at: '/analyzer'

And then execute:

$ bundle

Contributing

Feel free to create a pull request

License

The gem is available as open source under the terms of the MIT License.