mirror of
https://wget.la/https://github.com/leookun/cursor-byok
synced 2026-08-17 19:47:10 +08:00
- 修复内存泄漏问题,该可能导致内存异常占用 - 支持俄语增加翻译范围 - 修复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标准接口拉取。
2.5 KiB
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-CNas 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.jsreplace 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 inLOCALE_OPTIONSare an intentional exception.
Generated Catalogs
- Treat
frontend/src/i18n/generated/catalog.jsonand the source-locale entries as scanner output. Do not manually edit catalog references or message IDs. - Run
npm run buildfromfrontend/after changing UI text. The build must run with--scanand 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_LOCALESinfrontend/plugins/static-i18n-plugin.js.SUPPORTED_LOCALESandLOCALE_OPTIONSinfrontend/src/i18n/config.js.- The locale JSON import,
localeMessages, and primary-language mapping infrontend/src/i18n/runtime.js. frontend/src/i18n/locales/<locale>.jsonwith the complete catalog key set.- Native tray labels in
internal/app/runner.go.
Verification
After the scan build:
- Confirm
npm run buildsucceeds. - Confirm every locale JSON has the same keys as
catalog.json. - Confirm non-source locale files contain no empty values.
- Confirm translated placeholders match the source entry placeholders.
- Run the build twice when scanner behavior changed and confirm generated files are stable.