Import localization file
import_fileImports a localization file (JSON, Android XML, iOS .strings, Flutter ARB, gettext PO, PHP array, Java .properties, CSV, YAML). In the source language it creates the strings that do not exist yet; in another language it adds approved translations to existing strings with matching keys. Max 2 MB / 3000 strings per call.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"file_name": "<file_name>",
"content": "<content>"
},
"name": "import_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes | Full file content as text. | |
| project | No | Project id (from list_projects) or exact project name. Optional when connected with a project API key. | |
| language | No | Language of the file. Defaults to the project source language. Language code ("es", "pt-BR") or English name ("Spanish"). | |
| file_name | Yes | Original file name; the extension helps detect the format (e.g. "en.json", "strings.xml"). | |
| category_id | No | Category for new strings. Defaults to the first category. |