Giter Site home page Giter Site logo

fphilipe / i18n-debug Goto Github PK

View Code? Open in Web Editor NEW
180.0 180.0 12.0 17 KB

Ever wondered which translations are being looked up by Rails, a gem, or simply your app? Wonder no more!

License: MIT License

Ruby 100.00%
debug i18n rails ruby translation

i18n-debug's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

i18n-debug's Issues

Update i18n version dependency

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

Version 1.1 not compatible with ruby 2.0 - Module#prepend is private method

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

Option to disable / enable it on demand

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.

Option to only show nil nodes

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.