fromBundle

abstract fun fromBundle(@NotNull baseName: @NotNull String, @NotNull requestedLocale: @NotNull Locale): @Nullable LocalizationMap(source)

Loads a localization map with the requested name and requested locale. This may return a localization bundle with a broader locale, which must be returned by getEffectiveLocale.

Note: this does NOT include parent bundles.

Return

A LocalizationMap instance with the requested data, or null if no bundle could be read, or a (logged) exception happened.

Parameters

baseName

The base name of the localization bundle

requestedLocale

The requested locale