For some unexpected reasons it can happen that the translations in Crowdin are lost. If that happens, we can rebuild the Crowdin translations file from our translated json file. "translations-skeleton.json" is the downloaded source file from Crowdin. It will generate "translations-rebuild.json", which can be uploaded directly to Crowdin.
26 lines
980 B
JSON
26 lines
980 B
JSON
{
|
|
"name": "packages-i18n",
|
|
"version": "1.4.0",
|
|
"private": true,
|
|
"scripts": {
|
|
"extract-translation": "yarn extract-translation:impress",
|
|
"extract-translation:impress": "yarn i18next ../../apps/impress/**/*.{ts,tsx} -c ./i18next-parser.config.mjs -o ./locales/impress/translations-crowdin.json",
|
|
"format-deploy": "yarn format-deploy:impress",
|
|
"format-deploy:impress": "node ./format-deploy.mjs --app=impress --output=../../apps/impress/src/i18n/translations.json",
|
|
"format-rebuild-fr:impress": "node ./rebuild-translations.mjs --language=fr --app=impress --output=../../apps/impress/src/i18n/translations.json",
|
|
"lint": "eslint --ext .js,.ts,.mjs .",
|
|
"test": "jest"
|
|
},
|
|
"dependencies": {
|
|
"@types/jest": "29.5.13",
|
|
"@types/node": "*",
|
|
"eslint-config-impress": "*",
|
|
"eslint-plugin-import": "2.30.0",
|
|
"i18next-parser": "9.0.2",
|
|
"jest": "29.7.0",
|
|
"ts-jest": "29.2.5",
|
|
"typescript": "*",
|
|
"yargs": "17.7.2"
|
|
}
|
|
}
|