mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-10-27 07:03:41 +03:00
Added CI test to ensure i18n strings are extracted out
refs https://github.com/TryGhost/Ghost/issues/15502 - this will test if we have strings that aren't present in the JSON files in CI, so we don't miss out on translations
This commit is contained in:
parent
437e1cc936
commit
1f32a7be8a
@ -10,5 +10,7 @@ module.exports = {
|
||||
indentation: 4,
|
||||
sort: true,
|
||||
|
||||
failOnUpdate: process.env.CI,
|
||||
|
||||
output: 'locales/$LOCALE.json'
|
||||
};
|
||||
|
@ -8,7 +8,8 @@
|
||||
"scripts": {
|
||||
"dev": "echo \"Implement me!\"",
|
||||
"test:unit": "NODE_ENV=testing c8 --include index.js --include lib --check-coverage --100 --reporter text --reporter cobertura mocha './test/**/*.test.js'",
|
||||
"test": "yarn test:unit",
|
||||
"test": "yarn test:unit && yarn test:translate",
|
||||
"test:translate": "yarn translate:portal",
|
||||
"lint:code": "eslint *.js lib/ --ext .js --cache",
|
||||
"lint": "yarn lint:code && yarn lint:test",
|
||||
"lint:test": "eslint -c test/.eslintrc.js test/ --ext .js --cache",
|
||||
|
Loading…
Reference in New Issue
Block a user