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.

bo.js 5.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. //! moment.js locale configuration
  2. //! locale : Tibetan [bo]
  3. //! author : Thupten N. Chakrishar : https://github.com/vajradog
  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 symbolMap = {
  12. 1: '༡',
  13. 2: '༢',
  14. 3: '༣',
  15. 4: '༤',
  16. 5: '༥',
  17. 6: '༦',
  18. 7: '༧',
  19. 8: '༨',
  20. 9: '༩',
  21. 0: '༠',
  22. },
  23. numberMap = {
  24. '༡': '1',
  25. '༢': '2',
  26. '༣': '3',
  27. '༤': '4',
  28. '༥': '5',
  29. '༦': '6',
  30. '༧': '7',
  31. '༨': '8',
  32. '༩': '9',
  33. '༠': '0',
  34. };
  35. var bo = moment.defineLocale('bo', {
  36. months: 'ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ'.split(
  37. '_'
  38. ),
  39. monthsShort: 'ཟླ་1_ཟླ་2_ཟླ་3_ཟླ་4_ཟླ་5_ཟླ་6_ཟླ་7_ཟླ་8_ཟླ་9_ཟླ་10_ཟླ་11_ཟླ་12'.split(
  40. '_'
  41. ),
  42. monthsShortRegex: /^(ཟླ་\d{1,2})/,
  43. monthsParseExact: true,
  44. weekdays: 'གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་'.split(
  45. '_'
  46. ),
  47. weekdaysShort: 'ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་'.split(
  48. '_'
  49. ),
  50. weekdaysMin: 'ཉི_ཟླ_མིག_ལྷག_ཕུར_སངས_སྤེན'.split('_'),
  51. longDateFormat: {
  52. LT: 'A h:mm',
  53. LTS: 'A h:mm:ss',
  54. L: 'DD/MM/YYYY',
  55. LL: 'D MMMM YYYY',
  56. LLL: 'D MMMM YYYY, A h:mm',
  57. LLLL: 'dddd, D MMMM YYYY, A h:mm',
  58. },
  59. calendar: {
  60. sameDay: '[དི་རིང] LT',
  61. nextDay: '[སང་ཉིན] LT',
  62. nextWeek: '[བདུན་ཕྲག་རྗེས་མ], LT',
  63. lastDay: '[ཁ་སང] LT',
  64. lastWeek: '[བདུན་ཕྲག་མཐའ་མ] dddd, LT',
  65. sameElse: 'L',
  66. },
  67. relativeTime: {
  68. future: '%s ལ་',
  69. past: '%s སྔན་ལ',
  70. s: 'ལམ་སང',
  71. ss: '%d སྐར་ཆ།',
  72. m: 'སྐར་མ་གཅིག',
  73. mm: '%d སྐར་མ',
  74. h: 'ཆུ་ཚོད་གཅིག',
  75. hh: '%d ཆུ་ཚོད',
  76. d: 'ཉིན་གཅིག',
  77. dd: '%d ཉིན་',
  78. M: 'ཟླ་བ་གཅིག',
  79. MM: '%d ཟླ་བ',
  80. y: 'ལོ་གཅིག',
  81. yy: '%d ལོ',
  82. },
  83. preparse: function (string) {
  84. return string.replace(/[༡༢༣༤༥༦༧༨༩༠]/g, function (match) {
  85. return numberMap[match];
  86. });
  87. },
  88. postformat: function (string) {
  89. return string.replace(/\d/g, function (match) {
  90. return symbolMap[match];
  91. });
  92. },
  93. meridiemParse: /མཚན་མོ|ཞོགས་ཀས|ཉིན་གུང|དགོང་དག|མཚན་མོ/,
  94. meridiemHour: function (hour, meridiem) {
  95. if (hour === 12) {
  96. hour = 0;
  97. }
  98. if (
  99. (meridiem === 'མཚན་མོ' && hour >= 4) ||
  100. (meridiem === 'ཉིན་གུང' && hour < 5) ||
  101. meridiem === 'དགོང་དག'
  102. ) {
  103. return hour + 12;
  104. } else {
  105. return hour;
  106. }
  107. },
  108. meridiem: function (hour, minute, isLower) {
  109. if (hour < 4) {
  110. return 'མཚན་མོ';
  111. } else if (hour < 10) {
  112. return 'ཞོགས་ཀས';
  113. } else if (hour < 17) {
  114. return 'ཉིན་གུང';
  115. } else if (hour < 20) {
  116. return 'དགོང་དག';
  117. } else {
  118. return 'མཚན་མོ';
  119. }
  120. },
  121. week: {
  122. dow: 0, // Sunday is the first day of the week.
  123. doy: 6, // The week that contains Jan 6th is the first week of the year.
  124. },
  125. });
  126. return bo;
  127. })));