Files
magpie/internal/gui
yetone 3d550e04e2 gui: the Claude import sheet's lines are said in the reader's language, and name the setup-token
liukaybee on X: Providers > Claude > Import accounts read, in Chinese,
"选择或粘贴 CLIProxyAPI 的认证文件(JSON)或 Claude Code's .credentials.json
or claude-swap's export。": importSay passed its {own} value to t() in
English. The two lines are now whole sentences, each translated in zh,
zh-TW, ja and de (German needed the phrase in two cases, so one {own}
couldn't have served both), and the intro names a setup-token
(claude setup-token) beside the files, which the import now takes
(previous commit). The two {own} keys are gone; no other t() call passes
an untranslated phrase that way (grep of `{ own: "`). app.js is shorter
than before, so no budget moved.

Run (mica, mica-run):
- claude-import-words.test.cjs (new; every language, chromium and
  webkit): red on origin/main's app.js/i18n.js ("…(JSON) or Claude Code's
  .credentials.json or claude-swap's export."), green now.
- node --test i18n-keys, i18n-en-no-cjk, login-import,
  signin-paste-import, claude-import-words: 20 of 20 ok.
- go test ./internal/gui (TestCoreScriptBudget among it): ok.

At this head, rebased on 19794cc10 (both commits): go test -run
'Import|SetupToken|Budget' ./internal/provider ./internal/gui, go test
./internal/cli, GOOS=linux and GOOS=windows go vet ./internal/provider,
claude-import-words and i18n-keys: all ok; gofmt -l clean.

Not tried: the sheet in the real app window; the whole GUI suite (text
only, no layout or API change).
2026-11-16 16:01:37 +08:00
..
…
…
…