Fill missing keys after CLI v0
Fill keys missing from target files that already exist after the first push, and keep source line endings stable.
Fill missing keys #
The first push, lingo push --backfill-missing --wait, uploads every source file the config selects, translates the target files that do not exist yet, and writes .lingo/lock.json, the baseline for later pushes. It keeps existing target files as they are, including any keys missing from them, except in Xcode string catalogs and CSV tables, where it fills missing keys too. Without --backfill-missing, it only uploads sources and translates nothing.
To fill keys still missing from an existing target file, name the keys you know, and repeat --key for each one:
lingo push 'locales/en.json' --key 'checkout.title' --waitOr translate that file again in every locale, which replaces its existing translations, including manual edits:
lingo push 'locales/en.json' --force --waitOtherwise a missing key is filled the next time its source file changes and you push. Refresh selected keys lists the formats --key supports.
The lockfile records exact source bytes, so make sure the source files use LF line endings before the first push, and add this line so every later checkout keeps them:
* text=auto eol=lfBack to Migration reference.