Migration reference

The details of moving from CLI v0 that only some projects need, from how lingo migrate converts i18n.json to formats, key rules, flags and lockfile versions.

Each migration path links here when a project needs more than the common steps; open the page that matches what you found.

Convert i18n.json #

Convert i18n.json: lingo migrate printed settings under "Not converted", or you want to check its result or write the config by hand.

Several i18n.json files #

Several i18n.json files: the repository has more than one i18n.json, such as one per package.

Formats #

Formats: lingo migrate listed a bucket, or you translate xml, vtt or json5 files.

Locales and key rules #

Locales and key rules: you use Android-style or underscore locales, lockedKeys, preservedKeys, ignoredKeys or lockedPatterns.

Models and provider keys #

Models and provider keys: your i18n.json has a provider block, or you translated on your own model key.

Fill missing keys #

Fill missing keys: a target file that exists still lacks keys after the first push, or you need the .gitattributes line for LF line endings.

Map v0 commands and flags #

Map v0 commands and flags: a script or CI job still runs a lingo.dev command or flag.

Upgrade from 1.17 or older #

Upgrade from 1.17 or older: the project already uses @lingo.dev/cli 1.17 or older.

Lockfile version 2 #

Lockfile version 2: a command stops with unsupported lockfile version, or machines and CI run different CLI versions.

Uncommon setups #

Uncommon setups: your setup matches one of these.