ResourceBundleTranslations
open class ResourceBundleTranslations(val defaultLocaleBuilder: () -> Locale) : TranslationsProvider
Translation provider backed by Java's ResourceBundles. This makes use of .properties files that are standard across the Java ecosystem.
Bundles are resolved as follows:
If
bundleNameisnull, default tokordexPrefix the bundle name with
translations.If
bundleNamedoesn't contain a.character, suffix it with.strings
With a bundleName of null, this means the bundle will be named translations.kordex.strings, which will resolve to translations/kordex/strings${_locale ?: ""}.properties in the resources.
Properties
Link copied to clipboard
Default locale, resolved via defaultLocaleBuilder. Avoid accessing this outside of your get functions, as accessing it too early will prevent the user from configuring it properly.
Link copied to clipboard