Files
DuckQ1u 93d1b7c3d3
Copilot Setup Steps / copilot-setup-steps (push) Has been cancelled
first commit
2026-04-22 19:51:20 +07:00

44 lines
2.0 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",
"exports": {
".": "./index.js",
"./lib/locale-data.json": "./lib/locale-data.json"
},
"types": "./build/i18n.d.ts",
"scripts": {
"dev": "echo \"Implement me!\"",
"test:base": "NODE_ENV=testing c8 --include index.js --include lib --check-coverage --100 --reporter text --reporter cobertura -- mocha --reporter dot './test/**/*.test.js'",
"test": "pnpm test:base && pnpm translate",
"lint:code": "eslint *.js lib/ --ext .js --cache",
"lint": "pnpm lint:code && pnpm lint:test && pnpm lint:translations",
"lint:test": "eslint -c test/.eslintrc.js test/ --ext .js --cache",
"lint:translations": "node ./test/i18n.lint.js",
"translate": "pnpm translate:ghost && pnpm translate:portal && pnpm translate:signup-form && pnpm translate:comments && pnpm translate:search && node generate-context.js",
"translate:ghost": "NAMESPACE=ghost i18next '../core/core/{frontend,server,shared}/**/*.{js,jsx}' '../core/core/server/services/email-rendering/partials/**/*.hbs' '../core/core/server/services/email-service/email-templates/**/*.hbs' '../core/core/server/services/comments/email-templates/**/*.hbs' '../core/core/server/services/member-welcome-emails/email-templates/**/*.hbs'",
"translate:portal": "NAMESPACE=portal i18next '../../apps/portal/src/**/*.{js,jsx}'",
"translate:signup-form": "NAMESPACE=signup-form i18next '../../apps/signup-form/src/**/*.{ts,tsx}'",
"translate:comments": "NAMESPACE=comments i18next '../../apps/comments-ui/src/**/*.{ts,tsx}'",
"translate:search": "NAMESPACE=search i18next '../../apps/sodo-search/src/**/*.{js,jsx,ts,tsx}'"
},
"files": [
"index.js",
"lib",
"locales"
],
"devDependencies": {
"c8": "10.1.3",
"glob": "^13.0.6",
"i18next-parser": "8.13.0",
"mocha": "11.7.5"
},
"dependencies": {
"@tryghost/debug": "0.1.40",
"i18next": "23.16.8"
}
}