The scope of the script is to identify if the project has missed translations. Missed Translations meaning - translations with the same translation value in all languages. (Example here - English, German, French, Italian) For example:
// en.json { ... "Input.welcome": "welcome", ... }
// de.json { ... "Input.welcome": "welcome", ... }
// fr.json { ... "Input.welcome": "welcome", ... }
// it.json { ... "Input.welcome": "welcome", ... } In this case, "Input.welcome" has only english translation repeated in all languages. Missed.
replace const pathToI18n const in src/index.ts with path to src/assets/i18n in your project. install dependencies with npm i. launch script with npm start. After npm start script is launched, it will create missed-translations.json file with all missed translations.
Since some words are translated the same in all languages in the project (like "Ok"), it will be a handful to create a white list for such cases.