On this page
Working with an agent
When your coding agent writes a feature, the MCP server is how it hands the new texts to Locize. Locize translates them, and people review them before they reach production.
The recommended flow
- The agent reports the new source texts. It reads
get_glossaryandget_styleguidefirst, so the new texts use the project's terms. After addingt()calls, it sends the new keys in the source language withreport_missing_keys, one context sentence per key. This takes the place ofsaveMissingand of a sync; where the repository already syncs withnpx i18next-cli locize-sync, that command does the same step.report_missing_keysnever changes an existing key: a changed source text goes withupdate_translationson the source language, andautoTranslate: truetranslates it again. - Locize translates them. With automatic translation on, the new keys come back in every target language; an AI provider gets the key's context, the project's glossary and its style guide. With quality estimation on, an AI translation also gets a confidence score, which the agent reads with
get_translations(raw), together with the checks (issues). - People review in Locize. By default, machine and AI output is marked as needing review: the text is live (a version with Auto publish serves it at once) and listed until a reviewer confirms it. To hold texts back until a reviewer accepts them, switch on the review workflow for a language and pass
autoTranslateReview: trueonreport_missing_keys, or let the Review AI workflow send only the uncertain ones.list_review_proposals(proposals) andget_translationswithneedsReviewOnly(marked values) show what is still open. - The reviewed texts go to production. The agent works in one version, usually
latest; the version your production app loads publishes by hand. Once the review is done,copy_version(for examplelatesttoproduction) andpublish_versionput it on the CDN. A repository that keeps translation files downloads them back (npx i18next-cli locize-download) instead of writing them.
A coding agent localizes a feature shows one real run of this flow: the report, the scores, what the agent fixed and what the review still changed.
When the agent translates itself
An agent can also write the target languages itself, with update_translations. That skips Locize's translation: the glossary and the style guide count only if the agent reads them itself (get_glossary, get_styleguide, and search_translation_memory for earlier translations). It also skips the review, unless the agent states quality: "AI" (then the project's rule marks the text as needing review) or needsReview: true; without either, the text counts as confirmed.
Conventions for your agent
Ready-made conventions make the agent use these tools by default: it fetches the glossary and the style guide before translating, reuses the translation memory, and checks pull requests for forbidden terms. Copy CONVENTIONS.md from locize/locize-agents into your repository's AGENTS.md or CLAUDE.md. Clients that load skills over MCP get three skills from the server, with nothing to install: these conventions as locize-translation-conventions, the rules of Best practices as locize-best-practices, and locize-sync-translation-files, which connects the translation files your app already has (Getting started).
Example prompts
- "Find all missing German translations in the checkout namespace."
- "Report these new keys from my code to Locize."
- "What's the translation coverage of the production version?"
- "Check this pull request's new English texts for forbidden glossary terms."
- "Create a workspace for the checkout feature, translate it, then merge it back."
- "Our new customer Acme starts on Monday: create a tenant for them and change its welcome title to 'Welcome to Acme'."
- "Show me the screenshot where the key
checkout.titleappears." - "Publish the latest version of my project."