jesusgonzalezrivera
jesusgonzalezrivera

Reputation: 385

Change i18n translations inline

I am developing a rails web application in which the user need the ability of changing the text which appears in it. I have been using i18n gem in all page to manage the different languages. Now, I am developing the editable part, so I am considering to change the .yml files with the translations in a controller. Is this procedure the best way to do it?. Another possibility that I have considered is using a model with all translations who really access to the translations.

Thanks in advance.

Upvotes: 0

Views: 461

Answers (1)

Danny
Danny

Reputation: 6025

I wouldn't recommend making something custom to edit the yaml files from within your application. Then I'd rather switch to a database approach instead. You probably want to have a look at Rails: store translations in database

Upvotes: 1

Related Questions