Import strings corpus
strings_importImport a Transept Strings corpus (.tstrings.json shape). Locales: explicit params win; with none named the corpus header target_locales apply (no locales anywhere → sync no_target_languages). A single-locale import is ONE version row carrying the corpus (language_group_id null until more locales join). Async: returns processing_job_id — poll processing_job_get. Translations the corpus carries land active and bill nothing.
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": {
"document": "<document>"
},
"name": "strings_import"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| document | Yes | The .tstrings.json corpus inline, e.g. {"format":"transept-strings","version":1,"source_locale":"en","units":[{"id":"auth.title","source":"Sign in"}]}. A unit may carry targets ({"de":"Anmelden"}), which land unbilled. | |
| project_id | No | Project to file the document in (id from project_list). | |
| target_language | No | The master version’s target language: a language code, e.g. "de" or "zh". | |
| target_languages | No | Languages to produce, one version each: language codes, e.g. ["de", "fr"]. | |
| document_category | No | Category that tunes the prompts: general_document, legal, marketing or technical. | |
| use_target_locales | No | With no languages passed, use the corpus header’s target_locales. |