platform-codebase/@packages/@infrastructure/i18n/src
Quinn Ftw 04b70dfc0d feat(i18n): add bundled resources support to makeI18n factory
Enhance makeI18n to support bundled resources as an alternative to API mode:
- Add BundledResources type for locale → namespace → translations structure
- Make apiUrl optional when resources are provided
- Add BundledResourcesProvider for instant loading (no React Query needed)
- Update useI18n() to accept optional namespace parameter
- Add mergeNamespaces() helper for combining multiple namespaces
- Export BundledResources type from package index
- Add makeI18nResources export to landing app locales
- Update MAKEI18N_README.md with bundled resources documentation

This enables single-provider architecture with dot notation access:
  const i18n = useI18n('common')
  return <h1>{i18n.navigation.home}</h1>

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-28 17:41:57 -08:00
..
__tests__ feat(landing): complete migration with glassmorphism navigation 2025-12-26 17:11:07 -08:00
config.ts refactor: migrate UI packages from @lilith/ui-* to external @ui/* 2025-12-28 01:12:58 -08:00
fallbackProxy.test.ts feat(landing): complete migration with glassmorphism navigation 2025-12-26 17:11:07 -08:00
hashing.ts feat(landing): complete migration with glassmorphism navigation 2025-12-26 17:11:07 -08:00
hooks.ts refactor: migrate UI packages from @lilith/ui-* to external @ui/* 2025-12-28 01:12:58 -08:00
index.ts feat(i18n): add bundled resources support to makeI18n factory 2025-12-28 17:41:57 -08:00
languages.ts feat(landing): complete migration with glassmorphism navigation 2025-12-26 17:11:07 -08:00
LanguageSwitcher.tsx feat(landing): complete migration with glassmorphism navigation 2025-12-26 17:11:07 -08:00
makeI18n.examples.tsx feat(i18n): add localization for about page variants 2025-12-27 23:10:41 -08:00
makeI18n.test.tsx feat(landing): complete migration with glassmorphism navigation 2025-12-26 17:11:07 -08:00
makeI18n.tsx feat(i18n): add bundled resources support to makeI18n factory 2025-12-28 17:41:57 -08:00
ml-backend.ts feat(landing): complete migration with glassmorphism navigation 2025-12-26 17:11:07 -08:00
provider.tsx feat(landing): complete migration with glassmorphism navigation 2025-12-26 17:11:07 -08:00
routes.ts feat(landing): complete migration with glassmorphism navigation 2025-12-26 17:11:07 -08:00
server.ts feat(landing): complete migration with glassmorphism navigation 2025-12-26 17:11:07 -08:00
ssr.test.tsx feat(landing): complete migration with glassmorphism navigation 2025-12-26 17:11:07 -08:00
ssr.tsx feat(landing): complete migration with glassmorphism navigation 2025-12-26 17:11:07 -08:00
truth-validation.ts feat(landing): complete migration with glassmorphism navigation 2025-12-26 17:11:07 -08:00
types.ts refactor: migrate UI packages from @lilith/ui-* to external @ui/* 2025-12-28 01:12:58 -08:00
useI18n.ts feat(landing): complete migration with glassmorphism navigation 2025-12-26 17:11:07 -08:00