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.

ug-cn.js 4.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. //! moment.js locale configuration
  2. //! locale : Uyghur (China) [ug-cn]
  3. //! author: boyaq : https://github.com/boyaq
  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 ugCn = moment.defineLocale('ug-cn', {
  12. months: 'يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر'.split(
  13. '_'
  14. ),
  15. monthsShort: 'يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر'.split(
  16. '_'
  17. ),
  18. weekdays: 'يەكشەنبە_دۈشەنبە_سەيشەنبە_چارشەنبە_پەيشەنبە_جۈمە_شەنبە'.split(
  19. '_'
  20. ),
  21. weekdaysShort: 'يە_دۈ_سە_چا_پە_جۈ_شە'.split('_'),
  22. weekdaysMin: 'يە_دۈ_سە_چا_پە_جۈ_شە'.split('_'),
  23. longDateFormat: {
  24. LT: 'HH:mm',
  25. LTS: 'HH:mm:ss',
  26. L: 'YYYY-MM-DD',
  27. LL: 'YYYY-يىلىM-ئاينىڭD-كۈنى',
  28. LLL: 'YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm',
  29. LLLL: 'dddd، YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm',
  30. },
  31. meridiemParse: /يېرىم كېچە|سەھەر|چۈشتىن بۇرۇن|چۈش|چۈشتىن كېيىن|كەچ/,
  32. meridiemHour: function (hour, meridiem) {
  33. if (hour === 12) {
  34. hour = 0;
  35. }
  36. if (
  37. meridiem === 'يېرىم كېچە' ||
  38. meridiem === 'سەھەر' ||
  39. meridiem === 'چۈشتىن بۇرۇن'
  40. ) {
  41. return hour;
  42. } else if (meridiem === 'چۈشتىن كېيىن' || meridiem === 'كەچ') {
  43. return hour + 12;
  44. } else {
  45. return hour >= 11 ? hour : 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. relativeTime: {
  73. future: '%s كېيىن',
  74. past: '%s بۇرۇن',
  75. s: 'نەچچە سېكونت',
  76. ss: '%d سېكونت',
  77. m: 'بىر مىنۇت',
  78. mm: '%d مىنۇت',
  79. h: 'بىر سائەت',
  80. hh: '%d سائەت',
  81. d: 'بىر كۈن',
  82. dd: '%d كۈن',
  83. M: 'بىر ئاي',
  84. MM: '%d ئاي',
  85. y: 'بىر يىل',
  86. yy: '%d يىل',
  87. },
  88. dayOfMonthOrdinalParse: /\d{1,2}(-كۈنى|-ئاي|-ھەپتە)/,
  89. ordinal: function (number, period) {
  90. switch (period) {
  91. case 'd':
  92. case 'D':
  93. case 'DDD':
  94. return number + '-كۈنى';
  95. case 'w':
  96. case 'W':
  97. return number + '-ھەپتە';
  98. default:
  99. return number;
  100. }
  101. },
  102. preparse: function (string) {
  103. return string.replace(/،/g, ',');
  104. },
  105. postformat: function (string) {
  106. return string.replace(/,/g, '،');
  107. },
  108. week: {
  109. // GB/T 7408-1994《数据元和交换格式·信息交换·日期和时间表示法》与ISO 8601:1988等效
  110. dow: 1, // Monday is the first day of the week.
  111. doy: 7, // The week that contains Jan 1st is the first week of the year.
  112. },
  113. });
  114. return ugCn;
  115. })));