diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 4d9b22f..427e8ac 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -1,6 +1,6 @@ [versions] -kotlin = "2.0.20" -kordex = "2.2.0-20240824.203242-3" +kotlin = "2.0.21" +kordex = "2.2.1-20241015.125602-7" git-hooks = "0.0.2" licenser = "0.6.1" bin-compat = "0.16.3" diff --git a/src/main/kotlin/org/hyacinthbots/docgenerator/_Utils.kt b/src/main/kotlin/org/hyacinthbots/docgenerator/_Utils.kt index c385060..18646a6 100644 --- a/src/main/kotlin/org/hyacinthbots/docgenerator/_Utils.kt +++ b/src/main/kotlin/org/hyacinthbots/docgenerator/_Utils.kt @@ -60,7 +60,7 @@ internal fun String.translate( language: Locale?, bundle: String? = DEFAULT_BUNDLE_NAME ): String = - provider.translate(this, language ?: SupportedLocales.ENGLISH, bundle) + provider.translate(this, bundle, language ?: SupportedLocales.ENGLISH) /** * Extension function for formatting a [MutableSet] of [Permission]s into a string, possible localised if necessary.