|
Knowledgebase
EnterprisePlatform
PlatformAPIReact (MCP)CLI
IntegrationsReact (Lingo Compiler)
Alpha
GuidesChangelog

Lingo.dev CLI

  • How it works
  • Setup
  • Quick Start

Configuration

  • Supported Formats
  • i18n.json
  • i18n.lock
  • Supported Locales

Features

  • Existing Translations
  • Adding Languages
  • Overrides
  • Translator Notes
  • Translation Keys
  • Key Renaming
  • Key Locking
  • Key Ignoring
  • Key Preserving
  • Extract Keys with AI

Performance

  • Large Projects
  • Parallel Processing

Retranslation

  • Automatic Retranslation
  • Retranslation
  • Remove Translations

Automatic Retranslation

Max PrilutskiyMax Prilutskiy·Updated about 1 month ago·1 min read

The Lingo.dev CLI automatically retranslates content when you modify the source text. The lockfile stores fingerprints for every source string - when a fingerprint changes, the CLI sends the updated content through the translation pipeline and replaces the old translation in all target files.

How it works#

json
// locales/en.json (original)
{ "button.save": "Save changes" }

// locales/es.json (generated)
{ "button.save": "Guardar cambios" }

After editing the source:

json
// locales/en.json (updated)
{ "button.save": "Save all changes" }

Running npx lingo.dev@latest run detects the new fingerprint and retranslates:

json
// locales/es.json (updated automatically)
{ "button.save": "Guardar todos los cambios" }

Unchanged keys are skipped entirely - only the modified key is sent to the translation backend.

What triggers retranslation#

ChangeRetranslated?
Source text modifiedYes
Source text unchangedNo
Key renamed, content unchangedNo - translation is carried forward
Key deleted from sourceTranslation removed from targets
New key added to sourceTranslated as new content

Overrides and automatic retranslation#

If you've manually overridden a translation, automatic retranslation replaces your override when the source changes. This is by design - a source change signals that the meaning has shifted and a fresh translation is needed.

To retranslate content for other reasons (model change, prompt update), see Retranslation.

Next Steps#

Retranslation
Manual retranslation options
i18n.lock
How fingerprinting tracks changes
Overrides
How manual edits are preserved
Remove Translations
Delete translations from target files

Was this page helpful?