home documents terms contact shop (coming soon!)

Language Configuration

Edit

Customize messages and add translations for any language.

Customize all CobbleRanked messages in config/cobbleranked/language/.

You can add translations for ANY language - not just English and Japanese. Create your own language file by copying an existing one and translating the strings.

Officially Provided Languages

These languages are included with CobbleRanked:

FileLanguage
en-Us.json5English (default)
ja-Jp.json5Japanese

📝 You can create translations for any language! See Creating Custom Languages below.

Setting Language

Edit config/cobbleranked/config.yaml:

# config.yaml
language: "ja-jp"  # Use any language code matching your file

The language value must match your language file name (without extension).

Reload with /rankedadmin reload.

Placeholders

Messages support dynamic placeholders:

PlaceholderDescription
{player}Player name
{opponent}Opponent name
{format}Battle format
{elo}Current ELO
{elo_change}ELO gained/lost
{rank}Current rank
{season}Season name

Creating Custom Languages

You can create a translation for any language. Here’s how:

Step-by-Step Guide

  1. Copy an existing language file as template

    # From your server's config directory
    cp config/cobbleranked/language/en-Us.json5 config/cobbleranked/language/es-ES.json5
  2. Translate all strings in the new file

    Open es-ES.json5 and translate each message value.

  3. Set your custom language in config

    # config.yaml
    language: "es-ES"
  4. Reload the mod

    /rankedadmin reload

Language File Naming

Language files use ISO 639-1 language codes:

FormatExampleLanguage
xx-XXen-Us, ja-JpLanguage-Country
xx-xxes-ES, ko-KRLanguage-Region (uppercase country)

Common language codes:

CodeLanguageFile Name
koKoreanko-KR.json5
zhChinesezh-CN.json5 (Simplified), zh-TW.json5 (Traditional)
esSpanishes-ES.json5
frFrenchfr-FR.json5
deGermande-DE.json5
ptPortuguesept-BR.json5 (Brazil), pt-PT.json5 (Portugal)
ruRussianru-RU.json5
itItalianit-IT.json5
viVietnamesevi-VN.json5
thThaith-TH.json5

Example: Korean Translation

// ko-KR.json5
{
  "queue": {
    "joined": "&a{format} queue joined!",
    "left": "&eLeft the queue.",
    "match_found": "&6Match found!"
  },
  "elo": {
    "gained": "&a+{elo_change} ELO &7(current: {elo})",
    "lost": "&c-{elo_change} ELO &7(current: {elo})"
  }
}

📝 Keep placeholders ({player}, {format}, etc.) and color codes (&a, &c) intact. Share translations on Discord.


See Also