io.github.rog0x/i18n

Official registry AI and agents

Locale detect, translations, plurals for AI agents

Install

Add this to your client's MCP configuration (Claude Desktop: claude_desktop_config.json; Cursor: .cursor/mcp.json; VS Code and others use the same "mcpServers" shape).

NPM package @rog0x/mcp-i18n-tools
Claude Code
claude mcp add i18n -- npx -y @rog0x/mcp-i18n-tools@1.0.2
JSON configuration (Claude Desktop, Cursor, VS Code)
{
    "mcpServers": {
        "i18n": {
            "command": "npx",
            "args": [
                "-y",
                "@rog0x/mcp-i18n-tools@1.0.2"
            ]
        }
    }
}

Documentation

From the project's README on GitHub, refreshed weekly. Links open on GitHub.

Contents
  1. @rog0x/mcp-i18n-tools
  2. Tools
  3. Setup
  4. MCP Configuration
  5. License

@rog0x/mcp-i18n-tools

Internationalization and localization tools for AI agents, exposed as an MCP (Model Context Protocol) server.

Tools

detect_locale

Detect the language and locale of a given text string. Returns the detected language code (BCP 47), language name, writing script, confidence score (0-1), and alternate language candidates.

Supported languages: English, Spanish, French, German, Portuguese, Italian, Russian, Japanese, Korean, Chinese, Arabic, Hindi, Thai, Greek, Hebrew.

extract_i18n_keys

Extract hardcoded user-facing strings from source code that should be internationalized. Finds strings in:

  • JSX/TSX attributes (title, placeholder, label, alt, aria-label, etc.)
  • HTML template text and attributes
  • console.log / console.warn / console.error calls
  • throw new Error(...) messages
  • alert() / confirm() / prompt() dialogs
  • Variable assignments with i18n-relevant names (message, label, title, etc.)

Returns each string with its line/column, surrounding context, pattern type, and a suggested i18n key.

analyze_translations

Analyze translation JSON files for consistency across locales. Detects:

  • Missing keys — present in reference locale but absent in others
  • Extra keys — present in a locale but not in the reference
  • Structure mismatches — a key is a string in one locale but an object in another
  • Interpolation mismatches — {variable} placeholders differ between locales
  • Empty values — keys with blank translations
  • Unused keys — keys not referenced in source code (requires a list of used keys)
plural_rules

Generate plural form categories for a given locale following CLDR rules. Shows which plural categories the language uses and classifies any test numbers you provide.

LanguageCategories
Englishone, other
Frenchone, other
Russianone, few, many, other
Arabiczero, one, two, few, many, other
Polishone, few, many, other
Japaneseother
Chineseother
format_locale

Format numbers, currencies, dates, and relative times for any locale using the Intl APIs. Supports:

  • Numbers — decimal, percent, unit; compact/scientific/engineering notation
  • Currency — symbol, narrowSymbol, code, and name displays
  • Dates — short, medium, long, full styles with date parts breakdown
  • Relative time — long, short, narrow styles with auto-numeric formatting

Setup

npm install
npm run build

MCP Configuration

{
  "mcpServers": {
    "i18n-tools": {
      "command": "node",
      "args": ["D:/products/mcp-servers/mcp-i18n-tools/dist/index.js"]
    }
  }
}

License

MIT

Frequently asked questions

What is io.github.rog0x/i18n?

Locale detect, translations, plurals for AI agents

How do I install io.github.rog0x/i18n?

It runs on your machine. In Claude Code: claude mcp add i18n -- npx -y @rog0x/mcp-i18n-tools@1.0.2. For other clients, paste the JSON configuration from this page into their MCP settings.

Does io.github.rog0x/i18n need an API key?

Its registry entry lists no required key or secret. Some features may still need an account with the service it connects to.

Is io.github.rog0x/i18n open source?

Its code is public on GitHub, but the repository does not declare a standard license.

Who maintains io.github.rog0x/i18n?

It is published by rog0x. AI.tn lists it but does not maintain or endorse it.

From the official MCP Registry. Listing is not an endorsement: review a server's code and permissions before giving it access to your data.