The claim line was a window named after the plan and displaying "1 to claim · claim it in the ZCode app". magpie shows a window's display as it came — quotaCount (internal/gui/assets/app.js) returns w.display when the window has no limit — and translates only the name (t(w.name), on the card, the tips and the chart), so the line stayed English on a Chinese interface (yetone/magpie#1001). The plugin cannot know the interface's language (host.js and provider.Provider hand it no locale) and magpie's translation is keyed by the string, so the sentence has to be the name. The window is now named "Gift plans to claim in the ZCode app" and its display is "1 · ZCode Trust Build": the count and the plan's own name, which are data and stay as they came, and one name for any number, so no plural forms are needed. aside, the placement after every real window, and the failure handling (nothing to claim, a failed preview or an error card add no line) are unchanged. magpie adds the zh/ja/de entries for that name alongside this. usage.test.mjs: the fixtures carry the new name and display, and the names list of "a coding account's line goes after its coding and gift windows". Four of them fail on 0.1.12; bun test packages/zcode (73 pass) and bun scripts/check.mjs zcode pass.
17 lines
636 B
JSON
17 lines
636 B
JSON
{
|
|
"name": "@magpie-community/opencode-zcode-auth",
|
|
"version": "0.1.13",
|
|
"description": "OpenCode provider plugin: signs in to Z.ai's or BigModel's (智谱) GLM Coding Plan as ZCode does, including team seats and ZCode's Start Plan",
|
|
"type": "module",
|
|
"main": "./index.mjs",
|
|
"exports": "./index.mjs",
|
|
"files": ["index.mjs", "prompt.mjs", "README.md"],
|
|
"keywords": ["opencode", "opencode-plugin", "magpie", "zcode", "z.ai", "bigmodel", "glm", "coding-plan"],
|
|
"license": "MIT",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/magpie-community/plugins.git",
|
|
"directory": "packages/zcode"
|
|
}
|
|
}
|