Mountable rails engin for rails app to check i18n translations in page.
When we develop a rails app we want to get better debug info. The gem i18n-debug provide a very handy way to present rails translations' lookup.
But the log is mixed in rails log and most time the log is really long. It's better if we have seperate place to present such thing, so I18n Debug Page comes.
# Gemfile
gem 'i18n_debug_page', '~> 0.1.1', group: :development
Run:
$ bundle install
Include I18nDebugPage
in ApplicationController
# app/controllers/application_controller.rb
include I18nDebugPage if defined? I18nDebugPage
Mount the engine
# config/routes.rb
mount I18nDebugPage::Engine => "/" if Rails.env.development?
Then you can find i18n debug log in path /i18n_debug_logs
- Provide better UI
- Make the installation more easier
This gem was inspired by status-page and i18n-debug
The MIT License (MIT)