Skip to main content
The push command uploads your source locale file to LazyLocales and computes a diff against the previous version. It does not trigger translation — use translate for that.

Usage

npx lazylocales push [options]

Options

FlagDescription
--dry-runShow what would be pushed without uploading
--jsonOutput machine-readable JSON

What it does

1

Read source file

Reads the source locale file from the path defined in your config (e.g. ./public/locales/en.json).
2

Upload to LazyLocales

Sends the file content to the API. The server computes a diff against the previous version and stores the new version.
3

Show diff summary

Displays what changed:
✓ Version 4 — 142 keys
Changes: +3 added, ~1 modified, -0 deleted

Examples

Push the source file:
npx lazylocales push
Preview what would be pushed:
npx lazylocales push --dry-run