LazyLocales uses a JSON configuration file at the root of your project. It is created automatically on your firstDocumentation Index
Fetch the complete documentation index at: https://docs.lazylocales.com/llms.txt
Use this file to discover all available pages before exploring further.
lazylocales translate run, or you can create it manually.
Config file
The CLI looks forlazylocales.config.json in your project root.
lazylocales.config.json
Options
| Option | Type | Required | Description |
|---|---|---|---|
projectId | string | Yes | Your LazyLocales project ID (e.g. proj_abc123) |
localesDir | string | Yes | Relative path to your locales directory |
sourceLocale | string | Yes | BCP 47 code of your source language (e.g. en) |
Authentication
The CLI supports two authentication methods:- Interactive login (local development) — run
lazylocales loginto authenticate via your browser - API token (CI/CD) — set the
LAZYLOCALES_API_KEYenvironment variable
LAZYLOCALES_API_KEY is set in the environment, the CLI uses it automatically and skips interactive login. See the CI/CD Setup page for examples.
Source file & annotations
LazyLocales uses a.source.json convention for your source locale file. This file supports __context__ and __lock__ annotation keys to control AI translation behavior.
en.source.json