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.

gom-latn.js 4.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. //! moment.js locale configuration
  2. //! locale : Konkani Latin script [gom-latn]
  3. //! author : The Discoverer : https://github.com/WikiDiscoverer
  4. import moment from '../moment';
  5. function processRelativeTime(number, withoutSuffix, key, isFuture) {
  6. var format = {
  7. s: ['thoddea sekondamni', 'thodde sekond'],
  8. ss: [number + ' sekondamni', number + ' sekond'],
  9. m: ['eka mintan', 'ek minut'],
  10. mm: [number + ' mintamni', number + ' mintam'],
  11. h: ['eka voran', 'ek vor'],
  12. hh: [number + ' voramni', number + ' voram'],
  13. d: ['eka disan', 'ek dis'],
  14. dd: [number + ' disamni', number + ' dis'],
  15. M: ['eka mhoinean', 'ek mhoino'],
  16. MM: [number + ' mhoineamni', number + ' mhoine'],
  17. y: ['eka vorsan', 'ek voros'],
  18. yy: [number + ' vorsamni', number + ' vorsam'],
  19. };
  20. return isFuture ? format[key][0] : format[key][1];
  21. }
  22. export default moment.defineLocale('gom-latn', {
  23. months: {
  24. standalone: 'Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr'.split(
  25. '_'
  26. ),
  27. format: 'Janerachea_Febrerachea_Marsachea_Abrilachea_Maiachea_Junachea_Julaiachea_Agostachea_Setembrachea_Otubrachea_Novembrachea_Dezembrachea'.split(
  28. '_'
  29. ),
  30. isFormat: /MMMM(\s)+D[oD]?/,
  31. },
  32. monthsShort: 'Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.'.split(
  33. '_'
  34. ),
  35. monthsParseExact: true,
  36. weekdays: "Aitar_Somar_Mongllar_Budhvar_Birestar_Sukrar_Son'var".split('_'),
  37. weekdaysShort: 'Ait._Som._Mon._Bud._Bre._Suk._Son.'.split('_'),
  38. weekdaysMin: 'Ai_Sm_Mo_Bu_Br_Su_Sn'.split('_'),
  39. weekdaysParseExact: true,
  40. longDateFormat: {
  41. LT: 'A h:mm [vazta]',
  42. LTS: 'A h:mm:ss [vazta]',
  43. L: 'DD-MM-YYYY',
  44. LL: 'D MMMM YYYY',
  45. LLL: 'D MMMM YYYY A h:mm [vazta]',
  46. LLLL: 'dddd, MMMM Do, YYYY, A h:mm [vazta]',
  47. llll: 'ddd, D MMM YYYY, A h:mm [vazta]',
  48. },
  49. calendar: {
  50. sameDay: '[Aiz] LT',
  51. nextDay: '[Faleam] LT',
  52. nextWeek: '[Fuddlo] dddd[,] LT',
  53. lastDay: '[Kal] LT',
  54. lastWeek: '[Fattlo] dddd[,] LT',
  55. sameElse: 'L',
  56. },
  57. relativeTime: {
  58. future: '%s',
  59. past: '%s adim',
  60. s: processRelativeTime,
  61. ss: processRelativeTime,
  62. m: processRelativeTime,
  63. mm: processRelativeTime,
  64. h: processRelativeTime,
  65. hh: processRelativeTime,
  66. d: processRelativeTime,
  67. dd: processRelativeTime,
  68. M: processRelativeTime,
  69. MM: processRelativeTime,
  70. y: processRelativeTime,
  71. yy: processRelativeTime,
  72. },
  73. dayOfMonthOrdinalParse: /\d{1,2}(er)/,
  74. ordinal: function (number, period) {
  75. switch (period) {
  76. // the ordinal 'er' only applies to day of the month
  77. case 'D':
  78. return number + 'er';
  79. default:
  80. case 'M':
  81. case 'Q':
  82. case 'DDD':
  83. case 'd':
  84. case 'w':
  85. case 'W':
  86. return number;
  87. }
  88. },
  89. week: {
  90. dow: 0, // Sunday is the first day of the week
  91. doy: 3, // The week that contains Jan 4th is the first week of the year (7 + 0 - 4)
  92. },
  93. meridiemParse: /rati|sokallim|donparam|sanje/,
  94. meridiemHour: function (hour, meridiem) {
  95. if (hour === 12) {
  96. hour = 0;
  97. }
  98. if (meridiem === 'rati') {
  99. return hour < 4 ? hour : hour + 12;
  100. } else if (meridiem === 'sokallim') {
  101. return hour;
  102. } else if (meridiem === 'donparam') {
  103. return hour > 12 ? hour : hour + 12;
  104. } else if (meridiem === 'sanje') {
  105. return hour + 12;
  106. }
  107. },
  108. meridiem: function (hour, minute, isLower) {
  109. if (hour < 4) {
  110. return 'rati';
  111. } else if (hour < 12) {
  112. return 'sokallim';
  113. } else if (hour < 16) {
  114. return 'donparam';
  115. } else if (hour < 20) {
  116. return 'sanje';
  117. } else {
  118. return 'rati';
  119. }
  120. },
  121. });