i18n-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| DEEPL_API_KEY | No | Optional API key for the DeepL translation provider. If unset, the server falls back to offline dictionaries or other configured providers. | |
| GEMINI_API_KEY | No | Optional API key for the Gemini translation provider. If unset, the server falls back to offline dictionaries or other configured providers. | |
| OPENAI_API_KEY | No | Optional API key for the OpenAI translation provider. If unset, the server falls back to offline dictionaries or other configured providers. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| analyze_projectA | Analyze a React Native project (as well as React, Next.js, Flutter, and Angular) without modifying anything. Returns framework, language, package manager, detected i18n library, configuration, locale directory, source and target locales, existing namespaces, project structure, and configuration warnings. |
| scan_hardcoded_textsA | Scan a React Native project (as well as React, Next.js, and Flutter) or requested scope for hardcoded strings using AST analysis. Returns detected strings with source locations, AST context, classification, confidence score, semantic role, suggested key and namespace, without modifying any files. |
| generate_i18n_planA | Analyze detected hardcoded user-facing strings and produce a complete, deterministic, reviewable i18n migration plan (translations, source code changes, and required hooks/imports) with zero filesystem mutations. |
| apply_i18n_planA | Safely and atomically apply an approved i18n migration plan to the project (React Native, React, Next.js, Flutter). Performs source replacements, hook/import insertions, and locale JSON updates with stale plan protection and optional dry-run. |
| translate_i18nB | Translate missing keys across target locale files using built-in dictionaries, optional cloud providers (DeepL, OpenAI, Gemini), or agent translations without overwriting existing translations. |
| validate_i18nB | Validate i18n implementation for missing translations, interpolation variable mismatches, orphan keys, unused dead keys, and malformed JSON. |
| internationalizeA | End-to-end orchestration tool for i18n migration across React Native, React (web), Next.js, and Flutter projects. Runs analyze -> scan -> plan -> apply -> translate -> validate with conservative defaults and complete structured reporting. |
| generate_i18n_typesB | Generates TypeScript definitions (resources.d.ts) from the project's source locale catalogs, providing full autocomplete and compile-time key validation for i18n translation functions. |
| generate_pseudolocaleA | Generates pseudo-localized catalogs (e.g. qps-ploc, en-XA) from the source locale for stress-testing UI layouts, text expansion (+35%), font glyph support, and spotting unextracted strings. |
| format_catalogsA | Cleans, sorts, and formats translation catalogs (JSON and ARB) alphabetically or aligned with source locale key ordering, eliminating merge conflicts and inconsistent formatting. |
| audit_rtlA | Audits codebase for RTL (Right-to-Left) and bidirectional layout bugs, detecting physical spacing (marginLeft/Right), alignment (textAlign: left/right), directional icons, and missing RTL root configurations, with automated logical property migration. |
| audit_pluralsA | Audits translation catalogs (JSON and Flutter ARB) against official Unicode CLDR plural and gender rules, detecting missing mandatory categories (e.g., Arabic zero/two/few/many, Russian few/many), missing 'other' fallback branches, and variable mismatches, with automated scaffold fixing. |
| audit_formattingB | Audits project source code (React, React Native, Vue, Flutter) for hardcoded currency concatenations, unlocalized numbers (.toFixed()), raw percentage signs, and unparameterized date/time calls (.toLocaleDateString()), with automated logical migration using Intl or package:intl. |
| export_translationsB | Exports translation catalogs (JSON or Flutter ARB) into standard XLIFF (1.2 / 2.0) or TMX 1.4 exchange files for professional translation agencies and Translation Management Systems (Crowdin, Lokalise, Phrase, Smartling, Trados). |
| import_translationsB | Imports translated strings from standard XLIFF (1.2 / 2.0) or TMX 1.4 exchange files back into project translation catalogs (JSON or Flutter ARB), with unified diff support and collision safety. |
| deduplicate_i18nA | Detects exact duplicate translation keys, fuzzy near-duplicates, and cross-namespace redundancy across project catalogs using normalized Levenshtein similarity, with optional automated key consolidation and source code call-site updates. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 16 tools
Most tools map to a clearly distinct stage of the i18n workflow (analyze, scan, plan, apply, translate, validate), and the `internationalize` orchestrator is explicitly framed as an end-to-end wrapper. Minor overlap exists between `validate_i18n`, `audit_plurals`, and `audit_formatting` (all report interpolation/variable mismatches), and between `scan_hardcoded_texts` and `audit_formatting` as source-code scanners, but descriptions clarify the boundaries.
Nearly all tools follow a verb_noun pattern (scan_hardcoded_texts, generate_pseudolocale, audit_rtl, export_translations, deduplicate_i18n). Deviations are minor: a few tools suffix the domain instead of prefixing it (translate_i18n, validate_i18n) and `internationalize` is a bare verb, but the convention remains predictable.
16 tools is at the upper end but each covers a distinct stage or audit type in a genuinely broad domain (React/RN/Next/Flutter i18n). Nothing appears redundant enough to be obviously removable, though it is a heavy surface for an agent to navigate.
The lifecycle is well covered: analysis, scanning, planning, application, translation, validation, type generation, formatting, RTL/plural/format audits, and XLIFF/TMX exchange plus deduplication. Minor gaps remain, such as direct key/namespace creation or per-key editing and rolling back an applied plan, which agents must work around via import or manual edits.