zh: duration display shows list separator (e.g. "1分钟、25秒") #7742

Closed
opened 2026-02-16 18:08:06 -05:00 by yindo · 0 comments
Owner

Originally created by @MaxMiksa on GitHub (Jan 27, 2026).

Originally assigned to: @rekram1-node on GitHub.

Problem
Duration UI can render as 1分钟、25秒 in zh locale because Luxon Duration.toHuman() uses the locale list separator.

Where
packages/ui/src/components/session-turn.tsx uses Interval.toDuration(...).toHuman(...).

Impact
Feels unnatural in Chinese UI.

Suggested fix
Keep Luxon formatting but remove the zh list separator for multi-unit durations (or format zh duration manually).

Originally created by @MaxMiksa on GitHub (Jan 27, 2026). Originally assigned to: @rekram1-node on GitHub. **Problem** Duration UI can render as `1分钟、25秒` in zh locale because Luxon `Duration.toHuman()` uses the locale list separator. **Where** `packages/ui/src/components/session-turn.tsx` uses `Interval.toDuration(...).toHuman(...)`. **Impact** Feels unnatural in Chinese UI. **Suggested fix** Keep Luxon formatting but remove the zh list separator for multi-unit durations (or format zh duration manually).
yindo closed this issue 2026-02-16 18:08:06 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#7742