diff --git a/docs/source/02-09-translations-i18n.md b/docs/source/02-09-translations-i18n.md index b13ab08ca..82ad20e32 100644 --- a/docs/source/02-09-translations-i18n.md +++ b/docs/source/02-09-translations-i18n.md @@ -7,10 +7,24 @@ toc: true We’re so proud to have received submissions from a lot of 3rd party contributors translating Talk into their own languages. +### Languages + You can see what languages Talk currently supports here: https://github.com/coralproject/talk/tree/master/locales +You can set the default language Talk uses by setting `TALK_DEFAULT_LANG` in your ENV. + +### Changing the Language + +To change Talk's language, to see what translations are missing, or to troubleshoot translations, you can update the language in the local storage of your browser, by typing this into your browser console: + +`localStorage.setItem('locale', 'fr')` + +That would set the language to French. + +### Contributing a Translation + To add a new Talk translation, simply translate the `en.yml` file (https://github.com/coralproject/talk/blob/master/locales/en.yml) into a new yml file with the language code of your choice. You can find supported language codes here: http://www.localeplanet.com/icu/iso639.html -There are some other files you will need to update, which you can do, or you can simply leave that to us! +If you are a developer contributing a new language, you'll need to add the required i18n support in the i18n files (or you can leave that to us if you like). If you're a non-developer, you can submit the translation via Github if you feel comfortable doing that, or feel free to email it to us via our Support: support@coralproject.net If you want to suggest a new language or put a placeholder for a translation you’re working on, feel free to create a Github issue: https://github.com/coralproject/talk/issues/new