To support a new language in the app, follow the steps below.
File: src/components/App/App.constants.js
src/components/App/App.constants.js
// Add the new BCP 47 language code (e.g., 'en-US', 'es-AR') to the APP_LANGS array const APP_LANGS = ["ar-SA", "be-BY", "bn-BD", "newLangCode"];
File: src/components/Settings/Language/Language.messages.js
src/components/Settings/Language/Language.messages.js
/* Add this block for the new language */ newLangCode: { id: 'cboard.components.Settings.Language.LanguageName', defaultMessage: 'LanguageName1' }
newLangCode
en-US
LanguageName1
French
File: src/translations/src/cboard.json
src/translations/src/cboard.json
"cboard.components.Settings.Language.LanguageName": "LanguageName1"
node ./scripts/crowdin-fetch-latest.js
Note: You must have the CROWDIN_API_KEY set in your environment variables. If you don’t have access to it, please contact the project maintainer.
CROWDIN_API_KEY
There was an error while loading. Please reload this page.