No commit activity in last 3 years
No release in over 3 years
Traces the i18n translation keys lookup
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 0
>= 0
 Project Readme

I18nLookupTracer

Traces I18n translation keys lookup.

Works with Rails 3.1.3

Just doing something like what is shown in this post from Tilo Sloboda, kind of gemified.

Usage

#Gemfile
gem 'i18n_lookup_tracer'

#config/initializers/i18n_lookup_tracer.rb
I18nLookupTracer.setup if Rails.env.development?

As it's very bad for the rendering speed, you may want to add an extra condition.

Then, calling the label related to the name attribute of an Organization model in a form builder, you're going to see in your in console :

 I18n key lookup: fr.helpers.label.organization.name
 I18n key lookup: fr.activerecord.attributes.organization.name
 I18n key lookup: fr.attributes.name

License

Feel free to contribute and just say hi @clmntlxndr