Skip to content

Commit 667ce8d

Browse files
committed
fix: fix time display for RTL
1 parent af273bc commit 667ce8d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/util/time.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ export function formatPeriod(milliseconds: number, message: Record<'dayMsg' | 'h
105105
*/
106106
export function formatPeriodCommon(milliseconds: number): string {
107107
const defaultMessage = isRtl() ? {
108-
dayMsg: 's{second} m{minute} h{hour} d',
108+
dayMsg: 's{second} m{minute} h{hour} d{day}',
109109
hourMsg: 's{second} m{minute} h{hour}',
110110
minuteMsg: 's{second} m{minute}',
111111
secondMsg: 's{second}',

0 commit comments

Comments
 (0)