Files
Maofeng 9e3f1d6b59 feat(i18n): add Lingui runtime and development tooling
- add SSR-safe I18nProvider, Translate, locale hooks, catalog activation, and typed runtime APIs

- add consumer-owned Lingui configuration helpers and a CLI for locale creation, extraction, compilation, and project discovery

- add catalog read/write services plus a Vite development API plugin scoped to each consuming application

- add the portal-based I18nDevtool, message editor, dark-theme tracking, and standalone Message Studio

- document the consumer workflow and cover runtime, configuration, catalog, CLI, and Devtool behavior with tests
2026-07-29 21:23:00 +08:00

45 lines
999 B
JSON

{
"name": "@workspace/i18n",
"version": "0.0.0",
"type": "module",
"private": true,
"engines": {
"node": ">=22.19.0"
},
"bin": {
"workspace-i18n": "./src/cli/index.ts"
},
"scripts": {
"format": "prettier --write \"**/*.{css,json,ts,tsx}\"",
"test": "vitest run",
"typecheck": "tsc --noEmit"
},
"exports": {
".": "./src/index.ts",
"./devtool": "./src/devtool/index.ts",
"./lingui-config": "./src/config/lingui-config.ts",
"./vite": "./src/vite.ts"
},
"dependencies": {
"@lingui/cli": "^6",
"@lingui/conf": "^6",
"@lingui/core": "^6",
"@lingui/react": "^6",
"@vitejs/plugin-react": "^6",
"cac": "^7.0.0",
"open": "^11.0.0",
"react": "^19.2.6",
"react-dom": "^19.2.6",
"vite": "^8"
},
"devDependencies": {
"@testing-library/react": "^16",
"@types/node": "^24",
"@types/react": "^19",
"@types/react-dom": "^19",
"jsdom": "^30",
"typescript": "~6",
"vitest": "^4"
}
}