mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-28 14:03:48 +03:00
3432857f9a
refs https://ghost.slack.com/archives/CFH10N79S/p1679491616052209?thread_ts=1679411948.063929&cid=CFH10N79S - this adds a small script to generate a `context.json` file, which contains all keys and allows people to provide context on the translation
34 lines
1.2 KiB
JSON
34 lines
1.2 KiB
JSON
{
|
|
"name": "@tryghost/i18n",
|
|
"version": "0.0.0",
|
|
"repository": "https://github.com/TryGhost/Ghost/tree/main/ghost/i18n",
|
|
"author": "Ghost Foundation",
|
|
"private": true,
|
|
"main": "index.js",
|
|
"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 && yarn translate",
|
|
"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",
|
|
"translate": "yarn translate:ghost && yarn translate:portal && yarn translate:test && node generate-context.js",
|
|
"translate:ghost": "NAMESPACE=ghost i18next '../core/core/{frontend,server,shared}/**/*.{js,jsx}'",
|
|
"translate:portal": "NAMESPACE=portal i18next '../portal/src/**/*.{js,jsx}'",
|
|
"translate:test": "NAMESPACE=test i18next './test/**/*.js'"
|
|
},
|
|
"files": [
|
|
"index.js",
|
|
"lib",
|
|
"locales"
|
|
],
|
|
"devDependencies": {
|
|
"c8": "7.13.0",
|
|
"i18next-parser": "7.7.0",
|
|
"mocha": "10.2.0"
|
|
},
|
|
"dependencies": {
|
|
"i18next": "22.4.13"
|
|
}
|
|
}
|