{
  "markdown": "\n# @rog0x/mcp-i18n-tools\n\nInternationalization and localization tools for AI agents, exposed as an MCP (Model Context Protocol) server.\n\n## Tools\n\n### detect_locale\n\nDetect 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.\n\n**Supported languages:** English, Spanish, French, German, Portuguese, Italian, Russian, Japanese, Korean, Chinese, Arabic, Hindi, Thai, Greek, Hebrew.\n\n### extract_i18n_keys\n\nExtract hardcoded user-facing strings from source code that should be internationalized. Finds strings in:\n\n- JSX/TSX attributes (`title`, `placeholder`, `label`, `alt`, `aria-label`, etc.)\n- HTML template text and attributes\n- `console.log` / `console.warn` / `console.error` calls\n- `throw new Error(...)` messages\n- `alert()` / `confirm()` / `prompt()` dialogs\n- Variable assignments with i18n-relevant names (`message`, `label`, `title`, etc.)\n\nReturns each string with its line/column, surrounding context, pattern type, and a suggested i18n key.\n\n### analyze_translations\n\nAnalyze translation JSON files for consistency across locales. Detects:\n\n- **Missing keys** — present in reference locale but absent in others\n- **Extra keys** — present in a locale but not in the reference\n- **Structure mismatches** — a key is a string in one locale but an object in another\n- **Interpolation mismatches** — `{variable}` placeholders differ between locales\n- **Empty values** — keys with blank translations\n- **Unused keys** — keys not referenced in source code (requires a list of used keys)\n\n### plural_rules\n\nGenerate plural form categories for a given locale following CLDR rules. Shows which plural categories the language uses and classifies any test numbers you provide.\n\n| Language   | Categories                          |\n| ---------- | ----------------------------------- |\n| English    | one, other                          |\n| French     | one, other                          |\n| Russian    | one, few, many, other               |\n| Arabic     | zero, one, two, few, many, other    |\n| Polish     | one, few, many, other               |\n| Japanese   | other                               |\n| Chinese    | other                               |\n\n### format_locale\n\nFormat numbers, currencies, dates, and relative times for any locale using the `Intl` APIs. Supports:\n\n- **Numbers** — decimal, percent, unit; compact/scientific/engineering notation\n- **Currency** — symbol, narrowSymbol, code, and name displays\n- **Dates** — short, medium, long, full styles with date parts breakdown\n- **Relative time** — long, short, narrow styles with auto-numeric formatting\n\n## Setup\n\n```bash\nnpm install\nnpm run build\n```\n\n## MCP Configuration\n\n```json\n{\n  \"mcpServers\": {\n    \"i18n-tools\": {\n      \"command\": \"node\",\n      \"args\": [\"D:/products/mcp-servers/mcp-i18n-tools/dist/index.js\"]\n    }\n  }\n}\n```\n\n## License\n\nMIT\n",
  "bytes": 2952,
  "sha": "c486a6b8f10828ff259608cd84f4c0da3482ac9b4491650c1218ff73b6802c34",
  "repo_slug": "rog0x/mcp-i18n-tools",
  "fonte": "repo",
  "truncated": false,
  "api": "https://agentalog.com/api/listings/mcp_io_github_rog0x_i18n_1580cc4f/readme"
}