import_translations
Imports translated strings from XLIFF or TMX exchange files into JSON or Flutter ARB catalogs, with dry-run diff previews and collision-safe overwrite controls.
Instructions
Imports translated strings from standard XLIFF (1.2 / 2.0) or TMX 1.4 exchange files back into project translation catalogs (JSON or Flutter ARB), with unified diff support and collision safety.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "import_translations"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dryRun | No | If true, previews imported translations and unified diff without writing to disk. | |
| format | No | Exchange standard format. If omitted, auto-detected from XML content. | |
| content | No | Raw XLIFF or TMX XML content to import directly. | |
| filePath | No | Path to the XLIFF (.xlf, .xliff) or TMX (.tmx) file to import. | |
| overwrite | No | Whether to overwrite existing translations in project catalogs. Defaults to true. | |
| projectPath | No | Optional project root directory. Defaults to current working directory. | |
| targetLocales | No | Target locales to import into. If omitted, read from XML file headers. |