Import a few keys
localazy_import_keysWRITE: add or update up to 50 string keys in ONE file, in ONE language (flat key -> text; use a key like "home.title" for the key name). Needs the Owner role. Nothing is deleted or deprecated, and Localazy does not overwrite existing current translations by default (translations identical to the source are skipped). By default the language is the project's source language, so this adds new source keys or changes the source text of existing ones (which marks their translations as changed); pass a different language to import translations, optionally through review with import_as_new. Imports count against the project's daily import cap (Free plan: 100/day). Returns an import_batch id for localazy_get_import_progress. POST /projects/{projectId}/import.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| keys | Yes | Key name -> text, 1-50 entries (e.g. {"home.title": "Welcome"}). | |
| project | Yes | Localazy project id or slug (from localazy_list_projects). | |
| language | Yes | Language of the strings in `keys`, e.g. en. Use the project's source language to add source keys. | |
| file_name | No | Target file name in the project (default content.json). A new name creates a new file. | |
| file_path | No | Optional path of the file in the project, without the file name. | |
| import_as_new | No | Send the imported translations through the review process (recommended for translations you are unsure about). |