platform-codebase/@packages/@infrastructure/i18n
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
..
locales/en feat(i18n): update English locales and remove Spanish translations 2025-12-28 16:07:15 -08:00
src feat(i18n): add bundled resources support to makeI18n factory 2025-12-28 17:41:57 -08:00
IMPLEMENTATION_SUMMARY.md feat(landing): complete migration with glassmorphism navigation 2025-12-26 17:11:07 -08:00
MAKEI18N_README.md feat(i18n): add bundled resources support to makeI18n factory 2025-12-28 17:41:57 -08:00
package.json feat(landing): complete migration with glassmorphism navigation 2025-12-26 17:11:07 -08:00
TRANSLATION_REVIEW_ES.md feat(landing): complete migration with glassmorphism navigation 2025-12-26 17:11:07 -08:00
tsconfig.json feat(landing): complete migration with glassmorphism navigation 2025-12-26 17:11:07 -08:00
tsup.config.ts feat(landing): complete migration with glassmorphism navigation 2025-12-26 17:11:07 -08:00
vitest.config.ts feat(i18n): add localization for about page variants 2025-12-27 23:10:41 -08:00