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.

tzl.js 3.0KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. //! moment.js locale configuration
  2. //! locale : Talossan [tzl]
  3. //! author : Robin van der Vliet : https://github.com/robin0van0der0v
  4. //! author : Iustì Canun
  5. import moment from '../moment';
  6. // After the year there should be a slash and the amount of years since December 26, 1979 in Roman numerals.
  7. // This is currently too difficult (maybe even impossible) to add.
  8. export default moment.defineLocale('tzl', {
  9. months: 'Januar_Fevraglh_Març_Avrïu_Mai_Gün_Julia_Guscht_Setemvar_Listopäts_Noemvar_Zecemvar'.split(
  10. '_'
  11. ),
  12. monthsShort: 'Jan_Fev_Mar_Avr_Mai_Gün_Jul_Gus_Set_Lis_Noe_Zec'.split('_'),
  13. weekdays: 'Súladi_Lúneçi_Maitzi_Márcuri_Xhúadi_Viénerçi_Sáturi'.split('_'),
  14. weekdaysShort: 'Súl_Lún_Mai_Már_Xhú_Vié_Sát'.split('_'),
  15. weekdaysMin: 'Sú_Lú_Ma_Má_Xh_Vi_Sá'.split('_'),
  16. longDateFormat: {
  17. LT: 'HH.mm',
  18. LTS: 'HH.mm.ss',
  19. L: 'DD.MM.YYYY',
  20. LL: 'D. MMMM [dallas] YYYY',
  21. LLL: 'D. MMMM [dallas] YYYY HH.mm',
  22. LLLL: 'dddd, [li] D. MMMM [dallas] YYYY HH.mm',
  23. },
  24. meridiemParse: /d\'o|d\'a/i,
  25. isPM: function (input) {
  26. return "d'o" === input.toLowerCase();
  27. },
  28. meridiem: function (hours, minutes, isLower) {
  29. if (hours > 11) {
  30. return isLower ? "d'o" : "D'O";
  31. } else {
  32. return isLower ? "d'a" : "D'A";
  33. }
  34. },
  35. calendar: {
  36. sameDay: '[oxhi à] LT',
  37. nextDay: '[demà à] LT',
  38. nextWeek: 'dddd [à] LT',
  39. lastDay: '[ieiri à] LT',
  40. lastWeek: '[sür el] dddd [lasteu à] LT',
  41. sameElse: 'L',
  42. },
  43. relativeTime: {
  44. future: 'osprei %s',
  45. past: 'ja%s',
  46. s: processRelativeTime,
  47. ss: processRelativeTime,
  48. m: processRelativeTime,
  49. mm: processRelativeTime,
  50. h: processRelativeTime,
  51. hh: processRelativeTime,
  52. d: processRelativeTime,
  53. dd: processRelativeTime,
  54. M: processRelativeTime,
  55. MM: processRelativeTime,
  56. y: processRelativeTime,
  57. yy: processRelativeTime,
  58. },
  59. dayOfMonthOrdinalParse: /\d{1,2}\./,
  60. ordinal: '%d.',
  61. week: {
  62. dow: 1, // Monday is the first day of the week.
  63. doy: 4, // The week that contains Jan 4th is the first week of the year.
  64. },
  65. });
  66. function processRelativeTime(number, withoutSuffix, key, isFuture) {
  67. var format = {
  68. s: ['viensas secunds', "'iensas secunds"],
  69. ss: [number + ' secunds', '' + number + ' secunds'],
  70. m: ["'n míut", "'iens míut"],
  71. mm: [number + ' míuts', '' + number + ' míuts'],
  72. h: ["'n þora", "'iensa þora"],
  73. hh: [number + ' þoras', '' + number + ' þoras'],
  74. d: ["'n ziua", "'iensa ziua"],
  75. dd: [number + ' ziuas', '' + number + ' ziuas'],
  76. M: ["'n mes", "'iens mes"],
  77. MM: [number + ' mesen', '' + number + ' mesen'],
  78. y: ["'n ar", "'iens ar"],
  79. yy: [number + ' ars', '' + number + ' ars'],
  80. };
  81. return isFuture
  82. ? format[key][0]
  83. : withoutSuffix
  84. ? format[key][0]
  85. : format[key][1];
  86. }