0003. Bilingual UI (zh-CN / en)
本页只有英文版,按原文显示。
- Status: Accepted
- Date: 2026-10-09
- Deciders: tseka
Context
All UI strings and aria-labels are hardcoded Chinese. No i18n library.
Decision
- Support
zh-CNandenacross the landing page and the app. - Library:
vue-i18n(composition API, typed message schema). - Default locale
en. Resolution: explicit user choice (persisted) →navigator.languagesbest match →en. Public pages use path locales (/homeen asx-default,/zh/home). <html lang>follows the active locale.- Message keys are namespaced by feature. Brand name (ADR 0001) is not translated.
/homelocale variants are crawlable (hreflang).
Consequences
- Every new user-visible string goes through
t(); enforced by lint on.vuetemplates. - Migration is incremental per feature; Chinese is the source locale during migration.
0002. App routing: / enters /app, landing at /home
kcq.nebutra.com serves a single-page preview (packages/vue/preview/App.vue) with no router. A marketing landing page is required.
0004. Design token scope and no-raw-values rule
Tokens cover color, spacing, typography, and motion only. The Vue UI has 711 raw px lines, radii 4/5/6/8/999px, font sizes 11/13px outside the scale,…