Skip to content

Latest commit

 

History

History
13 lines (10 loc) · 1.03 KB

adding-a-locale.md

File metadata and controls

13 lines (10 loc) · 1.03 KB
  1. 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.

  1. Use en.yml as a reference to translate the variables
  2. Include your locale in
  1. 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.
  2. Don't forget to add the translated version of your language in en.yml under the locale 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!