RubyFlow The Ruby and Rails community linklog

×

The Ruby and Rails community linklog

Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!

i18n-tasks v0.9.8 adds key refactoring

i18n-tasks v0.9.8 adds the long-awaited support for moving, merging, and removing keys from the command line via the new mv command!

i18n-tasks is a gem that helps you find and manage missing and unused translations.

The gem analyses the code statically for key usages, such as I18n.t('a.key'), in order to:

  • Report keys that are missing or unused.
  • Pre-fill missing keys, optionally from Google Translate.
  • Remove unused keys.

Thus addressing the two main problems of the i18n gem design:

  • Missing keys only blow up at runtime.
  • Keys no longer in use may accumulate and introduce overhead, without you knowing it.

See the full release notes here.

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in