✅(i18n) install jest and add tests
We install Jest to test our i18n package. We tests: - the extraction of the translations on the Desk app fo crowdin - the formatings of the translations from crowdin to the app - we check that all the translations are present in the app We connect the tests to the CI.
This commit is contained in:
@@ -6,10 +6,16 @@
|
||||
"extract-translation": "yarn extract-translation:desk",
|
||||
"extract-translation:desk": "yarn i18next ../../apps/desk/**/*.{ts,tsx} -c ./i18next-parser.config.mjs -o ./locales/desk/translations-crowdin.json",
|
||||
"format-deploy": "yarn format-deploy:desk",
|
||||
"format-deploy:desk": "node ./format-deploy.mjs --app=desk --output=../../apps/desk/src/i18n/translations.json"
|
||||
"format-deploy:desk": "node ./format-deploy.mjs --app=desk --output=../../apps/desk/src/i18n/translations.json",
|
||||
"test": "jest"
|
||||
},
|
||||
"dependencies": {
|
||||
"@types/jest": "29.5.11",
|
||||
"@types/node": "20.11.6",
|
||||
"i18next-parser": "8.8.0",
|
||||
"jest": "29.7.0",
|
||||
"ts-jest": "29.1.2",
|
||||
"typescript": "*",
|
||||
"yargs": "17.7.2"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user