Formats after CLI v0

Which current format each CLI v0 bucket becomes, and how xml, vtt and json5 targets change after the first push.

Formats #

v0 bucketCurrent format
json, jsonc, mdx, markdoc, html, po, flutter, xcode-strings, xcode-stringsdict, xcode-xcstrings, xliff, srt, php, typescript, txt, csv, propertiesSame name, inferred from the extension
markdownmd
xcode-xcstrings-v2xcode-xcstrings
yaml, yaml-root-key, android, xmlSame name, set as format. A file without one is skipped. xml needs CLI 1.24.0 or newer.
vttSame name, inferred from a pattern that ends in .vtt or set as format. Needs CLI 1.25.0 or newer.
json5Same name, for a pattern ending in .json5 or set as format. It reads only files that end in .json5, so rename others. Needs CLI 1.25.0 or newer.
compiler@lingo.dev/react. Follow Migrate existing React messages.
ail, csv-per-locale, dato, ejs, json-dictionary, mjml, twig, vue-jsonNo equivalent. Keep these files out of the config.

Markdown, MDX and Markdoc translate only title and description in front matter; list other fields in translateFrontmatterFields.

The XML format translates attribute values only for attributes listed in translateComponentProps, while v0 translated them all, so list the ones you need before the first push. The first push keeps targets the v0 xml bucket wrote on one line, and the XML format rewrites each in the source's layout the next time it translates that file. To replace them at once, delete them before the first push.

The v0 vtt bucket wrote targets without the source's header text, cue settings, NOTE blocks and empty cues. The first push keeps those targets as they are, and the WebVTT format writes each one again in the source's layout, with all of those kept, the next time it translates that file. To replace them at once, delete them before the first push. A target in which v0 wrote a raw --> or a blank line inside a cue is not valid WebVTT, so a later push that translates its source fails. Delete such targets before the first push so they are translated again. Remove any lockedKeys, preservedKeys or ignoredKeys from a vtt entry, because the current CLI refuses them.

The JSON5 format writes each target into a copy of the source, so targets keep the source's comments, quotes and number spellings, which v0 rewrote. The first push keeps the targets v0 wrote, and the JSON5 format rewrites each in the source's layout the next time a full run translates that file. A --key run writes into the existing target and keeps its layout. v0 copied strings that held only a number or a link without translating them; lock such keys with lockedKeys.

Back to Migration reference.