Portable UI

I18nProvider

v1.0.0

Context 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().

Methods

locale: string

Active locale code.

catalog: TranslationCatalog

Active locale translations.

fallback?: TranslationCatalog

Default locale fallback catalog.

availableLocales?: string[]

All available locale codes.