2016-02-06 04:42:48 +08:00
|
|
|
//! moment.js locale configuration
|
2020-11-11 09:34:26 +08:00
|
|
|
//! locale : Galician [gl]
|
|
|
|
//! author : Juan G. Hurtado : https://github.com/juanghurtado
|
2014-08-21 02:41:50 +08:00
|
|
|
|
2016-02-06 04:42:48 +08:00
|
|
|
;(function (global, factory) {
|
|
|
|
typeof exports === 'object' && typeof module !== 'undefined'
|
|
|
|
&& typeof require === 'function' ? factory(require('../moment')) :
|
2017-04-20 12:24:20 +08:00
|
|
|
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
|
2016-02-06 04:42:48 +08:00
|
|
|
factory(global.moment)
|
2017-04-20 12:24:20 +08:00
|
|
|
}(this, (function (moment) { 'use strict';
|
2016-02-06 04:42:48 +08:00
|
|
|
|
2020-11-11 09:34:26 +08:00
|
|
|
//! moment.js locale configuration
|
2016-02-06 04:42:48 +08:00
|
|
|
|
2018-04-26 15:15:53 +08:00
|
|
|
var gl = moment.defineLocale('gl', {
|
2020-11-11 09:34:26 +08:00
|
|
|
months: 'xaneiro_febreiro_marzo_abril_maio_xuño_xullo_agosto_setembro_outubro_novembro_decembro'.split(
|
|
|
|
'_'
|
|
|
|
),
|
|
|
|
monthsShort: 'xan._feb._mar._abr._mai._xuñ._xul._ago._set._out._nov._dec.'.split(
|
|
|
|
'_'
|
|
|
|
),
|
2018-04-26 15:15:53 +08:00
|
|
|
monthsParseExact: true,
|
2020-11-11 09:34:26 +08:00
|
|
|
weekdays: 'domingo_luns_martes_mércores_xoves_venres_sábado'.split('_'),
|
|
|
|
weekdaysShort: 'dom._lun._mar._mér._xov._ven._sáb.'.split('_'),
|
|
|
|
weekdaysMin: 'do_lu_ma_mé_xo_ve_sá'.split('_'),
|
|
|
|
weekdaysParseExact: true,
|
|
|
|
longDateFormat: {
|
|
|
|
LT: 'H:mm',
|
|
|
|
LTS: 'H:mm:ss',
|
|
|
|
L: 'DD/MM/YYYY',
|
|
|
|
LL: 'D [de] MMMM [de] YYYY',
|
|
|
|
LLL: 'D [de] MMMM [de] YYYY H:mm',
|
|
|
|
LLLL: 'dddd, D [de] MMMM [de] YYYY H:mm',
|
2014-08-21 02:41:50 +08:00
|
|
|
},
|
2020-11-11 09:34:26 +08:00
|
|
|
calendar: {
|
|
|
|
sameDay: function () {
|
|
|
|
return '[hoxe ' + (this.hours() !== 1 ? 'ás' : 'á') + '] LT';
|
2018-04-26 15:15:53 +08:00
|
|
|
},
|
2020-11-11 09:34:26 +08:00
|
|
|
nextDay: function () {
|
|
|
|
return '[mañá ' + (this.hours() !== 1 ? 'ás' : 'á') + '] LT';
|
2018-04-26 15:15:53 +08:00
|
|
|
},
|
2020-11-11 09:34:26 +08:00
|
|
|
nextWeek: function () {
|
|
|
|
return 'dddd [' + (this.hours() !== 1 ? 'ás' : 'a') + '] LT';
|
2018-04-26 15:15:53 +08:00
|
|
|
},
|
2020-11-11 09:34:26 +08:00
|
|
|
lastDay: function () {
|
|
|
|
return '[onte ' + (this.hours() !== 1 ? 'á' : 'a') + '] LT';
|
2018-04-26 15:15:53 +08:00
|
|
|
},
|
2020-11-11 09:34:26 +08:00
|
|
|
lastWeek: function () {
|
|
|
|
return (
|
|
|
|
'[o] dddd [pasado ' + (this.hours() !== 1 ? 'ás' : 'a') + '] LT'
|
|
|
|
);
|
2018-04-26 15:15:53 +08:00
|
|
|
},
|
2020-11-11 09:34:26 +08:00
|
|
|
sameElse: 'L',
|
2014-08-21 02:41:50 +08:00
|
|
|
},
|
2020-11-11 09:34:26 +08:00
|
|
|
relativeTime: {
|
|
|
|
future: function (str) {
|
2018-04-26 15:15:53 +08:00
|
|
|
if (str.indexOf('un') === 0) {
|
|
|
|
return 'n' + str;
|
|
|
|
}
|
|
|
|
return 'en ' + str;
|
|
|
|
},
|
2020-11-11 09:34:26 +08:00
|
|
|
past: 'hai %s',
|
|
|
|
s: 'uns segundos',
|
|
|
|
ss: '%d segundos',
|
|
|
|
m: 'un minuto',
|
|
|
|
mm: '%d minutos',
|
|
|
|
h: 'unha hora',
|
|
|
|
hh: '%d horas',
|
|
|
|
d: 'un día',
|
|
|
|
dd: '%d días',
|
|
|
|
M: 'un mes',
|
|
|
|
MM: '%d meses',
|
|
|
|
y: 'un ano',
|
|
|
|
yy: '%d anos',
|
|
|
|
},
|
|
|
|
dayOfMonthOrdinalParse: /\d{1,2}º/,
|
|
|
|
ordinal: '%dº',
|
|
|
|
week: {
|
|
|
|
dow: 1, // Monday is the first day of the week.
|
|
|
|
doy: 4, // The week that contains Jan 4th is the first week of the year.
|
2014-08-21 02:41:50 +08:00
|
|
|
},
|
2018-04-26 15:15:53 +08:00
|
|
|
});
|
2016-02-06 04:42:48 +08:00
|
|
|
|
2018-04-26 15:15:53 +08:00
|
|
|
return gl;
|
2016-02-06 04:42:48 +08:00
|
|
|
|
2017-04-20 12:24:20 +08:00
|
|
|
})));
|