Debian Codegraph @

resources/lib/moment/locale/gl.js

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