Use the DeepL API context parameter to disambiguate short, low-context strings like UI labels without translating the context text itself

domain: developers.deepl.com · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Identify short/ambiguous source strings (product names, button labels, headlines) that translate poorly without surrounding context
  2. Send the surrounding sentence(s) or a short description in the context field of the /v2/translate request, in the same language as the source text
  3. Send the string(s) to actually translate in the standard text parameter(s); one context value applies to every text item in that request
  4. Compare output with and without context during QA to confirm it resolves the intended ambiguity (e.g., grammatical gender, word sense)
  5. Keep context content minimal — a few complete sentences is typically enough; avoid pasting entire pages

Known gotchas

Related routes

Build an automated subtitle translation workflow using DeepL API and AWS Translate
developers.deepl.com · 6 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans