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.
octri docs translate --locale <code> [--missing | --stale | --all] [--publish] [--yes]Flags
--locale <code>stringrequiredThe language, such as fr or pt-BR. It can also be given as the first argument.
--missingbooleanTranslates text that has no translation yet.
--stalebooleanTranslates text whose source changed since it was translated.
--allbooleanCovers every page in the language. Finished translations are still not charged again.
--publishbooleanPublishes translations as they finish, marked not reviewed. Without it they land as drafts.
--yesbooleanStarts 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>stringOne language, with the items still to do.
Examples
Translate what's missing in French
octri docs translate --locale fr --missingTranslate what changed, and publish
octri docs translate --locale fr --stale --publish --yesSee coverage in every language
octri docs translations statusRelated
octri docs releases: The API Studio's release history, with what each publish changed.- Localization: Languages, AI translation and what each plan allows.