gl.js 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. //! moment.js locale configuration
  2. //! locale : Galician [gl]
  3. //! author : Juan G. Hurtado : https://github.com/juanghurtado
  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. var gl = moment.defineLocale('gl', {
  11. months : 'xaneiro_febreiro_marzo_abril_maio_xuño_xullo_agosto_setembro_outubro_novembro_decembro'.split('_'),
  12. monthsShort : 'xan._feb._mar._abr._mai._xuñ._xul._ago._set._out._nov._dec.'.split('_'),
  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 '[o] dddd [pasado ' + ((this.hours() !== 1) ? 'ás' : 'a') + '] LT';
  41. },
  42. sameElse : 'L'
  43. },
  44. relativeTime : {
  45. future : function (str) {
  46. if (str.indexOf('un') === 0) {
  47. return 'n' + str;
  48. }
  49. return 'en ' + str;
  50. },
  51. past : 'hai %s',
  52. s : 'uns segundos',
  53. m : 'un minuto',
  54. mm : '%d minutos',
  55. h : 'unha hora',
  56. hh : '%d horas',
  57. d : 'un día',
  58. dd : '%d días',
  59. M : 'un mes',
  60. MM : '%d meses',
  61. y : 'un ano',
  62. yy : '%d anos'
  63. },
  64. dayOfMonthOrdinalParse : /\d{1,2}º/,
  65. ordinal : '%dº',
  66. week : {
  67. dow : 1, // Monday is the first day of the week.
  68. doy : 4 // The week that contains Jan 4th is the first week of the year.
  69. }
  70. });
  71. return gl;
  72. })));