DefaultLocalizationMapProvider

Default implementation for LocalizationMap providers.

Loading is done by running all LocalizationMap readers until one returns a valid LocalizationMap. Then, repeats with a broader locale while merging the new strings, until the root locale is reached. The templates are loaded with the best (most specific or closest) locale available, followed by the templates of broader locales.

Additionally, this reads bundles with a -default postfix on the base name, such as DefaultMessage-default_fr_FR.

See also

Constructors

Link copied to clipboard
constructor(localizationMapProviders: LocalizationMapProviders, localizationMapReaders: LocalizationMapReaders)

Properties

Link copied to clipboard

Functions

Link copied to clipboard
open fun fromBundle(@NotNull baseName: @NotNull String, @NotNull requestedLocale: @NotNull Locale): @Nullable LocalizationMap
Loads a localization map with the requested name and requested locale.
Link copied to clipboard
Loads a localization map with the requested name and requested locale.