Software zum Installieren eines Smart-Mirror Frameworks , zum Nutzen von hochschulrelevanten Informationen, auf einem Raspberry-Pi.
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-mo.js 3.7KB

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