Features

File Uploads

File uploads let you import translation files directly.

Use Cases

  • Import an existing en.json file.
  • Add new source strings from a product release.
  • Translate newly imported values into target languages.
  • Keep project content in sync with source files from your codebase.

Upload a JSON File

POST /v1/i18n/projects/project_123/files/json-import
Authorization: ApiKey lez_...
Content-Type: multipart/form-data

Form fields:

file: en.json
locale: en
targetLocales: ["nl", "fr"]
translateMissing: true

What You Get Back

The response tells you what was imported and which translations were created. After upload, use the values endpoint to inspect the project content or publish a release when it is ready.

Relevant Endpoints

Method Endpoint Scope
POST /v1/i18n/projects/:projectId/files/json-import i18n:write
POST /v1/i18n/projects/:projectId/import i18n:write
GET /v1/i18n/projects/:projectId/values i18n:read