Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Localization

How the Harness Developer Hub tests machine translation before a language goes live, and the rules that keep English as the source of truth.

The Harness Developer Hub is written in English. GitBook can publish a machine-translated copy of a space in another language and keeps that copy in step with the English automatically. Before a language goes live on the main site, we prove it in this Sandbox, one page per language.

What you will learn from this topic

This page covers the following:

  • How GitBook translation works, and which three things shape its output.

  • The rules that keep English as the source of truth.

  • Who fixes a translation failure, depending on where it starts.

  • How to add a new language to this test bed.

How translation works in GitBook

GitBook translation has four properties that shape how we test it:

  • A translation is a separate, generated copy of an English space. Nobody edits it by hand. GitBook treats it as a pure transformation of the English, so a manual change is overwritten on the next run.

  • Three things shape the output: the English source, the Translation Instructions (tone, style, and rules), and the Glossary (fixed translations for specific terms).

  • Instructions cannot change the structure of the source. They can change the wording inside a block, but they cannot add a block, remove one, or move content between blocks.

  • A change to the glossary translates the whole space again, and translation is billed per word. Glossary experiments belong in this Sandbox, not on production spaces.

This Sandbox space already has a Japanese translation. Switch any page here to Japanese to see the translated output for the English source.

English comes first

English is the most-read language on the site and stays the source of truth. We do not restructure English to suit one target language. A change that helps Japanese could hurt German, and we cannot rewrite the source for every language we add.

The English test

A change to English source is accepted only if the English reads as well as before, or better. Short sentences, one instruction per sentence, and descriptive link text all pass this test, and all of them are part of the HDH style guide. A rewrite that makes the English clumsier fails the test, whatever it does for a translation.

Who fixes a failure

When a translation fails, the fix belongs to whichever layer caused it.

Where the problem starts
Who fixes it
Example

English source that breaks the style guide

Documentation engineering, in the source page

Vague link text such as "here"

A term translated inconsistently

The language owner, in the glossary

A product name translated on one page and left in English on another

Tone or phrasing

The language owner, in the Translation Instructions

Phrasing that reads as word-for-word

How GitBook splits or reassembles a sentence

GitBook

A sentence with a link that breaks into fragments

Content written by one of our own integrations

Documentation engineering, in the integration

Generated release notes that translate differently to hand-written pages

Languages in test

Language
Owner
Status

Japan market team

In test, not live

Add a language

To add a language to this test bed, complete the following steps:

  1. In GitBook, create a translation of this Sandbox space with the new language as the target.

  2. Copy the Japanese folder as the starting point, with its overview and examples pages. Most of the examples test sentence structure, not Japanese, so they apply to any language unchanged.

  3. Add examples for risks specific to the new language, for example long compound nouns in German or right-to-left text in Arabic.

  4. Agree a named owner for the glossary and Translation Instructions in that language.

  5. Score every example with that owner before the language goes near production.

Next steps

The following page holds the first language in test:

Last updated

Was this helpful?