- Create a
<locale>.yml
file in config/ using the relevant two-letter ISO language code.
For example, en.yml
for English, fr.yml
for French, etc.
- Use
en.yml
as a reference to translate the variables - Include your locale in
- available_locales in the application_helper
- the application configuration
- the first line in your language file
- Get the country image for your language from this dropbox folder, rename it to match the name of the locale, and place it in
app/assets/images/flags
. - Don't forget to add the translated version of your language in
en.yml
under thelocale
namespace!
If you then run the application, you should see an option for the language (along with the flag image next to it) in the Language dropdown!