Translate TOML configuration content while preserving document structure, keys, tables, and non-string data types. Only string values are translated, keeping your configuration layout and numeric/boolean values intact. Ideal for localizing Rust Cargo files, Python pyproject.toml, and other TOML-based configurations.
HTTP Request
| |
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
source | string | No | "auto" | Source language code. Use auto for automatic detection |
target | string | Yes | — | Target language code |
Request Body
Send the TOML content as the raw request body with Content-Type: text/plain.
| |
Response
| |
Response Fields
| Field | Type | Description |
|---|---|---|
status | boolean | Whether the request was successful |
data.translated_toml | string | The translated TOML content with structure preserved |
data.source_language | string | Detected or specified source language code |
data.source_language_name | string | Human-readable name of the source language |
Code Examples
| |
| |
| |
Related Endpoints
- Translate ENV — Translate ENV file values
- Translate YAML — Translate YAML content
- Translate JSON — Translate JSON string values