We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 33dc70b commit 90a7e3dCopy full SHA for 90a7e3d
1 file changed
packages/ui/src/components/session-turn.tsx
@@ -390,12 +390,14 @@ export function SessionTurn(
390
const interval = Interval.fromDateTimes(from, to)
391
const unit: DurationUnit[] = interval.length("seconds") > 60 ? ["minutes", "seconds"] : ["seconds"]
392
393
- return interval.toDuration(unit).normalize().reconfigure({ locale: i18n.locale() }).toHuman({
+ const locale = i18n.locale()
394
+ const human = interval.toDuration(unit).normalize().reconfigure({ locale }).toHuman({
395
notation: "compact",
396
unitDisplay: "narrow",
397
compactDisplay: "short",
398
showZeros: false,
399
})
400
+ return locale.startsWith("zh") ? human.replaceAll("、", "") : human
401
}
402
403
const autoScroll = createAutoScroll({
0 commit comments