Skip to content

Translate docs one segment at a time.

diglot splits markdown into hashed segments and keeps every translation in git. Machines write the first draft, and the people who review it have the last word.

Get started

docs/intro.md

Nuxt is powered by [Nitro](https://nitro.build), and `useFetch` is built in.

skeleton · 87ecf1244d975205

Nuxt is powered by {0}Nitro{/0}, and {1} is built in.

fr/segments/87/87ecf1244d975205.json

Nuxt est propulsé par {0}Nitro{/0}, et {1} est intégré.

The translator only ever sees the middle form. The link and the code come back from the source.

Layer 6 of 6

Review UI

  • @diglot/x18n

An experimental plugin shows a diglot store in x18n, so reviewers can edit and approve translations in a browser instead of editing JSON.

Quick start

A config file, a list of sources and four commands.

sources.yml
sources:
  - name: nuxt-main
    repo: nuxt/nuxt
    ref: main
    path: ../nuxt
    dir: docs
pnpm dlx @diglot/cli extract   # write .diglot/manifest/<source>.json
pnpm dlx @diglot/cli status    # coverage per locale and source
pnpm dlx @diglot/cli validate  # check every record
pnpm dlx @diglot/cli build     # write dist/<locale>.json