Package-level declarations

Types

Link copied to clipboard
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.

Link copied to clipboard

List of supported locales. These are locales with merged translations.

Link copied to clipboard
abstract class TranslationsProvider(val defaultLocaleBuilder: () -> Locale) : KordExKoinComponent

Translation provider interface, in charge of taking string keys and returning translated strings.

Properties

Link copied to clipboard

Default bundle name suffix.

Link copied to clipboard
Link copied to clipboard

String used to denote an empty translation value - ∅∅∅ (\u2205\u2205\u2205).

Link copied to clipboard

Default KordEx translation bundle.

Link copied to clipboard
const val KORDEX_KEY: String

KordEx translation key.

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun String.toKey(bundle: Bundle): Key
fun String.toKey(locale: Locale): Key
fun String.toKey(bundle: String): Key
fun String.toKey(bundle: String, locale: Locale? = null): Key
fun String.toKey(bundle: Bundle? = null, locale: Locale? = null, presetPlaceholderPosition: PlaceholderPosition? = null, translateNestedKeys: Boolean? = null): Key
Link copied to clipboard
Link copied to clipboard
suspend fun Key.withContext(context: TranslatableContext): Key