Files
lifeforge/packages/localization/package.json
melvinchia3636 91207e7d48 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:54:15 +08:00

26 lines
533 B
JSON

{
"name": "@lifeforge/localization",
"version": "0.0.1",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"type": "module",
"module": "dist/index.js",
"typings": "dist/index.d.ts",
"scripts": {
"build": "tsc"
},
"dependencies": {
"@lifeforge/federation": "workspace:*"
},
"peerDependencies": {
"react": "^19.2.0",
"react-i18next": "^16.5.1",
"i18next": "^25.7.4"
},
"devDependencies": {
"@types/react": "^19.2.0",
"react-i18next": "^16.5.1",
"i18next": "^25.7.4"
}
}