io.github.freya022.botcommands.api.localization.DefaultLocalizationMap.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of BotCommands Show documentation
Show all versions of BotCommands Show documentation
A Kotlin-first (and Java) framework that makes creating Discord bots a piece of cake, using the JDA library.
package io.github.freya022.botcommands.api.localization
import java.util.*
class DefaultLocalizationMap(
override val effectiveLocale: Locale,
private val localizationMap: Map
) : LocalizationMap {
override val keys: Set
get() = Collections.unmodifiableSet(localizationMap.keys)
override fun get(path: String): LocalizationTemplate? = localizationMap[path]
override fun toString(): String {
return "DefaultLocalizationMap(effectiveLocale=$effectiveLocale)"
}
}