Portable UI
I18nProvider
v1.0.0Context provider for module-level translations. The runtime loads the correct catalog and passes it to the provider.
Import
import { I18nProvider } from '@meteorack/modules-sdk-ui/i18n';How To Use It
- Mount once per module UI tree. The runtime supplies locale, catalog, and fallback catalog.
- Modules never touch the loading mechanism — they only consume useTranslation().
Works Well With
Methods
locale: stringActive locale code.
catalog: TranslationCatalogActive locale translations.
fallback?: TranslationCatalogDefault locale fallback catalog.
availableLocales?: string[]All available locale codes.