localize
abstract fun localize(locale: DiscordLocale, localizationPath: String, vararg entries: Localization.Entry): String(source)
Localizes the provided path, with the provided locale.
Parameters
locale
The DiscordLocale to use when fetching the localization bundle
localization Path
The path of the localization template, prefixed with localizationPrefix unless starting with /
entries
The entries to fill the template with
Localizes the provided path, with the best locale available.
Parameters
localization Path
The path of the localization template, prefixed with localizationPrefix unless starting with /
entries
The entries to fill the template with