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
Authenticate
Log in using the device authorization flow:This opens your browser to authorize the CLI. Your session is stored securely in
~/.config/lazylocales/.Run your first translation
- Project setup — create a new project or link to an existing one
- Source file selection — interactive file picker with locale scoring
- Target languages — multi-select picker with fuzzy search
- Translation — live progress bars for each locale
- Output — translated files written to your locales directory
Example output
Configuration file
After the first run, alazylocales.config.ts file is created at your project root:
lazylocales.config.ts