---
title: ToolRouter — Agent Use Case Guide
description: Step-by-step guide for completing a task with a specific AI agent using ToolRouter.
url: https://toolrouter.com/tools/translate/use-cases/translate-api-docs/claude
---
# How to Translate API Docs with Claude

Claude 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.

## Setup

claude mcp add toolrouter -- npx -y toolrouter-mcp

## Steps

1. Connect ToolRouter: claude mcp add toolrouter -- npx -y toolrouter-mcp
2. Ask Claude: "Translate this API reference page to Japanese using the translate tool"
3. Claude translates descriptions and guides while preserving code blocks and parameter names
4. Ask: "Verify that no code examples or endpoint paths were modified"
5. Claude outputs the translated docs ready for publishing

## Example Prompt

```
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
