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 `