Skip to content

Translations

A language is a row in languages.json plus text/<id>.json in the same mod. The id is a code such as fr or pt_BR:

[{"id": "fr", "name": "FRANÇAIS"}]

The text file maps keys to text. Missing keys fall back to English, so start small:

{
  "settings.volume": "VOLUME PRINCIPAL",
  "difficulties.standard.name": "TROP PETIT POUR LE FISC",
  "objective.beat": "BATTEZ {boss}"
}

Keys

Text Key
Interface (menus, HUD, results, garage, tutorial, objectives, signs) As in game/data/content/base/text/en.json
Any content row <kind>.<id>.<field>, such as cards.machine_gun.name
Your mod's own text text/en.json under your id, such as neon.hello
  • Keep {tokens}; the game fills them in.
  • Not translatable: key names, the title logo, map place names.
  • Fonts draw ASCII, Latin-1, Latin Extended-A and Vietnamese. A mod using other letters is rejected, naming the letter.
  • Code reads text with game.text('neon.hello', {name = 'Anna'}).
  • Fields: Translations.

Players pick the language in Settings > ACCESSIBILITY > LANGUAGE; it applies on next start.

Example: francais.