I18n Debug

screenshot of I18n Debug
rails

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

Overview

If you've ever struggled with figuring out which translations are being accessed in your Rails application, especially in complex nested forms, the Ruby I18n Debug gem is a game changer. This tool demystifies the translation process, allowing developers to easily track down the translation keys being looked up without the usual guesswork. Whether you're working on Rails or integrating with a third-party gem, this gem simplifies the translation tracking process.

By transforming the way translations are logged and debugged, Ruby I18n Debug provides clarity and saves time. With its straightforward installation and effective functionality out of the box, it's an essential addition for any Ruby developer looking to enhance their debugging experience.

Features

  • Easy Installation: Add it to your Gemfile, ideally within the development group, for a hassle-free setup.
  • Clear Logging: Automatically logs translation lookups using Rails.logger.debug or to the standard output if Rails isn’t available.
  • Custom Logger Support: Allows you to configure a custom logger, enabling tailored logging behavior that suits your project needs.
  • Lambda Hooking: Empowers you to redefine the default logging behavior through the I18n::Debug.on_lookup lambda, offering flexibility in how translation info is recorded.
  • User-Friendly Usage: Operates seamlessly right after installation with no complex setup requirements needed.
  • Backward Compatibility: Supports older Ruby versions (<= 2.0) by using an earlier version of the gem, ensuring broader accessibility.
  • Maintained by Experts: Developed by Philipe Fatio, making it a reliable tool backed by capable hands in the community.
rails
Ruby on Rails

Ruby on Rails, often referred to as Rails, is an open-source web application framework written in Ruby. Known for its convention over configuration and don't repeat yourself (DRY) principles, Rails simplifies and accelerates the development of database-backed web applications.