We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cbe91fd commit e65a326Copy full SHA for e65a326
src/locale/zh-tw.js
@@ -42,6 +42,21 @@ const locale = {
42
MM: '%d 個月',
43
y: '1 年',
44
yy: '%d 年'
45
+ },
46
+ meridiem: (hour, minute) => {
47
+ const hm = (hour * 100) + minute
48
+ if (hm < 600) {
49
+ return '凌晨'
50
+ } else if (hm < 900) {
51
+ return '早上'
52
+ } else if (hm < 1100) {
53
+ return '上午'
54
+ } else if (hm < 1300) {
55
+ return '中午'
56
+ } else if (hm < 1800) {
57
+ return '下午'
58
+ }
59
+ return '晚上'
60
}
61
62
0 commit comments