Skip to content

Commit

Permalink
Mappings module translated!
Browse files Browse the repository at this point in the history
  • Loading branch information
gdude2002 committed Sep 18, 2024
1 parent 8389326 commit 866d914
Show file tree
Hide file tree
Showing 21 changed files with 411 additions and 308 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import dev.kordex.core.annotations.InternalAPI
import dev.kordex.core.i18n.types.Key
import kotlin.reflect.KClass

@Suppress("UNCHECKED_CAST")
public open class OptionWrapper<T : OptionsBuilder> @InternalAPI constructor(
public var displayName: Key,
public var description: Key,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public fun String.toKey(
key = key.withPresetPlaceholderPosition(presetPlaceholderPosition)
}

if(translateNestedKeys != null) {
if (translateNestedKeys != null) {
key = key.withTranslateNestedKeys(translateNestedKeys)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import dev.kordex.core.utils.getKoin
import kotlinx.serialization.Serializable
import kotlinx.serialization.Transient
import java.util.Locale
import java.util.Map.entry
import kotlin.collections.asList
import kotlin.collections.plus

Expand Down
Loading

0 comments on commit 866d914

Please sign in to comment.