fphilipe / i18n-debug Goto Github PK
View Code? Open in Web Editor NEWEver wondered which translations are being looked up by Rails, a gem, or simply your app? Wonder no more!
License: MIT License
Ever wondered which translations are being looked up by Rails, a gem, or simply your app? Wonder no more!
License: MIT License
Would be nice if we can update the version dependency for i18n
1.0.0 has been released a few days ago. They dropped support for Ruby 1.9
Hi,
Thanks for this gem, which has helped me quickly track down some translation issues with nested attributes :-)
I had to use use version 1.0 with Ruby 2.0 though, because Module#prepend is private in Ruby 2.0. Given Ruby 2.0 is nearing end of life, I doubt it's worth making the code more complicated to support it, but an update to the readme is probably worthwhile.
Mark
Hey.. nice simple gem! helped me to debug a few issues related to translation in my rails forms.
The only caveat in my opinion is that is "on" all times by default, now that I've fixed my issue I found that the extra debug info makes too much noise in my logs, but the "simple" option to disable the gem is to comment it at the Gemfile.
I will just fork and modify line 43 to
Backend::Simple.include(Debug::Hook) if ENV["WITH_I18N_DEBUG"]
so for example I'm able to do:
$ WITH_I18N_DEBUG=true bundle exec rails s
just in case I need it.
Not sure if this is still maintained or not, but it would be nice to have an option to show only calls to non existing nodes. Maybe there is a way to do it with overriding the default handler, but I am not sure how to do it based on the instructions in the README (i.e., where should I put the overriding code)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.