التثبيت
أضف هذا إلى إعدادات MCP في عميلك (Claude Desktop: claude_desktop_config.json، وCursor: .cursor/mcp.json، ويستخدم VS Code وغيره الصيغة نفسها «mcpServers»).
@rog0x/mcp-i18n-toolsclaude mcp add i18n -- npx -y @rog0x/mcp-i18n-tools@1.0.2
{
"mcpServers": {
"i18n": {
"command": "npx",
"args": [
"-y",
"@rog0x/mcp-i18n-tools@1.0.2"
]
}
}
}
التوثيق
مأخوذ من ملف README للمشروع على GitHub ويُحدَّث أسبوعيًا. تفتح الروابط على GitHub.
@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.errorcallsthrow new Error(...)messagesalert()/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.
| Language | Categories |
|---|---|
| English | one, other |
| French | one, other |
| Russian | one, few, many, other |
| Arabic | zero, one, two, few, many, other |
| Polish | one, few, many, other |
| Japanese | other |
| Chinese | other |
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
الأسئلة الشائعة
ما هو io.github.rog0x/i18n؟
Locale detect, translations, plurals for AI agents
كيف أثبّت io.github.rog0x/i18n؟
يعمل على جهازك. في Claude Code: claude mcp add i18n -- npx -y @rog0x/mcp-i18n-tools@1.0.2. وفي العملاء الآخرين، الصق إعداد JSON من هذه الصفحة في إعدادات MCP الخاصة بهم.
هل يحتاج io.github.rog0x/i18n إلى مفتاح API؟
لا يذكر إدراجه في السجل أي مفتاح أو سر إلزامي. قد تتطلب بعض الميزات حسابًا لدى الخدمة التي يتصل بها.
هل io.github.rog0x/i18n مفتوح المصدر؟
شيفرته علنية على GitHub، لكن المستودع لا يعلن ترخيصًا قياسيًا.
من يصون io.github.rog0x/i18n؟
ينشره rog0x. يدرجه AI.tn لكنه لا يصونه ولا يوصي به.
من سجل MCP الرسمي. الإدراج ليس توصية: راجع شيفرة الخادم وصلاحياته قبل منحه الوصول إلى بياناتك.