1d9fd329c95bc701d6fecdd84236345016ee1c5e3eac9bde47ba31830cb57676d2f4babd046aef3db0f20abb9a2e5376596a76a4fbcfd373a6cb72deaf45d0 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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. m : processRelativeTime,
  46. mm : processRelativeTime,
  47. h : processRelativeTime,
  48. hh : processRelativeTime,
  49. d : processRelativeTime,
  50. dd : processRelativeTime,
  51. M : processRelativeTime,
  52. MM : processRelativeTime,
  53. y : processRelativeTime,
  54. yy : processRelativeTime
  55. },
  56. ordinalParse: /\d{1,2}\./,
  57. ordinal : '%d.',
  58. week : {
  59. dow : 1, // Monday is the first day of the week.
  60. doy : 4 // The week that contains Jan 4th is the first week of the year.
  61. }
  62. });
  63. function processRelativeTime(number, withoutSuffix, key, isFuture) {
  64. var format = {
  65. 's': ['viensas secunds', '\'iensas secunds'],
  66. 'm': ['\'n míut', '\'iens míut'],
  67. 'mm': [number + ' míuts', '' + number + ' míuts'],
  68. 'h': ['\'n þora', '\'iensa þora'],
  69. 'hh': [number + ' þoras', '' + number + ' þoras'],
  70. 'd': ['\'n ziua', '\'iensa ziua'],
  71. 'dd': [number + ' ziuas', '' + number + ' ziuas'],
  72. 'M': ['\'n mes', '\'iens mes'],
  73. 'MM': [number + ' mesen', '' + number + ' mesen'],
  74. 'y': ['\'n ar', '\'iens ar'],
  75. 'yy': [number + ' ars', '' + number + ' ars']
  76. };
  77. return isFuture ? format[key][0] : (withoutSuffix ? format[key][0] : format[key][1]);
  78. }