We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
iamkun
Learn more about funding links in repositories.
Report abuse
1 parent c2ea004 commit a947a51Copy full SHA for a947a51
src/locale/zh-hk.js
@@ -22,7 +22,11 @@ const locale = {
22
L: 'YYYY/MM/DD',
23
LL: 'YYYY年M月D日',
24
LLL: 'YYYY年M月D日 HH:mm',
25
- LLLL: 'YYYY年M月D日dddd HH:mm'
+ LLLL: 'YYYY年M月D日dddd HH:mm',
26
+ l: 'YYYY/M/D',
27
+ ll: 'YYYY年M月D日',
28
+ lll: 'YYYY年M月D日 HH:mm',
29
+ llll: 'YYYY年M月D日dddd HH:mm'
30
},
31
relativeTime: {
32
future: '%s內',
@@ -38,6 +42,21 @@ const locale = {
38
42
MM: '%d 個月',
39
43
y: '一年',
40
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 '晚上'
41
60
}
61
62
0 commit comments