*You have to be an admin on Lokalise in order to be able to trigger the PR.
To trigger a Pull Request and merge translations into our codebase, go to the Download
page on Lokalise. Make sure the settings are the same as in the screenshot:
JSON (.json)
packages/dapp/src/locales/translations/%LANG_ISO%.%FORMAT%
client/src/locales/translations/%LANG_ISO%.%FORMAT%
(please ignore what is shown on the screenshot, we need the client/src/ !)Replace with base language
2 spaces
Unescape forward slashes
All
Github
Doingud/core
FightPandemics/FightPandemics
After doing all of the above, clicking Build only
will trigger a Pull Request. You can always hit Preview
to take a look at what will be exported first.
Check on Github to make sure the PR has been created and update the PR title to add more info about what translations you are updating.
Download
page is accessed here
client/src/locales/index.js
and client/src/locales/languages.js
. You will need to import the correct file in index.js
and also add the language and ISO code to the localization
and MENU_MAP
objects.NAV_LS_
followed by the ISO code used in previous step. (Reference this ticket to see how it has been done previously: https://github.com/FightPandemics/FightPandemics/issues/1611)For more information, please read our README: https://github.com/FightPandemics/FightPandemics#internationalization