Skip to content

idejuan/unused_translations

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Unused Translations Rails Plugin

Displays the translations stored in a locales file not called from the ‘app’ directory source code. It parses the source code to gather used translations keys and displays the translations not used.

For now, it recognizes calls like:

  • I18n.t(‘project.new.title’)

  • I18n.t(‘.title’)

  • t(‘project.new.title’)

  • t ‘.title’

It’s definitely a hack-like plug-in. Be carefull not to remove translations used by built-in helpers or error message generators.

Install

script/plugin install git://github.com/o2sources/unused_translations.git

Usage

script/unused_translations config/locales/en.yml

Do not hesitate to fork and enhance this hack-like plug-in. :)

Copyright © 2009 Philippe Creux & Lucien Boix for O2Sources, released under the MIT license

About

Ruby on Rails plug-in displaying unused translations

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 100.0%