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
This commit is contained in:
@@ -0,0 +1,44 @@
|
||||
{
|
||||
"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"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user