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.

ne.js 4.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. //! moment.js locale configuration
  2. //! locale : Nepalese [ne]
  3. //! author : suvash : https://github.com/suvash
  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 ne = moment.defineLocale('ne', {
  36. months: 'जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर'.split(
  37. '_'
  38. ),
  39. monthsShort: 'जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.'.split(
  40. '_'
  41. ),
  42. monthsParseExact: true,
  43. weekdays: 'आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार'.split(
  44. '_'
  45. ),
  46. weekdaysShort: 'आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.'.split('_'),
  47. weekdaysMin: 'आ._सो._मं._बु._बि._शु._श.'.split('_'),
  48. weekdaysParseExact: true,
  49. longDateFormat: {
  50. LT: 'Aको h:mm बजे',
  51. LTS: 'Aको h:mm:ss बजे',
  52. L: 'DD/MM/YYYY',
  53. LL: 'D MMMM YYYY',
  54. LLL: 'D MMMM YYYY, Aको h:mm बजे',
  55. LLLL: 'dddd, D MMMM YYYY, Aको h:mm बजे',
  56. },
  57. preparse: function (string) {
  58. return string.replace(/[१२३४५६७८९०]/g, function (match) {
  59. return numberMap[match];
  60. });
  61. },
  62. postformat: function (string) {
  63. return string.replace(/\d/g, function (match) {
  64. return symbolMap[match];
  65. });
  66. },
  67. meridiemParse: /राति|बिहान|दिउँसो|साँझ/,
  68. meridiemHour: function (hour, meridiem) {
  69. if (hour === 12) {
  70. hour = 0;
  71. }
  72. if (meridiem === 'राति') {
  73. return hour < 4 ? hour : hour + 12;
  74. } else if (meridiem === 'बिहान') {
  75. return hour;
  76. } else if (meridiem === 'दिउँसो') {
  77. return hour >= 10 ? hour : hour + 12;
  78. } else if (meridiem === 'साँझ') {
  79. return hour + 12;
  80. }
  81. },
  82. meridiem: function (hour, minute, isLower) {
  83. if (hour < 3) {
  84. return 'राति';
  85. } else if (hour < 12) {
  86. return 'बिहान';
  87. } else if (hour < 16) {
  88. return 'दिउँसो';
  89. } else if (hour < 20) {
  90. return 'साँझ';
  91. } else {
  92. return 'राति';
  93. }
  94. },
  95. calendar: {
  96. sameDay: '[आज] LT',
  97. nextDay: '[भोलि] LT',
  98. nextWeek: '[आउँदो] dddd[,] LT',
  99. lastDay: '[हिजो] LT',
  100. lastWeek: '[गएको] dddd[,] LT',
  101. sameElse: 'L',
  102. },
  103. relativeTime: {
  104. future: '%sमा',
  105. past: '%s अगाडि',
  106. s: 'केही क्षण',
  107. ss: '%d सेकेण्ड',
  108. m: 'एक मिनेट',
  109. mm: '%d मिनेट',
  110. h: 'एक घण्टा',
  111. hh: '%d घण्टा',
  112. d: 'एक दिन',
  113. dd: '%d दिन',
  114. M: 'एक महिना',
  115. MM: '%d महिना',
  116. y: 'एक बर्ष',
  117. yy: '%d बर्ष',
  118. },
  119. week: {
  120. dow: 0, // Sunday is the first day of the week.
  121. doy: 6, // The week that contains Jan 6th is the first week of the year.
  122. },
  123. });
  124. return ne;
  125. })));