Guide

How to localize an app with Claude Code

Claude Code can find the hardcoded text in your app, turn it into translation keys and wire up the lookups. Glotra translates the keys, and your team approves them before they ship. This guide walks through the whole loop.

What you end up with

  • Your strings live in one Glotra project, keyed and tagged by platform
  • Claude adds new keys in your base language as it writes features
  • Glotra machine-translates them into your other languages
  • A person on your team approves each translation before release
  • Your app or CI pulls the current strings from Glotra

Before you start

You need a Glotra project with your base language and target languages set. The 14-day trial covers one project and 100 keys, with no card required.

Your app should have an i18n setup, or Claude can add one. Common choices are next-intl, i18next or react-intl on the web, NSLocalizedString with Localizable.strings on iOS, and string resources on Android.

1. Bring in the strings you already have

If your app already has translation files, drop them into the project first: web JSON, iOS .strings and .stringsdict, or Android strings.xml. Glotra reads the language from each filename. Claude can then find and reuse these keys instead of creating duplicates.

2. Connect Claude Code

bash
claude mcp add --transport http glotra https://api.glotra.app/mcp

Start Claude Code, run /mcp, choose glotra, then Authenticate. Sign in to Glotra in the browser and approve the connection. The Claude Code setup guide covers scopes and troubleshooting.

3. Tell Claude how your team localizes

Claude Code reads CLAUDE.md at the start of each session. Add this so every new string goes through Glotra without being asked:

CLAUDE.md
## Localization

User-facing text goes in Glotra, not in hardcoded strings.
- Before adding text, call search_keys and reuse a matching key.
- Add new text with add_key, in the project's base language only.
- After adding keys, tell me how many translations need review.

4. Move the hardcoded text

Work one area at a time, so each change is easy to review:

Find the hardcoded user-facing strings in src/checkout, add them to
my Glotra project as keys, and replace them with lookups using the
i18n setup this codebase already has. Then tell me which translations
need review.

Claude writes the base language and Glotra fills in the rest. If a language comes back as pending, machine translation doesn't cover it yet; add that text in the dashboard.

5. Review the translations

Open the project in Glotra and filter to Needs review. Approve values one at a time or for the whole project, or edit a value, which also clears its flag. Each approval records who made it. No MCP tool can approve, so this step always belongs to a person.

Flagged text still ships, so a review backlog never breaks a build. Clear the list before a release if you want every string checked.

6. Ship the strings

Pick the delivery that fits your app:

  • Download a zip laid out per platform and commit it
  • Turn on GitHub sync (Growth and Advanced) to get translation pull requests
  • Fetch the export endpoint with a read-only project API key, at build time or over the air

The iOS, Android and web pages show the file layout and code for each.

Keep it going

From here, Claude adds keys as part of each feature, and your reviewers clear Needs review before each release. Using Cursor or VS Code instead? The same loop works with the Cursor and VS Code setups.

Other platforms: iOS, Android, Web and React. Set up your agent with Claude Code, Cursor or VS Code, or see pricing.