Whenever you are working on a project using i18n Internationalization, all your translations are specified on a bunch of yml files located at db/locales/en|es. What if you wanted to load those translations into your activerecord database?

If for any reason you are using the Simple Backend and you want to load/reload an internationalization yml file after the activerecord internationalization has been loaded you can call the load_translations method:

$ rails c
$ I18n.backend.load_translations

This method accepts a list of paths to different translation files.

You can use I18n.t('Your String') to lookup translations in the database. or just t('Your String') with I18n.backend_loadtranslations, as you wish.