How to Translate API Docs with Claude
Translate API documentation with Claude and ToolRouter. Reach international developers in their language.
ToolTranslateClaude integrates translation into a terminal workflow where you can handle localization alongside development tasks. Translate strings iteratively, discuss the nuances of specific phrases that resist direct translation, and batch-process entire locale files without leaving your session. The conversational depth is particularly useful when working with marketing copy or UI text where cultural context matters -- Claude can explain why a specific phrasing works better in the target language and suggest alternatives when a direct translation would lose impact.
Connect ToolRouter to Claude
1Go to Settings → Connectors → Add custom connector
2Enter the details below and click Add
Name
ToolRouterURL
https://api.toolrouter.com/mcp3Done — works on Claude chat, desktop, and mobile
Steps
Once connected (see setup above), use the Translate tool:
- Ask Claude: "Translate this API reference page to Japanese using the translate tool"
- Claude translates descriptions and guides while preserving code blocks and parameter names
- Ask: "Verify that no code examples or endpoint paths were modified"
- Claude outputs the translated docs ready for publishing
Example Prompt
Try this with Claude using the Translate tool
Translate our REST API getting-started guide into Japanese and Chinese. Keep all code examples, endpoint URLs, and parameter names in English.
Tips
- Explicitly tell Claude which elements should remain untranslated (URLs, code, variable names)
- Ask Claude to translate error messages separately for better i18n integration
- Use for README files in open-source repos to attract international contributors