Decluttering Translations in Rails Apps

Internationalization(i18n) or translations are an integral part of any application that caters to a global audience. Rails supports this out the box. To add a set of translations to your rails app, it is fairly easy. By default, rails will provide an en.yml inside config/locales folder. en: hello: "Hello world" What this provides is that […]

Internationalization(i18n) or translations are an integral part of any application that caters to a global audience. Rails supports this out the box.
To add a set of translations to your rails app, it is fairly easy. By default, rails will provide an en.yml inside config/locales folder.
en: hello: "Hello world" What this provides is that the key hello inside locale :en will have the value Hello world.
In this post we are going to focus on how to grow the translation files as the application gets bigger and avoid clutters and duplications as much as we can.
Source: Codemancers