Make a language

A language package is a translation made by hand of the dashboard: its phrases, and, if you want, the Help guide and a game system’s words. It comes before the dashboard’s own translation and before the translation made on the fly, and it serves every campaign on your computer that plays in that language.

You need Node 24 and RPG Engine (npm install -g rpg-engine), and a campaign to test it in.

What it holds

my-language/
  language.yaml                      required: code, name, version, engine
  phrases.json                       the dashboard's phrases, from each English phrase to yours
  guide.md                           optional: the Help guide in your language
  systems/<name>/words/<code>.yaml   optional: a game system's words, such as systems/free/words/eo.yaml
  LICENSE                            optional: your licence

Nothing else is kept. A language package is data, so no permission window is shown.

Steps

  1. Make the folder and its language.yaml:

    code: eo           # the language's code, such as de or pt-BR; never en, which is the page's own
    name: Esperanto    # its name in the language itself
    version: 0.1.0
    engine: "0.35"     # the lowest RPG Engine that reads it, in quotes
    
  2. Start phrases.json from a translation the dashboard has. Its keys are the English phrases, exactly as the page writes them; translate only the values. Find the files where RPG Engine is installed (npm root -g, then rpg-engine/dist/dashboard/i18n/<code>.json), or in this repository, src/dashboard/i18n. it.json has every phrase. Copy one, keep the keys, and translate the values:

    {
      "(opens in a new tab)": "(malfermiĝas en nova langeto)",
      "“{title}” is read: the master asks you where to start": "“{title}” estas legita: la ludestro demandas vin, kie komenci"
    }
    

    Keep every {name} of a phrase, spelled the same, and add none: move it where your grammar needs it. A phrase you leave out stays as the dashboard has it: its own translation in a language it ships, else translated on the fly, else English.

  3. Add the Help guide, if you want: guide.md, translated from the English one (rpg-engine/dist/dashboard/guide/en.md where RPG Engine is installed, or src/dashboard/guide/en.md). Dashboard phrases and guide are separate: a package can have one without the other.

  4. Add a game system’s words, if you want: systems/<system>/words/<code>.yaml, in the shape of a system’s own words (groups, fields, words, names, headline). Start from one the system has: free play’s are in rpg-engine/systems/free/words/ where RPG Engine is installed, or systems/free/words; another system’s are in its own package.

    groups:
      Character: Rolulo
    fields:
      concept: Koncepto
    
  5. Install it. From a campaign folder:

    rpg package install ../my-language
    

    You should see:

    Installed Esperanto (eo) 0.1.0, the dashboard's words made by hand, by someone else, for every campaign on this computer. The 1691 phrases it lacks stay as the dashboard has them, its own or translated on the fly.
    

    rpg package list then says Languages of the dashboard: Esperanto (eo) 0.1.0. A language package is copied, not linked: install it again after each change.

  6. See it. The dashboard writes in the campaign’s language. Make a campaign in it, rpg init test-campaign --system free --language eo, or change one: rpg config language eo. A package for pt serves a campaign in pt-BR too.

  7. Publish it on GitHub. Put the folder’s contents at the top of a public repository (language.yaml at the root of the default branch), add a licence, and give the repository the topic rpg-engine-language (on GitHub: the gear beside About, then Topics).

The dashboard’s Packages page lists the repositories with the topic rpg-engine-language, with the name, version and code of their language.yaml. Players add yours from there, or with rpg package install https://github.com/<you>/<repository>. There is one package per language on a computer: a new one takes the place of the one before.

GitHub or npm

GitHub is the simple way, and the one this guide follows. A language can also be an npm package: the same files, with a package.json that has "rpg-engine": {"kind": "language"} and the keyword rpg-engine-package, installed with rpg package install <its npm name>. Its version is then the one in package.json. See extensions.md, Installing.

Update it

Raise version in language.yaml and push. The Packages page offers the update to players who installed it from your repository. When the dashboard gains new phrases, compare your keys with the newest it.json: the install message counts the phrases you lack.

When something fails

Each refusal ends with Nothing changed.: fix the file and install again.

  • "“{titolo}” estas legita: ..." has not the {names} of "“{title}” is read: ...": a {name} was lost, added or respelled. Write it as the English has it.
  • phrases.json does not read as JSON: ...: check commas and quotes; the message gives the line and column.
  • engine: engine is written in quotes, as engine: "0.22": ...: write engine in quotes.
  • code: English is the page's own: code cannot be en or one of its regions.
  • ... has characters that turn the order of a text: remove the invisible direction marks (U+202A to U+202E, U+2066 to U+2069) from that phrase or from guide.md.
  • ... needs rpg-engine 0.99 or newer; this is 0.35.0.: engine asks for a newer RPG Engine than the one installed.

To take it off the computer, from a campaign folder: rpg package uninstall language:<code>, such as language:eo.

Reference


© 2026 Stefano Caronia · code under the MIT license