Octri

docs translate

Runs AI translation into one of your docs languages, on your AI credits, at 1 credit per 500 source words. It prints the estimate first: how many pages and items, how many words go to the AI, how many passages are reused from earlier translations or kept because a person wrote them, and the credits. Nothing is spent until you answer yes. Without a terminal to ask in, as in a CI job or with --json, it stops after the estimate unless you pass --yes. Add the language in API Studio first. See localization.

The run carries on in Octri after the command returns, and you can follow it in API Studio. Text a person wrote or imported is never overwritten.

bash
octri docs translate --locale <code> [--missing | --stale | --all] [--publish] [--yes]

Flags

--locale <code>stringrequired

The language, such as fr or pt-BR. It can also be given as the first argument.

--missingbooleandefault: true

Translates text that has no translation yet.

--staleboolean

Translates text whose source changed since it was translated.

--allboolean

Covers every page in the language. Finished translations are still not charged again.

--publishboolean

Publishes translations as they finish, marked not reviewed. Without it they land as drafts.

--yesboolean

Starts the run without asking.

octri docs translations status [--locale <code>]

Prints each language's status (live, draft or read-only on your plan) and how much of it is translated, changed in the source, reviewed and unpublished. With --locale, it also lists the pages and items that aren't done in that language.

Flags

--locale <code>string

One language, with the items still to do.

Examples

Translate what's missing in French

bash
octri docs translate --locale fr --missing

Translate what changed, and publish

bash
octri docs translate --locale fr --stale --publish --yes

See coverage in every language

bash
octri docs translations status
  • octri docs releases: The API Studio's release history, with what each publish changed.
  • Localization: Languages, AI translation and what each plan allows.