|
1
|
|
|
//! moment.js locale configuration |
|
2
|
|
|
//! locale : Galician [gl] |
|
3
|
|
|
//! author : Juan G. Hurtado : https://github.com/juanghurtado |
|
4
|
|
|
|
|
5
|
|
View Code Duplication |
;(function (global, factory) { |
|
|
|
|
|
|
6
|
|
|
typeof exports === 'object' && typeof module !== 'undefined' |
|
7
|
|
|
&& typeof require === 'function' ? factory(require('../moment')) : |
|
8
|
|
|
typeof define === 'function' && define.amd ? define(['../moment'], factory) : |
|
9
|
|
|
factory(global.moment) |
|
10
|
|
|
}(this, function (moment) { 'use strict'; |
|
11
|
|
|
|
|
12
|
|
|
|
|
13
|
|
|
var gl = moment.defineLocale('gl', { |
|
14
|
|
|
months : 'Xaneiro_Febreiro_Marzo_Abril_Maio_Xuño_Xullo_Agosto_Setembro_Outubro_Novembro_Decembro'.split('_'), |
|
15
|
|
|
monthsShort : 'Xan._Feb._Mar._Abr._Mai._Xuñ._Xul._Ago._Set._Out._Nov._Dec.'.split('_'), |
|
16
|
|
|
monthsParseExact: true, |
|
17
|
|
|
weekdays : 'Domingo_Luns_Martes_Mércores_Xoves_Venres_Sábado'.split('_'), |
|
18
|
|
|
weekdaysShort : 'Dom._Lun._Mar._Mér._Xov._Ven._Sáb.'.split('_'), |
|
19
|
|
|
weekdaysMin : 'Do_Lu_Ma_Mé_Xo_Ve_Sá'.split('_'), |
|
20
|
|
|
weekdaysParseExact : true, |
|
21
|
|
|
longDateFormat : { |
|
22
|
|
|
LT : 'H:mm', |
|
23
|
|
|
LTS : 'H:mm:ss', |
|
24
|
|
|
L : 'DD/MM/YYYY', |
|
25
|
|
|
LL : 'D MMMM YYYY', |
|
26
|
|
|
LLL : 'D MMMM YYYY H:mm', |
|
27
|
|
|
LLLL : 'dddd D MMMM YYYY H:mm' |
|
28
|
|
|
}, |
|
29
|
|
|
calendar : { |
|
30
|
|
|
sameDay : function () { |
|
31
|
|
|
return '[hoxe ' + ((this.hours() !== 1) ? 'ás' : 'á') + '] LT'; |
|
32
|
|
|
}, |
|
33
|
|
|
nextDay : function () { |
|
34
|
|
|
return '[mañá ' + ((this.hours() !== 1) ? 'ás' : 'á') + '] LT'; |
|
35
|
|
|
}, |
|
36
|
|
|
nextWeek : function () { |
|
37
|
|
|
return 'dddd [' + ((this.hours() !== 1) ? 'ás' : 'a') + '] LT'; |
|
38
|
|
|
}, |
|
39
|
|
|
lastDay : function () { |
|
40
|
|
|
return '[onte ' + ((this.hours() !== 1) ? 'á' : 'a') + '] LT'; |
|
41
|
|
|
}, |
|
42
|
|
|
lastWeek : function () { |
|
43
|
|
|
return '[o] dddd [pasado ' + ((this.hours() !== 1) ? 'ás' : 'a') + '] LT'; |
|
44
|
|
|
}, |
|
45
|
|
|
sameElse : 'L' |
|
46
|
|
|
}, |
|
47
|
|
|
relativeTime : { |
|
48
|
|
|
future : function (str) { |
|
49
|
|
|
if (str === 'uns segundos') { |
|
50
|
|
|
return 'nuns segundos'; |
|
51
|
|
|
} |
|
52
|
|
|
return 'en ' + str; |
|
53
|
|
|
}, |
|
54
|
|
|
past : 'hai %s', |
|
55
|
|
|
s : 'uns 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
|
|
|
ordinalParse : /\d{1,2}º/, |
|
68
|
|
|
ordinal : '%dº', |
|
69
|
|
|
week : { |
|
70
|
|
|
dow : 1, // Monday is the first day of the week. |
|
71
|
|
|
doy : 7 // The week that contains Jan 1st is the first week of the year. |
|
72
|
|
|
} |
|
73
|
|
|
}); |
|
74
|
|
|
|
|
75
|
|
|
return gl; |
|
76
|
|
|
|
|
77
|
|
|
})); |