Guides
Import and Translate JSON
Use this guide when you already have translation JSON and want Lezu to fill in missing target languages.
Source File
Example en.json:
{
"nav": {
"home": "Home",
"pricing": "Pricing"
},
"checkout": {
"pay": "Pay now",
"items": "You have {count} items"
}
}
Import With Translation
POST /v1/i18n/projects/project_123/import
Authorization: ApiKey lez_...
Content-Type: application/json
{
"locale": "en",
"targetLocales": ["nl", "fr", "de"],
"translateMissing": true,
"content": {
"nav": {
"home": "Home",
"pricing": "Pricing"
},
"checkout": {
"pay": "Pay now",
"items": "You have {count} items"
}
}
}
What Lezu Does
- Creates keys such as
nav.homeandcheckout.items. - Stores the English source values.
- Creates Dutch, French, and German translations for missing values.
- Preserves placeholders such as
{count}. - Records translation usage for the account.
Check The Result
GET /v1/i18n/projects/project_123/values
Authorization: ApiKey lez_...
Review values before publishing a release.