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.

ja.js 4.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. //! moment.js locale configuration
  2. //! locale : Japanese [ja]
  3. //! author : LI Long : https://github.com/baryon
  4. ;(function (global, factory) {
  5. typeof exports === 'object' && typeof module !== 'undefined'
  6. && typeof require === 'function' ? factory(require('../moment')) :
  7. typeof define === 'function' && define.amd ? define(['../moment'], factory) :
  8. factory(global.moment)
  9. }(this, (function (moment) { 'use strict';
  10. //! moment.js locale configuration
  11. var ja = moment.defineLocale('ja', {
  12. eras: [
  13. {
  14. since: '2019-05-01',
  15. offset: 1,
  16. name: '令和',
  17. narrow: '㋿',
  18. abbr: 'R',
  19. },
  20. {
  21. since: '1989-01-08',
  22. until: '2019-04-30',
  23. offset: 1,
  24. name: '平成',
  25. narrow: '㍻',
  26. abbr: 'H',
  27. },
  28. {
  29. since: '1926-12-25',
  30. until: '1989-01-07',
  31. offset: 1,
  32. name: '昭和',
  33. narrow: '㍼',
  34. abbr: 'S',
  35. },
  36. {
  37. since: '1912-07-30',
  38. until: '1926-12-24',
  39. offset: 1,
  40. name: '大正',
  41. narrow: '㍽',
  42. abbr: 'T',
  43. },
  44. {
  45. since: '1873-01-01',
  46. until: '1912-07-29',
  47. offset: 6,
  48. name: '明治',
  49. narrow: '㍾',
  50. abbr: 'M',
  51. },
  52. {
  53. since: '0001-01-01',
  54. until: '1873-12-31',
  55. offset: 1,
  56. name: '西暦',
  57. narrow: 'AD',
  58. abbr: 'AD',
  59. },
  60. {
  61. since: '0000-12-31',
  62. until: -Infinity,
  63. offset: 1,
  64. name: '紀元前',
  65. narrow: 'BC',
  66. abbr: 'BC',
  67. },
  68. ],
  69. eraYearOrdinalRegex: /(元|\d+)年/,
  70. eraYearOrdinalParse: function (input, match) {
  71. return match[1] === '元' ? 1 : parseInt(match[1] || input, 10);
  72. },
  73. months: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
  74. monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split(
  75. '_'
  76. ),
  77. weekdays: '日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日'.split('_'),
  78. weekdaysShort: '日_月_火_水_木_金_土'.split('_'),
  79. weekdaysMin: '日_月_火_水_木_金_土'.split('_'),
  80. longDateFormat: {
  81. LT: 'HH:mm',
  82. LTS: 'HH:mm:ss',
  83. L: 'YYYY/MM/DD',
  84. LL: 'YYYY年M月D日',
  85. LLL: 'YYYY年M月D日 HH:mm',
  86. LLLL: 'YYYY年M月D日 dddd HH:mm',
  87. l: 'YYYY/MM/DD',
  88. ll: 'YYYY年M月D日',
  89. lll: 'YYYY年M月D日 HH:mm',
  90. llll: 'YYYY年M月D日(ddd) HH:mm',
  91. },
  92. meridiemParse: /午前|午後/i,
  93. isPM: function (input) {
  94. return input === '午後';
  95. },
  96. meridiem: function (hour, minute, isLower) {
  97. if (hour < 12) {
  98. return '午前';
  99. } else {
  100. return '午後';
  101. }
  102. },
  103. calendar: {
  104. sameDay: '[今日] LT',
  105. nextDay: '[明日] LT',
  106. nextWeek: function (now) {
  107. if (now.week() !== this.week()) {
  108. return '[来週]dddd LT';
  109. } else {
  110. return 'dddd LT';
  111. }
  112. },
  113. lastDay: '[昨日] LT',
  114. lastWeek: function (now) {
  115. if (this.week() !== now.week()) {
  116. return '[先週]dddd LT';
  117. } else {
  118. return 'dddd LT';
  119. }
  120. },
  121. sameElse: 'L',
  122. },
  123. dayOfMonthOrdinalParse: /\d{1,2}日/,
  124. ordinal: function (number, period) {
  125. switch (period) {
  126. case 'y':
  127. return number === 1 ? '元年' : number + '年';
  128. case 'd':
  129. case 'D':
  130. case 'DDD':
  131. return number + '日';
  132. default:
  133. return number;
  134. }
  135. },
  136. relativeTime: {
  137. future: '%s後',
  138. past: '%s前',
  139. s: '数秒',
  140. ss: '%d秒',
  141. m: '1分',
  142. mm: '%d分',
  143. h: '1時間',
  144. hh: '%d時間',
  145. d: '1日',
  146. dd: '%d日',
  147. M: '1ヶ月',
  148. MM: '%dヶ月',
  149. y: '1年',
  150. yy: '%d年',
  151. },
  152. });
  153. return ja;
  154. })));