Translate (Google-compatible)
lingvanex.translate_v2
ActionBusiness appsconnection required
Calls the Lingvanex API with the connection's credentials.
Translate text through Lingvanex's Google Translation v2 API.
Connection
- Required
- Yes — the node will not save without one
- Auth type
- API key
- Providers
- Lingvanex
- Secret shape
- the API key, or {"api_key": "…"}
- Config it needs
- base_url, compat_base_url
- Resolved by
- config.connection_id, else node.connection_id
Configuration
5 fields, 1 required. A dotted path is a nested object and name[] an array of objects — the editor renders the same tree.
| Field | Type | Required | Default | Constraints | Example |
|---|---|---|---|---|---|
target The language to translate into, as a bare ISO-639-1 code such as de, es or ja. | string | Yes | — | — | de |
text The text to send, as a single string. Use 'texts' instead to send several strings in one call. | string | No | — | — | Hello, world! |
texts Several strings to send in one call, as a JSON array. When it is set it replaces 'text' and the response carries one entry per string. | array | No | — | 1–128 characters; array of string | ["Hello, world!","Good morning"] |
source The language the text is written in, as a bare ISO-639-1 code; leave it blank and Lingvanex detects it and reports what it found. | string | No | — | — | en |
format Whether the input is HTML whose markup must survive the translation, or plain text. | string | No | — | one of "html", "text" | — |
- At least one of text, texts must be set.
Example configuration
Every value below is the contract’s own example or default — nothing invented.
{
"source": "en",
"target": "de",
"text": "Hello, world!",
"texts": [
"Hello, world!",
"Good morning"
]
}Output
One shape.
result
| Field | Type | Example |
|---|---|---|
target The language the text was translated into. | string | — |
translation The first translated string. | string | — |
translations One entry per string that was sent. | array | — |
translations[].translatedText The text translated into the target language. | string | — |
translations[].detectedSourceLanguage The language Lingvanex detected, present only when no source was sent. | string | — |
count How many translations came back. | number | — |
{
"count": 0,
"target": "",
"translation": "",
"translations": [
{
"detectedSourceLanguage": "",
"translatedText": ""
}
]
}Notes
- Lingvanex accepts at most 128 strings in one translate_v2 call.
Related Lingvanex nodes
See Translate (Google-compatible) run in a workflow.
In a technical demo we add the Lingvanex connection, drop the node on the canvas and let Workflow Health pre-flight it before the first real run.