Skip to main content
Overwrite one or more existing translations in Entri, identified by their key and language. Unlike nt3 push, which syncs whole files, overwrite targets individual strings — making it well suited for coding agents and scripts that spot a wrong translation locally and want to correct it in place. Overwritten translations are set to status translated with source api, so automated corrections are distinguishable from human, AI, and import edits in the translation history.

Usage

Examples

Options

Input modes

overwrite resolves its input in this priority order:
  1. Inline flags--key, --language, and --value (plus optional --namespace) overwrite a single translation.
  2. JSON file--file path.json reads an array of items.
  3. Stdin — if no inline flags or file are given, a JSON array is read from standard input, enabling piping from other tools.
The JSON array shape:

Result

Keys that don’t exist in the project are reported under notFound rather than created — overwrite only updates existing translations. The process exits with code 1 if any key is not found, so callers can detect partial failures.
An empty value clears the translation and sets its status back to untranslated.