1 |
|
2 |
|
3 |
|
4 |
|
5 | ;(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 |
|
14 | var gl = moment.defineLocale('gl', {
|
15 | months: 'xaneiro_febreiro_marzo_abril_maio_xuño_xullo_agosto_setembro_outubro_novembro_decembro'.split(
|
16 | '_'
|
17 | ),
|
18 | monthsShort:
|
19 | 'xan._feb._mar._abr._mai._xuñ._xul._ago._set._out._nov._dec.'.split(
|
20 | '_'
|
21 | ),
|
22 | monthsParseExact: true,
|
23 | weekdays: 'domingo_luns_martes_mércores_xoves_venres_sábado'.split('_'),
|
24 | weekdaysShort: 'dom._lun._mar._mér._xov._ven._sáb.'.split('_'),
|
25 | weekdaysMin: 'do_lu_ma_mé_xo_ve_sá'.split('_'),
|
26 | weekdaysParseExact: true,
|
27 | longDateFormat: {
|
28 | LT: 'H:mm',
|
29 | LTS: 'H:mm:ss',
|
30 | L: 'DD/MM/YYYY',
|
31 | LL: 'D [de] MMMM [de] YYYY',
|
32 | LLL: 'D [de] MMMM [de] YYYY H:mm',
|
33 | LLLL: 'dddd, D [de] MMMM [de] YYYY H:mm',
|
34 | },
|
35 | calendar: {
|
36 | sameDay: function () {
|
37 | return '[hoxe ' + (this.hours() !== 1 ? 'ás' : 'á') + '] LT';
|
38 | },
|
39 | nextDay: function () {
|
40 | return '[mañá ' + (this.hours() !== 1 ? 'ás' : 'á') + '] LT';
|
41 | },
|
42 | nextWeek: function () {
|
43 | return 'dddd [' + (this.hours() !== 1 ? 'ás' : 'a') + '] LT';
|
44 | },
|
45 | lastDay: function () {
|
46 | return '[onte ' + (this.hours() !== 1 ? 'á' : 'a') + '] LT';
|
47 | },
|
48 | lastWeek: function () {
|
49 | return (
|
50 | '[o] dddd [pasado ' + (this.hours() !== 1 ? 'ás' : 'a') + '] LT'
|
51 | );
|
52 | },
|
53 | sameElse: 'L',
|
54 | },
|
55 | relativeTime: {
|
56 | future: function (str) {
|
57 | if (str.indexOf('un') === 0) {
|
58 | return 'n' + str;
|
59 | }
|
60 | return 'en ' + str;
|
61 | },
|
62 | past: 'hai %s',
|
63 | s: 'uns segundos',
|
64 | ss: '%d segundos',
|
65 | m: 'un minuto',
|
66 | mm: '%d minutos',
|
67 | h: 'unha hora',
|
68 | hh: '%d horas',
|
69 | d: 'un día',
|
70 | dd: '%d días',
|
71 | M: 'un mes',
|
72 | MM: '%d meses',
|
73 | y: 'un ano',
|
74 | yy: '%d anos',
|
75 | },
|
76 | dayOfMonthOrdinalParse: /\d{1,2}º/,
|
77 | ordinal: '%dº',
|
78 | week: {
|
79 | dow: 1,
|
80 | doy: 4,
|
81 | },
|
82 | });
|
83 |
|
84 | return gl;
|
85 |
|
86 | })));
|