Skip to content

Commit 0c07874

Browse files
committed
fix: fix Advanced format bug in zh-cn
close #242
1 parent 0e0ca89 commit 0c07874

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/locale/zh-cn.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const locale = {
77
weekdaysMin: '日_一_二_三_四_五_六'.split('_'),
88
months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split('_'),
99
monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
10-
ordinal: n => n,
10+
ordinal: n => `${n}日`,
1111
relativeTime: {
1212
future: '%s内',
1313
past: '%s前',

src/locale/zh-tw.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const locale = {
77
weekdaysMin: '日_一_二_三_四_五_六'.split('_'),
88
months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split('_'),
99
monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
10-
ordinal: n => n,
10+
ordinal: n => `${n}日`,
1111
relativeTime: {
1212
future: '%s內',
1313
past: '%s前',

0 commit comments

Comments
 (0)