Portable UI
defineTranslations
v1.0.0Builder function to declare a module's translation catalogs at boot.
Import
import { defineTranslations } from '@meteorack/modules-sdk-ui/i18n';How To Use It
- Call in the module's definition file to declare all supported locales.
Works Well With
Methods
defineTranslations(options: ModuleTranslations): ModuleTranslationsDeclare module slug, default locale, and locale-to-catalog map.