Gluon browser package · 1.10.0
@gluonjs/i18n
Locale-aware messages and lazy namespace loading for Gluon applications.
Install and start
Install the public package at the same version as the rest of the Gluon train:
npm install @gluonjs/i18nimport { createI18n, useI18n } from '@gluonjs/i18n';
const i18n = createI18n({ locale: 'en', fallbackLocale: 'en' });Purpose
Locale-aware messages and lazy namespace loading for Gluon applications.
Use cases
- Translated messages for application UI.
- Lazy-loaded locale namespaces and ready-state tracking.
- Reactive language switching in browser apps.
Public entry points
Only these package exports are part of the supported public boundary.
Dependencies and peers
Installed dependencies
- @gluonjs/core · runtime dependency
- @gluonjs/reactivity · runtime dependency
Peer dependencies
- @gluonjs/core@1.10.0
- @gluonjs/reactivity@1.10.0
API reference
Open an entry point above for generated symbol documentation and a reviewed example for every public symbol. Application code must import from this package entry point, never from repository source paths.
Scope and limits
- Does not own routing, storage, or component rendering.
- Applications without translated strings do not need this package.
Related guides
Verified integration notes
- Depends on `@gluonjs/core` and `@gluonjs/reactivity`.
- Browser package with a single public export.