1 // moment.js locale configuration
2 // locale : galician (gl)
3 // author : Juan G. Hurtado : https://github.com/juanghurtado
6 // Comment out broken wrapper, see T145382
7 /*if (typeof define === 'function' && define.amd) {
8 define(['moment'], factory); // AMD
9 } else if (typeof exports === 'object') {
10 module.exports = factory(require('../moment')); // Node
12 factory((typeof global !== 'undefined' ? global : this).moment); // node or other global
16 return moment.defineLocale('gl', {
17 months : 'Xaneiro_Febreiro_Marzo_Abril_Maio_Xuño_Xullo_Agosto_Setembro_Outubro_Novembro_Decembro'.split('_'),
18 monthsShort : 'Xan._Feb._Mar._Abr._Mai._Xuñ._Xul._Ago._Set._Out._Nov._Dec.'.split('_'),
19 weekdays : 'Domingo_Luns_Martes_Mércores_Xoves_Venres_Sábado'.split('_'),
20 weekdaysShort : 'Dom._Lun._Mar._Mér._Xov._Ven._Sáb.'.split('_'),
21 weekdaysMin : 'Do_Lu_Ma_Mé_Xo_Ve_Sá'.split('_'),
27 LLL : 'D MMMM YYYY LT',
28 LLLL : 'dddd D MMMM YYYY LT'
31 sameDay : function () {
32 return '[hoxe ' + ((this.hours() !== 1) ? 'ás' : 'á') + '] LT';
34 nextDay : function () {
35 return '[mañá ' + ((this.hours() !== 1) ? 'ás' : 'á') + '] LT';
37 nextWeek : function () {
38 return 'dddd [' + ((this.hours() !== 1) ? 'ás' : 'a') + '] LT';
40 lastDay : function () {
41 return '[onte ' + ((this.hours() !== 1) ? 'á' : 'a') + '] LT';
43 lastWeek : function () {
44 return '[o] dddd [pasado ' + ((this.hours() !== 1) ? 'ás' : 'a') + '] LT';
49 future : function (str) {
50 if (str === 'uns segundos') {
51 return 'nuns segundos';
68 ordinalParse : /\d{1,2}º/,
71 dow : 1, // Monday is the first day of the week.
72 doy : 7 // The week that contains Jan 1st is the first week of the year.