i18n

i18n is a cursor rule for Cursor from wangqiqi/cursor-ai-rules. It costs 3,153 tokens per session, scanned A, original, MIT.

A set of internationalization rules that adapts conversations and code comments to a user's language preference. Internationalization means preparing software to work across languages and regions.

In plain words
What is it for?
Use it to support multilingual conversations, switch languages during a session, and adjust user-facing explanations and code comments for different regions.
Why use it?
It helps avoid manually choosing the communication language for each user. The rules use conversation signals, location, and time zone to guide language selection.

Cursor rule for Cursor

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add rules/wangqiqi/cursor-ai-rules/i18n
Clone the repo
git clone --depth 1 https://github.com/wangqiqi/cursor-ai-rules

Made for: Cursor.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for i18n

README.md
[![agentmods](https://agentmods.dev/badge/rules/wangqiqi/cursor-ai-rules/i18n.svg)](https://agentmods.dev/rules/wangqiqi/cursor-ai-rules/i18n)
Your own site
<a href="https://agentmods.dev/rules/wangqiqi/cursor-ai-rules/i18n"><img src="https://agentmods.dev/badge/rules/wangqiqi/cursor-ai-rules/i18n.svg" alt="Measured on agentmods" height="20"></a>
Per session 3,153 This file is loaded in full into every session.
When invoked 3,153 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.03153 $0.03153
Opus 5 $0.01577 $0.01577
Sonnet 5 $0.00631 $0.00631
Haiku 4.5 $0.00315 $0.00315

Measured 4d ago against content hash c5e471968b97, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

i18n scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.cursor/rules/system/i18n.mdc · 378 lines

How it starts

The opening of the file, as written. The whole thing — 378 lines — stays where its author put it; the contents beside it link to each section on GitHub.

🌍 国际化支持系统 (Internationalization Support System)

版本: v4.3.0 | 最后更新: {{GENERATION_TIME}} | 作者: wangqiqi (https://github.com/wangqiqi)

🎯 核心理念 (Core Philosophy)

国际化支持系统专注于外部交互的语言适配,保持内部规则体系的稳定性:

  • 内部规则固定:所有.cursor规则文件保持原样,无需翻译
  • 外部交互适配:根据用户特征自动切换沟通语言和代码注释语言
  • 智能检测:通过多维度信号自动识别用户语言偏好
  • 渐进式适配:从对话语境到系统级别的全方位语言支持
  • 文化适应性:根据地区文化习惯调整交互方式 ⭐ 新增
  • 多语言混合支持:在单一会话中支持多语言切换 ⭐ 新增

🔍 自动语言检测机制 (Automatic Language Detection)

多维度检测信号 (Multi-dimensional Detection Signals)

1. 对话语境检测 (Conversation Context Detection)
{
  "dialogue_patterns": {
    "chinese_indicators": [
      "你好", "请", "谢谢", "这个", "那个", "吗", "呢", "吧", "的", "了"
    ],
    "english_indicators": [
      "hello", "please", "thank you", "this", "that", "?", "can you", "would you"
    ],
    "confidence_threshold": 0.7
  }
}
2. IP地址地理位置检测 (IP Geolocation Detection)
{
  "ip_based_detection": {
    "china_regions": ["CN", "HK", "TW", "MO"],
    "english_speaking_regions": ["US", "GB", "CA", "AU", "NZ"],
    "confidence_weight": 0.4
  }
}
3. 时区语言关联 (Timezone-Language Correlation)
{
  "timezone_correlation": {
    "asia_chinese": ["Asia/Shanghai", "Asia/Hong_Kong", "Asia/Taipei"],
    "europe_english": ["Europe/London", "Europe/Dublin"],
    "america_english": ["America/New_York", "America/Los_Angeles"],
    "confidence_weight": 0.3
  }
}
4. 文化适应性检测 (Cultural Adaptation Detection) ⭐ 新增
{
  "cultural_adaptation": {
    "communication_styles": {
      "high_context_cultures": ["CN", "JP", "KR"],  // 重视上下文的中国、日本、韩国
      "low_context_cultures": ["US", "DE", "NL"],   // 重视明确表达的美国、德国、荷兰
      "polychronic_cultures": ["IN", "BR", "MX"],   // 多任务并行文化的印度、巴西、墨西哥
      "monochronic_cultures": ["US", "DE", "JP"]    // 单任务专注文化的美国、德国、日本
    },
    "decision_making": {
      "consensus_based": ["JP", "SE", "NL"],        // 共识决策的日本、瑞典、荷兰
      "hierarchical": ["CN", "KR", "IN"],           // 等级决策的中国、韩国、印度
      "individual": ["US", "GB", "AU"]              // 个人决策的美国、英国、澳大利亚
    }
  }
}

Read the full file on GitHub · 378 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 378 lines · 3,153 tokens per session scan A c5e471968b97

Subscribe to this mod's changes

i18n is a cursor rule published in the GitHub repository wangqiqi/cursor-ai-rules (16 stars, last pushed 3mo ago), licensed MIT. It adds 3,153 tokens to every session, about $0.0158 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.