Skip to main content

Languages

Mountale has one file per language in mods/HaporeLab_Mountale/lang/. The active one is picked with config.json ▸ Language.

Built-in Languages​

FileLanguage
es-PY.jsonSpanish (Paraguay) — default
en-US.jsonEnglish (US)
pt-BR.jsonPortuguese (Brazil)

To switch to English:

{
"Language": "en-US"
}

Then run /mountale reload.

Editing Texts​

  • Language files are extracted from the jar when they are missing, and you can edit them freely.
  • If a file lacks keys (for example, after updating the plugin), they are filled in from the jar and the file is rewritten without touching your edits.
  • If Language doesn't match any file, en-US is used and the console lists the available languages.

Adding a Language​

  1. Copy a file with a new name, for example fr-FR.json.
  2. Translate its values.
  3. Set "Language": "fr-FR" and run /mountale reload.

Anything left untranslated falls back to English.

Placeholders​

Some texts include values in braces:

PlaceholderValue
{mount}Mount name
{seconds}Seconds (combat time left, combat duration)
{count}A number of mounts
{percent}Speed bonus of a mount
{max}Maximum number of favorites, or of scrolls given at once
{player}A player's name (admin commands)
{amount}A number of scrolls (/mountale give)
{item}A scroll's name (/mountale give)
{list}The ids of every mount (unknown mount in an admin command)

Example (en-US.json):

{
"mount.mounted": "You mounted {mount}.",
"combat.enter": "In combat! You can't summon mounts for {seconds}s."
}

What Is Not in lang/​

  • Mount names and descriptions are written in each mount's file (see Mount Files), so they are the same in every language. The default mounts have them in English.
  • Rarity names are translated: rarity.common, rarity.uncommon, rarity.rare, rarity.legendary. To name a new rarity, add its rarity.<id> key, or give it a DisplayName in config.json.
  • Scroll names and descriptions come from item.scroll.name and item.scroll.description, but they follow each player's game language, not Language: on every start, Mountale writes them into the game's item texts, one file per game language (es-ES takes es-PY.json). A change shows up after a restart (see Mount Scrolls).