LocaleManager

Functions

Link copied to clipboard

Gets the format string for key in lang, falling back the format string to en_us or the key itself if none was found.

Link copied to clipboard

Gets the format string for key in lang, or null if none was found.

Link copied to clipboard
fun getTranslation(lang: String, key: String, vararg args: Any): String

Gets the translation for key in lang using args, falling back the translation to en_us or the key itself if none was found.

Link copied to clipboard
fun getTranslationOrNull(lang: String, key: String, vararg args: Any): String?

Gets the translation for key in lang using args, or null if there is no format string.

Link copied to clipboard

Checks whether Nova is aware of a translation for key in lang.

Link copied to clipboard
fun render(component: Component, locale: Locale): Component

Renders the translatable parts of component in the given locale.