Files
cindy/apps/desktop/scripts/lib
Chris 378820a7fe feat(i18n): add Simplified 文言 edition and classical reply styles
- New locale zh-Hans-x-lzh, generated from the Traditional edition (copy kept
  verbatim from zh-TW takes the zh-CN value; the rest goes through OpenCC tw2sp).
  Falls back to zh-CN, then en; never chosen from the OS language.
- The language menu has a single 文言 entry. Choosing it adds a row to the same
  card for script (简体 / 繁體) and AI reply style: classical prose (default),
  Tang poetry, Song ci, Yuan qu, Chu ci, parallel prose, pre-Qin masters,
  historian, Ming–Qing essays, or plain replies with the classical interface.
- Styles live in @cindy/maker-shared/classical-reply, grouped by literary
  family so Japanese / Korean classical editions can add their own later.
- The style rides the per-turn [UI language] note next to uiLanguage; the
  cached system prompt is unchanged. Desktop mirrors its choice to main over
  IPC; Mobile sends its own with each turn; IM channels keep the error-language
  note only.
- QA previews, glossary, docs and the installer message check cover the new
  edition.

Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>
2026-10-31 13:18:15 +08:00
..