gl.js 2.7 KB

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