resources: Bump moment.js from 2.15.0 to 2.19.3
[lhc/web/wiklou.git] / resources / lib / moment / locale / gom-latn.js
1 //! moment.js locale configuration
2 //! locale : Konkani Latin script [gom-latn]
3 //! author : The Discoverer : https://github.com/WikiDiscoverer
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 function processRelativeTime(number, withoutSuffix, key, isFuture) {
14 var format = {
15 's': ['thodde secondanim', 'thodde second'],
16 'm': ['eka mintan', 'ek minute'],
17 'mm': [number + ' mintanim', number + ' mintam'],
18 'h': ['eka horan', 'ek hor'],
19 'hh': [number + ' horanim', number + ' hor'],
20 'd': ['eka disan', 'ek dis'],
21 'dd': [number + ' disanim', number + ' dis'],
22 'M': ['eka mhoinean', 'ek mhoino'],
23 'MM': [number + ' mhoineanim', number + ' mhoine'],
24 'y': ['eka vorsan', 'ek voros'],
25 'yy': [number + ' vorsanim', number + ' vorsam']
26 };
27 return withoutSuffix ? format[key][0] : format[key][1];
28 }
29
30 var gomLatn = moment.defineLocale('gom-latn', {
31 months : 'Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr'.split('_'),
32 monthsShort : 'Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.'.split('_'),
33 monthsParseExact : true,
34 weekdays : 'Aitar_Somar_Mongllar_Budvar_Brestar_Sukrar_Son\'var'.split('_'),
35 weekdaysShort : 'Ait._Som._Mon._Bud._Bre._Suk._Son.'.split('_'),
36 weekdaysMin : 'Ai_Sm_Mo_Bu_Br_Su_Sn'.split('_'),
37 weekdaysParseExact : true,
38 longDateFormat : {
39 LT : 'A h:mm [vazta]',
40 LTS : 'A h:mm:ss [vazta]',
41 L : 'DD-MM-YYYY',
42 LL : 'D MMMM YYYY',
43 LLL : 'D MMMM YYYY A h:mm [vazta]',
44 LLLL : 'dddd, MMMM[achea] Do, YYYY, A h:mm [vazta]',
45 llll: 'ddd, D MMM YYYY, A h:mm [vazta]'
46 },
47 calendar : {
48 sameDay: '[Aiz] LT',
49 nextDay: '[Faleam] LT',
50 nextWeek: '[Ieta to] dddd[,] LT',
51 lastDay: '[Kal] LT',
52 lastWeek: '[Fatlo] dddd[,] LT',
53 sameElse: 'L'
54 },
55 relativeTime : {
56 future : '%s',
57 past : '%s adim',
58 s : processRelativeTime,
59 m : processRelativeTime,
60 mm : processRelativeTime,
61 h : processRelativeTime,
62 hh : processRelativeTime,
63 d : processRelativeTime,
64 dd : processRelativeTime,
65 M : processRelativeTime,
66 MM : processRelativeTime,
67 y : processRelativeTime,
68 yy : processRelativeTime
69 },
70 dayOfMonthOrdinalParse : /\d{1,2}(er)/,
71 ordinal : function (number, period) {
72 switch (period) {
73 // the ordinal 'er' only applies to day of the month
74 case 'D':
75 return number + 'er';
76 default:
77 case 'M':
78 case 'Q':
79 case 'DDD':
80 case 'd':
81 case 'w':
82 case 'W':
83 return number;
84 }
85 },
86 week : {
87 dow : 1, // Monday is the first day of the week.
88 doy : 4 // The week that contains Jan 4th is the first week of the year.
89 },
90 meridiemParse: /rati|sokalli|donparam|sanje/,
91 meridiemHour : function (hour, meridiem) {
92 if (hour === 12) {
93 hour = 0;
94 }
95 if (meridiem === 'rati') {
96 return hour < 4 ? hour : hour + 12;
97 } else if (meridiem === 'sokalli') {
98 return hour;
99 } else if (meridiem === 'donparam') {
100 return hour > 12 ? hour : hour + 12;
101 } else if (meridiem === 'sanje') {
102 return hour + 12;
103 }
104 },
105 meridiem : function (hour, minute, isLower) {
106 if (hour < 4) {
107 return 'rati';
108 } else if (hour < 12) {
109 return 'sokalli';
110 } else if (hour < 16) {
111 return 'donparam';
112 } else if (hour < 20) {
113 return 'sanje';
114 } else {
115 return 'rati';
116 }
117 }
118 });
119
120 return gomLatn;
121
122 })));