enable_language
mutationSince v1.0Add a language to the model so it can be translated into. The language then appears in the model's language settings and becomes a valid target for translate_elements.
Do this first — translating into a language the model doesn't yet offer is refused rather than silently accepted, so that translations can't pile up invisibly against a language nobody can see. Enabling a language does not change the model's default language and does not translate anything by itself.
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
language | String | ✓ | Code of the language to enable (for example 'de' or 'fr'). |
Example Request
{"language": "fr"}Example Response
{"success": true, "operation_count": 1, "versions": [90]}This content was written collaboratively with AI.