Call the Weglot Translate API directly to translate server-rendered or dynamically generated text outside the JS snippet/CMS plugin flow

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

Steps

  1. Register for a Weglot account and retrieve the project API key from the dashboard
  2. Optionally call GET /public/languages/is-supported with languageFrom/languageTo to confirm the pair is supported before sending content
  3. POST to /translate?api_key=... with l_from, l_to, request_url, and a words array of {w: text, t: WordType} objects
  4. Read the to_words array in the response, which maps 1:1 by position to the words sent in the request
  5. Cache translated strings application-side, since this endpoint is metered per call and not intended as a free-form ad hoc MT API

Known gotchas

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