Node-Red configuration
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.

ga.js 2.3KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. //! moment.js locale configuration
  2. //! locale : Irish or Irish Gaelic [ga]
  3. //! author : André Silva : https://github.com/askpt
  4. import moment from '../moment';
  5. var months = [
  6. 'Eanáir',
  7. 'Feabhra',
  8. 'Márta',
  9. 'Aibreán',
  10. 'Bealtaine',
  11. 'Meitheamh',
  12. 'Iúil',
  13. 'Lúnasa',
  14. 'Meán Fómhair',
  15. 'Deireadh Fómhair',
  16. 'Samhain',
  17. 'Nollaig',
  18. ],
  19. monthsShort = [
  20. 'Ean',
  21. 'Feabh',
  22. 'Márt',
  23. 'Aib',
  24. 'Beal',
  25. 'Meith',
  26. 'Iúil',
  27. 'Lún',
  28. 'M.F.',
  29. 'D.F.',
  30. 'Samh',
  31. 'Noll',
  32. ],
  33. weekdays = [
  34. 'Dé Domhnaigh',
  35. 'Dé Luain',
  36. 'Dé Máirt',
  37. 'Dé Céadaoin',
  38. 'Déardaoin',
  39. 'Dé hAoine',
  40. 'Dé Sathairn',
  41. ],
  42. weekdaysShort = ['Domh', 'Luan', 'Máirt', 'Céad', 'Déar', 'Aoine', 'Sath'],
  43. weekdaysMin = ['Do', 'Lu', 'Má', 'Cé', 'Dé', 'A', 'Sa'];
  44. export default moment.defineLocale('ga', {
  45. months: months,
  46. monthsShort: monthsShort,
  47. monthsParseExact: true,
  48. weekdays: weekdays,
  49. weekdaysShort: weekdaysShort,
  50. weekdaysMin: weekdaysMin,
  51. longDateFormat: {
  52. LT: 'HH:mm',
  53. LTS: 'HH:mm:ss',
  54. L: 'DD/MM/YYYY',
  55. LL: 'D MMMM YYYY',
  56. LLL: 'D MMMM YYYY HH:mm',
  57. LLLL: 'dddd, D MMMM YYYY HH:mm',
  58. },
  59. calendar: {
  60. sameDay: '[Inniu ag] LT',
  61. nextDay: '[Amárach ag] LT',
  62. nextWeek: 'dddd [ag] LT',
  63. lastDay: '[Inné ag] LT',
  64. lastWeek: 'dddd [seo caite] [ag] LT',
  65. sameElse: 'L',
  66. },
  67. relativeTime: {
  68. future: 'i %s',
  69. past: '%s ó shin',
  70. s: 'cúpla soicind',
  71. ss: '%d soicind',
  72. m: 'nóiméad',
  73. mm: '%d nóiméad',
  74. h: 'uair an chloig',
  75. hh: '%d uair an chloig',
  76. d: 'lá',
  77. dd: '%d lá',
  78. M: 'mí',
  79. MM: '%d míonna',
  80. y: 'bliain',
  81. yy: '%d bliain',
  82. },
  83. dayOfMonthOrdinalParse: /\d{1,2}(d|na|mh)/,
  84. ordinal: function (number) {
  85. var output = number === 1 ? 'd' : number % 10 === 2 ? 'na' : 'mh';
  86. return number + output;
  87. },
  88. week: {
  89. dow: 1, // Monday is the first day of the week.
  90. doy: 4, // The week that contains Jan 4th is the first week of the year.
  91. },
  92. });