From ef394667b766b5dd4f2acde1710e507d1d12095a Mon Sep 17 00:00:00 2001 From: peijunlei Date: Mon, 7 Sep 2026 14:51:35 +0800 Subject: [PATCH] docs: add EN demo UI i18n design spec Co-authored-by: Cursor --- .../specs/2026-09-07-en-demo-ui-i18n-design.md | 120 +++++++++++++++++++++ 1 file changed, 120 insertions(+) create mode 100644 docs/superpowers/specs/2026-09-07-en-demo-ui-i18n-design.md diff --git a/docs/superpowers/specs/2026-09-07-en-demo-ui-i18n-design.md b/docs/superpowers/specs/2026-09-07-en-demo-ui-i18n-design.md new file mode 100644 index 0000000..9c2a2f3 --- /dev/null +++ b/docs/superpowers/specs/2026-09-07-en-demo-ui-i18n-design.md @@ -0,0 +1,120 @@ +# EN Demo UI Translation Design + +Date: 2026-09-07 +Status: draft for user review +Approach: lightweight in-JS dictionary (Approach 1) + +## Goal + +Translate hardcoded Chinese UI copy in the English theme demo templates to English, and make shared frontend JS show English or Chinese based on the current UI language. Do not translate code comments. Do not machine-translate CMS/dynamic fields. + +## Scope + +### In scope + +- All HTML under `public/themes/website/1/en/demo/` (pages + `components/`), user-visible hardcoded Chinese only: + - Visible text nodes, button labels, placeholders, empty states + - `aria-label` / `title` / similar accessibility strings when Chinese + - Inline `