Create the @fusion/i18n package as the authored source-of-truth: shared i18next config (namespace split, script-aware zh-CN/zh-TW fallback, plural setup), en base catalogs, and a generated CLI static-import map so the terminal surface is drop-in for new locales. Add the i18next-cli workflow (extract/sync/types/status/lint) wired as root i18n:* scripts, install the i18next stack into dashboard + CLI, strip @fusion/i18n from the published CLI manifest, gitignore the generated dashboard catalog tree, and add a changeset. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
38 lines
926 B
JSON
38 lines
926 B
JSON
{
|
|
"name": "@fusion/i18n",
|
|
"version": "0.39.0",
|
|
"license": "MIT",
|
|
"description": "Fusion i18n: authored translation catalogs and shared i18next configuration for the Fusion dashboard and terminal UI.",
|
|
"type": "module",
|
|
"exports": {
|
|
".": {
|
|
"types": "./src/index.ts",
|
|
"source": "./src/index.ts",
|
|
"import": "./src/index.ts"
|
|
},
|
|
"./config": {
|
|
"types": "./src/config.ts",
|
|
"source": "./src/config.ts",
|
|
"import": "./src/config.ts"
|
|
}
|
|
},
|
|
"scripts": {
|
|
"typecheck": "tsc --noEmit",
|
|
"gen:cli-catalogs": "node scripts/gen-cli-catalogs.mjs",
|
|
"test": "vitest run --silent=passed-only --reporter=dot"
|
|
},
|
|
"dependencies": {
|
|
"@fusion/core": "workspace:*",
|
|
"i18next": "^26.3.1"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "^25.5.0",
|
|
"typescript": "^5.7.0",
|
|
"vitest": "^3.1.0"
|
|
},
|
|
"engines": {
|
|
"node": ">=22.5.0"
|
|
},
|
|
"private": true
|
|
}
|