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