|
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

Key Ignoring

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

Ignored keys are excluded from translation processing entirely. They do not appear in target files - the CLI skips them during content discovery and never sends them to the translation backend.

Configuration#

Add ignoredKeys to a bucket in i18n.json:

json
{
  "buckets": {
    "json": {
      "include": ["locales/[locale].json"],
      "ignoredKeys": ["internal/debug", "dev/testData"]
    }
  }
}

How it works#

Given this source file:

json
{
  "welcome": "Welcome to our platform",
  "internal": {
    "debug": "Debug mode enabled",
    "testData": "Sample test content"
  }
}

With "ignoredKeys": ["internal/debug", "internal/testData"], the Spanish target file becomes:

json
{
  "welcome": "Bienvenido a nuestra plataforma"
}

The entire internal section is absent from the target file.

Key path notation#

Use forward slash (/) for nested keys and asterisk (*) for wildcards:

json
{ "ignoredKeys": ["internal/*", "dev/settings"] }

Keys containing dots work naturally - dev/api.mock targets "api.mock" inside "dev".

Key Ignoring vs. Key Locking#

Key IgnoringKey Locking
Appears in target filesNoYes - with source value
Use caseDebug, test, internal contentBrand names, technical IDs

Next Steps#

Key Locking
Copy values without translation
Key Preserving
Initialize once, then protect from updates
Translation Keys
Overview of all key-level controls
i18n.json
Full configuration reference

Was this page helpful?