Class LocalizationRegistry
Properties
Protected Readonly contributions
Protected Readonly localizationProvider
Methods
Protected createLocalization
Parameters
translations: Record<string, string>
Protected flattenTranslations
- flattenTranslations(localization: unknown): Record<string, string>
Parameters
Returns Record<string, string>
Protected identifyLocale
- identifyLocale(localizationPath: string): undefined | string
Parameters
Returns undefined | string
initialize
- initialize(): Promise<void>
registerLocalizationFromFile
- registerLocalizationFromFile(localizationPath: string, locale?: string | LanguageInfo): Promise<void>
Parameters
localizationPath: string
Optional locale: string | LanguageInfo
Returns Promise<void>
registerLocalizationFromRequire
- registerLocalizationFromRequire(locale: string | LanguageInfo, required: unknown): void