What is the best way to ship a gem with default i18n translations for strings used by it?
How to internationalize a a ruby gem?
456 Views Asked by barbolo At
2
What is the best way to ship a gem with default i18n translations for strings used by it?
There are a couple of things you need to do :
i18nas a dependencyI18n.tcallsload_path(e.g.I18n.load_path += 'path/to/your/en.yml')That's pretty much it, you can also set up a public project on Locale to crowdsource translations in other locales if you're so inclined.