localize

fun LocalizationContext.localize(locale: DiscordLocale, localizationPath: String, vararg entries: PairEntry): String(source)

Localizes the provided path, with the provided locale.

Parameters

locale

The DiscordLocale to use when fetching the localization bundle

localizationPath

The path of the localization template, prefixed with localizationPrefix

entries

The entries to fill the template with


fun LocalizationContext.localize(localizationPath: String, vararg entries: PairEntry): String(source)

Localizes the provided path, with the best locale available.

Parameters

localizationPath

The path of the localization template, prefixed with localizationPrefix

entries

The entries to fill the template with