Go to _locales
folder, select the language and edit the .json
files.
- Edit
package.json / babel / plugins / "i18next-extract" / locales
to include the new language tag. - Edit
src / js / page / loader.mjs / function initTranslations / supportedLngs
to include the new language tag. - Edit
src / html / options.hml
to include the new language tag. - Run
npm install
(If the project is already installed, skip this step.) - Run
npm run dev:rollup
- Edit
_locales / <NEW LANGUAGE TAG> / *.json
files
** You can use https://r12a.github.io/app-subtags/ to check
if the new language tag is valid.
IMPORTANT: Hyphen-separated tags must use 'underscore' (ex. en-US --must be--> en_US).
MORE IMPORTANT: Do not rely on the translation export system. ALWAYS work with a backup file (you can use the 'backups' folder of the project). You take the risk of losing the entire translation.