Repository navigation
fix(models): translate the sign-in and API key prompts - #1383
Merged
Merged
Conversation
Settings › Models is translated, but a few of its texts were still hard-coded English: the provider cards' model count, "Connect your … account.", the browser and device-code sign-in instructions, "Enter your … API key to enable N models.", the thinking level map's Default / Disabled / Custom buttons, "+ Add header" and the model name placeholder. They now go through models.* messages (and the existing i18n.default / disabled / custom) in en, zh-CN and zh-TW. The English text is unchanged, except that a provider with one model now reads "1 model" instead of "1 models". Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Models panel keeps Header in English (models.headers, models.headersHelp), so its add button does too. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Oct 29, 2026
Owner
|
Thanks. I checked it: English is unchanged apart from the I pushed one wording change. In Chinese this editor's field is labelled |
This was referenced Oct 29, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Settings › Models is translated almost everywhere, but with the UI set to 简体中文 or 繁體中文 a few texts stay English:
193 modelsConnect your GitHub Copilot account.Complete sign-in in the browser, then copy the redirect URL…,If the browser window did not open, click here to open the login page.,Enter value…Open the verification page and enter this code:Enter your Ant Ling API key to enable 3 models.+ Add headerDisplay nameplaceholder; the thinking level map'sDefault/Disabled/CustombuttonsThe surrounding labels (订阅, 未连接, 登录, 添加 Provider, 思考等级映射, …) are already translated.
Fix
The texts go through new
models.*messages inen,zh-CNandzh-TW, with{provider}and{count}as parameters. The thinking level buttons reuse the existingi18n.default,i18n.disabledandi18n.custommessages, which were already used elsewhere on this page.ThinkingLevelMapEditorandHeaderListEditornow calluseI18n()like the other components in the file.The English text is unchanged except for one grammar fix: a provider with a single model now reads
1 modelinstead of1 models(separate…Onemessages, likecodemode.callCountOne). The browser sign-in hint keeps its link in the middle of the sentence by splitting it into the text before the link, the link, and the closing punctuation (./。), the same label-then-link shape the MCP sign-in hint uses.Checks
npm test(2869 passed, 0 failed),node_modules/.bin/tsc --noEmit,npm run lint.193 个模型; GitHub Copilot shows连接你的 GitHub Copilot 账号。; Ant Ling shows输入 Ant Ling 的 API Key,即可启用 3 个模型。; a new custom provider shows+ 添加请求头, the model name placeholder显示名称, and the thinking level map's默认/已禁用/自定义buttons. Nothing was saved.🤖 Generated with Claude Code