Skip to main content

Prerequisites

  • Node.js 18 or higher
  • A LazyLocales account — sign up at lazylocales.com
  • A project with a JSON locale file (e.g. public/locales/en.json)

Setup

1

Install the CLI

Add lazylocales as a development dependency:
Or run it directly without installing:
2

Authenticate

Log in using the device authorization flow:
This opens your browser to authorize the CLI. Your session is stored securely in ~/.config/lazylocales/.
3

Run your first translation

The CLI walks you through:
  1. Project setup — create a new project or link to an existing one
  2. Source file selection — interactive file picker with locale scoring
  3. Target languages — multi-select picker with fuzzy search
  4. Translation — live progress bars for each locale
  5. Output — translated files written to your locales directory
4

Check the output

After the command completes, your locales directory will contain the translated files:
Always edit en.source.json — the clean en.json is regenerated automatically on every translate/push. See Source File for annotation syntax.

Example output

Configuration file

After the first run, a lazylocales.config.json file is created at your project root:
lazylocales.config.json
This file is safe to commit — it contains no secrets. See the Configuration page for all options.

Next steps

Source File

Learn the annotation syntax for context and locks

Configuration

Customize the config file for your project

CLI Reference

Explore all available CLI commands

CI/CD Setup

Automate translations in your pipeline