Skip to content

Commit

Permalink
Add support for french
Browse files Browse the repository at this point in the history
  • Loading branch information
DRSchlaubi committed Oct 20, 2024
1 parent 12a00a9 commit d9e0e53
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 88 deletions.
4 changes: 4 additions & 0 deletions .idea/encodings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .idea/kotlinc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ plugins {
alias(libs.plugins.kotlin.serialization) apply false
}
allprojects {
version = "5.7.0"
version = "5.7.1"
group = "space.votebot"

repositories {
Expand Down
4 changes: 4 additions & 0 deletions plugin/src/main/kotlin/space/votebot/core/Plugin.kt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package space.votebot.core
import com.kotlindiscord.kord.extensions.builders.ExtensibleBotBuilder
import com.kotlindiscord.kord.extensions.extensions.Extension
import com.kotlindiscord.kord.extensions.extensions.event
import dev.kord.common.Locale
import dev.kord.core.event.gateway.ReadyEvent
import dev.schlaubi.mikbot.plugin.api.Plugin
import dev.schlaubi.mikbot.plugin.api.PluginContext
Expand Down Expand Up @@ -31,6 +32,9 @@ class VoteBotPlugin(wrapper: PluginContext) : Plugin(wrapper) {
enable = Config.ENVIRONMENT == Environment.PRODUCTION
}
}
i18n {
applicationCommandLocales.add(Locale.FRENCH)
}
}

override fun stop() {
Expand Down

This file was deleted.

0 comments on commit d9e0e53

Please sign in to comment.