How should I localize model fields using Rails?

Working with a localized Rails application is relatively easy. Rails Internationalization API (I18n) is quite well documented and straight forward to use once you get the hang of it. But what if you want to localize fields inside a form that should be populated by users. Imagine you have an Account model with a name field, and you need the user to fill in this name in English and German (chosen for simplicity) so that you can display the relevant name on each version of your website. By now you should probably know that I18n won’t help much, since it’s sole purpose is to localize predefined set of keys to their corresponding values. (more…)