There are a few things you need to do:
- enable
i18n
as a dependency - internationalize your gem by replacing strings with
I18n.t
calls - create a YAML translation file and add it to I18n
load_path
(e.g. I18n.load_path += 'path/to/your/en.yml'
)
In general, you can also create a public project in Locale to translate translations to other locales if you are so inclined.
source share