Tools / Translate
Translate icon

Translate

Accurate translation, 30+ languages

Professional translations across 30+ languages with formality control, context hints, and HTML/XML handling. Translate strings or batches, auto-detect source language, and preserve markup. For support tools, content pipelines, and multilingual apps.

3 skillsv0.02
Translate Text

Translate one or more texts into any target language. Supports auto-detection of source language, formality control (formal/informal), contextual hints for better accuracy, and HTML/XML tag handling. Pass an array for batch translation.

Returns: Translated text(s) with detected source language, target language used, and character count for billing
Parameters
text *Text to translate. A single string or an array of strings for batch translation.
target_lang *stringTarget language code (e.g. "DE", "FR", "ES", "JA", "ZH", "EN-US", "EN-GB", "PT-BR"). Use list_languages to see all supported codes.
source_langstringSource language code. If omitted, the language is auto-detected.
formalitystringFormality: "more" = formal, "less" = informal. "prefer_more"/"prefer_less" = best effort. Not all target languages supported.
contextstringContext that influences translation but is not translated. Disambiguates meaning (e.g. "banking context" when translating "bank").
tag_handlingstringSpecifies tag handling: "html" or "xml". Tags are preserved and content within them is translated appropriately.
split_sentencesstringControls sentence splitting. "0" = no splitting, "1" = split on punctuation + newlines (default), "nonewlines" = split on punctuation only.
preserve_formattingstringWhether to preserve formatting. "1" = preserve original formatting (default).
model_typestringModel: "quality_optimized" = best quality, "latency_optimized" = fastest, "prefer_quality_optimized" = default.
Example
Translate English to German
curl -H "Authorization: Bearer $TOOLROUTER_API_KEY" \
  -d '{
  "tool": "translate",
  "skill": "translate_text",
  "input": {
    "text": "Hello, how are you?",
    "target_lang": "DE"
  }
}' \
  https://api.toolrouter.com/v1/tools/call
Detect Language

Detect the language of a given text. Returns the detected language code and a sample translation to English for verification.

Returns: Detected language code with a sample English translation for verification
Parameters
text *stringText whose language you want to detect
Example
Detect the language of a German sentence
curl -H "Authorization: Bearer $TOOLROUTER_API_KEY" \
  -d '{
  "tool": "translate",
  "skill": "detect_language",
  "input": {
    "text": "Wie geht es Ihnen heute?"
  }
}' \
  https://api.toolrouter.com/v1/tools/call
List Languages

List all supported languages for translation. Can show source languages (translate from) or target languages (translate to) with formality support info.

Returns: List of supported languages with codes, names, and formality support indicators
Parameters
typestring"source" = languages you can translate from, "target" = languages you can translate to (default). Target languages include formality support info.
Example
List all target languages
curl -H "Authorization: Bearer $TOOLROUTER_API_KEY" \
  -d '{
  "tool": "translate",
  "skill": "list_languages",
  "input": {
    "type": "target"
  }
}' \
  https://api.toolrouter.com/v1/tools/call
Loading reviews...
Loading activity...
v0.022026-03-22
  • Added subtitle, expanded description, and agent instructions
v0.012026-03-20
  • Initial release

Quick Start

MCP (Claude Code)
claude mcp add --transport stdio \
  --env TOOLROUTER_API_KEY=YOUR_API_KEY \
  toolrouter -- npx -y toolrouter-mcp
REST API
curl -H "Authorization: Bearer $TOOLROUTER_API_KEY" \
  -d '{"tool":"translate","skill":"translate_text","input":{}}' \
  https://api.toolrouter.com/v1/tools/call

Use Cases

Open Translate Marketing Content

Translate Marketing Content

Translate marketing copy, ad text, and campaign content into multiple languages while preserving brand voice.

Translate icon
Translate
4 agent guides
Open Localize Product Descriptions

Localize Product Descriptions

Translate product titles, descriptions, and specs for international e-commerce stores and marketplaces.

Translate icon
Translate
4 agent guides
Open Search Papers by Topic

Search Papers by Topic

Find relevant academic papers on any research topic across millions of scholarly publications.

Academic Research icon
Academic Research
4 agent guides
Open Geocode Addresses to Coordinates

Geocode Addresses to Coordinates

Convert street addresses into precise latitude and longitude coordinates for mapping and spatial analysis.

Address Geocoding icon
Address Geocoding
4 agent guides
View all use cases for Translate

Workflows

Open Email Campaign Optimizer

Email Campaign Optimizer

Build targeted email campaigns with qualified leads, persona-driven messaging, multi-language support, and custom visual assets.

Lead Finder icon
Lead Finder
Persona Generator icon
Persona Generator
Translate icon
Translate
Generate Image icon
Generate Image
4 steps4 tools
Open International Market Research

International Market Research

Research international markets with deep analysis, content localization testing, and local competitive landscape assessment.

Deep Research icon
Deep Research
Translate icon
Translate
Web Search icon
Web Search
3 steps3 tools
Open Multi-Language Content Production

Multi-Language Content Production

Create localized marketing content by researching local trends, translating content, studying local social media, and generating culturally adapted visuals.

Web Search icon
Web Search
Translate icon
Translate
Social Media Content icon
Social Media Content
Generate Image icon
Generate Image
4 steps4 tools
Open Multi-Language Dubbing

Multi-Language Dubbing

Automatically dub videos into multiple languages with transcript extraction, translation, and AI voice generation.

Video Transcripts icon
Video Transcripts
Audio Dubber icon
Audio Dubber
Translate icon
Translate
Voice Generator icon
Voice Generator
4 steps4 tools
View all 10workflows →

Frequently Asked Questions

Can I translate a batch of strings at once?

Yes. `translate_text` accepts a single string or an array of strings, so you can translate UI copy, labels, or content batches in one request.

How do I keep HTML or XML markup intact?

Set `tag_handling` to `html` or `xml`. The tags stay in place while the text inside them is translated.

Can I control the tone of the translation?

Yes. Use the formality setting to bias the output toward formal or informal language, and add context when a word could mean more than one thing.

How do I know which language codes are supported?

Use `list_languages` to see the supported source and target codes, then `detect_language` if you need to identify the input language before translating.