I18n Debug Page
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.
Example
Install
# 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
TODO
- Provide better UI
- Make the installation more easier
Additional Information
This gem was inspired by status-page and i18n-debug
License
The MIT License (MIT)