Node-Red configuration
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

zh-hk.js 1.2KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. // Chinese (Hong Kong) [zh-hk]
  2. import dayjs from '../index';
  3. var locale = {
  4. name: 'zh-hk',
  5. months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split('_'),
  6. monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
  7. weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),
  8. weekdaysShort: '週日_週一_週二_週三_週四_週五_週六'.split('_'),
  9. weekdaysMin: '日_一_二_三_四_五_六'.split('_'),
  10. ordinal: function ordinal(number, period) {
  11. switch (period) {
  12. case 'W':
  13. return number + "\u9031";
  14. default:
  15. return number + "\u65E5";
  16. }
  17. },
  18. formats: {
  19. LT: 'HH:mm',
  20. LTS: 'HH:mm:ss',
  21. L: 'YYYY/MM/DD',
  22. LL: 'YYYY年M月D日',
  23. LLL: 'YYYY年M月D日 HH:mm',
  24. LLLL: 'YYYY年M月D日dddd HH:mm'
  25. },
  26. relativeTime: {
  27. future: '%s內',
  28. past: '%s前',
  29. s: '幾秒',
  30. m: '一分鐘',
  31. mm: '%d 分鐘',
  32. h: '一小時',
  33. hh: '%d 小時',
  34. d: '一天',
  35. dd: '%d 天',
  36. M: '一個月',
  37. MM: '%d 個月',
  38. y: '一年',
  39. yy: '%d 年'
  40. }
  41. };
  42. dayjs.locale(locale, null, true);
  43. export default locale;