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.

gl.js 2.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. //! moment.js locale configuration
  2. //! locale : Galician [gl]
  3. //! author : Juan G. Hurtado : https://github.com/juanghurtado
  4. import moment from '../moment';
  5. export default moment.defineLocale('gl', {
  6. months: 'xaneiro_febreiro_marzo_abril_maio_xuño_xullo_agosto_setembro_outubro_novembro_decembro'.split(
  7. '_'
  8. ),
  9. monthsShort:
  10. 'xan._feb._mar._abr._mai._xuñ._xul._ago._set._out._nov._dec.'.split(
  11. '_'
  12. ),
  13. monthsParseExact: true,
  14. weekdays: 'domingo_luns_martes_mércores_xoves_venres_sábado'.split('_'),
  15. weekdaysShort: 'dom._lun._mar._mér._xov._ven._sáb.'.split('_'),
  16. weekdaysMin: 'do_lu_ma_mé_xo_ve_sá'.split('_'),
  17. weekdaysParseExact: true,
  18. longDateFormat: {
  19. LT: 'H:mm',
  20. LTS: 'H:mm:ss',
  21. L: 'DD/MM/YYYY',
  22. LL: 'D [de] MMMM [de] YYYY',
  23. LLL: 'D [de] MMMM [de] YYYY H:mm',
  24. LLLL: 'dddd, D [de] MMMM [de] YYYY H:mm',
  25. },
  26. calendar: {
  27. sameDay: function () {
  28. return '[hoxe ' + (this.hours() !== 1 ? 'ás' : 'á') + '] LT';
  29. },
  30. nextDay: function () {
  31. return '[mañá ' + (this.hours() !== 1 ? 'ás' : 'á') + '] LT';
  32. },
  33. nextWeek: function () {
  34. return 'dddd [' + (this.hours() !== 1 ? 'ás' : 'a') + '] LT';
  35. },
  36. lastDay: function () {
  37. return '[onte ' + (this.hours() !== 1 ? 'á' : 'a') + '] LT';
  38. },
  39. lastWeek: function () {
  40. return (
  41. '[o] dddd [pasado ' + (this.hours() !== 1 ? 'ás' : 'a') + '] LT'
  42. );
  43. },
  44. sameElse: 'L',
  45. },
  46. relativeTime: {
  47. future: function (str) {
  48. if (str.indexOf('un') === 0) {
  49. return 'n' + str;
  50. }
  51. return 'en ' + str;
  52. },
  53. past: 'hai %s',
  54. s: 'uns segundos',
  55. ss: '%d segundos',
  56. m: 'un minuto',
  57. mm: '%d minutos',
  58. h: 'unha hora',
  59. hh: '%d horas',
  60. d: 'un día',
  61. dd: '%d días',
  62. M: 'un mes',
  63. MM: '%d meses',
  64. y: 'un ano',
  65. yy: '%d anos',
  66. },
  67. dayOfMonthOrdinalParse: /\d{1,2}º/,
  68. ordinal: '%dº',
  69. week: {
  70. dow: 1, // Monday is the first day of the week.
  71. doy: 4, // The week that contains Jan 4th is the first week of the year.
  72. },
  73. });