import_translations
Quickly add translations to a Tolgee project by supplying key names and language-value pairs.
Instructions
Import translations into a Tolgee project using single-step import.
Each key object should have a "name" and "translations" mapping language tags to values.
Args:
project_id: The numeric ID of the project.
keys: List of key objects with "name" (str) and "translations" (dict of language_tag -> value).
Example:
[{"name": "hello", "translations": {"en": "Hello", "de": "Hallo"}}]
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": {
"project_id": "<project_id>",
"keys": "<keys>"
},
"name": "import_translations"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | Yes | ||
| keys | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |