mirror of
https://gh-proxy.org/https://github.com/klinsmaya/sub2api.git
synced 2026-11-10 18:27:06 +08:00
BatchImageGuideView carried ~140 user-visible strings outside vue-i18n: hardcoded Chinese template strings (buttons, placeholders, tooltips, table headers, dialog titles, empty states) plus an inline bilingual batchImageText dictionary switched by isZhLocale() in script. Move all of it into a new batchImage locale namespace (180 leaf keys per language, zh/en verified key-aligned) registered in both locale indexes, reusing 15 existing common.*/pagination.* keys. Column and filter-option definitions become computed so language switches take effect immediately; countable strings use vue-i18n plurals and the three rich-text counters keep their inner bold spans via <i18n-t> slots. The Codex agent-instruction prompt template intentionally stays as a plain string: it is an AI-facing prompt document containing literal JSON braces that conflict with vue-i18n message syntax. Verified: eslint, vue-tsc --noEmit, vite build, and the full vitest suite (175 files / 1219 tests) all pass. Co-Authored-By: Claude Fable 5 <[email protected]>