Node-Red configuration
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

gd.js 3.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. //! moment.js locale configuration
  2. //! locale : Scottish Gaelic [gd]
  3. //! author : Jon Ashdown : https://github.com/jonashdown
  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 months = [
  12. 'Am Faoilleach',
  13. 'An Gearran',
  14. 'Am Màrt',
  15. 'An Giblean',
  16. 'An Cèitean',
  17. 'An t-Ògmhios',
  18. 'An t-Iuchar',
  19. 'An Lùnastal',
  20. 'An t-Sultain',
  21. 'An Dàmhair',
  22. 'An t-Samhain',
  23. 'An Dùbhlachd',
  24. ],
  25. monthsShort = [
  26. 'Faoi',
  27. 'Gear',
  28. 'Màrt',
  29. 'Gibl',
  30. 'Cèit',
  31. 'Ògmh',
  32. 'Iuch',
  33. 'Lùn',
  34. 'Sult',
  35. 'Dàmh',
  36. 'Samh',
  37. 'Dùbh',
  38. ],
  39. weekdays = [
  40. 'Didòmhnaich',
  41. 'Diluain',
  42. 'Dimàirt',
  43. 'Diciadain',
  44. 'Diardaoin',
  45. 'Dihaoine',
  46. 'Disathairne',
  47. ],
  48. weekdaysShort = ['Did', 'Dil', 'Dim', 'Dic', 'Dia', 'Dih', 'Dis'],
  49. weekdaysMin = ['Dò', 'Lu', 'Mà', 'Ci', 'Ar', 'Ha', 'Sa'];
  50. var gd = moment.defineLocale('gd', {
  51. months: months,
  52. monthsShort: monthsShort,
  53. monthsParseExact: true,
  54. weekdays: weekdays,
  55. weekdaysShort: weekdaysShort,
  56. weekdaysMin: weekdaysMin,
  57. longDateFormat: {
  58. LT: 'HH:mm',
  59. LTS: 'HH:mm:ss',
  60. L: 'DD/MM/YYYY',
  61. LL: 'D MMMM YYYY',
  62. LLL: 'D MMMM YYYY HH:mm',
  63. LLLL: 'dddd, D MMMM YYYY HH:mm',
  64. },
  65. calendar: {
  66. sameDay: '[An-diugh aig] LT',
  67. nextDay: '[A-màireach aig] LT',
  68. nextWeek: 'dddd [aig] LT',
  69. lastDay: '[An-dè aig] LT',
  70. lastWeek: 'dddd [seo chaidh] [aig] LT',
  71. sameElse: 'L',
  72. },
  73. relativeTime: {
  74. future: 'ann an %s',
  75. past: 'bho chionn %s',
  76. s: 'beagan diogan',
  77. ss: '%d diogan',
  78. m: 'mionaid',
  79. mm: '%d mionaidean',
  80. h: 'uair',
  81. hh: '%d uairean',
  82. d: 'latha',
  83. dd: '%d latha',
  84. M: 'mìos',
  85. MM: '%d mìosan',
  86. y: 'bliadhna',
  87. yy: '%d bliadhna',
  88. },
  89. dayOfMonthOrdinalParse: /\d{1,2}(d|na|mh)/,
  90. ordinal: function (number) {
  91. var output = number === 1 ? 'd' : number % 10 === 2 ? 'na' : 'mh';
  92. return number + output;
  93. },
  94. week: {
  95. dow: 1, // Monday is the first day of the week.
  96. doy: 4, // The week that contains Jan 4th is the first week of the year.
  97. },
  98. });
  99. return gd;
  100. })));