-
Notifications
You must be signed in to change notification settings - Fork 426
Home
Shri Hari L edited this page May 26, 2021
·
5 revisions
🎉 For Non-Developers: You can also contribute improving the translation by using this Sheet: https://docs.google.com/spreadsheets/d/1boRpeELHOXZ87bhBHSudWT7hOR00Vy5CJPBJivX-xps/edit?usp=sharing
- Open the Terminal and
cd
tocare_fe/src/Locale
- Run the command
node update_locale.js <LANG_CODE>
Eg:node update_locale.js ml
for Malayalam - The command will create a directory with default locale files and you can start translating them.
- After it's done, add the new language to
care_fe/src/Locale/config.ts
file.
- Open the Terminal and
cd
tocare_fe/src/Locale
- Run the command
node update_locale.js <LANG_CODE>
Eg:node update_locale.js ml
for Malayalam - The command will update the new keys which are yet to be translated.
- You can now start translating or improving it.
⚠ - If you are adding a new word, then please add it to the Default Locale (EN) first and then proceed with your language.
⚠ - After translating, have a look at its appearance. It may be overflowing or cause some UI breaks. Try to adjust the words such that it fits the UI.
⚠ - Try to separate the translation files for each module like Facility
, Patient
and more. Don't dump all the keys in one JSON file.