Files
cursor-byok/.agents/skills/i18n-requirements/SKILL.md
T
leookun 0f6b0f9484 release: 0.0.41
- 修复内存泄漏问题,该可能导致内存异常占用
- 支持俄语增加翻译范围
- 修复qwen-3.8-max中断问题(mimo也应该属于同一类问题)
- 修复claude模型可能无法识别图片问题 @GGHansome
- 支持自定义Openai端点 @Sxuan-Coder
- WebSearch 接入百度搜索,DuckDuckGo 作为兜底 @杨超
- 修复一些兼容性问题 @kael-odin
- 修复window上一些表现问题 @philau2512

🔔 如何让AI自动拉模型配置? (以下为提示词,把地址和密钥换为你的)
我的模型配置在 ~/.cursor-local-assistant-v2/config.yaml,我的API地址是:https://xxx 密钥是xxx,帮我拉所有模型配置进去,不要影响已有模型,根据models标准接口拉取。
2026-07-27 00:55:02 +08:00

2.5 KiB

name, description
name description
i18n-requirements Use when adding or changing frontend UI text, locale support, translation JSON, the static i18n scanner, language selection, or native tray labels in this repository; keeps source messages, generated catalogs, translations, and runtime locale registration consistent.

I18n Requirements

Source Messages

  • Treat zh-CN as the only source locale.
  • Write user-visible frontend text as Chinese source literals in scanned files under frontend/src/.
  • Do not branch on locale or hard-code English, Japanese, Russian, or other translated UI text in components or state modules.
  • Let frontend/plugins/static-i18n-plugin.js replace source literals with runtime helpers. Do not hand-write generated message IDs in application code.
  • Keep internal matching tokens out of the catalog. Use a regex for Chinese protocol/error matching instead of a user-visible string literal when the text is not intended for display.
  • Do not place ordinary user-visible source messages under frontend/src/i18n/; the scanner excludes that directory. Native language names in LOCALE_OPTIONS are an intentional exception.

Generated Catalogs

  • Treat frontend/src/i18n/generated/catalog.json and the source-locale entries as scanner output. Do not manually edit catalog references or message IDs.
  • Run npm run build from frontend/ after changing UI text. The build must run with --scan and update every locale file.
  • Preserve every placeholder exactly across locales, including {0}, {1}, newlines, and formula fragments such as ${1}.
  • Provide a non-empty translation for every catalog key in every non-source locale. Do not rely on the Chinese fallback for completed locale support.

Adding A Locale

Update all of these integration points together:

  • SUPPORTED_LOCALES in frontend/plugins/static-i18n-plugin.js.
  • SUPPORTED_LOCALES and LOCALE_OPTIONS in frontend/src/i18n/config.js.
  • The locale JSON import, localeMessages, and primary-language mapping in frontend/src/i18n/runtime.js.
  • frontend/src/i18n/locales/<locale>.json with the complete catalog key set.
  • Native tray labels in internal/app/runner.go.

Verification

After the scan build:

  1. Confirm npm run build succeeds.
  2. Confirm every locale JSON has the same keys as catalog.json.
  3. Confirm non-source locale files contain no empty values.
  4. Confirm translated placeholders match the source entry placeholders.
  5. Run the build twice when scanner behavior changed and confirm generated files are stable.