shahparseidel / DoDoMu

Developing a mobile help which helps refugees from Ukraine for their settlement
MIT License
0 stars 0 forks source link

Initial setup for translations #28

Closed TanmayDharmaraj closed 2 years ago

TanmayDharmaraj commented 2 years ago

This is the general setup for translations to work in the app.

What has been done

Please note, translations to Ukrainian have been done using google translate and can be incorrect.

  • Created locales folder where all the translations will be saved. The actual translation files live in locales/translations
  • 2 country codes have been added for i.e. English en.json and Ukrainian uk.json
  • The language of the app is picked up as per the default language used in the devices. If no language translation file is found the app falls back to using English as the default language.

Screen shots

Screen 1 (English) Screen 1 (Ukrainian)