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-tw.js 2.9KB

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