Usage for Rails applications

1. Install

  • Add gem 'translation' to your Gemfile.
  • Execute bundle install.
Code and documentation on translation/rails

2. Configure

  • Sign up (or Sign in).
  • Create a project.
  • Copy translation.rb to config/initializers/.
  • Execute rake translation:init to push your existing keys and translations.

3. Work

  • Write text using _('source text') or t('some.keys').
  • Execute rake translation:sync to push new keys and get new translations.
  • Translate or have it translated by others.

Repeat step 3 and relax

Ready to adopt a smooth translation process?

Sign up