Files
lifeforge/apps/web/package.json
melvinchia3636 032e577732 refactor(localization): extract i18n into @lifeforge/localization package
- Create new @lifeforge/localization package with client-i18n-config, I18nInitProvider, and useModuleTranslation hook
- Rename ModuleHeaderStateProvider -> ModuleMetadataProvider and move to @lifeforge/federation
- Move I18nInitProvider from apps/web to @lifeforge/localization with configurable init/fallbacks
- Add module name to ModuleMetadataProvider context for scoped translations
- Wire up @lifeforge/localization and @lifeforge/federation as dependencies in @lifeforge/ui
- Update ModuleHeader to use useModuleTranslation for scoped i18n namespaces
- Register @lifeforge/localization in shared-packages config
- Update docs vite config with federation plugin
2026-06-25 08:53:35 +08:00

64 lines
1.9 KiB
JSON

{
"name": "@lifeforge/client",
"version": "0.0.0",
"private": true,
"description": "The client-side user interface for LifeForge.",
"license": "MIT",
"author": "LifeForge (https://github.com/LifeForge-app)",
"repository": {
"type": "git",
"url": "https://github.com/LifeForge-app/lifeforge.git",
"directory": "client"
},
"type": "module",
"scripts": {
"dev": "vite",
"types": "tsgo -b",
"build": "tsgo -b && vite build",
"preview": "vite preview"
},
"dependencies": {
"@dnd-kit/core": "^6.3.1",
"@dnd-kit/sortable": "^10.0.0",
"@dnd-kit/utilities": "^3.2.2",
"@lifeforge/api": "workspace:*",
"@lifeforge/federation": "workspace:*",
"@lifeforge/localization": "workspace:*",
"@lifeforge/ui": "workspace:*",
"@types/node": "^24.7.2",
"@types/react-virtualized": "^9.22.3",
"babel-plugin-react-compiler": "^19.1.0-rc.2",
"copy-to-clipboard": "^3.3.3",
"crypto-js": "^4.2.0",
"daisyui": "^5.0.35",
"dnd-core": "^16.0.1",
"eslint-plugin-react-compiler": "^19.1.0-rc.2",
"i18next-http-backend": "^2.7.3",
"lodash-es": "^4.17.22",
"postcss": "^8.5.3",
"pretty-bytes": "^7.1.0",
"qrcode.react": "^4.2.0",
"react-custom-scrollbars": "^4.2.1",
"react-dropzone": "^14.3.8",
"react-error-boundary": "^6.0.0",
"react-grid-layout": "^1.5.2",
"react-virtualized": "^9.22.6",
"recharts": "^2.15.0",
"socket.io-client": "^4.8.1",
"uuid": "^13.0.0"
},
"devDependencies": {
"@originjs/vite-plugin-federation": "^1.4.1",
"@types/lodash": "^4.17.20",
"@types/opentype.js": "^1.3.8",
"@types/react": "^19.2.0",
"@types/react-dom": "^19.2.0",
"@types/react-grid-layout": "^1.3.5",
"@types/tinycolor2": "^1.4.6",
"@vitejs/plugin-react": "^4.4.1",
"glob": "^13.0.0",
"rollup-plugin-visualizer": "^7.0.1",
"vite": "^7.0.5"
}
}