---
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-ui-text/claude
---
# How to Translate UI Text 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 these UI strings to Korean using the translate tool"
3. Claude translates each string with awareness of UI context (buttons, labels, errors)
4. Ask: "Flag any translations that are significantly longer than the English original"
5. Claude outputs a complete locale file ready for integration

## Example Prompt

```
Translate our app's en.json locale file to Korean, Japanese, and Chinese. Keep all {{variable}} placeholders intact. Flag strings that expand more than 40% in length.
```

## Tips

- Provide UI context (button, tooltip, error message) for each string when possible
- Ask Claude to check for text expansion issues that might break layouts
- Use list_languages to verify target language support before starting
