UNPKG

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