Skip to content

Translate your story by prompt

A story is written once, in its source language. A translation is written beside the text it translates, and the tool stores it so the game finds it by that text. The story’s logic never reads a translation, so a condition, a variable or a comparison works the same in every language. Nothing in the story is moved or renamed.

Claude can add a language for you. Where a translation is still missing, a player reads the source language.

ClaudeExample, not a recorded run
You

Translate the feast scene into Turkish.

Claude

I will read your database first. It lists your languages and which one the story is written in.

intrigues_statusfinds the project and the database
intrigues_inventorylists the languages, the source language and how much of the story each one covers
Claude

The story is written in English. I will add Turkish and write each translation next to its text. These are my translations, not a translator’s, so please have them read before you ship them.

intrigues_validatechecks the draft without changing anything
Claude

This would make the translations file for your database for the first time. I need your yes for that. Do you agree?

You

Yes.

intrigues_applyapplies with the translations confirmed
Claude

Done. I translated the scheme’s name and description, the dialogue’s title, text and two choices, and the culture’s name and description. Text that stays in English is what a player reads where I wrote no translation.

  1. Reads the inventory. It lists your languages with coverage and the source language. With no source language yet, Claude asks which language the story is written in, and writes sourceLanguage and, when the story has no languages, "languages" with that language’s code, for example [ { "code": "en-GB" } ] for British English.
  2. Adds the language when it is new, in languages: a code, a name you read in lists, and plural when it knows how the language counts. Use rightToLeft for Arabic, Hebrew or Persian. A new language falls back to the source language.
  3. Translates beside the text. On each item or node it writes "translations": { "<code>": { "<Field>": "<text>" } }. For an item the fields are Name and Description, and the other texts the Texts page lists. For a node they are the names written in its set, such as Title, Content, Objective, Reason, Tooltip, Choices[1].Text and Buttons[0].Text. Texts that no item holds go in lines.
  4. Keeps the structure. Every token such as {target.Name}, every {if} block, plural block and pacing mark of the written text stays in the translation. Claude may reorder them for the language. It never drops them.
  5. Checks, then asks. The first translation makes the translations file next to the database. The tool catalogue puts it this way: “The first translation makes the translations file and needs confirm: ["translations"].”

The tool answers N-CONFIRM until you say yes. Claude names what would change and asks you. After your yes, it passes "translations" in confirm and applies.

A translation that already exists with other words is kept, and you see N-TEXT-KEPT. To replace it, Claude writes "textsMode": "update" and asks you first, because it replaces words someone may have written by hand.

  • A new language: “Translate the feast scene into Turkish.”
  • One more language later: only the new code and its translations are added, and the languages you already have are not touched.
  • A fix: “The Turkish for the cup is wrong. Use this word.” Claude replaces it, with your yes.
  • Plurals: a number next to a noun uses a plural block, so the translation counts its own way. Claude always writes an {other} branch.
  • A text only in one language: Claude leaves the others out, and players of the other languages read the fallback.
  • Copy a text into a key ({text.key}) to translate it, or change the written text to make a translation fit. Claude changes the translation instead.
  • Translate what logic reads: a name compared with target.Name = "Erik", or a value stored in a variable.
  • Use the prefix intrigues. in its own keys. Those are the game’s own words.
  • Hand over machine-quality text as finished. Claude says which texts it translated and that you should read them. You can mark a translation “needs review” on the Texts page.
Code What it says
I-TRANSLATION-TOKENS A token was lost or invented in a translation
N-TRANSLATION-FIELD A text of an item was named wrongly
N-LINES-OFF The story has no source language yet
N-TEXT-KEPT A translation exists with other words, so it was kept

Change or fix existing content, or How Claude builds content.