Merge "Improve docs for Title::getInternalURL/getCanonicalURL"
[lhc/web/wiklou.git] / resources / lib / moment / locale / zh-hk.js
1 //! moment.js locale configuration
2
3 ;(function (global, factory) {
4 typeof exports === 'object' && typeof module !== 'undefined'
5 && typeof require === 'function' ? factory(require('../moment')) :
6 typeof define === 'function' && define.amd ? define(['../moment'], factory) :
7 factory(global.moment)
8 }(this, (function (moment) { 'use strict';
9
10
11 var zhHk = moment.defineLocale('zh-hk', {
12 months : '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split('_'),
13 monthsShort : '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
14 weekdays : '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),
15 weekdaysShort : '週日_週一_週二_週三_週四_週五_週六'.split('_'),
16 weekdaysMin : '日_一_二_三_四_五_六'.split('_'),
17 longDateFormat : {
18 LT : 'HH:mm',
19 LTS : 'HH:mm:ss',
20 L : 'YYYY/MM/DD',
21 LL : 'YYYY年M月D日',
22 LLL : 'YYYY年M月D日 HH:mm',
23 LLLL : 'YYYY年M月D日dddd HH:mm',
24 l : 'YYYY/M/D',
25 ll : 'YYYY年M月D日',
26 lll : 'YYYY年M月D日 HH:mm',
27 llll : 'YYYY年M月D日dddd HH:mm'
28 },
29 meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,
30 meridiemHour : function (hour, meridiem) {
31 if (hour === 12) {
32 hour = 0;
33 }
34 if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') {
35 return hour;
36 } else if (meridiem === '中午') {
37 return hour >= 11 ? hour : hour + 12;
38 } else if (meridiem === '下午' || meridiem === '晚上') {
39 return hour + 12;
40 }
41 },
42 meridiem : function (hour, minute, isLower) {
43 var hm = hour * 100 + minute;
44 if (hm < 600) {
45 return '凌晨';
46 } else if (hm < 900) {
47 return '早上';
48 } else if (hm < 1130) {
49 return '上午';
50 } else if (hm < 1230) {
51 return '中午';
52 } else if (hm < 1800) {
53 return '下午';
54 } else {
55 return '晚上';
56 }
57 },
58 calendar : {
59 sameDay : '[今天]LT',
60 nextDay : '[明天]LT',
61 nextWeek : '[下]ddddLT',
62 lastDay : '[昨天]LT',
63 lastWeek : '[上]ddddLT',
64 sameElse : 'L'
65 },
66 dayOfMonthOrdinalParse: /\d{1,2}(日|月|週)/,
67 ordinal : function (number, period) {
68 switch (period) {
69 case 'd' :
70 case 'D' :
71 case 'DDD' :
72 return number + '日';
73 case 'M' :
74 return number + '月';
75 case 'w' :
76 case 'W' :
77 return number + '週';
78 default :
79 return number;
80 }
81 },
82 relativeTime : {
83 future : '%s內',
84 past : '%s前',
85 s : '幾秒',
86 ss : '%d 秒',
87 m : '1 分鐘',
88 mm : '%d 分鐘',
89 h : '1 小時',
90 hh : '%d 小時',
91 d : '1 天',
92 dd : '%d 天',
93 M : '1 個月',
94 MM : '%d 個月',
95 y : '1 年',
96 yy : '%d 年'
97 }
98 });
99
100 return zhHk;
101
102 })));