Project

missing_t

0.01
No commit activity in last 3 years
No release in over 3 years
There's a lot of open issues
Finds all the missing i18n translations in your Rails project
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.5.4
~> 2.3.1
~> 10.0.3
~> 0.9.1
~> 2.12.0
 Project Readme

Missing T

Code Climate

Missing T provides a quick way to see which I18n message strings lack their translations in your Ruby project.

Installation

Missing T comes packaged as a gem, you just have to add it to your Gemfile:

gem 'missing_t', '~> 0.3.1'

Running

To find all the messages without translations, you have to be in your project directory and then launch missing_t in the most simple way imaginable:

$ bundle exec missing_t

All messages that don't have translations will be outputted in a format directly pastable to your locale files:

fr:
  users:
    name:
    city_of_residence:
    travels:
es:
  users:
    age:
    city_of_residence:
  events:
    venue: 

NOTE If no language code is provided, the script will determine which languages need to have translations by gathering all language codes in the localization files and assuming that if there is at least one translation defined for a language then all translations should be defined for it.

If you wish to see all missing translations for a certain language, just provide its language code as a parameter:

$ bundle exec missing_t fr

In this case only missing translations in the provided language will be printed:

fr:
  users:
    name:
    city_of_residence:
    travels:

Epilogue

Released under the MIT license.

2009-2013 Balint Erdi