Ohm-Management - Projektarbeit B-ME
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.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  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. monthsShort : 'Jan_Fev_Mar_Avr_Mai_Gün_Jul_Gus_Set_Lis_Noe_Zec'.split('_'),
  11. weekdays : 'Súladi_Lúneçi_Maitzi_Márcuri_Xhúadi_Viénerçi_Sáturi'.split('_'),
  12. weekdaysShort : 'Súl_Lún_Mai_Már_Xhú_Vié_Sát'.split('_'),
  13. weekdaysMin : 'Sú_Lú_Ma_Má_Xh_Vi_Sá'.split('_'),
  14. longDateFormat : {
  15. LT : 'HH.mm',
  16. LTS : 'HH.mm.ss',
  17. L : 'DD.MM.YYYY',
  18. LL : 'D. MMMM [dallas] YYYY',
  19. LLL : 'D. MMMM [dallas] YYYY HH.mm',
  20. LLLL : 'dddd, [li] D. MMMM [dallas] YYYY HH.mm'
  21. },
  22. meridiemParse: /d\'o|d\'a/i,
  23. isPM : function (input) {
  24. return 'd\'o' === input.toLowerCase();
  25. },
  26. meridiem : function (hours, minutes, isLower) {
  27. if (hours > 11) {
  28. return isLower ? 'd\'o' : 'D\'O';
  29. } else {
  30. return isLower ? 'd\'a' : 'D\'A';
  31. }
  32. },
  33. calendar : {
  34. sameDay : '[oxhi à] LT',
  35. nextDay : '[demà à] LT',
  36. nextWeek : 'dddd [à] LT',
  37. lastDay : '[ieiri à] LT',
  38. lastWeek : '[sür el] dddd [lasteu à] LT',
  39. sameElse : 'L'
  40. },
  41. relativeTime : {
  42. future : 'osprei %s',
  43. past : 'ja%s',
  44. s : processRelativeTime,
  45. ss : processRelativeTime,
  46. m : processRelativeTime,
  47. mm : processRelativeTime,
  48. h : processRelativeTime,
  49. hh : processRelativeTime,
  50. d : processRelativeTime,
  51. dd : processRelativeTime,
  52. M : processRelativeTime,
  53. MM : processRelativeTime,
  54. y : processRelativeTime,
  55. yy : processRelativeTime
  56. },
  57. dayOfMonthOrdinalParse: /\d{1,2}\./,
  58. ordinal : '%d.',
  59. week : {
  60. dow : 1, // Monday is the first day of the week.
  61. doy : 4 // The week that contains Jan 4th is the first week of the year.
  62. }
  63. });
  64. function processRelativeTime(number, withoutSuffix, key, isFuture) {
  65. var format = {
  66. 's': ['viensas secunds', '\'iensas secunds'],
  67. 'ss': [number + ' secunds', '' + number + ' secunds'],
  68. 'm': ['\'n míut', '\'iens míut'],
  69. 'mm': [number + ' míuts', '' + number + ' míuts'],
  70. 'h': ['\'n þora', '\'iensa þora'],
  71. 'hh': [number + ' þoras', '' + number + ' þoras'],
  72. 'd': ['\'n ziua', '\'iensa ziua'],
  73. 'dd': [number + ' ziuas', '' + number + ' ziuas'],
  74. 'M': ['\'n mes', '\'iens mes'],
  75. 'MM': [number + ' mesen', '' + number + ' mesen'],
  76. 'y': ['\'n ar', '\'iens ar'],
  77. 'yy': [number + ' ars', '' + number + ' ars']
  78. };
  79. return isFuture ? format[key][0] : (withoutSuffix ? format[key][0] : format[key][1]);
  80. }