Skip to content

Commit 150aeec

Browse files
committed
lang: support both English and Chinese
1 parent 4bc3b80 commit 150aeec

25 files changed

Lines changed: 2277 additions & 547 deletions

File tree

.cursor/skills/a2api-demo/SKILL.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ npm install && npm run dev
3333
- Apply / Request.tag: from page title → lowercase English, spaces→`_`, strip other specials (e.g. `Moment Detail``moment_detail`); also set on write body `tag` for retry.
3434
- Chart field pool = all query tables × fields (not table visible-column config).
3535
- User list / primary User: omit `@column` (all fields). JOIN User defaults include `name,tag,head,pictureList` (not only `name`).
36-
- UI copy is English; Chinese NLP matching may remain for intent only.
36+
- UI copy is i18n via `i18next` in chat-demo (`apps/chat-demo/client/i18n/`) and admin (`apps/admin/client/i18n/`), locales `en` / `zh-CN`; Settings → **UI Language** (reload on change). Both apps share `localStorage` key `a2api.uiLocale`. Separate from **AI Language** (LLM reply language).
37+
- Chinese NLP matching may remain for intent; chat-demo chip `data-msg` follows UI locale.
3738
- Account menu (top-right) holds AI Model / Base URL / API Key; pass as `llm` on `/api/chat` and `/api/analyze`.
3839

3940
## Detail / table smart fields

0 commit comments

Comments
 (0)