i18n-tasks finds and manages missing and unused translations in your application. The default approach to locale data management with gems such as i18n is flawed. If you use a key that does not exist, this will only blow up at runtime. Keys left over from removed code accumulate in the resource files and introduce unnecessary overhead on the translators. Translation files can quickly turn to disarray.

i18n-tasks improves this by using static analysis. It scans calls such as I18n.t('some.key') and provides reports on key usage, missing, and unused keys. It can also can pre-fill missing keys, including from Google Translate, and it can remove unused keys as well.

i18n-tasks can be used with any project using i18n (default in Rails).

It can make translation easier in many ways:

$ i18n-tasks Usage: i18n-tasks <command> [options] -v, --version Print the version -h, --help Display this help message. Available commands: missing show missing translations unused show unused translations translate-missing translate missing keys with Google Translate add-missing add missing keys to the locales find show where the keys are used in the code normalize normalize translation data: sort and move to the right files remove-unused remove unused keys config display i18n-tasks configuration xlsx-report save missing and unused translations to an Excel file See `<command> --help` for more information on a specific command.

There are lots of settings and you can use this on non-ruby codebases.

Reports come rendered in colourful full-resolution terminal tables:

$ i18n-tasks usages 'activities.*'

See also