0.0
No commit activity in last 3 years
No release in over 3 years
Provide UI for debugging i18n
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

~> 1.1.0
>= 4.0
 Project Readme

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)