You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

6371 lines
247 KiB

  1. (function (global, factory) {
  2. typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('../moment')) :
  3. typeof define === 'function' && define.amd ? define(['moment'], factory) :
  4. factory(global.moment)
  5. }(this, function (moment) { 'use strict';
  6. //! moment.js locale configuration
  7. //! locale : afrikaans (af)
  8. //! author : Werner Mollentze : https://github.com/wernerm
  9. var af = moment.defineLocale('af', {
  10. months : 'Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember'.split('_'),
  11. monthsShort : 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des'.split('_'),
  12. weekdays : 'Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag'.split('_'),
  13. weekdaysShort : 'Son_Maa_Din_Woe_Don_Vry_Sat'.split('_'),
  14. weekdaysMin : 'So_Ma_Di_Wo_Do_Vr_Sa'.split('_'),
  15. meridiemParse: /vm|nm/i,
  16. isPM : function (input) {
  17. return /^nm$/i.test(input);
  18. },
  19. meridiem : function (hours, minutes, isLower) {
  20. if (hours < 12) {
  21. return isLower ? 'vm' : 'VM';
  22. } else {
  23. return isLower ? 'nm' : 'NM';
  24. }
  25. },
  26. longDateFormat : {
  27. LT : 'HH:mm',
  28. LTS : 'LT:ss',
  29. L : 'DD/MM/YYYY',
  30. LL : 'D MMMM YYYY',
  31. LLL : 'D MMMM YYYY LT',
  32. LLLL : 'dddd, D MMMM YYYY LT'
  33. },
  34. calendar : {
  35. sameDay : '[Vandag om] LT',
  36. nextDay : '[Môre om] LT',
  37. nextWeek : 'dddd [om] LT',
  38. lastDay : '[Gister om] LT',
  39. lastWeek : '[Laas] dddd [om] LT',
  40. sameElse : 'L'
  41. },
  42. relativeTime : {
  43. future : 'oor %s',
  44. past : '%s gelede',
  45. s : '\'n paar sekondes',
  46. m : '\'n minuut',
  47. mm : '%d minute',
  48. h : '\'n uur',
  49. hh : '%d ure',
  50. d : '\'n dag',
  51. dd : '%d dae',
  52. M : '\'n maand',
  53. MM : '%d maande',
  54. y : '\'n jaar',
  55. yy : '%d jaar'
  56. },
  57. ordinalParse: /\d{1,2}(ste|de)/,
  58. ordinal : function (number) {
  59. return number + ((number === 1 || number === 8 || number >= 20) ? 'ste' : 'de'); // Thanks to Joris Röling : https://github.com/jjupiter
  60. },
  61. week : {
  62. dow : 1, // Maandag is die eerste dag van die week.
  63. doy : 4 // Die week wat die 4de Januarie bevat is die eerste week van die jaar.
  64. }
  65. });
  66. //! moment.js locale configuration
  67. //! locale : Moroccan Arabic (ar-ma)
  68. //! author : ElFadili Yassine : https://github.com/ElFadiliY
  69. //! author : Abdel Said : https://github.com/abdelsaid
  70. var ar_ma = moment.defineLocale('ar-ma', {
  71. months : 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split('_'),
  72. monthsShort : 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split('_'),
  73. weekdays : 'الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
  74. weekdaysShort : 'احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'),
  75. weekdaysMin : 'ح_ن_ث_ر_خ_ج_س'.split('_'),
  76. longDateFormat : {
  77. LT : 'HH:mm',
  78. LTS : 'LT:ss',
  79. L : 'DD/MM/YYYY',
  80. LL : 'D MMMM YYYY',
  81. LLL : 'D MMMM YYYY LT',
  82. LLLL : 'dddd D MMMM YYYY LT'
  83. },
  84. calendar : {
  85. sameDay: '[اليوم على الساعة] LT',
  86. nextDay: '[غدا على الساعة] LT',
  87. nextWeek: 'dddd [على الساعة] LT',
  88. lastDay: '[أمس على الساعة] LT',
  89. lastWeek: 'dddd [على الساعة] LT',
  90. sameElse: 'L'
  91. },
  92. relativeTime : {
  93. future : 'في %s',
  94. past : 'منذ %s',
  95. s : 'ثوان',
  96. m : 'دقيقة',
  97. mm : '%d دقائق',
  98. h : 'ساعة',
  99. hh : '%d ساعات',
  100. d : 'يوم',
  101. dd : '%d أيام',
  102. M : 'شهر',
  103. MM : '%d أشهر',
  104. y : 'سنة',
  105. yy : '%d سنوات'
  106. },
  107. week : {
  108. dow : 6, // Saturday is the first day of the week.
  109. doy : 12 // The week that contains Jan 1st is the first week of the year.
  110. }
  111. });
  112. //! moment.js locale configuration
  113. //! locale : Arabic Saudi Arabia (ar-sa)
  114. //! author : Suhail Alkowaileet : https://github.com/xsoh
  115. var ar_sa__symbolMap = {
  116. '1': '١',
  117. '2': '٢',
  118. '3': '٣',
  119. '4': '٤',
  120. '5': '٥',
  121. '6': '٦',
  122. '7': '٧',
  123. '8': '٨',
  124. '9': '٩',
  125. '0': '٠'
  126. }, ar_sa__numberMap = {
  127. '١': '1',
  128. '٢': '2',
  129. '٣': '3',
  130. '٤': '4',
  131. '٥': '5',
  132. '٦': '6',
  133. '٧': '7',
  134. '٨': '8',
  135. '٩': '9',
  136. '٠': '0'
  137. };
  138. var ar_sa = moment.defineLocale('ar-sa', {
  139. months : 'يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
  140. monthsShort : 'يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
  141. weekdays : 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
  142. weekdaysShort : 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
  143. weekdaysMin : 'ح_ن_ث_ر_خ_ج_س'.split('_'),
  144. longDateFormat : {
  145. LT : 'HH:mm',
  146. LTS : 'HH:mm:ss',
  147. L : 'DD/MM/YYYY',
  148. LL : 'D MMMM YYYY',
  149. LLL : 'D MMMM YYYY LT',
  150. LLLL : 'dddd D MMMM YYYY LT'
  151. },
  152. meridiemParse: /ص|م/,
  153. isPM : function (input) {
  154. return 'م' === input;
  155. },
  156. meridiem : function (hour, minute, isLower) {
  157. if (hour < 12) {
  158. return 'ص';
  159. } else {
  160. return 'م';
  161. }
  162. },
  163. calendar : {
  164. sameDay: '[اليوم على الساعة] LT',
  165. nextDay: '[غدا على الساعة] LT',
  166. nextWeek: 'dddd [على الساعة] LT',
  167. lastDay: '[أمس على الساعة] LT',
  168. lastWeek: 'dddd [على الساعة] LT',
  169. sameElse: 'L'
  170. },
  171. relativeTime : {
  172. future : 'في %s',
  173. past : 'منذ %s',
  174. s : 'ثوان',
  175. m : 'دقيقة',
  176. mm : '%d دقائق',
  177. h : 'ساعة',
  178. hh : '%d ساعات',
  179. d : 'يوم',
  180. dd : '%d أيام',
  181. M : 'شهر',
  182. MM : '%d أشهر',
  183. y : 'سنة',
  184. yy : '%d سنوات'
  185. },
  186. preparse: function (string) {
  187. return string.replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) {
  188. return ar_sa__numberMap[match];
  189. }).replace(/،/g, ',');
  190. },
  191. postformat: function (string) {
  192. return string.replace(/\d/g, function (match) {
  193. return ar_sa__symbolMap[match];
  194. }).replace(/,/g, '،');
  195. },
  196. week : {
  197. dow : 6, // Saturday is the first day of the week.
  198. doy : 12 // The week that contains Jan 1st is the first week of the year.
  199. }
  200. });
  201. //! moment.js locale configuration
  202. //! locale : Tunisian Arabic (ar-tn)
  203. var ar_tn = moment.defineLocale('ar-tn', {
  204. months: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
  205. monthsShort: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
  206. weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
  207. weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
  208. weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
  209. longDateFormat: {
  210. LT: 'HH:mm',
  211. LTS: 'LT:ss',
  212. L: 'DD/MM/YYYY',
  213. LL: 'D MMMM YYYY',
  214. LLL: 'D MMMM YYYY LT',
  215. LLLL: 'dddd D MMMM YYYY LT'
  216. },
  217. calendar: {
  218. sameDay: '[اليوم على الساعة] LT',
  219. nextDay: '[غدا على الساعة] LT',
  220. nextWeek: 'dddd [على الساعة] LT',
  221. lastDay: '[أمس على الساعة] LT',
  222. lastWeek: 'dddd [على الساعة] LT',
  223. sameElse: 'L'
  224. },
  225. relativeTime: {
  226. future: 'في %s',
  227. past: 'منذ %s',
  228. s: 'ثوان',
  229. m: 'دقيقة',
  230. mm: '%d دقائق',
  231. h: 'ساعة',
  232. hh: '%d ساعات',
  233. d: 'يوم',
  234. dd: '%d أيام',
  235. M: 'شهر',
  236. MM: '%d أشهر',
  237. y: 'سنة',
  238. yy: '%d سنوات'
  239. },
  240. week: {
  241. dow: 1, // Monday is the first day of the week.
  242. doy: 4 // The week that contains Jan 4th is the first week of the year.
  243. }
  244. });
  245. //! moment.js locale configuration
  246. //! Locale: Arabic (ar)
  247. //! Author: Abdel Said: https://github.com/abdelsaid
  248. //! Changes in months, weekdays: Ahmed Elkhatib
  249. //! Native plural forms: forabi https://github.com/forabi
  250. var ar__symbolMap = {
  251. '1': '١',
  252. '2': '٢',
  253. '3': '٣',
  254. '4': '٤',
  255. '5': '٥',
  256. '6': '٦',
  257. '7': '٧',
  258. '8': '٨',
  259. '9': '٩',
  260. '0': '٠'
  261. }, ar__numberMap = {
  262. '١': '1',
  263. '٢': '2',
  264. '٣': '3',
  265. '٤': '4',
  266. '٥': '5',
  267. '٦': '6',
  268. '٧': '7',
  269. '٨': '8',
  270. '٩': '9',
  271. '٠': '0'
  272. }, pluralForm = function (n) {
  273. return n === 0 ? 0 : n === 1 ? 1 : n === 2 ? 2 : n % 100 >= 3 && n % 100 <= 10 ? 3 : n % 100 >= 11 ? 4 : 5;
  274. }, plurals = {
  275. s : ['أقل من ثانية', 'ثانية واحدة', ['ثانيتان', 'ثانيتين'], '%d ثوان', '%d ثانية', '%d ثانية'],
  276. m : ['أقل من دقيقة', 'دقيقة واحدة', ['دقيقتان', 'دقيقتين'], '%d دقائق', '%d دقيقة', '%d دقيقة'],
  277. h : ['أقل من ساعة', 'ساعة واحدة', ['ساعتان', 'ساعتين'], '%d ساعات', '%d ساعة', '%d ساعة'],
  278. d : ['أقل من يوم', 'يوم واحد', ['يومان', 'يومين'], '%d أيام', '%d يومًا', '%d يوم'],
  279. M : ['أقل من شهر', 'شهر واحد', ['شهران', 'شهرين'], '%d أشهر', '%d شهرا', '%d شهر'],
  280. y : ['أقل من عام', 'عام واحد', ['عامان', 'عامين'], '%d أعوام', '%d عامًا', '%d عام']
  281. }, pluralize = function (u) {
  282. return function (number, withoutSuffix, string, isFuture) {
  283. var f = pluralForm(number),
  284. str = plurals[u][pluralForm(number)];
  285. if (f === 2) {
  286. str = str[withoutSuffix ? 0 : 1];
  287. }
  288. return str.replace(/%d/i, number);
  289. };
  290. }, ar__months = [
  291. 'كانون الثاني يناير',
  292. 'شباط فبراير',
  293. 'آذار مارس',
  294. 'نيسان أبريل',
  295. 'أيار مايو',
  296. 'حزيران يونيو',
  297. 'تموز يوليو',
  298. 'آب أغسطس',
  299. 'أيلول سبتمبر',
  300. 'تشرين الأول أكتوبر',
  301. 'تشرين الثاني نوفمبر',
  302. 'كانون الأول ديسمبر'
  303. ];
  304. var ar = moment.defineLocale('ar', {
  305. months : ar__months,
  306. monthsShort : ar__months,
  307. weekdays : 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
  308. weekdaysShort : 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
  309. weekdaysMin : 'ح_ن_ث_ر_خ_ج_س'.split('_'),
  310. longDateFormat : {
  311. LT : 'HH:mm',
  312. LTS : 'HH:mm:ss',
  313. L : 'DD/MM/YYYY',
  314. LL : 'D MMMM YYYY',
  315. LLL : 'D MMMM YYYY LT',
  316. LLLL : 'dddd D MMMM YYYY LT'
  317. },
  318. meridiemParse: /ص|م/,
  319. isPM : function (input) {
  320. return 'م' === input;
  321. },
  322. meridiem : function (hour, minute, isLower) {
  323. if (hour < 12) {
  324. return 'ص';
  325. } else {
  326. return 'م';
  327. }
  328. },
  329. calendar : {
  330. sameDay: '[اليوم عند الساعة] LT',
  331. nextDay: '[غدًا عند الساعة] LT',
  332. nextWeek: 'dddd [عند الساعة] LT',
  333. lastDay: '[أمس عند الساعة] LT',
  334. lastWeek: 'dddd [عند الساعة] LT',
  335. sameElse: 'L'
  336. },
  337. relativeTime : {
  338. future : 'بعد %s',
  339. past : 'منذ %s',
  340. s : pluralize('s'),
  341. m : pluralize('m'),
  342. mm : pluralize('m'),
  343. h : pluralize('h'),
  344. hh : pluralize('h'),
  345. d : pluralize('d'),
  346. dd : pluralize('d'),
  347. M : pluralize('M'),
  348. MM : pluralize('M'),
  349. y : pluralize('y'),
  350. yy : pluralize('y')
  351. },
  352. preparse: function (string) {
  353. return string.replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) {
  354. return ar__numberMap[match];
  355. }).replace(/،/g, ',');
  356. },
  357. postformat: function (string) {
  358. return string.replace(/\d/g, function (match) {
  359. return ar__symbolMap[match];
  360. }).replace(/,/g, '،');
  361. },
  362. week : {
  363. dow : 6, // Saturday is the first day of the week.
  364. doy : 12 // The week that contains Jan 1st is the first week of the year.
  365. }
  366. });
  367. //! moment.js locale configuration
  368. //! locale : azerbaijani (az)
  369. //! author : topchiyev : https://github.com/topchiyev
  370. var az__suffixes = {
  371. 1: '-inci',
  372. 5: '-inci',
  373. 8: '-inci',
  374. 70: '-inci',
  375. 80: '-inci',
  376. 2: '-nci',
  377. 7: '-nci',
  378. 20: '-nci',
  379. 50: '-nci',
  380. 3: '-üncü',
  381. 4: '-üncü',
  382. 100: '-üncü',
  383. 6: '-ncı',
  384. 9: '-uncu',
  385. 10: '-uncu',
  386. 30: '-uncu',
  387. 60: '-ıncı',
  388. 90: '-ıncı'
  389. };
  390. var az = moment.defineLocale('az', {
  391. months : 'yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr'.split('_'),
  392. monthsShort : 'yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek'.split('_'),
  393. weekdays : 'Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə'.split('_'),
  394. weekdaysShort : 'Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən'.split('_'),
  395. weekdaysMin : 'Bz_BE_ÇA_Çə_CA_Cü_Şə'.split('_'),
  396. longDateFormat : {
  397. LT : 'HH:mm',
  398. LTS : 'LT:ss',
  399. L : 'DD.MM.YYYY',
  400. LL : 'D MMMM YYYY',
  401. LLL : 'D MMMM YYYY LT',
  402. LLLL : 'dddd, D MMMM YYYY LT'
  403. },
  404. calendar : {
  405. sameDay : '[bugün saat] LT',
  406. nextDay : '[sabah saat] LT',
  407. nextWeek : '[gələn həftə] dddd [saat] LT',
  408. lastDay : '[dünən] LT',
  409. lastWeek : '[keçən həftə] dddd [saat] LT',
  410. sameElse : 'L'
  411. },
  412. relativeTime : {
  413. future : '%s sonra',
  414. past : '%s əvvəl',
  415. s : 'birneçə saniyyə',
  416. m : 'bir dəqiqə',
  417. mm : '%d dəqiqə',
  418. h : 'bir saat',
  419. hh : '%d saat',
  420. d : 'bir gün',
  421. dd : '%d gün',
  422. M : 'bir ay',
  423. MM : '%d ay',
  424. y : 'bir il',
  425. yy : '%d il'
  426. },
  427. meridiemParse: /gecə|səhər|gündüz|axşam/,
  428. isPM : function (input) {
  429. return /^(gündüz|axşam)$/.test(input);
  430. },
  431. meridiem : function (hour, minute, isLower) {
  432. if (hour < 4) {
  433. return 'gecə';
  434. } else if (hour < 12) {
  435. return 'səhər';
  436. } else if (hour < 17) {
  437. return 'gündüz';
  438. } else {
  439. return 'axşam';
  440. }
  441. },
  442. ordinalParse: /\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/,
  443. ordinal : function (number) {
  444. if (number === 0) { // special case for zero
  445. return number + '-ıncı';
  446. }
  447. var a = number % 10,
  448. b = number % 100 - a,
  449. c = number >= 100 ? 100 : null;
  450. return number + (az__suffixes[a] || az__suffixes[b] || az__suffixes[c]);
  451. },
  452. week : {
  453. dow : 1, // Monday is the first day of the week.
  454. doy : 7 // The week that contains Jan 1st is the first week of the year.
  455. }
  456. });
  457. //! moment.js locale configuration
  458. //! locale : belarusian (be)
  459. //! author : Dmitry Demidov : https://github.com/demidov91
  460. //! author: Praleska: http://praleska.pro/
  461. //! Author : Menelion Elensúle : https://github.com/Oire
  462. function be__plural(word, num) {
  463. var forms = word.split('_');
  464. return num % 10 === 1 && num % 100 !== 11 ? forms[0] : (num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20) ? forms[1] : forms[2]);
  465. }
  466. function be__relativeTimeWithPlural(number, withoutSuffix, key) {
  467. var format = {
  468. 'mm': withoutSuffix ? 'хвіліна_хвіліны_хвілін' : 'хвіліну_хвіліны_хвілін',
  469. 'hh': withoutSuffix ? 'гадзіна_гадзіны_гадзін' : 'гадзіну_гадзіны_гадзін',
  470. 'dd': 'дзень_дні_дзён',
  471. 'MM': 'месяц_месяцы_месяцаў',
  472. 'yy': 'год_гады_гадоў'
  473. };
  474. if (key === 'm') {
  475. return withoutSuffix ? 'хвіліна' : 'хвіліну';
  476. }
  477. else if (key === 'h') {
  478. return withoutSuffix ? 'гадзіна' : 'гадзіну';
  479. }
  480. else {
  481. return number + ' ' + be__plural(format[key], +number);
  482. }
  483. }
  484. function be__monthsCaseReplace(m, format) {
  485. var months = {
  486. 'nominative': 'студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань'.split('_'),
  487. 'accusative': 'студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня'.split('_')
  488. },
  489. nounCase = (/D[oD]?(\[[^\[\]]*\]|\s+)+MMMM?/).test(format) ?
  490. 'accusative' :
  491. 'nominative';
  492. return months[nounCase][m.month()];
  493. }
  494. function be__weekdaysCaseReplace(m, format) {
  495. var weekdays = {
  496. 'nominative': 'нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота'.split('_'),
  497. 'accusative': 'нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу'.split('_')
  498. },
  499. nounCase = (/\[ ?[Вв] ?(?:мінулую|наступную)? ?\] ?dddd/).test(format) ?
  500. 'accusative' :
  501. 'nominative';
  502. return weekdays[nounCase][m.day()];
  503. }
  504. var be = moment.defineLocale('be', {
  505. months : be__monthsCaseReplace,
  506. monthsShort : 'студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж'.split('_'),
  507. weekdays : be__weekdaysCaseReplace,
  508. weekdaysShort : 'нд_пн_ат_ср_чц_пт_сб'.split('_'),
  509. weekdaysMin : 'нд_пн_ат_ср_чц_пт_сб'.split('_'),
  510. longDateFormat : {
  511. LT : 'HH:mm',
  512. LTS : 'LT:ss',
  513. L : 'DD.MM.YYYY',
  514. LL : 'D MMMM YYYY г.',
  515. LLL : 'D MMMM YYYY г., LT',
  516. LLLL : 'dddd, D MMMM YYYY г., LT'
  517. },
  518. calendar : {
  519. sameDay: '[Сёння ў] LT',
  520. nextDay: '[Заўтра ў] LT',
  521. lastDay: '[Учора ў] LT',
  522. nextWeek: function () {
  523. return '[У] dddd [ў] LT';
  524. },
  525. lastWeek: function () {
  526. switch (this.day()) {
  527. case 0:
  528. case 3:
  529. case 5:
  530. case 6:
  531. return '[У мінулую] dddd [ў] LT';
  532. case 1:
  533. case 2:
  534. case 4:
  535. return '[У мінулы] dddd [ў] LT';
  536. }
  537. },
  538. sameElse: 'L'
  539. },
  540. relativeTime : {
  541. future : 'праз %s',
  542. past : '%s таму',
  543. s : 'некалькі секунд',
  544. m : be__relativeTimeWithPlural,
  545. mm : be__relativeTimeWithPlural,
  546. h : be__relativeTimeWithPlural,
  547. hh : be__relativeTimeWithPlural,
  548. d : 'дзень',
  549. dd : be__relativeTimeWithPlural,
  550. M : 'месяц',
  551. MM : be__relativeTimeWithPlural,
  552. y : 'год',
  553. yy : be__relativeTimeWithPlural
  554. },
  555. meridiemParse: /ночы|раніцы|дня|вечара/,
  556. isPM : function (input) {
  557. return /^(дня|вечара)$/.test(input);
  558. },
  559. meridiem : function (hour, minute, isLower) {
  560. if (hour < 4) {
  561. return 'ночы';
  562. } else if (hour < 12) {
  563. return 'раніцы';
  564. } else if (hour < 17) {
  565. return 'дня';
  566. } else {
  567. return 'вечара';
  568. }
  569. },
  570. ordinalParse: /\d{1,2}-(і|ы|га)/,
  571. ordinal: function (number, period) {
  572. switch (period) {
  573. case 'M':
  574. case 'd':
  575. case 'DDD':
  576. case 'w':
  577. case 'W':
  578. return (number % 10 === 2 || number % 10 === 3) && (number % 100 !== 12 && number % 100 !== 13) ? number + '-і' : number + '-ы';
  579. case 'D':
  580. return number + '-га';
  581. default:
  582. return number;
  583. }
  584. },
  585. week : {
  586. dow : 1, // Monday is the first day of the week.
  587. doy : 7 // The week that contains Jan 1st is the first week of the year.
  588. }
  589. });
  590. //! moment.js locale configuration
  591. //! locale : bulgarian (bg)
  592. //! author : Krasen Borisov : https://github.com/kraz
  593. var bg = moment.defineLocale('bg', {
  594. months : 'януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември'.split('_'),
  595. monthsShort : 'янр_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек'.split('_'),
  596. weekdays : 'неделя_понеделник_вторник_сряда_четвъртък_петък_събота'.split('_'),
  597. weekdaysShort : 'нед_пон_вто_сря_чет_пет_съб'.split('_'),
  598. weekdaysMin : 'нд_пн_вт_ср_чт_пт_сб'.split('_'),
  599. longDateFormat : {
  600. LT : 'H:mm',
  601. LTS : 'LT:ss',
  602. L : 'D.MM.YYYY',
  603. LL : 'D MMMM YYYY',
  604. LLL : 'D MMMM YYYY LT',
  605. LLLL : 'dddd, D MMMM YYYY LT'
  606. },
  607. calendar : {
  608. sameDay : '[Днес в] LT',
  609. nextDay : '[Утре в] LT',
  610. nextWeek : 'dddd [в] LT',
  611. lastDay : '[Вчера в] LT',
  612. lastWeek : function () {
  613. switch (this.day()) {
  614. case 0:
  615. case 3:
  616. case 6:
  617. return '[В изминалата] dddd [в] LT';
  618. case 1:
  619. case 2:
  620. case 4:
  621. case 5:
  622. return '[В изминалия] dddd [в] LT';
  623. }
  624. },
  625. sameElse : 'L'
  626. },
  627. relativeTime : {
  628. future : 'след %s',
  629. past : 'преди %s',
  630. s : 'няколко секунди',
  631. m : 'минута',
  632. mm : '%d минути',
  633. h : 'час',
  634. hh : '%d часа',
  635. d : 'ден',
  636. dd : '%d дни',
  637. M : 'месец',
  638. MM : '%d месеца',
  639. y : 'година',
  640. yy : '%d години'
  641. },
  642. ordinalParse: /\d{1,2}-(ев|ен|ти|ви|ри|ми)/,
  643. ordinal : function (number) {
  644. var lastDigit = number % 10,
  645. last2Digits = number % 100;
  646. if (number === 0) {
  647. return number + '-ев';
  648. } else if (last2Digits === 0) {
  649. return number + '-ен';
  650. } else if (last2Digits > 10 && last2Digits < 20) {
  651. return number + '-ти';
  652. } else if (lastDigit === 1) {
  653. return number + '-ви';
  654. } else if (lastDigit === 2) {
  655. return number + '-ри';
  656. } else if (lastDigit === 7 || lastDigit === 8) {
  657. return number + '-ми';
  658. } else {
  659. return number + '-ти';
  660. }
  661. },
  662. week : {
  663. dow : 1, // Monday is the first day of the week.
  664. doy : 7 // The week that contains Jan 1st is the first week of the year.
  665. }
  666. });
  667. //! moment.js locale configuration
  668. //! locale : Bengali (bn)
  669. //! author : Kaushik Gandhi : https://github.com/kaushikgandhi
  670. var bn__symbolMap = {
  671. '1': '১',
  672. '2': '২',
  673. '3': '৩',
  674. '4': '৪',
  675. '5': '৫',
  676. '6': '৬',
  677. '7': '৭',
  678. '8': '৮',
  679. '9': '৯',
  680. '0': '০'
  681. },
  682. bn__numberMap = {
  683. '১': '1',
  684. '২': '2',
  685. '৩': '3',
  686. '৪': '4',
  687. '৫': '5',
  688. '৬': '6',
  689. '৭': '7',
  690. '৮': '8',
  691. '৯': '9',
  692. '০': '0'
  693. };
  694. var bn = moment.defineLocale('bn', {
  695. months : 'জানুয়ারী_ফেবুয়ারী_মার্চ_এপ্রিল_মে_জুন_জুলাই_অগাস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর'.split('_'),
  696. monthsShort : 'জানু_ফেব_মার্চ_এপর_মে_জুন_জুল_অগ_সেপ্ট_অক্টো_নভ_ডিসেম্'.split('_'),
  697. weekdays : 'রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পত্তিবার_শুক্রুবার_শনিবার'.split('_'),
  698. weekdaysShort : 'রবি_সোম_মঙ্গল_বুধ_বৃহস্পত্তি_শুক্রু_শনি'.split('_'),
  699. weekdaysMin : 'রব_সম_মঙ্গ_বু_ব্রিহ_শু_শনি'.split('_'),
  700. longDateFormat : {
  701. LT : 'A h:mm সময়',
  702. LTS : 'A h:mm:ss সময়',
  703. L : 'DD/MM/YYYY',
  704. LL : 'D MMMM YYYY',
  705. LLL : 'D MMMM YYYY, LT',
  706. LLLL : 'dddd, D MMMM YYYY, LT'
  707. },
  708. calendar : {
  709. sameDay : '[আজ] LT',
  710. nextDay : '[আগামীকাল] LT',
  711. nextWeek : 'dddd, LT',
  712. lastDay : '[গতকাল] LT',
  713. lastWeek : '[গত] dddd, LT',
  714. sameElse : 'L'
  715. },
  716. relativeTime : {
  717. future : '%s পরে',
  718. past : '%s আগে',
  719. s : 'কএক সেকেন্ড',
  720. m : 'এক মিনিট',
  721. mm : '%d মিনিট',
  722. h : 'এক ঘন্টা',
  723. hh : '%d ঘন্টা',
  724. d : 'এক দিন',
  725. dd : '%d দিন',
  726. M : 'এক মাস',
  727. MM : '%d মাস',
  728. y : 'এক বছর',
  729. yy : '%d বছর'
  730. },
  731. preparse: function (string) {
  732. return string.replace(/[১২৩৪৫৬৭৮৯০]/g, function (match) {
  733. return bn__numberMap[match];
  734. });
  735. },
  736. postformat: function (string) {
  737. return string.replace(/\d/g, function (match) {
  738. return bn__symbolMap[match];
  739. });
  740. },
  741. meridiemParse: /রাত|শকাল|দুপুর|বিকেল|রাত/,
  742. isPM: function (input) {
  743. return /^(দুপুর|বিকেল|রাত)$/.test(input);
  744. },
  745. //Bengali is a vast language its spoken
  746. //in different forms in various parts of the world.
  747. //I have just generalized with most common one used
  748. meridiem : function (hour, minute, isLower) {
  749. if (hour < 4) {
  750. return 'রাত';
  751. } else if (hour < 10) {
  752. return 'শকাল';
  753. } else if (hour < 17) {
  754. return 'দুপুর';
  755. } else if (hour < 20) {
  756. return 'বিকেল';
  757. } else {
  758. return 'রাত';
  759. }
  760. },
  761. week : {
  762. dow : 0, // Sunday is the first day of the week.
  763. doy : 6 // The week that contains Jan 1st is the first week of the year.
  764. }
  765. });
  766. //! moment.js locale configuration
  767. //! locale : tibetan (bo)
  768. //! author : Thupten N. Chakrishar : https://github.com/vajradog
  769. var bo__symbolMap = {
  770. '1': '༡',
  771. '2': '༢',
  772. '3': '༣',
  773. '4': '༤',
  774. '5': '༥',
  775. '6': '༦',
  776. '7': '༧',
  777. '8': '༨',
  778. '9': '༩',
  779. '0': '༠'
  780. },
  781. bo__numberMap = {
  782. '༡': '1',
  783. '༢': '2',
  784. '༣': '3',
  785. '༤': '4',
  786. '༥': '5',
  787. '༦': '6',
  788. '༧': '7',
  789. '༨': '8',
  790. '༩': '9',
  791. '༠': '0'
  792. };
  793. var bo = moment.defineLocale('bo', {
  794. months : 'ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ'.split('_'),
  795. monthsShort : 'ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ'.split('_'),
  796. weekdays : 'གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་'.split('_'),
  797. weekdaysShort : 'ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་'.split('_'),
  798. weekdaysMin : 'ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་'.split('_'),
  799. longDateFormat : {
  800. LT : 'A h:mm',
  801. LTS : 'LT:ss',
  802. L : 'DD/MM/YYYY',
  803. LL : 'D MMMM YYYY',
  804. LLL : 'D MMMM YYYY, LT',
  805. LLLL : 'dddd, D MMMM YYYY, LT'
  806. },
  807. calendar : {
  808. sameDay : '[དི་རིང] LT',
  809. nextDay : '[སང་ཉིན] LT',
  810. nextWeek : '[བདུན་ཕྲག་རྗེས་མ], LT',
  811. lastDay : '[ཁ་སང] LT',
  812. lastWeek : '[བདུན་ཕྲག་མཐའ་མ] dddd, LT',
  813. sameElse : 'L'
  814. },
  815. relativeTime : {
  816. future : '%s ལ་',
  817. past : '%s སྔན་ལ',
  818. s : 'ལམ་སང',
  819. m : 'སྐར་མ་གཅིག',
  820. mm : '%d སྐར་མ',
  821. h : 'ཆུ་ཚོད་གཅིག',
  822. hh : '%d ཆུ་ཚོད',
  823. d : 'ཉིན་གཅིག',
  824. dd : '%d ཉིན་',
  825. M : 'ཟླ་བ་གཅིག',
  826. MM : '%d ཟླ་བ',
  827. y : 'ལོ་གཅིག',
  828. yy : '%d ལོ'
  829. },
  830. preparse: function (string) {
  831. return string.replace(/[༡༢༣༤༥༦༧༨༩༠]/g, function (match) {
  832. return bo__numberMap[match];
  833. });
  834. },
  835. postformat: function (string) {
  836. return string.replace(/\d/g, function (match) {
  837. return bo__symbolMap[match];
  838. });
  839. },
  840. meridiemParse: /མཚན་མོ|ཞོགས་ཀས|ཉིན་གུང|དགོང་དག|མཚན་མོ/,
  841. isPM: function (input) {
  842. return /^(ཉིན་གུང|དགོང་དག|མཚན་མོ)$/.test(input);
  843. },
  844. meridiem : function (hour, minute, isLower) {
  845. if (hour < 4) {
  846. return 'མཚན་མོ';
  847. } else if (hour < 10) {
  848. return 'ཞོགས་ཀས';
  849. } else if (hour < 17) {
  850. return 'ཉིན་གུང';
  851. } else if (hour < 20) {
  852. return 'དགོང་དག';
  853. } else {
  854. return 'མཚན་མོ';
  855. }
  856. },
  857. week : {
  858. dow : 0, // Sunday is the first day of the week.
  859. doy : 6 // The week that contains Jan 1st is the first week of the year.
  860. }
  861. });
  862. //! moment.js locale configuration
  863. //! locale : breton (br)
  864. //! author : Jean-Baptiste Le Duigou : https://github.com/jbleduigou
  865. function relativeTimeWithMutation(number, withoutSuffix, key) {
  866. var format = {
  867. 'mm': 'munutenn',
  868. 'MM': 'miz',
  869. 'dd': 'devezh'
  870. };
  871. return number + ' ' + mutation(format[key], number);
  872. }
  873. function specialMutationForYears(number) {
  874. switch (lastNumber(number)) {
  875. case 1:
  876. case 3:
  877. case 4:
  878. case 5:
  879. case 9:
  880. return number + ' bloaz';
  881. default:
  882. return number + ' vloaz';
  883. }
  884. }
  885. function lastNumber(number) {
  886. if (number > 9) {
  887. return lastNumber(number % 10);
  888. }
  889. return number;
  890. }
  891. function mutation(text, number) {
  892. if (number === 2) {
  893. return softMutation(text);
  894. }
  895. return text;
  896. }
  897. function softMutation(text) {
  898. var mutationTable = {
  899. 'm': 'v',
  900. 'b': 'v',
  901. 'd': 'z'
  902. };
  903. if (mutationTable[text.charAt(0)] === undefined) {
  904. return text;
  905. }
  906. return mutationTable[text.charAt(0)] + text.substring(1);
  907. }
  908. var br = moment.defineLocale('br', {
  909. months : 'Genver_C\'hwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu'.split('_'),
  910. monthsShort : 'Gen_C\'hwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker'.split('_'),
  911. weekdays : 'Sul_Lun_Meurzh_Merc\'her_Yaou_Gwener_Sadorn'.split('_'),
  912. weekdaysShort : 'Sul_Lun_Meu_Mer_Yao_Gwe_Sad'.split('_'),
  913. weekdaysMin : 'Su_Lu_Me_Mer_Ya_Gw_Sa'.split('_'),
  914. longDateFormat : {
  915. LT : 'h[e]mm A',
  916. LTS : 'h[e]mm:ss A',
  917. L : 'DD/MM/YYYY',
  918. LL : 'D [a viz] MMMM YYYY',
  919. LLL : 'D [a viz] MMMM YYYY LT',
  920. LLLL : 'dddd, D [a viz] MMMM YYYY LT'
  921. },
  922. calendar : {
  923. sameDay : '[Hiziv da] LT',
  924. nextDay : '[Warc\'hoazh da] LT',
  925. nextWeek : 'dddd [da] LT',
  926. lastDay : '[Dec\'h da] LT',
  927. lastWeek : 'dddd [paset da] LT',
  928. sameElse : 'L'
  929. },
  930. relativeTime : {
  931. future : 'a-benn %s',
  932. past : '%s \'zo',
  933. s : 'un nebeud segondennoù',
  934. m : 'ur vunutenn',
  935. mm : relativeTimeWithMutation,
  936. h : 'un eur',
  937. hh : '%d eur',
  938. d : 'un devezh',
  939. dd : relativeTimeWithMutation,
  940. M : 'ur miz',
  941. MM : relativeTimeWithMutation,
  942. y : 'ur bloaz',
  943. yy : specialMutationForYears
  944. },
  945. ordinalParse: /\d{1,2}(añ|vet)/,
  946. ordinal : function (number) {
  947. var output = (number === 1) ? 'añ' : 'vet';
  948. return number + output;
  949. },
  950. week : {
  951. dow : 1, // Monday is the first day of the week.
  952. doy : 4 // The week that contains Jan 4th is the first week of the year.
  953. }
  954. });
  955. //! moment.js locale configuration
  956. //! locale : bosnian (bs)
  957. //! author : Nedim Cholich : https://github.com/frontyard
  958. //! based on (hr) translation by Bojan Marković
  959. function bs__translate(number, withoutSuffix, key) {
  960. var result = number + ' ';
  961. switch (key) {
  962. case 'm':
  963. return withoutSuffix ? 'jedna minuta' : 'jedne minute';
  964. case 'mm':
  965. if (number === 1) {
  966. result += 'minuta';
  967. } else if (number === 2 || number === 3 || number === 4) {
  968. result += 'minute';
  969. } else {
  970. result += 'minuta';
  971. }
  972. return result;
  973. case 'h':
  974. return withoutSuffix ? 'jedan sat' : 'jednog sata';
  975. case 'hh':
  976. if (number === 1) {
  977. result += 'sat';
  978. } else if (number === 2 || number === 3 || number === 4) {
  979. result += 'sata';
  980. } else {
  981. result += 'sati';
  982. }
  983. return result;
  984. case 'dd':
  985. if (number === 1) {
  986. result += 'dan';
  987. } else {
  988. result += 'dana';
  989. }
  990. return result;
  991. case 'MM':
  992. if (number === 1) {
  993. result += 'mjesec';
  994. } else if (number === 2 || number === 3 || number === 4) {
  995. result += 'mjeseca';
  996. } else {
  997. result += 'mjeseci';
  998. }
  999. return result;
  1000. case 'yy':
  1001. if (number === 1) {
  1002. result += 'godina';
  1003. } else if (number === 2 || number === 3 || number === 4) {
  1004. result += 'godine';
  1005. } else {
  1006. result += 'godina';
  1007. }
  1008. return result;
  1009. }
  1010. }
  1011. var bs = moment.defineLocale('bs', {
  1012. months : 'januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar'.split('_'),
  1013. monthsShort : 'jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.'.split('_'),
  1014. weekdays : 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split('_'),
  1015. weekdaysShort : 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),
  1016. weekdaysMin : 'ne_po_ut_sr_če_pe_su'.split('_'),
  1017. longDateFormat : {
  1018. LT : 'H:mm',
  1019. LTS : 'LT:ss',
  1020. L : 'DD. MM. YYYY',
  1021. LL : 'D. MMMM YYYY',
  1022. LLL : 'D. MMMM YYYY LT',
  1023. LLLL : 'dddd, D. MMMM YYYY LT'
  1024. },
  1025. calendar : {
  1026. sameDay : '[danas u] LT',
  1027. nextDay : '[sutra u] LT',
  1028. nextWeek : function () {
  1029. switch (this.day()) {
  1030. case 0:
  1031. return '[u] [nedjelju] [u] LT';
  1032. case 3:
  1033. return '[u] [srijedu] [u] LT';
  1034. case 6:
  1035. return '[u] [subotu] [u] LT';
  1036. case 1:
  1037. case 2:
  1038. case 4:
  1039. case 5:
  1040. return '[u] dddd [u] LT';
  1041. }
  1042. },
  1043. lastDay : '[jučer u] LT',
  1044. lastWeek : function () {
  1045. switch (this.day()) {
  1046. case 0:
  1047. case 3:
  1048. return '[prošlu] dddd [u] LT';
  1049. case 6:
  1050. return '[prošle] [subote] [u] LT';
  1051. case 1:
  1052. case 2:
  1053. case 4:
  1054. case 5:
  1055. return '[prošli] dddd [u] LT';
  1056. }
  1057. },
  1058. sameElse : 'L'
  1059. },
  1060. relativeTime : {
  1061. future : 'za %s',
  1062. past : 'prije %s',
  1063. s : 'par sekundi',
  1064. m : bs__translate,
  1065. mm : bs__translate,
  1066. h : bs__translate,
  1067. hh : bs__translate,
  1068. d : 'dan',
  1069. dd : bs__translate,
  1070. M : 'mjesec',
  1071. MM : bs__translate,
  1072. y : 'godinu',
  1073. yy : bs__translate
  1074. },
  1075. ordinalParse: /\d{1,2}\./,
  1076. ordinal : '%d.',
  1077. week : {
  1078. dow : 1, // Monday is the first day of the week.
  1079. doy : 7 // The week that contains Jan 1st is the first week of the year.
  1080. }
  1081. });
  1082. //! moment.js locale configuration
  1083. //! locale : catalan (ca)
  1084. //! author : Juan G. Hurtado : https://github.com/juanghurtado
  1085. var ca = moment.defineLocale('ca', {
  1086. months : 'gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre'.split('_'),
  1087. monthsShort : 'gen._febr._mar._abr._mai._jun._jul._ag._set._oct._nov._des.'.split('_'),
  1088. weekdays : 'diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte'.split('_'),
  1089. weekdaysShort : 'dg._dl._dt._dc._dj._dv._ds.'.split('_'),
  1090. weekdaysMin : 'Dg_Dl_Dt_Dc_Dj_Dv_Ds'.split('_'),
  1091. longDateFormat : {
  1092. LT : 'H:mm',
  1093. LTS : 'LT:ss',
  1094. L : 'DD/MM/YYYY',
  1095. LL : 'D MMMM YYYY',
  1096. LLL : 'D MMMM YYYY LT',
  1097. LLLL : 'dddd D MMMM YYYY LT'
  1098. },
  1099. calendar : {
  1100. sameDay : function () {
  1101. return '[avui a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
  1102. },
  1103. nextDay : function () {
  1104. return '[demà a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
  1105. },
  1106. nextWeek : function () {
  1107. return 'dddd [a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
  1108. },
  1109. lastDay : function () {
  1110. return '[ahir a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
  1111. },
  1112. lastWeek : function () {
  1113. return '[el] dddd [passat a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
  1114. },
  1115. sameElse : 'L'
  1116. },
  1117. relativeTime : {
  1118. future : 'en %s',
  1119. past : 'fa %s',
  1120. s : 'uns segons',
  1121. m : 'un minut',
  1122. mm : '%d minuts',
  1123. h : 'una hora',
  1124. hh : '%d hores',
  1125. d : 'un dia',
  1126. dd : '%d dies',
  1127. M : 'un mes',
  1128. MM : '%d mesos',
  1129. y : 'un any',
  1130. yy : '%d anys'
  1131. },
  1132. ordinalParse: /\d{1,2}(r|n|t|è|a)/,
  1133. ordinal : function (number, period) {
  1134. var output = (number === 1) ? 'r' :
  1135. (number === 2) ? 'n' :
  1136. (number === 3) ? 'r' :
  1137. (number === 4) ? 't' : 'è';
  1138. if (period === 'w' || period === 'W') {
  1139. output = 'a';
  1140. }
  1141. return number + output;
  1142. },
  1143. week : {
  1144. dow : 1, // Monday is the first day of the week.
  1145. doy : 4 // The week that contains Jan 4th is the first week of the year.
  1146. }
  1147. });
  1148. //! moment.js locale configuration
  1149. //! locale : czech (cs)
  1150. //! author : petrbela : https://github.com/petrbela
  1151. var cs__months = 'leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec'.split('_'),
  1152. cs__monthsShort = 'led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro'.split('_');
  1153. function cs__plural(n) {
  1154. return (n > 1) && (n < 5) && (~~(n / 10) !== 1);
  1155. }
  1156. function cs__translate(number, withoutSuffix, key, isFuture) {
  1157. var result = number + ' ';
  1158. switch (key) {
  1159. case 's': // a few seconds / in a few seconds / a few seconds ago
  1160. return (withoutSuffix || isFuture) ? 'pár sekund' : 'pár sekundami';
  1161. case 'm': // a minute / in a minute / a minute ago
  1162. return withoutSuffix ? 'minuta' : (isFuture ? 'minutu' : 'minutou');
  1163. case 'mm': // 9 minutes / in 9 minutes / 9 minutes ago
  1164. if (withoutSuffix || isFuture) {
  1165. return result + (cs__plural(number) ? 'minuty' : 'minut');
  1166. } else {
  1167. return result + 'minutami';
  1168. }
  1169. break;
  1170. case 'h': // an hour / in an hour / an hour ago
  1171. return withoutSuffix ? 'hodina' : (isFuture ? 'hodinu' : 'hodinou');
  1172. case 'hh': // 9 hours / in 9 hours / 9 hours ago
  1173. if (withoutSuffix || isFuture) {
  1174. return result + (cs__plural(number) ? 'hodiny' : 'hodin');
  1175. } else {
  1176. return result + 'hodinami';
  1177. }
  1178. break;
  1179. case 'd': // a day / in a day / a day ago
  1180. return (withoutSuffix || isFuture) ? 'den' : 'dnem';
  1181. case 'dd': // 9 days / in 9 days / 9 days ago
  1182. if (withoutSuffix || isFuture) {
  1183. return result + (cs__plural(number) ? 'dny' : 'dní');
  1184. } else {
  1185. return result + 'dny';
  1186. }
  1187. break;
  1188. case 'M': // a month / in a month / a month ago
  1189. return (withoutSuffix || isFuture) ? 'měsíc' : 'měsícem';
  1190. case 'MM': // 9 months / in 9 months / 9 months ago
  1191. if (withoutSuffix || isFuture) {
  1192. return result + (cs__plural(number) ? 'měsíce' : 'měsíců');
  1193. } else {
  1194. return result + 'měsíci';
  1195. }
  1196. break;
  1197. case 'y': // a year / in a year / a year ago
  1198. return (withoutSuffix || isFuture) ? 'rok' : 'rokem';
  1199. case 'yy': // 9 years / in 9 years / 9 years ago
  1200. if (withoutSuffix || isFuture) {
  1201. return result + (cs__plural(number) ? 'roky' : 'let');
  1202. } else {
  1203. return result + 'lety';
  1204. }
  1205. break;
  1206. }
  1207. }
  1208. var cs = moment.defineLocale('cs', {
  1209. months : cs__months,
  1210. monthsShort : cs__monthsShort,
  1211. monthsParse : (function (months, monthsShort) {
  1212. var i, _monthsParse = [];
  1213. for (i = 0; i < 12; i++) {
  1214. // use custom parser to solve problem with July (červenec)
  1215. _monthsParse[i] = new RegExp('^' + months[i] + '$|^' + monthsShort[i] + '$', 'i');
  1216. }
  1217. return _monthsParse;
  1218. }(cs__months, cs__monthsShort)),
  1219. weekdays : 'neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota'.split('_'),
  1220. weekdaysShort : 'ne_po_út_st_čt_pá_so'.split('_'),
  1221. weekdaysMin : 'ne_po_út_st_čt_pá_so'.split('_'),
  1222. longDateFormat : {
  1223. LT: 'H:mm',
  1224. LTS : 'LT:ss',
  1225. L : 'DD.MM.YYYY',
  1226. LL : 'D. MMMM YYYY',
  1227. LLL : 'D. MMMM YYYY LT',
  1228. LLLL : 'dddd D. MMMM YYYY LT'
  1229. },
  1230. calendar : {
  1231. sameDay: '[dnes v] LT',
  1232. nextDay: '[zítra v] LT',
  1233. nextWeek: function () {
  1234. switch (this.day()) {
  1235. case 0:
  1236. return '[v neděli v] LT';
  1237. case 1:
  1238. case 2:
  1239. return '[v] dddd [v] LT';
  1240. case 3:
  1241. return '[ve středu v] LT';
  1242. case 4:
  1243. return '[ve čtvrtek v] LT';
  1244. case 5:
  1245. return '[v pátek v] LT';
  1246. case 6:
  1247. return '[v sobotu v] LT';
  1248. }
  1249. },
  1250. lastDay: '[včera v] LT',
  1251. lastWeek: function () {
  1252. switch (this.day()) {
  1253. case 0:
  1254. return '[minulou neděli v] LT';
  1255. case 1:
  1256. case 2:
  1257. return '[minulé] dddd [v] LT';
  1258. case 3:
  1259. return '[minulou středu v] LT';
  1260. case 4:
  1261. case 5:
  1262. return '[minulý] dddd [v] LT';
  1263. case 6:
  1264. return '[minulou sobotu v] LT';
  1265. }
  1266. },
  1267. sameElse: 'L'
  1268. },
  1269. relativeTime : {
  1270. future : 'za %s',
  1271. past : 'před %s',
  1272. s : cs__translate,
  1273. m : cs__translate,
  1274. mm : cs__translate,
  1275. h : cs__translate,
  1276. hh : cs__translate,
  1277. d : cs__translate,
  1278. dd : cs__translate,
  1279. M : cs__translate,
  1280. MM : cs__translate,
  1281. y : cs__translate,
  1282. yy : cs__translate
  1283. },
  1284. ordinalParse : /\d{1,2}\./,
  1285. ordinal : '%d.',
  1286. week : {
  1287. dow : 1, // Monday is the first day of the week.
  1288. doy : 4 // The week that contains Jan 4th is the first week of the year.
  1289. }
  1290. });
  1291. //! moment.js locale configuration
  1292. //! locale : chuvash (cv)
  1293. //! author : Anatoly Mironov : https://github.com/mirontoli
  1294. var cv = moment.defineLocale('cv', {
  1295. months : 'кăрлач_нарăс_пуш_ака_май_çĕртме_утă_çурла_авăн_юпа_чӳк_раштав'.split('_'),
  1296. monthsShort : 'кăр_нар_пуш_ака_май_çĕр_утă_çур_ав_юпа_чӳк_раш'.split('_'),
  1297. weekdays : 'вырсарникун_тунтикун_ытларикун_юнкун_кĕçнерникун_эрнекун_шăматкун'.split('_'),
  1298. weekdaysShort : 'выр_тун_ытл_юн_кĕç_эрн_шăм'.split('_'),
  1299. weekdaysMin : 'вр_тн_ыт_юн_кç_эр_шм'.split('_'),
  1300. longDateFormat : {
  1301. LT : 'HH:mm',
  1302. LTS : 'LT:ss',
  1303. L : 'DD-MM-YYYY',
  1304. LL : 'YYYY [çулхи] MMMM [уйăхĕн] D[-мĕшĕ]',
  1305. LLL : 'YYYY [çулхи] MMMM [уйăхĕн] D[-мĕшĕ], LT',
  1306. LLLL : 'dddd, YYYY [çулхи] MMMM [уйăхĕн] D[-мĕшĕ], LT'
  1307. },
  1308. calendar : {
  1309. sameDay: '[Паян] LT [сехетре]',
  1310. nextDay: '[Ыран] LT [сехетре]',
  1311. lastDay: '[Ĕнер] LT [сехетре]',
  1312. nextWeek: '[Çитес] dddd LT [сехетре]',
  1313. lastWeek: '[Иртнĕ] dddd LT [сехетре]',
  1314. sameElse: 'L'
  1315. },
  1316. relativeTime : {
  1317. future : function (output) {
  1318. var affix = /сехет$/i.exec(output) ? 'рен' : /çул$/i.exec(output) ? 'тан' : 'ран';
  1319. return output + affix;
  1320. },
  1321. past : '%s каялла',
  1322. s : 'пĕр-ик çеккунт',
  1323. m : 'пĕр минут',
  1324. mm : '%d минут',
  1325. h : 'пĕр сехет',
  1326. hh : '%d сехет',
  1327. d : 'пĕр кун',
  1328. dd : '%d кун',
  1329. M : 'пĕр уйăх',
  1330. MM : '%d уйăх',
  1331. y : 'пĕр çул',
  1332. yy : '%d çул'
  1333. },
  1334. ordinalParse: /\d{1,2}-мĕш/,
  1335. ordinal : '%d-мĕш',
  1336. week : {
  1337. dow : 1, // Monday is the first day of the week.
  1338. doy : 7 // The week that contains Jan 1st is the first week of the year.
  1339. }
  1340. });
  1341. //! moment.js locale configuration
  1342. //! locale : Welsh (cy)
  1343. //! author : Robert Allen
  1344. var cy = moment.defineLocale('cy', {
  1345. months: 'Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr'.split('_'),
  1346. monthsShort: 'Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag'.split('_'),
  1347. weekdays: 'Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn'.split('_'),
  1348. weekdaysShort: 'Sul_Llun_Maw_Mer_Iau_Gwe_Sad'.split('_'),
  1349. weekdaysMin: 'Su_Ll_Ma_Me_Ia_Gw_Sa'.split('_'),
  1350. // time formats are the same as en-gb
  1351. longDateFormat: {
  1352. LT: 'HH:mm',
  1353. LTS : 'LT:ss',
  1354. L: 'DD/MM/YYYY',
  1355. LL: 'D MMMM YYYY',
  1356. LLL: 'D MMMM YYYY LT',
  1357. LLLL: 'dddd, D MMMM YYYY LT'
  1358. },
  1359. calendar: {
  1360. sameDay: '[Heddiw am] LT',
  1361. nextDay: '[Yfory am] LT',
  1362. nextWeek: 'dddd [am] LT',
  1363. lastDay: '[Ddoe am] LT',
  1364. lastWeek: 'dddd [diwethaf am] LT',
  1365. sameElse: 'L'
  1366. },
  1367. relativeTime: {
  1368. future: 'mewn %s',
  1369. past: '%s yn ôl',
  1370. s: 'ychydig eiliadau',
  1371. m: 'munud',
  1372. mm: '%d munud',
  1373. h: 'awr',
  1374. hh: '%d awr',
  1375. d: 'diwrnod',
  1376. dd: '%d diwrnod',
  1377. M: 'mis',
  1378. MM: '%d mis',
  1379. y: 'blwyddyn',
  1380. yy: '%d flynedd'
  1381. },
  1382. ordinalParse: /\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,
  1383. // traditional ordinal numbers above 31 are not commonly used in colloquial Welsh
  1384. ordinal: function (number) {
  1385. var b = number,
  1386. output = '',
  1387. lookup = [
  1388. '', 'af', 'il', 'ydd', 'ydd', 'ed', 'ed', 'ed', 'fed', 'fed', 'fed', // 1af to 10fed
  1389. 'eg', 'fed', 'eg', 'eg', 'fed', 'eg', 'eg', 'fed', 'eg', 'fed' // 11eg to 20fed
  1390. ];
  1391. if (b > 20) {
  1392. if (b === 40 || b === 50 || b === 60 || b === 80 || b === 100) {
  1393. output = 'fed'; // not 30ain, 70ain or 90ain
  1394. } else {
  1395. output = 'ain';
  1396. }
  1397. } else if (b > 0) {
  1398. output = lookup[b];
  1399. }
  1400. return number + output;
  1401. },
  1402. week : {
  1403. dow : 1, // Monday is the first day of the week.
  1404. doy : 4 // The week that contains Jan 4th is the first week of the year.
  1405. }
  1406. });
  1407. //! moment.js locale configuration
  1408. //! locale : danish (da)
  1409. //! author : Ulrik Nielsen : https://github.com/mrbase
  1410. var da = moment.defineLocale('da', {
  1411. months : 'januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december'.split('_'),
  1412. monthsShort : 'jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec'.split('_'),
  1413. weekdays : 'søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag'.split('_'),
  1414. weekdaysShort : 'søn_man_tir_ons_tor_fre_lør'.split('_'),
  1415. weekdaysMin : 'sø_ma_ti_on_to_fr_lø'.split('_'),
  1416. longDateFormat : {
  1417. LT : 'HH:mm',
  1418. LTS : 'LT:ss',
  1419. L : 'DD/MM/YYYY',
  1420. LL : 'D. MMMM YYYY',
  1421. LLL : 'D. MMMM YYYY LT',
  1422. LLLL : 'dddd [d.] D. MMMM YYYY LT'
  1423. },
  1424. calendar : {
  1425. sameDay : '[I dag kl.] LT',
  1426. nextDay : '[I morgen kl.] LT',
  1427. nextWeek : 'dddd [kl.] LT',
  1428. lastDay : '[I går kl.] LT',
  1429. lastWeek : '[sidste] dddd [kl] LT',
  1430. sameElse : 'L'
  1431. },
  1432. relativeTime : {
  1433. future : 'om %s',
  1434. past : '%s siden',
  1435. s : 'få sekunder',
  1436. m : 'et minut',
  1437. mm : '%d minutter',
  1438. h : 'en time',
  1439. hh : '%d timer',
  1440. d : 'en dag',
  1441. dd : '%d dage',
  1442. M : 'en måned',
  1443. MM : '%d måneder',
  1444. y : 'et år',
  1445. yy : '%d år'
  1446. },
  1447. ordinalParse: /\d{1,2}\./,
  1448. ordinal : '%d.',
  1449. week : {
  1450. dow : 1, // Monday is the first day of the week.
  1451. doy : 4 // The week that contains Jan 4th is the first week of the year.
  1452. }
  1453. });
  1454. //! moment.js locale configuration
  1455. //! locale : austrian german (de-at)
  1456. //! author : lluchs : https://github.com/lluchs
  1457. //! author: Menelion Elensúle: https://github.com/Oire
  1458. //! author : Martin Groller : https://github.com/MadMG
  1459. function de_at__processRelativeTime(number, withoutSuffix, key, isFuture) {
  1460. var format = {
  1461. 'm': ['eine Minute', 'einer Minute'],
  1462. 'h': ['eine Stunde', 'einer Stunde'],
  1463. 'd': ['ein Tag', 'einem Tag'],
  1464. 'dd': [number + ' Tage', number + ' Tagen'],
  1465. 'M': ['ein Monat', 'einem Monat'],
  1466. 'MM': [number + ' Monate', number + ' Monaten'],
  1467. 'y': ['ein Jahr', 'einem Jahr'],
  1468. 'yy': [number + ' Jahre', number + ' Jahren']
  1469. };
  1470. return withoutSuffix ? format[key][0] : format[key][1];
  1471. }
  1472. var de_at = moment.defineLocale('de-at', {
  1473. months : 'Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'),
  1474. monthsShort : 'Jän._Febr._Mrz._Apr._Mai_Jun._Jul._Aug._Sept._Okt._Nov._Dez.'.split('_'),
  1475. weekdays : 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split('_'),
  1476. weekdaysShort : 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'),
  1477. weekdaysMin : 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
  1478. longDateFormat : {
  1479. LT: 'HH:mm',
  1480. LTS: 'HH:mm:ss',
  1481. L : 'DD.MM.YYYY',
  1482. LL : 'D. MMMM YYYY',
  1483. LLL : 'D. MMMM YYYY LT',
  1484. LLLL : 'dddd, D. MMMM YYYY LT'
  1485. },
  1486. calendar : {
  1487. sameDay: '[Heute um] LT [Uhr]',
  1488. sameElse: 'L',
  1489. nextDay: '[Morgen um] LT [Uhr]',
  1490. nextWeek: 'dddd [um] LT [Uhr]',
  1491. lastDay: '[Gestern um] LT [Uhr]',
  1492. lastWeek: '[letzten] dddd [um] LT [Uhr]'
  1493. },
  1494. relativeTime : {
  1495. future : 'in %s',
  1496. past : 'vor %s',
  1497. s : 'ein paar Sekunden',
  1498. m : de_at__processRelativeTime,
  1499. mm : '%d Minuten',
  1500. h : de_at__processRelativeTime,
  1501. hh : '%d Stunden',
  1502. d : de_at__processRelativeTime,
  1503. dd : de_at__processRelativeTime,
  1504. M : de_at__processRelativeTime,
  1505. MM : de_at__processRelativeTime,
  1506. y : de_at__processRelativeTime,
  1507. yy : de_at__processRelativeTime
  1508. },
  1509. ordinalParse: /\d{1,2}\./,
  1510. ordinal : '%d.',
  1511. week : {
  1512. dow : 1, // Monday is the first day of the week.
  1513. doy : 4 // The week that contains Jan 4th is the first week of the year.
  1514. }
  1515. });
  1516. //! moment.js locale configuration
  1517. //! locale : german (de)
  1518. //! author : lluchs : https://github.com/lluchs
  1519. //! author: Menelion Elensúle: https://github.com/Oire
  1520. function de__processRelativeTime(number, withoutSuffix, key, isFuture) {
  1521. var format = {
  1522. 'm': ['eine Minute', 'einer Minute'],
  1523. 'h': ['eine Stunde', 'einer Stunde'],
  1524. 'd': ['ein Tag', 'einem Tag'],
  1525. 'dd': [number + ' Tage', number + ' Tagen'],
  1526. 'M': ['ein Monat', 'einem Monat'],
  1527. 'MM': [number + ' Monate', number + ' Monaten'],
  1528. 'y': ['ein Jahr', 'einem Jahr'],
  1529. 'yy': [number + ' Jahre', number + ' Jahren']
  1530. };
  1531. return withoutSuffix ? format[key][0] : format[key][1];
  1532. }
  1533. var de = moment.defineLocale('de', {
  1534. months : 'Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'),
  1535. monthsShort : 'Jan._Febr._Mrz._Apr._Mai_Jun._Jul._Aug._Sept._Okt._Nov._Dez.'.split('_'),
  1536. weekdays : 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split('_'),
  1537. weekdaysShort : 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'),
  1538. weekdaysMin : 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
  1539. longDateFormat : {
  1540. LT: 'HH:mm',
  1541. LTS: 'HH:mm:ss',
  1542. L : 'DD.MM.YYYY',
  1543. LL : 'D. MMMM YYYY',
  1544. LLL : 'D. MMMM YYYY LT',
  1545. LLLL : 'dddd, D. MMMM YYYY LT'
  1546. },
  1547. calendar : {
  1548. sameDay: '[Heute um] LT [Uhr]',
  1549. sameElse: 'L',
  1550. nextDay: '[Morgen um] LT [Uhr]',
  1551. nextWeek: 'dddd [um] LT [Uhr]',
  1552. lastDay: '[Gestern um] LT [Uhr]',
  1553. lastWeek: '[letzten] dddd [um] LT [Uhr]'
  1554. },
  1555. relativeTime : {
  1556. future : 'in %s',
  1557. past : 'vor %s',
  1558. s : 'ein paar Sekunden',
  1559. m : de__processRelativeTime,
  1560. mm : '%d Minuten',
  1561. h : de__processRelativeTime,
  1562. hh : '%d Stunden',
  1563. d : de__processRelativeTime,
  1564. dd : de__processRelativeTime,
  1565. M : de__processRelativeTime,
  1566. MM : de__processRelativeTime,
  1567. y : de__processRelativeTime,
  1568. yy : de__processRelativeTime
  1569. },
  1570. ordinalParse: /\d{1,2}\./,
  1571. ordinal : '%d.',
  1572. week : {
  1573. dow : 1, // Monday is the first day of the week.
  1574. doy : 4 // The week that contains Jan 4th is the first week of the year.
  1575. }
  1576. });
  1577. //! moment.js locale configuration
  1578. //! locale : modern greek (el)
  1579. //! author : Aggelos Karalias : https://github.com/mehiel
  1580. var el = moment.defineLocale('el', {
  1581. monthsNominativeEl : 'Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος'.split('_'),
  1582. monthsGenitiveEl : 'Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου'.split('_'),
  1583. months : function (momentToFormat, format) {
  1584. if (/D/.test(format.substring(0, format.indexOf('MMMM')))) { // if there is a day number before 'MMMM'
  1585. return this._monthsGenitiveEl[momentToFormat.month()];
  1586. } else {
  1587. return this._monthsNominativeEl[momentToFormat.month()];
  1588. }
  1589. },
  1590. monthsShort : 'Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ'.split('_'),
  1591. weekdays : 'Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο'.split('_'),
  1592. weekdaysShort : 'Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ'.split('_'),
  1593. weekdaysMin : 'Κυ_Δε_Τρ_Τε_Πε_Πα_Σα'.split('_'),
  1594. meridiem : function (hours, minutes, isLower) {
  1595. if (hours > 11) {
  1596. return isLower ? 'μμ' : 'ΜΜ';
  1597. } else {
  1598. return isLower ? 'πμ' : 'ΠΜ';
  1599. }
  1600. },
  1601. isPM : function (input) {
  1602. return ((input + '').toLowerCase()[0] === 'μ');
  1603. },
  1604. meridiemParse : /[ΠΜ]\.?Μ?\.?/i,
  1605. longDateFormat : {
  1606. LT : 'h:mm A',
  1607. LTS : 'h:mm:ss A',
  1608. L : 'DD/MM/YYYY',
  1609. LL : 'D MMMM YYYY',
  1610. LLL : 'D MMMM YYYY LT',
  1611. LLLL : 'dddd, D MMMM YYYY LT'
  1612. },
  1613. calendarEl : {
  1614. sameDay : '[Σήμερα {}] LT',
  1615. nextDay : '[Αύριο {}] LT',
  1616. nextWeek : 'dddd [{}] LT',
  1617. lastDay : '[Χθες {}] LT',
  1618. lastWeek : function () {
  1619. switch (this.day()) {
  1620. case 6:
  1621. return '[το προηγούμενο] dddd [{}] LT';
  1622. default:
  1623. return '[την προηγούμενη] dddd [{}] LT';
  1624. }
  1625. },
  1626. sameElse : 'L'
  1627. },
  1628. calendar : function (key, mom) {
  1629. var output = this._calendarEl[key],
  1630. hours = mom && mom.hours();
  1631. if (typeof output === 'function') {
  1632. output = output.apply(mom);
  1633. }
  1634. return output.replace('{}', (hours % 12 === 1 ? 'στη' : 'στις'));
  1635. },
  1636. relativeTime : {
  1637. future : 'σε %s',
  1638. past : '%s πριν',
  1639. s : 'λίγα δευτερόλεπτα',
  1640. m : 'ένα λεπτό',
  1641. mm : '%d λεπτά',
  1642. h : 'μία ώρα',
  1643. hh : '%d ώρες',
  1644. d : 'μία μέρα',
  1645. dd : '%d μέρες',
  1646. M : 'ένας μήνας',
  1647. MM : '%d μήνες',
  1648. y : 'ένας χρόνος',
  1649. yy : '%d χρόνια'
  1650. },
  1651. ordinalParse: /\d{1,2}η/,
  1652. ordinal: '%dη',
  1653. week : {
  1654. dow : 1, // Monday is the first day of the week.
  1655. doy : 4 // The week that contains Jan 4st is the first week of the year.
  1656. }
  1657. });
  1658. //! moment.js locale configuration
  1659. //! locale : australian english (en-au)
  1660. var en_au = moment.defineLocale('en-au', {
  1661. months : 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
  1662. monthsShort : 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
  1663. weekdays : 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
  1664. weekdaysShort : 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  1665. weekdaysMin : 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  1666. longDateFormat : {
  1667. LT : 'h:mm A',
  1668. LTS : 'h:mm:ss A',
  1669. L : 'DD/MM/YYYY',
  1670. LL : 'D MMMM YYYY',
  1671. LLL : 'D MMMM YYYY LT',
  1672. LLLL : 'dddd, D MMMM YYYY LT'
  1673. },
  1674. calendar : {
  1675. sameDay : '[Today at] LT',
  1676. nextDay : '[Tomorrow at] LT',
  1677. nextWeek : 'dddd [at] LT',
  1678. lastDay : '[Yesterday at] LT',
  1679. lastWeek : '[Last] dddd [at] LT',
  1680. sameElse : 'L'
  1681. },
  1682. relativeTime : {
  1683. future : 'in %s',
  1684. past : '%s ago',
  1685. s : 'a few seconds',
  1686. m : 'a minute',
  1687. mm : '%d minutes',
  1688. h : 'an hour',
  1689. hh : '%d hours',
  1690. d : 'a day',
  1691. dd : '%d days',
  1692. M : 'a month',
  1693. MM : '%d months',
  1694. y : 'a year',
  1695. yy : '%d years'
  1696. },
  1697. ordinalParse: /\d{1,2}(st|nd|rd|th)/,
  1698. ordinal : function (number) {
  1699. var b = number % 10,
  1700. output = (~~(number % 100 / 10) === 1) ? 'th' :
  1701. (b === 1) ? 'st' :
  1702. (b === 2) ? 'nd' :
  1703. (b === 3) ? 'rd' : 'th';
  1704. return number + output;
  1705. },
  1706. week : {
  1707. dow : 1, // Monday is the first day of the week.
  1708. doy : 4 // The week that contains Jan 4th is the first week of the year.
  1709. }
  1710. });
  1711. //! moment.js locale configuration
  1712. //! locale : canadian english (en-ca)
  1713. //! author : Jonathan Abourbih : https://github.com/jonbca
  1714. var en_ca = moment.defineLocale('en-ca', {
  1715. months : 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
  1716. monthsShort : 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
  1717. weekdays : 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
  1718. weekdaysShort : 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  1719. weekdaysMin : 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  1720. longDateFormat : {
  1721. LT : 'h:mm A',
  1722. LTS : 'h:mm:ss A',
  1723. L : 'YYYY-MM-DD',
  1724. LL : 'D MMMM, YYYY',
  1725. LLL : 'D MMMM, YYYY LT',
  1726. LLLL : 'dddd, D MMMM, YYYY LT'
  1727. },
  1728. calendar : {
  1729. sameDay : '[Today at] LT',
  1730. nextDay : '[Tomorrow at] LT',
  1731. nextWeek : 'dddd [at] LT',
  1732. lastDay : '[Yesterday at] LT',
  1733. lastWeek : '[Last] dddd [at] LT',
  1734. sameElse : 'L'
  1735. },
  1736. relativeTime : {
  1737. future : 'in %s',
  1738. past : '%s ago',
  1739. s : 'a few seconds',
  1740. m : 'a minute',
  1741. mm : '%d minutes',
  1742. h : 'an hour',
  1743. hh : '%d hours',
  1744. d : 'a day',
  1745. dd : '%d days',
  1746. M : 'a month',
  1747. MM : '%d months',
  1748. y : 'a year',
  1749. yy : '%d years'
  1750. },
  1751. ordinalParse: /\d{1,2}(st|nd|rd|th)/,
  1752. ordinal : function (number) {
  1753. var b = number % 10,
  1754. output = (~~(number % 100 / 10) === 1) ? 'th' :
  1755. (b === 1) ? 'st' :
  1756. (b === 2) ? 'nd' :
  1757. (b === 3) ? 'rd' : 'th';
  1758. return number + output;
  1759. }
  1760. });
  1761. //! moment.js locale configuration
  1762. //! locale : great britain english (en-gb)
  1763. //! author : Chris Gedrim : https://github.com/chrisgedrim
  1764. var en_gb = moment.defineLocale('en-gb', {
  1765. months : 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
  1766. monthsShort : 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
  1767. weekdays : 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
  1768. weekdaysShort : 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  1769. weekdaysMin : 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  1770. longDateFormat : {
  1771. LT : 'HH:mm',
  1772. LTS : 'HH:mm:ss',
  1773. L : 'DD/MM/YYYY',
  1774. LL : 'D MMMM YYYY',
  1775. LLL : 'D MMMM YYYY LT',
  1776. LLLL : 'dddd, D MMMM YYYY LT'
  1777. },
  1778. calendar : {
  1779. sameDay : '[Today at] LT',
  1780. nextDay : '[Tomorrow at] LT',
  1781. nextWeek : 'dddd [at] LT',
  1782. lastDay : '[Yesterday at] LT',
  1783. lastWeek : '[Last] dddd [at] LT',
  1784. sameElse : 'L'
  1785. },
  1786. relativeTime : {
  1787. future : 'in %s',
  1788. past : '%s ago',
  1789. s : 'a few seconds',
  1790. m : 'a minute',
  1791. mm : '%d minutes',
  1792. h : 'an hour',
  1793. hh : '%d hours',
  1794. d : 'a day',
  1795. dd : '%d days',
  1796. M : 'a month',
  1797. MM : '%d months',
  1798. y : 'a year',
  1799. yy : '%d years'
  1800. },
  1801. ordinalParse: /\d{1,2}(st|nd|rd|th)/,
  1802. ordinal : function (number) {
  1803. var b = number % 10,
  1804. output = (~~(number % 100 / 10) === 1) ? 'th' :
  1805. (b === 1) ? 'st' :
  1806. (b === 2) ? 'nd' :
  1807. (b === 3) ? 'rd' : 'th';
  1808. return number + output;
  1809. },
  1810. week : {
  1811. dow : 1, // Monday is the first day of the week.
  1812. doy : 4 // The week that contains Jan 4th is the first week of the year.
  1813. }
  1814. });
  1815. //! moment.js locale configuration
  1816. //! locale : esperanto (eo)
  1817. //! author : Colin Dean : https://github.com/colindean
  1818. //! komento: Mi estas malcerta se mi korekte traktis akuzativojn en tiu traduko.
  1819. //! Se ne, bonvolu korekti kaj avizi min por ke mi povas lerni!
  1820. var eo = moment.defineLocale('eo', {
  1821. months : 'januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro'.split('_'),
  1822. monthsShort : 'jan_feb_mar_apr_maj_jun_jul_aŭg_sep_okt_nov_dec'.split('_'),
  1823. weekdays : 'Dimanĉo_Lundo_Mardo_Merkredo_Ĵaŭdo_Vendredo_Sabato'.split('_'),
  1824. weekdaysShort : 'Dim_Lun_Mard_Merk_Ĵaŭ_Ven_Sab'.split('_'),
  1825. weekdaysMin : 'Di_Lu_Ma_Me_Ĵa_Ve_Sa'.split('_'),
  1826. longDateFormat : {
  1827. LT : 'HH:mm',
  1828. LTS : 'LT:ss',
  1829. L : 'YYYY-MM-DD',
  1830. LL : 'D[-an de] MMMM, YYYY',
  1831. LLL : 'D[-an de] MMMM, YYYY LT',
  1832. LLLL : 'dddd, [la] D[-an de] MMMM, YYYY LT'
  1833. },
  1834. meridiemParse: /[ap]\.t\.m/i,
  1835. isPM: function (input) {
  1836. return input.charAt(0).toLowerCase() === 'p';
  1837. },
  1838. meridiem : function (hours, minutes, isLower) {
  1839. if (hours > 11) {
  1840. return isLower ? 'p.t.m.' : 'P.T.M.';
  1841. } else {
  1842. return isLower ? 'a.t.m.' : 'A.T.M.';
  1843. }
  1844. },
  1845. calendar : {
  1846. sameDay : '[Hodiaŭ je] LT',
  1847. nextDay : '[Morgaŭ je] LT',
  1848. nextWeek : 'dddd [je] LT',
  1849. lastDay : '[Hieraŭ je] LT',
  1850. lastWeek : '[pasinta] dddd [je] LT',
  1851. sameElse : 'L'
  1852. },
  1853. relativeTime : {
  1854. future : 'je %s',
  1855. past : 'antaŭ %s',
  1856. s : 'sekundoj',
  1857. m : 'minuto',
  1858. mm : '%d minutoj',
  1859. h : 'horo',
  1860. hh : '%d horoj',
  1861. d : 'tago',//ne 'diurno', ĉar estas uzita por proksimumo
  1862. dd : '%d tagoj',
  1863. M : 'monato',
  1864. MM : '%d monatoj',
  1865. y : 'jaro',
  1866. yy : '%d jaroj'
  1867. },
  1868. ordinalParse: /\d{1,2}a/,
  1869. ordinal : '%da',
  1870. week : {
  1871. dow : 1, // Monday is the first day of the week.
  1872. doy : 7 // The week that contains Jan 1st is the first week of the year.
  1873. }
  1874. });
  1875. //! moment.js locale configuration
  1876. //! locale : spanish (es)
  1877. //! author : Julio Napurí : https://github.com/julionc
  1878. var monthsShortDot = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split('_'),
  1879. es__monthsShort = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_');
  1880. var es = moment.defineLocale('es', {
  1881. months : 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split('_'),
  1882. monthsShort : function (m, format) {
  1883. if (/-MMM-/.test(format)) {
  1884. return es__monthsShort[m.month()];
  1885. } else {
  1886. return monthsShortDot[m.month()];
  1887. }
  1888. },
  1889. weekdays : 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),
  1890. weekdaysShort : 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),
  1891. weekdaysMin : 'Do_Lu_Ma_Mi_Ju_Vi_Sá'.split('_'),
  1892. longDateFormat : {
  1893. LT : 'H:mm',
  1894. LTS : 'LT:ss',
  1895. L : 'DD/MM/YYYY',
  1896. LL : 'D [de] MMMM [de] YYYY',
  1897. LLL : 'D [de] MMMM [de] YYYY LT',
  1898. LLLL : 'dddd, D [de] MMMM [de] YYYY LT'
  1899. },
  1900. calendar : {
  1901. sameDay : function () {
  1902. return '[hoy a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
  1903. },
  1904. nextDay : function () {
  1905. return '[mañana a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
  1906. },
  1907. nextWeek : function () {
  1908. return 'dddd [a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
  1909. },
  1910. lastDay : function () {
  1911. return '[ayer a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
  1912. },
  1913. lastWeek : function () {
  1914. return '[el] dddd [pasado a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
  1915. },
  1916. sameElse : 'L'
  1917. },
  1918. relativeTime : {
  1919. future : 'en %s',
  1920. past : 'hace %s',
  1921. s : 'unos segundos',
  1922. m : 'un minuto',
  1923. mm : '%d minutos',
  1924. h : 'una hora',
  1925. hh : '%d horas',
  1926. d : 'un día',
  1927. dd : '%d días',
  1928. M : 'un mes',
  1929. MM : '%d meses',
  1930. y : 'un año',
  1931. yy : '%d años'
  1932. },
  1933. ordinalParse : /\d{1,2}º/,
  1934. ordinal : '%dº',
  1935. week : {
  1936. dow : 1, // Monday is the first day of the week.
  1937. doy : 4 // The week that contains Jan 4th is the first week of the year.
  1938. }
  1939. });
  1940. //! moment.js locale configuration
  1941. //! locale : estonian (et)
  1942. //! author : Henry Kehlmann : https://github.com/madhenry
  1943. //! improvements : Illimar Tambek : https://github.com/ragulka
  1944. function et__processRelativeTime(number, withoutSuffix, key, isFuture) {
  1945. var format = {
  1946. 's' : ['mõne sekundi', 'mõni sekund', 'paar sekundit'],
  1947. 'm' : ['ühe minuti', 'üks minut'],
  1948. 'mm': [number + ' minuti', number + ' minutit'],
  1949. 'h' : ['ühe tunni', 'tund aega', 'üks tund'],
  1950. 'hh': [number + ' tunni', number + ' tundi'],
  1951. 'd' : ['ühe päeva', 'üks päev'],
  1952. 'M' : ['kuu aja', 'kuu aega', 'üks kuu'],
  1953. 'MM': [number + ' kuu', number + ' kuud'],
  1954. 'y' : ['ühe aasta', 'aasta', 'üks aasta'],
  1955. 'yy': [number + ' aasta', number + ' aastat']
  1956. };
  1957. if (withoutSuffix) {
  1958. return format[key][2] ? format[key][2] : format[key][1];
  1959. }
  1960. return isFuture ? format[key][0] : format[key][1];
  1961. }
  1962. var et = moment.defineLocale('et', {
  1963. months : 'jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember'.split('_'),
  1964. monthsShort : 'jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets'.split('_'),
  1965. weekdays : 'pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev'.split('_'),
  1966. weekdaysShort : 'P_E_T_K_N_R_L'.split('_'),
  1967. weekdaysMin : 'P_E_T_K_N_R_L'.split('_'),
  1968. longDateFormat : {
  1969. LT : 'H:mm',
  1970. LTS : 'LT:ss',
  1971. L : 'DD.MM.YYYY',
  1972. LL : 'D. MMMM YYYY',
  1973. LLL : 'D. MMMM YYYY LT',
  1974. LLLL : 'dddd, D. MMMM YYYY LT'
  1975. },
  1976. calendar : {
  1977. sameDay : '[Täna,] LT',
  1978. nextDay : '[Homme,] LT',
  1979. nextWeek : '[Järgmine] dddd LT',
  1980. lastDay : '[Eile,] LT',
  1981. lastWeek : '[Eelmine] dddd LT',
  1982. sameElse : 'L'
  1983. },
  1984. relativeTime : {
  1985. future : '%s pärast',
  1986. past : '%s tagasi',
  1987. s : et__processRelativeTime,
  1988. m : et__processRelativeTime,
  1989. mm : et__processRelativeTime,
  1990. h : et__processRelativeTime,
  1991. hh : et__processRelativeTime,
  1992. d : et__processRelativeTime,
  1993. dd : '%d päeva',
  1994. M : et__processRelativeTime,
  1995. MM : et__processRelativeTime,
  1996. y : et__processRelativeTime,
  1997. yy : et__processRelativeTime
  1998. },
  1999. ordinalParse: /\d{1,2}\./,
  2000. ordinal : '%d.',
  2001. week : {
  2002. dow : 1, // Monday is the first day of the week.
  2003. doy : 4 // The week that contains Jan 4th is the first week of the year.
  2004. }
  2005. });
  2006. //! moment.js locale configuration
  2007. //! locale : euskara (eu)
  2008. //! author : Eneko Illarramendi : https://github.com/eillarra
  2009. var eu = moment.defineLocale('eu', {
  2010. months : 'urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua'.split('_'),
  2011. monthsShort : 'urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.'.split('_'),
  2012. weekdays : 'igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata'.split('_'),
  2013. weekdaysShort : 'ig._al._ar._az._og._ol._lr.'.split('_'),
  2014. weekdaysMin : 'ig_al_ar_az_og_ol_lr'.split('_'),
  2015. longDateFormat : {
  2016. LT : 'HH:mm',
  2017. LTS : 'LT:ss',
  2018. L : 'YYYY-MM-DD',
  2019. LL : 'YYYY[ko] MMMM[ren] D[a]',
  2020. LLL : 'YYYY[ko] MMMM[ren] D[a] LT',
  2021. LLLL : 'dddd, YYYY[ko] MMMM[ren] D[a] LT',
  2022. l : 'YYYY-M-D',
  2023. ll : 'YYYY[ko] MMM D[a]',
  2024. lll : 'YYYY[ko] MMM D[a] LT',
  2025. llll : 'ddd, YYYY[ko] MMM D[a] LT'
  2026. },
  2027. calendar : {
  2028. sameDay : '[gaur] LT[etan]',
  2029. nextDay : '[bihar] LT[etan]',
  2030. nextWeek : 'dddd LT[etan]',
  2031. lastDay : '[atzo] LT[etan]',
  2032. lastWeek : '[aurreko] dddd LT[etan]',
  2033. sameElse : 'L'
  2034. },
  2035. relativeTime : {
  2036. future : '%s barru',
  2037. past : 'duela %s',
  2038. s : 'segundo batzuk',
  2039. m : 'minutu bat',
  2040. mm : '%d minutu',
  2041. h : 'ordu bat',
  2042. hh : '%d ordu',
  2043. d : 'egun bat',
  2044. dd : '%d egun',
  2045. M : 'hilabete bat',
  2046. MM : '%d hilabete',
  2047. y : 'urte bat',
  2048. yy : '%d urte'
  2049. },
  2050. ordinalParse: /\d{1,2}\./,
  2051. ordinal : '%d.',
  2052. week : {
  2053. dow : 1, // Monday is the first day of the week.
  2054. doy : 7 // The week that contains Jan 1st is the first week of the year.
  2055. }
  2056. });
  2057. //! moment.js locale configuration
  2058. //! locale : Persian (fa)
  2059. //! author : Ebrahim Byagowi : https://github.com/ebraminio
  2060. var fa__symbolMap = {
  2061. '1': '۱',
  2062. '2': '۲',
  2063. '3': '۳',
  2064. '4': '۴',
  2065. '5': '۵',
  2066. '6': '۶',
  2067. '7': '۷',
  2068. '8': '۸',
  2069. '9': '۹',
  2070. '0': '۰'
  2071. }, fa__numberMap = {
  2072. '۱': '1',
  2073. '۲': '2',
  2074. '۳': '3',
  2075. '۴': '4',
  2076. '۵': '5',
  2077. '۶': '6',
  2078. '۷': '7',
  2079. '۸': '8',
  2080. '۹': '9',
  2081. '۰': '0'
  2082. };
  2083. var fa = moment.defineLocale('fa', {
  2084. months : 'ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر'.split('_'),
  2085. monthsShort : 'ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر'.split('_'),
  2086. weekdays : 'یک\u200cشنبه_دوشنبه_سه\u200cشنبه_چهارشنبه_پنج\u200cشنبه_جمعه_شنبه'.split('_'),
  2087. weekdaysShort : 'یک\u200cشنبه_دوشنبه_سه\u200cشنبه_چهارشنبه_پنج\u200cشنبه_جمعه_شنبه'.split('_'),
  2088. weekdaysMin : 'ی_د_س_چ_پ_ج_ش'.split('_'),
  2089. longDateFormat : {
  2090. LT : 'HH:mm',
  2091. LTS : 'LT:ss',
  2092. L : 'DD/MM/YYYY',
  2093. LL : 'D MMMM YYYY',
  2094. LLL : 'D MMMM YYYY LT',
  2095. LLLL : 'dddd, D MMMM YYYY LT'
  2096. },
  2097. meridiemParse: /قبل از ظهر|بعد از ظهر/,
  2098. isPM: function (input) {
  2099. return /بعد از ظهر/.test(input);
  2100. },
  2101. meridiem : function (hour, minute, isLower) {
  2102. if (hour < 12) {
  2103. return 'قبل از ظهر';
  2104. } else {
  2105. return 'بعد از ظهر';
  2106. }
  2107. },
  2108. calendar : {
  2109. sameDay : '[امروز ساعت] LT',
  2110. nextDay : '[فردا ساعت] LT',
  2111. nextWeek : 'dddd [ساعت] LT',
  2112. lastDay : '[دیروز ساعت] LT',
  2113. lastWeek : 'dddd [پیش] [ساعت] LT',
  2114. sameElse : 'L'
  2115. },
  2116. relativeTime : {
  2117. future : 'در %s',
  2118. past : '%s پیش',
  2119. s : 'چندین ثانیه',
  2120. m : 'یک دقیقه',
  2121. mm : '%d دقیقه',
  2122. h : 'یک ساعت',
  2123. hh : '%d ساعت',
  2124. d : 'یک روز',
  2125. dd : '%d روز',
  2126. M : 'یک ماه',
  2127. MM : '%d ماه',
  2128. y : 'یک سال',
  2129. yy : '%d سال'
  2130. },
  2131. preparse: function (string) {
  2132. return string.replace(/[۰-۹]/g, function (match) {
  2133. return fa__numberMap[match];
  2134. }).replace(/،/g, ',');
  2135. },
  2136. postformat: function (string) {
  2137. return string.replace(/\d/g, function (match) {
  2138. return fa__symbolMap[match];
  2139. }).replace(/,/g, '،');
  2140. },
  2141. ordinalParse: /\d{1,2}م/,
  2142. ordinal : '%dم',
  2143. week : {
  2144. dow : 6, // Saturday is the first day of the week.
  2145. doy : 12 // The week that contains Jan 1st is the first week of the year.
  2146. }
  2147. });
  2148. //! moment.js locale configuration
  2149. //! locale : finnish (fi)
  2150. //! author : Tarmo Aidantausta : https://github.com/bleadof
  2151. var numbersPast = 'nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän'.split(' '),
  2152. numbersFuture = [
  2153. 'nolla', 'yhden', 'kahden', 'kolmen', 'neljän', 'viiden', 'kuuden',
  2154. numbersPast[7], numbersPast[8], numbersPast[9]
  2155. ];
  2156. function fi__translate(number, withoutSuffix, key, isFuture) {
  2157. var result = '';
  2158. switch (key) {
  2159. case 's':
  2160. return isFuture ? 'muutaman sekunnin' : 'muutama sekunti';
  2161. case 'm':
  2162. return isFuture ? 'minuutin' : 'minuutti';
  2163. case 'mm':
  2164. result = isFuture ? 'minuutin' : 'minuuttia';
  2165. break;
  2166. case 'h':
  2167. return isFuture ? 'tunnin' : 'tunti';
  2168. case 'hh':
  2169. result = isFuture ? 'tunnin' : 'tuntia';
  2170. break;
  2171. case 'd':
  2172. return isFuture ? 'päivän' : 'päivä';
  2173. case 'dd':
  2174. result = isFuture ? 'päivän' : 'päivää';
  2175. break;
  2176. case 'M':
  2177. return isFuture ? 'kuukauden' : 'kuukausi';
  2178. case 'MM':
  2179. result = isFuture ? 'kuukauden' : 'kuukautta';
  2180. break;
  2181. case 'y':
  2182. return isFuture ? 'vuoden' : 'vuosi';
  2183. case 'yy':
  2184. result = isFuture ? 'vuoden' : 'vuotta';
  2185. break;
  2186. }
  2187. result = verbalNumber(number, isFuture) + ' ' + result;
  2188. return result;
  2189. }
  2190. function verbalNumber(number, isFuture) {
  2191. return number < 10 ? (isFuture ? numbersFuture[number] : numbersPast[number]) : number;
  2192. }
  2193. var fi = moment.defineLocale('fi', {
  2194. months : 'tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu'.split('_'),
  2195. monthsShort : 'tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu'.split('_'),
  2196. weekdays : 'sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai'.split('_'),
  2197. weekdaysShort : 'su_ma_ti_ke_to_pe_la'.split('_'),
  2198. weekdaysMin : 'su_ma_ti_ke_to_pe_la'.split('_'),
  2199. longDateFormat : {
  2200. LT : 'HH.mm',
  2201. LTS : 'HH.mm.ss',
  2202. L : 'DD.MM.YYYY',
  2203. LL : 'Do MMMM[ta] YYYY',
  2204. LLL : 'Do MMMM[ta] YYYY, [klo] LT',
  2205. LLLL : 'dddd, Do MMMM[ta] YYYY, [klo] LT',
  2206. l : 'D.M.YYYY',
  2207. ll : 'Do MMM YYYY',
  2208. lll : 'Do MMM YYYY, [klo] LT',
  2209. llll : 'ddd, Do MMM YYYY, [klo] LT'
  2210. },
  2211. calendar : {
  2212. sameDay : '[tänään] [klo] LT',
  2213. nextDay : '[huomenna] [klo] LT',
  2214. nextWeek : 'dddd [klo] LT',
  2215. lastDay : '[eilen] [klo] LT',
  2216. lastWeek : '[viime] dddd[na] [klo] LT',
  2217. sameElse : 'L'
  2218. },
  2219. relativeTime : {
  2220. future : '%s päästä',
  2221. past : '%s sitten',
  2222. s : fi__translate,
  2223. m : fi__translate,
  2224. mm : fi__translate,
  2225. h : fi__translate,
  2226. hh : fi__translate,
  2227. d : fi__translate,
  2228. dd : fi__translate,
  2229. M : fi__translate,
  2230. MM : fi__translate,
  2231. y : fi__translate,
  2232. yy : fi__translate
  2233. },
  2234. ordinalParse: /\d{1,2}\./,
  2235. ordinal : '%d.',
  2236. week : {
  2237. dow : 1, // Monday is the first day of the week.
  2238. doy : 4 // The week that contains Jan 4th is the first week of the year.
  2239. }
  2240. });
  2241. //! moment.js locale configuration
  2242. //! locale : faroese (fo)
  2243. //! author : Ragnar Johannesen : https://github.com/ragnar123
  2244. var fo = moment.defineLocale('fo', {
  2245. months : 'januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember'.split('_'),
  2246. monthsShort : 'jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_'),
  2247. weekdays : 'sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur'.split('_'),
  2248. weekdaysShort : 'sun_mán_týs_mik_hós_frí_ley'.split('_'),
  2249. weekdaysMin : 'su_má_tý_mi_hó_fr_le'.split('_'),
  2250. longDateFormat : {
  2251. LT : 'HH:mm',
  2252. LTS : 'LT:ss',
  2253. L : 'DD/MM/YYYY',
  2254. LL : 'D MMMM YYYY',
  2255. LLL : 'D MMMM YYYY LT',
  2256. LLLL : 'dddd D. MMMM, YYYY LT'
  2257. },
  2258. calendar : {
  2259. sameDay : '[Í dag kl.] LT',
  2260. nextDay : '[Í morgin kl.] LT',
  2261. nextWeek : 'dddd [kl.] LT',
  2262. lastDay : '[Í gjár kl.] LT',
  2263. lastWeek : '[síðstu] dddd [kl] LT',
  2264. sameElse : 'L'
  2265. },
  2266. relativeTime : {
  2267. future : 'um %s',
  2268. past : '%s síðani',
  2269. s : 'fá sekund',
  2270. m : 'ein minutt',
  2271. mm : '%d minuttir',
  2272. h : 'ein tími',
  2273. hh : '%d tímar',
  2274. d : 'ein dagur',
  2275. dd : '%d dagar',
  2276. M : 'ein mánaði',
  2277. MM : '%d mánaðir',
  2278. y : 'eitt ár',
  2279. yy : '%d ár'
  2280. },
  2281. ordinalParse: /\d{1,2}\./,
  2282. ordinal : '%d.',
  2283. week : {
  2284. dow : 1, // Monday is the first day of the week.
  2285. doy : 4 // The week that contains Jan 4th is the first week of the year.
  2286. }
  2287. });
  2288. //! moment.js locale configuration
  2289. //! locale : canadian french (fr-ca)
  2290. //! author : Jonathan Abourbih : https://github.com/jonbca
  2291. var fr_ca = moment.defineLocale('fr-ca', {
  2292. months : 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split('_'),
  2293. monthsShort : 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split('_'),
  2294. weekdays : 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),
  2295. weekdaysShort : 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),
  2296. weekdaysMin : 'Di_Lu_Ma_Me_Je_Ve_Sa'.split('_'),
  2297. longDateFormat : {
  2298. LT : 'HH:mm',
  2299. LTS : 'LT:ss',
  2300. L : 'YYYY-MM-DD',
  2301. LL : 'D MMMM YYYY',
  2302. LLL : 'D MMMM YYYY LT',
  2303. LLLL : 'dddd D MMMM YYYY LT'
  2304. },
  2305. calendar : {
  2306. sameDay: '[Aujourd\'hui à] LT',
  2307. nextDay: '[Demain à] LT',
  2308. nextWeek: 'dddd [à] LT',
  2309. lastDay: '[Hier à] LT',
  2310. lastWeek: 'dddd [dernier à] LT',
  2311. sameElse: 'L'
  2312. },
  2313. relativeTime : {
  2314. future : 'dans %s',
  2315. past : 'il y a %s',
  2316. s : 'quelques secondes',
  2317. m : 'une minute',
  2318. mm : '%d minutes',
  2319. h : 'une heure',
  2320. hh : '%d heures',
  2321. d : 'un jour',
  2322. dd : '%d jours',
  2323. M : 'un mois',
  2324. MM : '%d mois',
  2325. y : 'un an',
  2326. yy : '%d ans'
  2327. },
  2328. ordinalParse: /\d{1,2}(er|)/,
  2329. ordinal : function (number) {
  2330. return number + (number === 1 ? 'er' : '');
  2331. }
  2332. });
  2333. //! moment.js locale configuration
  2334. //! locale : french (fr)
  2335. //! author : John Fischer : https://github.com/jfroffice
  2336. var fr = moment.defineLocale('fr', {
  2337. months : 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split('_'),
  2338. monthsShort : 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split('_'),
  2339. weekdays : 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),
  2340. weekdaysShort : 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),
  2341. weekdaysMin : 'Di_Lu_Ma_Me_Je_Ve_Sa'.split('_'),
  2342. longDateFormat : {
  2343. LT : 'HH:mm',
  2344. LTS : 'LT:ss',
  2345. L : 'DD/MM/YYYY',
  2346. LL : 'D MMMM YYYY',
  2347. LLL : 'D MMMM YYYY LT',
  2348. LLLL : 'dddd D MMMM YYYY LT'
  2349. },
  2350. calendar : {
  2351. sameDay: '[Aujourd\'hui à] LT',
  2352. nextDay: '[Demain à] LT',
  2353. nextWeek: 'dddd [à] LT',
  2354. lastDay: '[Hier à] LT',
  2355. lastWeek: 'dddd [dernier à] LT',
  2356. sameElse: 'L'
  2357. },
  2358. relativeTime : {
  2359. future : 'dans %s',
  2360. past : 'il y a %s',
  2361. s : 'quelques secondes',
  2362. m : 'une minute',
  2363. mm : '%d minutes',
  2364. h : 'une heure',
  2365. hh : '%d heures',
  2366. d : 'un jour',
  2367. dd : '%d jours',
  2368. M : 'un mois',
  2369. MM : '%d mois',
  2370. y : 'un an',
  2371. yy : '%d ans'
  2372. },
  2373. ordinalParse: /\d{1,2}(er|)/,
  2374. ordinal : function (number) {
  2375. return number + (number === 1 ? 'er' : '');
  2376. },
  2377. week : {
  2378. dow : 1, // Monday is the first day of the week.
  2379. doy : 4 // The week that contains Jan 4th is the first week of the year.
  2380. }
  2381. });
  2382. //! moment.js locale configuration
  2383. //! locale : frisian (fy)
  2384. //! author : Robin van der Vliet : https://github.com/robin0van0der0v
  2385. var fy__monthsShortWithDots = 'jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.'.split('_'),
  2386. fy__monthsShortWithoutDots = 'jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_');
  2387. var fy = moment.defineLocale('fy', {
  2388. months : 'jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber'.split('_'),
  2389. monthsShort : function (m, format) {
  2390. if (/-MMM-/.test(format)) {
  2391. return fy__monthsShortWithoutDots[m.month()];
  2392. } else {
  2393. return fy__monthsShortWithDots[m.month()];
  2394. }
  2395. },
  2396. weekdays : 'snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon'.split('_'),
  2397. weekdaysShort : 'si._mo._ti._wo._to._fr._so.'.split('_'),
  2398. weekdaysMin : 'Si_Mo_Ti_Wo_To_Fr_So'.split('_'),
  2399. longDateFormat : {
  2400. LT : 'HH:mm',
  2401. LTS : 'LT:ss',
  2402. L : 'DD-MM-YYYY',
  2403. LL : 'D MMMM YYYY',
  2404. LLL : 'D MMMM YYYY LT',
  2405. LLLL : 'dddd D MMMM YYYY LT'
  2406. },
  2407. calendar : {
  2408. sameDay: '[hjoed om] LT',
  2409. nextDay: '[moarn om] LT',
  2410. nextWeek: 'dddd [om] LT',
  2411. lastDay: '[juster om] LT',
  2412. lastWeek: '[ôfrûne] dddd [om] LT',
  2413. sameElse: 'L'
  2414. },
  2415. relativeTime : {
  2416. future : 'oer %s',
  2417. past : '%s lyn',
  2418. s : 'in pear sekonden',
  2419. m : 'ien minút',
  2420. mm : '%d minuten',
  2421. h : 'ien oere',
  2422. hh : '%d oeren',
  2423. d : 'ien dei',
  2424. dd : '%d dagen',
  2425. M : 'ien moanne',
  2426. MM : '%d moannen',
  2427. y : 'ien jier',
  2428. yy : '%d jierren'
  2429. },
  2430. ordinalParse: /\d{1,2}(ste|de)/,
  2431. ordinal : function (number) {
  2432. return number + ((number === 1 || number === 8 || number >= 20) ? 'ste' : 'de');
  2433. },
  2434. week : {
  2435. dow : 1, // Monday is the first day of the week.
  2436. doy : 4 // The week that contains Jan 4th is the first week of the year.
  2437. }
  2438. });
  2439. //! moment.js locale configuration
  2440. //! locale : galician (gl)
  2441. //! author : Juan G. Hurtado : https://github.com/juanghurtado
  2442. var gl = moment.defineLocale('gl', {
  2443. months : 'Xaneiro_Febreiro_Marzo_Abril_Maio_Xuño_Xullo_Agosto_Setembro_Outubro_Novembro_Decembro'.split('_'),
  2444. monthsShort : 'Xan._Feb._Mar._Abr._Mai._Xuñ._Xul._Ago._Set._Out._Nov._Dec.'.split('_'),
  2445. weekdays : 'Domingo_Luns_Martes_Mércores_Xoves_Venres_Sábado'.split('_'),
  2446. weekdaysShort : 'Dom._Lun._Mar._Mér._Xov._Ven._Sáb.'.split('_'),
  2447. weekdaysMin : 'Do_Lu_Ma_Mé_Xo_Ve_Sá'.split('_'),
  2448. longDateFormat : {
  2449. LT : 'H:mm',
  2450. LTS : 'LT:ss',
  2451. L : 'DD/MM/YYYY',
  2452. LL : 'D MMMM YYYY',
  2453. LLL : 'D MMMM YYYY LT',
  2454. LLLL : 'dddd D MMMM YYYY LT'
  2455. },
  2456. calendar : {
  2457. sameDay : function () {
  2458. return '[hoxe ' + ((this.hours() !== 1) ? 'ás' : 'á') + '] LT';
  2459. },
  2460. nextDay : function () {
  2461. return '[mañá ' + ((this.hours() !== 1) ? 'ás' : 'á') + '] LT';
  2462. },
  2463. nextWeek : function () {
  2464. return 'dddd [' + ((this.hours() !== 1) ? 'ás' : 'a') + '] LT';
  2465. },
  2466. lastDay : function () {
  2467. return '[onte ' + ((this.hours() !== 1) ? 'á' : 'a') + '] LT';
  2468. },
  2469. lastWeek : function () {
  2470. return '[o] dddd [pasado ' + ((this.hours() !== 1) ? 'ás' : 'a') + '] LT';
  2471. },
  2472. sameElse : 'L'
  2473. },
  2474. relativeTime : {
  2475. future : function (str) {
  2476. if (str === 'uns segundos') {
  2477. return 'nuns segundos';
  2478. }
  2479. return 'en ' + str;
  2480. },
  2481. past : 'hai %s',
  2482. s : 'uns segundos',
  2483. m : 'un minuto',
  2484. mm : '%d minutos',
  2485. h : 'unha hora',
  2486. hh : '%d horas',
  2487. d : 'un día',
  2488. dd : '%d días',
  2489. M : 'un mes',
  2490. MM : '%d meses',
  2491. y : 'un ano',
  2492. yy : '%d anos'
  2493. },
  2494. ordinalParse : /\d{1,2}º/,
  2495. ordinal : '%dº',
  2496. week : {
  2497. dow : 1, // Monday is the first day of the week.
  2498. doy : 7 // The week that contains Jan 1st is the first week of the year.
  2499. }
  2500. });
  2501. //! moment.js locale configuration
  2502. //! locale : Hebrew (he)
  2503. //! author : Tomer Cohen : https://github.com/tomer
  2504. //! author : Moshe Simantov : https://github.com/DevelopmentIL
  2505. //! author : Tal Ater : https://github.com/TalAter
  2506. var he = moment.defineLocale('he', {
  2507. months : 'ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר'.split('_'),
  2508. monthsShort : 'ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳'.split('_'),
  2509. weekdays : 'ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת'.split('_'),
  2510. weekdaysShort : 'א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳'.split('_'),
  2511. weekdaysMin : 'א_ב_ג_ד_ה_ו_ש'.split('_'),
  2512. longDateFormat : {
  2513. LT : 'HH:mm',
  2514. LTS : 'LT:ss',
  2515. L : 'DD/MM/YYYY',
  2516. LL : 'D [ב]MMMM YYYY',
  2517. LLL : 'D [ב]MMMM YYYY LT',
  2518. LLLL : 'dddd, D [ב]MMMM YYYY LT',
  2519. l : 'D/M/YYYY',
  2520. ll : 'D MMM YYYY',
  2521. lll : 'D MMM YYYY LT',
  2522. llll : 'ddd, D MMM YYYY LT'
  2523. },
  2524. calendar : {
  2525. sameDay : '[היום ב־]LT',
  2526. nextDay : '[מחר ב־]LT',
  2527. nextWeek : 'dddd [בשעה] LT',
  2528. lastDay : '[אתמול ב־]LT',
  2529. lastWeek : '[ביום] dddd [האחרון בשעה] LT',
  2530. sameElse : 'L'
  2531. },
  2532. relativeTime : {
  2533. future : 'בעוד %s',
  2534. past : 'לפני %s',
  2535. s : 'מספר שניות',
  2536. m : 'דקה',
  2537. mm : '%d דקות',
  2538. h : 'שעה',
  2539. hh : function (number) {
  2540. if (number === 2) {
  2541. return 'שעתיים';
  2542. }
  2543. return number + ' שעות';
  2544. },
  2545. d : 'יום',
  2546. dd : function (number) {
  2547. if (number === 2) {
  2548. return 'יומיים';
  2549. }
  2550. return number + ' ימים';
  2551. },
  2552. M : 'חודש',
  2553. MM : function (number) {
  2554. if (number === 2) {
  2555. return 'חודשיים';
  2556. }
  2557. return number + ' חודשים';
  2558. },
  2559. y : 'שנה',
  2560. yy : function (number) {
  2561. if (number === 2) {
  2562. return 'שנתיים';
  2563. } else if (number % 10 === 0 && number !== 10) {
  2564. return number + ' שנה';
  2565. }
  2566. return number + ' שנים';
  2567. }
  2568. }
  2569. });
  2570. //! moment.js locale configuration
  2571. //! locale : hindi (hi)
  2572. //! author : Mayank Singhal : https://github.com/mayanksinghal
  2573. var hi__symbolMap = {
  2574. '1': '१',
  2575. '2': '२',
  2576. '3': '३',
  2577. '4': '४',
  2578. '5': '५',
  2579. '6': '६',
  2580. '7': '७',
  2581. '8': '८',
  2582. '9': '९',
  2583. '0': '०'
  2584. },
  2585. hi__numberMap = {
  2586. '१': '1',
  2587. '२': '2',
  2588. '३': '3',
  2589. '४': '4',
  2590. '५': '5',
  2591. '६': '6',
  2592. '७': '7',
  2593. '८': '8',
  2594. '९': '9',
  2595. '०': '0'
  2596. };
  2597. var hi = moment.defineLocale('hi', {
  2598. months : 'जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर'.split('_'),
  2599. monthsShort : 'जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.'.split('_'),
  2600. weekdays : 'रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार'.split('_'),
  2601. weekdaysShort : 'रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि'.split('_'),
  2602. weekdaysMin : 'र_सो_मं_बु_गु_शु_श'.split('_'),
  2603. longDateFormat : {
  2604. LT : 'A h:mm बजे',
  2605. LTS : 'A h:mm:ss बजे',
  2606. L : 'DD/MM/YYYY',
  2607. LL : 'D MMMM YYYY',
  2608. LLL : 'D MMMM YYYY, LT',
  2609. LLLL : 'dddd, D MMMM YYYY, LT'
  2610. },
  2611. calendar : {
  2612. sameDay : '[आज] LT',
  2613. nextDay : '[कल] LT',
  2614. nextWeek : 'dddd, LT',
  2615. lastDay : '[कल] LT',
  2616. lastWeek : '[पिछले] dddd, LT',
  2617. sameElse : 'L'
  2618. },
  2619. relativeTime : {
  2620. future : '%s में',
  2621. past : '%s पहले',
  2622. s : 'कुछ ही क्षण',
  2623. m : 'एक मिनट',
  2624. mm : '%d मिनट',
  2625. h : 'एक घंटा',
  2626. hh : '%d घंटे',
  2627. d : 'एक दिन',
  2628. dd : '%d दिन',
  2629. M : 'एक महीने',
  2630. MM : '%d महीने',
  2631. y : 'एक वर्ष',
  2632. yy : '%d वर्ष'
  2633. },
  2634. preparse: function (string) {
  2635. return string.replace(/[१२३४५६७८९०]/g, function (match) {
  2636. return hi__numberMap[match];
  2637. });
  2638. },
  2639. postformat: function (string) {
  2640. return string.replace(/\d/g, function (match) {
  2641. return hi__symbolMap[match];
  2642. });
  2643. },
  2644. // Hindi notation for meridiems are quite fuzzy in practice. While there exists
  2645. // a rigid notion of a 'Pahar' it is not used as rigidly in modern Hindi.
  2646. meridiemParse: /रात|सुबह|दोपहर|शाम/,
  2647. meridiemHour : function (hour, meridiem) {
  2648. if (hour === 12) {
  2649. hour = 0;
  2650. }
  2651. if (meridiem === 'रात') {
  2652. return hour < 4 ? hour : hour + 12;
  2653. } else if (meridiem === 'सुबह') {
  2654. return hour;
  2655. } else if (meridiem === 'दोपहर') {
  2656. return hour >= 10 ? hour : hour + 12;
  2657. } else if (meridiem === 'शाम') {
  2658. return hour + 12;
  2659. }
  2660. },
  2661. meridiem : function (hour, minute, isLower) {
  2662. if (hour < 4) {
  2663. return 'रात';
  2664. } else if (hour < 10) {
  2665. return 'सुबह';
  2666. } else if (hour < 17) {
  2667. return 'दोपहर';
  2668. } else if (hour < 20) {
  2669. return 'शाम';
  2670. } else {
  2671. return 'रात';
  2672. }
  2673. },
  2674. week : {
  2675. dow : 0, // Sunday is the first day of the week.
  2676. doy : 6 // The week that contains Jan 1st is the first week of the year.
  2677. }
  2678. });
  2679. //! moment.js locale configuration
  2680. //! locale : hrvatski (hr)
  2681. //! author : Bojan Marković : https://github.com/bmarkovic
  2682. function hr__translate(number, withoutSuffix, key) {
  2683. var result = number + ' ';
  2684. switch (key) {
  2685. case 'm':
  2686. return withoutSuffix ? 'jedna minuta' : 'jedne minute';
  2687. case 'mm':
  2688. if (number === 1) {
  2689. result += 'minuta';
  2690. } else if (number === 2 || number === 3 || number === 4) {
  2691. result += 'minute';
  2692. } else {
  2693. result += 'minuta';
  2694. }
  2695. return result;
  2696. case 'h':
  2697. return withoutSuffix ? 'jedan sat' : 'jednog sata';
  2698. case 'hh':
  2699. if (number === 1) {
  2700. result += 'sat';
  2701. } else if (number === 2 || number === 3 || number === 4) {
  2702. result += 'sata';
  2703. } else {
  2704. result += 'sati';
  2705. }
  2706. return result;
  2707. case 'dd':
  2708. if (number === 1) {
  2709. result += 'dan';
  2710. } else {
  2711. result += 'dana';
  2712. }
  2713. return result;
  2714. case 'MM':
  2715. if (number === 1) {
  2716. result += 'mjesec';
  2717. } else if (number === 2 || number === 3 || number === 4) {
  2718. result += 'mjeseca';
  2719. } else {
  2720. result += 'mjeseci';
  2721. }
  2722. return result;
  2723. case 'yy':
  2724. if (number === 1) {
  2725. result += 'godina';
  2726. } else if (number === 2 || number === 3 || number === 4) {
  2727. result += 'godine';
  2728. } else {
  2729. result += 'godina';
  2730. }
  2731. return result;
  2732. }
  2733. }
  2734. var hr = moment.defineLocale('hr', {
  2735. months : 'sječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac'.split('_'),
  2736. monthsShort : 'sje._vel._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.'.split('_'),
  2737. weekdays : 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split('_'),
  2738. weekdaysShort : 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),
  2739. weekdaysMin : 'ne_po_ut_sr_če_pe_su'.split('_'),
  2740. longDateFormat : {
  2741. LT : 'H:mm',
  2742. LTS : 'LT:ss',
  2743. L : 'DD. MM. YYYY',
  2744. LL : 'D. MMMM YYYY',
  2745. LLL : 'D. MMMM YYYY LT',
  2746. LLLL : 'dddd, D. MMMM YYYY LT'
  2747. },
  2748. calendar : {
  2749. sameDay : '[danas u] LT',
  2750. nextDay : '[sutra u] LT',
  2751. nextWeek : function () {
  2752. switch (this.day()) {
  2753. case 0:
  2754. return '[u] [nedjelju] [u] LT';
  2755. case 3:
  2756. return '[u] [srijedu] [u] LT';
  2757. case 6:
  2758. return '[u] [subotu] [u] LT';
  2759. case 1:
  2760. case 2:
  2761. case 4:
  2762. case 5:
  2763. return '[u] dddd [u] LT';
  2764. }
  2765. },
  2766. lastDay : '[jučer u] LT',
  2767. lastWeek : function () {
  2768. switch (this.day()) {
  2769. case 0:
  2770. case 3:
  2771. return '[prošlu] dddd [u] LT';
  2772. case 6:
  2773. return '[prošle] [subote] [u] LT';
  2774. case 1:
  2775. case 2:
  2776. case 4:
  2777. case 5:
  2778. return '[prošli] dddd [u] LT';
  2779. }
  2780. },
  2781. sameElse : 'L'
  2782. },
  2783. relativeTime : {
  2784. future : 'za %s',
  2785. past : 'prije %s',
  2786. s : 'par sekundi',
  2787. m : hr__translate,
  2788. mm : hr__translate,
  2789. h : hr__translate,
  2790. hh : hr__translate,
  2791. d : 'dan',
  2792. dd : hr__translate,
  2793. M : 'mjesec',
  2794. MM : hr__translate,
  2795. y : 'godinu',
  2796. yy : hr__translate
  2797. },
  2798. ordinalParse: /\d{1,2}\./,
  2799. ordinal : '%d.',
  2800. week : {
  2801. dow : 1, // Monday is the first day of the week.
  2802. doy : 7 // The week that contains Jan 1st is the first week of the year.
  2803. }
  2804. });
  2805. //! moment.js locale configuration
  2806. //! locale : hungarian (hu)
  2807. //! author : Adam Brunner : https://github.com/adambrunner
  2808. var weekEndings = 'vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton'.split(' ');
  2809. function hu__translate(number, withoutSuffix, key, isFuture) {
  2810. var num = number,
  2811. suffix;
  2812. switch (key) {
  2813. case 's':
  2814. return (isFuture || withoutSuffix) ? 'néhány másodperc' : 'néhány másodperce';
  2815. case 'm':
  2816. return 'egy' + (isFuture || withoutSuffix ? ' perc' : ' perce');
  2817. case 'mm':
  2818. return num + (isFuture || withoutSuffix ? ' perc' : ' perce');
  2819. case 'h':
  2820. return 'egy' + (isFuture || withoutSuffix ? ' óra' : ' órája');
  2821. case 'hh':
  2822. return num + (isFuture || withoutSuffix ? ' óra' : ' órája');
  2823. case 'd':
  2824. return 'egy' + (isFuture || withoutSuffix ? ' nap' : ' napja');
  2825. case 'dd':
  2826. return num + (isFuture || withoutSuffix ? ' nap' : ' napja');
  2827. case 'M':
  2828. return 'egy' + (isFuture || withoutSuffix ? ' hónap' : ' hónapja');
  2829. case 'MM':
  2830. return num + (isFuture || withoutSuffix ? ' hónap' : ' hónapja');
  2831. case 'y':
  2832. return 'egy' + (isFuture || withoutSuffix ? ' év' : ' éve');
  2833. case 'yy':
  2834. return num + (isFuture || withoutSuffix ? ' év' : ' éve');
  2835. }
  2836. return '';
  2837. }
  2838. function week(isFuture) {
  2839. return (isFuture ? '' : '[múlt] ') + '[' + weekEndings[this.day()] + '] LT[-kor]';
  2840. }
  2841. var hu = moment.defineLocale('hu', {
  2842. months : 'január_február_március_április_május_június_július_augusztus_szeptember_október_november_december'.split('_'),
  2843. monthsShort : 'jan_feb_márc_ápr_máj_jún_júl_aug_szept_okt_nov_dec'.split('_'),
  2844. weekdays : 'vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat'.split('_'),
  2845. weekdaysShort : 'vas_hét_kedd_sze_csüt_pén_szo'.split('_'),
  2846. weekdaysMin : 'v_h_k_sze_cs_p_szo'.split('_'),
  2847. longDateFormat : {
  2848. LT : 'H:mm',
  2849. LTS : 'LT:ss',
  2850. L : 'YYYY.MM.DD.',
  2851. LL : 'YYYY. MMMM D.',
  2852. LLL : 'YYYY. MMMM D., LT',
  2853. LLLL : 'YYYY. MMMM D., dddd LT'
  2854. },
  2855. meridiemParse: /de|du/i,
  2856. isPM: function (input) {
  2857. return input.charAt(1).toLowerCase() === 'u';
  2858. },
  2859. meridiem : function (hours, minutes, isLower) {
  2860. if (hours < 12) {
  2861. return isLower === true ? 'de' : 'DE';
  2862. } else {
  2863. return isLower === true ? 'du' : 'DU';
  2864. }
  2865. },
  2866. calendar : {
  2867. sameDay : '[ma] LT[-kor]',
  2868. nextDay : '[holnap] LT[-kor]',
  2869. nextWeek : function () {
  2870. return week.call(this, true);
  2871. },
  2872. lastDay : '[tegnap] LT[-kor]',
  2873. lastWeek : function () {
  2874. return week.call(this, false);
  2875. },
  2876. sameElse : 'L'
  2877. },
  2878. relativeTime : {
  2879. future : '%s múlva',
  2880. past : '%s',
  2881. s : hu__translate,
  2882. m : hu__translate,
  2883. mm : hu__translate,
  2884. h : hu__translate,
  2885. hh : hu__translate,
  2886. d : hu__translate,
  2887. dd : hu__translate,
  2888. M : hu__translate,
  2889. MM : hu__translate,
  2890. y : hu__translate,
  2891. yy : hu__translate
  2892. },
  2893. ordinalParse: /\d{1,2}\./,
  2894. ordinal : '%d.',
  2895. week : {
  2896. dow : 1, // Monday is the first day of the week.
  2897. doy : 7 // The week that contains Jan 1st is the first week of the year.
  2898. }
  2899. });
  2900. //! moment.js locale configuration
  2901. //! locale : Armenian (hy-am)
  2902. //! author : Armendarabyan : https://github.com/armendarabyan
  2903. function hy_am__monthsCaseReplace(m, format) {
  2904. var months = {
  2905. 'nominative': 'հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր'.split('_'),
  2906. 'accusative': 'հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի'.split('_')
  2907. },
  2908. nounCase = (/D[oD]?(\[[^\[\]]*\]|\s+)+MMMM?/).test(format) ?
  2909. 'accusative' :
  2910. 'nominative';
  2911. return months[nounCase][m.month()];
  2912. }
  2913. function hy_am__monthsShortCaseReplace(m, format) {
  2914. var monthsShort = 'հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ'.split('_');
  2915. return monthsShort[m.month()];
  2916. }
  2917. function hy_am__weekdaysCaseReplace(m, format) {
  2918. var weekdays = 'կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ'.split('_');
  2919. return weekdays[m.day()];
  2920. }
  2921. var hy_am = moment.defineLocale('hy-am', {
  2922. months : hy_am__monthsCaseReplace,
  2923. monthsShort : hy_am__monthsShortCaseReplace,
  2924. weekdays : hy_am__weekdaysCaseReplace,
  2925. weekdaysShort : 'կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ'.split('_'),
  2926. weekdaysMin : 'կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ'.split('_'),
  2927. longDateFormat : {
  2928. LT : 'HH:mm',
  2929. LTS : 'LT:ss',
  2930. L : 'DD.MM.YYYY',
  2931. LL : 'D MMMM YYYY թ.',
  2932. LLL : 'D MMMM YYYY թ., LT',
  2933. LLLL : 'dddd, D MMMM YYYY թ., LT'
  2934. },
  2935. calendar : {
  2936. sameDay: '[այսօր] LT',
  2937. nextDay: '[վաղը] LT',
  2938. lastDay: '[երեկ] LT',
  2939. nextWeek: function () {
  2940. return 'dddd [օրը ժամը] LT';
  2941. },
  2942. lastWeek: function () {
  2943. return '[անցած] dddd [օրը ժամը] LT';
  2944. },
  2945. sameElse: 'L'
  2946. },
  2947. relativeTime : {
  2948. future : '%s հետո',
  2949. past : '%s առաջ',
  2950. s : 'մի քանի վայրկյան',
  2951. m : 'րոպե',
  2952. mm : '%d րոպե',
  2953. h : 'ժամ',
  2954. hh : '%d ժամ',
  2955. d : 'օր',
  2956. dd : '%d օր',
  2957. M : 'ամիս',
  2958. MM : '%d ամիս',
  2959. y : 'տարի',
  2960. yy : '%d տարի'
  2961. },
  2962. meridiemParse: /գիշերվա|առավոտվա|ցերեկվա|երեկոյան/,
  2963. isPM: function (input) {
  2964. return /^(ցերեկվա|երեկոյան)$/.test(input);
  2965. },
  2966. meridiem : function (hour) {
  2967. if (hour < 4) {
  2968. return 'գիշերվա';
  2969. } else if (hour < 12) {
  2970. return 'առավոտվա';
  2971. } else if (hour < 17) {
  2972. return 'ցերեկվա';
  2973. } else {
  2974. return 'երեկոյան';
  2975. }
  2976. },
  2977. ordinalParse: /\d{1,2}|\d{1,2}-(ին|րդ)/,
  2978. ordinal: function (number, period) {
  2979. switch (period) {
  2980. case 'DDD':
  2981. case 'w':
  2982. case 'W':
  2983. case 'DDDo':
  2984. if (number === 1) {
  2985. return number + '-ին';
  2986. }
  2987. return number + '-րդ';
  2988. default:
  2989. return number;
  2990. }
  2991. },
  2992. week : {
  2993. dow : 1, // Monday is the first day of the week.
  2994. doy : 7 // The week that contains Jan 1st is the first week of the year.
  2995. }
  2996. });
  2997. //! moment.js locale configuration
  2998. //! locale : Bahasa Indonesia (id)
  2999. //! author : Mohammad Satrio Utomo : https://github.com/tyok
  3000. //! reference: http://id.wikisource.org/wiki/Pedoman_Umum_Ejaan_Bahasa_Indonesia_yang_Disempurnakan
  3001. var id = moment.defineLocale('id', {
  3002. months : 'Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember'.split('_'),
  3003. monthsShort : 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nov_Des'.split('_'),
  3004. weekdays : 'Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu'.split('_'),
  3005. weekdaysShort : 'Min_Sen_Sel_Rab_Kam_Jum_Sab'.split('_'),
  3006. weekdaysMin : 'Mg_Sn_Sl_Rb_Km_Jm_Sb'.split('_'),
  3007. longDateFormat : {
  3008. LT : 'HH.mm',
  3009. LTS : 'LT.ss',
  3010. L : 'DD/MM/YYYY',
  3011. LL : 'D MMMM YYYY',
  3012. LLL : 'D MMMM YYYY [pukul] LT',
  3013. LLLL : 'dddd, D MMMM YYYY [pukul] LT'
  3014. },
  3015. meridiemParse: /pagi|siang|sore|malam/,
  3016. meridiemHour : function (hour, meridiem) {
  3017. if (hour === 12) {
  3018. hour = 0;
  3019. }
  3020. if (meridiem === 'pagi') {
  3021. return hour;
  3022. } else if (meridiem === 'siang') {
  3023. return hour >= 11 ? hour : hour + 12;
  3024. } else if (meridiem === 'sore' || meridiem === 'malam') {
  3025. return hour + 12;
  3026. }
  3027. },
  3028. meridiem : function (hours, minutes, isLower) {
  3029. if (hours < 11) {
  3030. return 'pagi';
  3031. } else if (hours < 15) {
  3032. return 'siang';
  3033. } else if (hours < 19) {
  3034. return 'sore';
  3035. } else {
  3036. return 'malam';
  3037. }
  3038. },
  3039. calendar : {
  3040. sameDay : '[Hari ini pukul] LT',
  3041. nextDay : '[Besok pukul] LT',
  3042. nextWeek : 'dddd [pukul] LT',
  3043. lastDay : '[Kemarin pukul] LT',
  3044. lastWeek : 'dddd [lalu pukul] LT',
  3045. sameElse : 'L'
  3046. },
  3047. relativeTime : {
  3048. future : 'dalam %s',
  3049. past : '%s yang lalu',
  3050. s : 'beberapa detik',
  3051. m : 'semenit',
  3052. mm : '%d menit',
  3053. h : 'sejam',
  3054. hh : '%d jam',
  3055. d : 'sehari',
  3056. dd : '%d hari',
  3057. M : 'sebulan',
  3058. MM : '%d bulan',
  3059. y : 'setahun',
  3060. yy : '%d tahun'
  3061. },
  3062. week : {
  3063. dow : 1, // Monday is the first day of the week.
  3064. doy : 7 // The week that contains Jan 1st is the first week of the year.
  3065. }
  3066. });
  3067. //! moment.js locale configuration
  3068. //! locale : icelandic (is)
  3069. //! author : Hinrik Örn Sigurðsson : https://github.com/hinrik
  3070. function is__plural(n) {
  3071. if (n % 100 === 11) {
  3072. return true;
  3073. } else if (n % 10 === 1) {
  3074. return false;
  3075. }
  3076. return true;
  3077. }
  3078. function is__translate(number, withoutSuffix, key, isFuture) {
  3079. var result = number + ' ';
  3080. switch (key) {
  3081. case 's':
  3082. return withoutSuffix || isFuture ? 'nokkrar sekúndur' : 'nokkrum sekúndum';
  3083. case 'm':
  3084. return withoutSuffix ? 'mínúta' : 'mínútu';
  3085. case 'mm':
  3086. if (is__plural(number)) {
  3087. return result + (withoutSuffix || isFuture ? 'mínútur' : 'mínútum');
  3088. } else if (withoutSuffix) {
  3089. return result + 'mínúta';
  3090. }
  3091. return result + 'mínútu';
  3092. case 'hh':
  3093. if (is__plural(number)) {
  3094. return result + (withoutSuffix || isFuture ? 'klukkustundir' : 'klukkustundum');
  3095. }
  3096. return result + 'klukkustund';
  3097. case 'd':
  3098. if (withoutSuffix) {
  3099. return 'dagur';
  3100. }
  3101. return isFuture ? 'dag' : 'degi';
  3102. case 'dd':
  3103. if (is__plural(number)) {
  3104. if (withoutSuffix) {
  3105. return result + 'dagar';
  3106. }
  3107. return result + (isFuture ? 'daga' : 'dögum');
  3108. } else if (withoutSuffix) {
  3109. return result + 'dagur';
  3110. }
  3111. return result + (isFuture ? 'dag' : 'degi');
  3112. case 'M':
  3113. if (withoutSuffix) {
  3114. return 'mánuður';
  3115. }
  3116. return isFuture ? 'mánuð' : 'mánuði';
  3117. case 'MM':
  3118. if (is__plural(number)) {
  3119. if (withoutSuffix) {
  3120. return result + 'mánuðir';
  3121. }
  3122. return result + (isFuture ? 'mánuði' : 'mánuðum');
  3123. } else if (withoutSuffix) {
  3124. return result + 'mánuður';
  3125. }
  3126. return result + (isFuture ? 'mánuð' : 'mánuði');
  3127. case 'y':
  3128. return withoutSuffix || isFuture ? 'ár' : 'ári';
  3129. case 'yy':
  3130. if (is__plural(number)) {
  3131. return result + (withoutSuffix || isFuture ? 'ár' : 'árum');
  3132. }
  3133. return result + (withoutSuffix || isFuture ? 'ár' : 'ári');
  3134. }
  3135. }
  3136. var is = moment.defineLocale('is', {
  3137. months : 'janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember'.split('_'),
  3138. monthsShort : 'jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des'.split('_'),
  3139. weekdays : 'sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur'.split('_'),
  3140. weekdaysShort : 'sun_mán_þri_mið_fim_fös_lau'.split('_'),
  3141. weekdaysMin : 'Su_Má_Þr_Mi_Fi_Fö_La'.split('_'),
  3142. longDateFormat : {
  3143. LT : 'H:mm',
  3144. LTS : 'LT:ss',
  3145. L : 'DD/MM/YYYY',
  3146. LL : 'D. MMMM YYYY',
  3147. LLL : 'D. MMMM YYYY [kl.] LT',
  3148. LLLL : 'dddd, D. MMMM YYYY [kl.] LT'
  3149. },
  3150. calendar : {
  3151. sameDay : '[í dag kl.] LT',
  3152. nextDay : '[á morgun kl.] LT',
  3153. nextWeek : 'dddd [kl.] LT',
  3154. lastDay : '[í gær kl.] LT',
  3155. lastWeek : '[síðasta] dddd [kl.] LT',
  3156. sameElse : 'L'
  3157. },
  3158. relativeTime : {
  3159. future : 'eftir %s',
  3160. past : 'fyrir %s síðan',
  3161. s : is__translate,
  3162. m : is__translate,
  3163. mm : is__translate,
  3164. h : 'klukkustund',
  3165. hh : is__translate,
  3166. d : is__translate,
  3167. dd : is__translate,
  3168. M : is__translate,
  3169. MM : is__translate,
  3170. y : is__translate,
  3171. yy : is__translate
  3172. },
  3173. ordinalParse: /\d{1,2}\./,
  3174. ordinal : '%d.',
  3175. week : {
  3176. dow : 1, // Monday is the first day of the week.
  3177. doy : 4 // The week that contains Jan 4th is the first week of the year.
  3178. }
  3179. });
  3180. //! moment.js locale configuration
  3181. //! locale : italian (it)
  3182. //! author : Lorenzo : https://github.com/aliem
  3183. //! author: Mattia Larentis: https://github.com/nostalgiaz
  3184. var it = moment.defineLocale('it', {
  3185. months : 'gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre'.split('_'),
  3186. monthsShort : 'gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic'.split('_'),
  3187. weekdays : 'Domenica_Lunedì_Martedì_Mercoledì_Giovedì_Venerdì_Sabato'.split('_'),
  3188. weekdaysShort : 'Dom_Lun_Mar_Mer_Gio_Ven_Sab'.split('_'),
  3189. weekdaysMin : 'D_L_Ma_Me_G_V_S'.split('_'),
  3190. longDateFormat : {
  3191. LT : 'HH:mm',
  3192. LTS : 'LT:ss',
  3193. L : 'DD/MM/YYYY',
  3194. LL : 'D MMMM YYYY',
  3195. LLL : 'D MMMM YYYY LT',
  3196. LLLL : 'dddd, D MMMM YYYY LT'
  3197. },
  3198. calendar : {
  3199. sameDay: '[Oggi alle] LT',
  3200. nextDay: '[Domani alle] LT',
  3201. nextWeek: 'dddd [alle] LT',
  3202. lastDay: '[Ieri alle] LT',
  3203. lastWeek: function () {
  3204. switch (this.day()) {
  3205. case 0:
  3206. return '[la scorsa] dddd [alle] LT';
  3207. default:
  3208. return '[lo scorso] dddd [alle] LT';
  3209. }
  3210. },
  3211. sameElse: 'L'
  3212. },
  3213. relativeTime : {
  3214. future : function (s) {
  3215. return ((/^[0-9].+$/).test(s) ? 'tra' : 'in') + ' ' + s;
  3216. },
  3217. past : '%s fa',
  3218. s : 'alcuni secondi',
  3219. m : 'un minuto',
  3220. mm : '%d minuti',
  3221. h : 'un\'ora',
  3222. hh : '%d ore',
  3223. d : 'un giorno',
  3224. dd : '%d giorni',
  3225. M : 'un mese',
  3226. MM : '%d mesi',
  3227. y : 'un anno',
  3228. yy : '%d anni'
  3229. },
  3230. ordinalParse : /\d{1,2}º/,
  3231. ordinal: '%dº',
  3232. week : {
  3233. dow : 1, // Monday is the first day of the week.
  3234. doy : 4 // The week that contains Jan 4th is the first week of the year.
  3235. }
  3236. });
  3237. //! moment.js locale configuration
  3238. //! locale : japanese (ja)
  3239. //! author : LI Long : https://github.com/baryon
  3240. var ja = moment.defineLocale('ja', {
  3241. months : '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
  3242. monthsShort : '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
  3243. weekdays : '日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日'.split('_'),
  3244. weekdaysShort : '日_月_火_水_木_金_土'.split('_'),
  3245. weekdaysMin : '日_月_火_水_木_金_土'.split('_'),
  3246. longDateFormat : {
  3247. LT : 'Ah時m分',
  3248. LTS : 'LTs秒',
  3249. L : 'YYYY/MM/DD',
  3250. LL : 'YYYY年M月D日',
  3251. LLL : 'YYYY年M月D日LT',
  3252. LLLL : 'YYYY年M月D日LT dddd'
  3253. },
  3254. meridiemParse: /午前|午後/i,
  3255. isPM : function (input) {
  3256. return input === '午後';
  3257. },
  3258. meridiem : function (hour, minute, isLower) {
  3259. if (hour < 12) {
  3260. return '午前';
  3261. } else {
  3262. return '午後';
  3263. }
  3264. },
  3265. calendar : {
  3266. sameDay : '[今日] LT',
  3267. nextDay : '[明日] LT',
  3268. nextWeek : '[来週]dddd LT',
  3269. lastDay : '[昨日] LT',
  3270. lastWeek : '[前週]dddd LT',
  3271. sameElse : 'L'
  3272. },
  3273. relativeTime : {
  3274. future : '%s後',
  3275. past : '%s前',
  3276. s : '数秒',
  3277. m : '1分',
  3278. mm : '%d分',
  3279. h : '1時間',
  3280. hh : '%d時間',
  3281. d : '1日',
  3282. dd : '%d日',
  3283. M : '1ヶ月',
  3284. MM : '%dヶ月',
  3285. y : '1年',
  3286. yy : '%d年'
  3287. }
  3288. });
  3289. //! moment.js locale configuration
  3290. //! locale : Georgian (ka)
  3291. //! author : Irakli Janiashvili : https://github.com/irakli-janiashvili
  3292. function ka__monthsCaseReplace(m, format) {
  3293. var months = {
  3294. 'nominative': 'იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი'.split('_'),
  3295. 'accusative': 'იანვარს_თებერვალს_მარტს_აპრილის_მაისს_ივნისს_ივლისს_აგვისტს_სექტემბერს_ოქტომბერს_ნოემბერს_დეკემბერს'.split('_')
  3296. },
  3297. nounCase = (/D[oD] *MMMM?/).test(format) ?
  3298. 'accusative' :
  3299. 'nominative';
  3300. return months[nounCase][m.month()];
  3301. }
  3302. function ka__weekdaysCaseReplace(m, format) {
  3303. var weekdays = {
  3304. 'nominative': 'კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი'.split('_'),
  3305. 'accusative': 'კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს'.split('_')
  3306. },
  3307. nounCase = (/(წინა|შემდეგ)/).test(format) ?
  3308. 'accusative' :
  3309. 'nominative';
  3310. return weekdays[nounCase][m.day()];
  3311. }
  3312. var ka = moment.defineLocale('ka', {
  3313. months : ka__monthsCaseReplace,
  3314. monthsShort : 'იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ'.split('_'),
  3315. weekdays : ka__weekdaysCaseReplace,
  3316. weekdaysShort : 'კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ'.split('_'),
  3317. weekdaysMin : 'კვ_ორ_სა_ოთ_ხუ_პა_შა'.split('_'),
  3318. longDateFormat : {
  3319. LT : 'h:mm A',
  3320. LTS : 'h:mm:ss A',
  3321. L : 'DD/MM/YYYY',
  3322. LL : 'D MMMM YYYY',
  3323. LLL : 'D MMMM YYYY LT',
  3324. LLLL : 'dddd, D MMMM YYYY LT'
  3325. },
  3326. calendar : {
  3327. sameDay : '[დღეს] LT[-ზე]',
  3328. nextDay : '[ხვალ] LT[-ზე]',
  3329. lastDay : '[გუშინ] LT[-ზე]',
  3330. nextWeek : '[შემდეგ] dddd LT[-ზე]',
  3331. lastWeek : '[წინა] dddd LT-ზე',
  3332. sameElse : 'L'
  3333. },
  3334. relativeTime : {
  3335. future : function (s) {
  3336. return (/(წამი|წუთი|საათი|წელი)/).test(s) ?
  3337. s.replace(/ი$/, 'ში') :
  3338. s + 'ში';
  3339. },
  3340. past : function (s) {
  3341. if ((/(წამი|წუთი|საათი|დღე|თვე)/).test(s)) {
  3342. return s.replace(/(ი|ე)$/, 'ის წინ');
  3343. }
  3344. if ((/წელი/).test(s)) {
  3345. return s.replace(/წელი$/, 'წლის წინ');
  3346. }
  3347. },
  3348. s : 'რამდენიმე წამი',
  3349. m : 'წუთი',
  3350. mm : '%d წუთი',
  3351. h : 'საათი',
  3352. hh : '%d საათი',
  3353. d : 'დღე',
  3354. dd : '%d დღე',
  3355. M : 'თვე',
  3356. MM : '%d თვე',
  3357. y : 'წელი',
  3358. yy : '%d წელი'
  3359. },
  3360. ordinalParse: /0|1-ლი|მე-\d{1,2}|\d{1,2}-ე/,
  3361. ordinal : function (number) {
  3362. if (number === 0) {
  3363. return number;
  3364. }
  3365. if (number === 1) {
  3366. return number + '-ლი';
  3367. }
  3368. if ((number < 20) || (number <= 100 && (number % 20 === 0)) || (number % 100 === 0)) {
  3369. return 'მე-' + number;
  3370. }
  3371. return number + '-ე';
  3372. },
  3373. week : {
  3374. dow : 1,
  3375. doy : 7
  3376. }
  3377. });
  3378. //! moment.js locale configuration
  3379. //! locale : khmer (km)
  3380. //! author : Kruy Vanna : https://github.com/kruyvanna
  3381. var km = moment.defineLocale('km', {
  3382. months: 'មករា_កុម្ភៈ_មិនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ'.split('_'),
  3383. monthsShort: 'មករា_កុម្ភៈ_មិនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ'.split('_'),
  3384. weekdays: 'អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍'.split('_'),
  3385. weekdaysShort: 'អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍'.split('_'),
  3386. weekdaysMin: 'អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍'.split('_'),
  3387. longDateFormat: {
  3388. LT: 'HH:mm',
  3389. LTS : 'LT:ss',
  3390. L: 'DD/MM/YYYY',
  3391. LL: 'D MMMM YYYY',
  3392. LLL: 'D MMMM YYYY LT',
  3393. LLLL: 'dddd, D MMMM YYYY LT'
  3394. },
  3395. calendar: {
  3396. sameDay: '[ថ្ងៃនៈ ម៉ោង] LT',
  3397. nextDay: '[ស្អែក ម៉ោង] LT',
  3398. nextWeek: 'dddd [ម៉ោង] LT',
  3399. lastDay: '[ម្សិលមិញ ម៉ោង] LT',
  3400. lastWeek: 'dddd [សប្តាហ៍មុន] [ម៉ោង] LT',
  3401. sameElse: 'L'
  3402. },
  3403. relativeTime: {
  3404. future: '%sទៀត',
  3405. past: '%sមុន',
  3406. s: 'ប៉ុន្មានវិនាទី',
  3407. m: 'មួយនាទី',
  3408. mm: '%d នាទី',
  3409. h: 'មួយម៉ោង',
  3410. hh: '%d ម៉ោង',
  3411. d: 'មួយថ្ងៃ',
  3412. dd: '%d ថ្ងៃ',
  3413. M: 'មួយខែ',
  3414. MM: '%d ខែ',
  3415. y: 'មួយឆ្នាំ',
  3416. yy: '%d ឆ្នាំ'
  3417. },
  3418. week: {
  3419. dow: 1, // Monday is the first day of the week.
  3420. doy: 4 // The week that contains Jan 4th is the first week of the year.
  3421. }
  3422. });
  3423. //! moment.js locale configuration
  3424. //! locale : korean (ko)
  3425. //!
  3426. //! authors
  3427. //!
  3428. //! - Kyungwook, Park : https://github.com/kyungw00k
  3429. //! - Jeeeyul Lee <jeeeyul@gmail.com>
  3430. var ko = moment.defineLocale('ko', {
  3431. months : '1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월'.split('_'),
  3432. monthsShort : '1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월'.split('_'),
  3433. weekdays : '일요일_월요일_화요일_수요일_목요일_금요일_토요일'.split('_'),
  3434. weekdaysShort : '일_월_화_수_목_금_토'.split('_'),
  3435. weekdaysMin : '일_월_화_수_목_금_토'.split('_'),
  3436. longDateFormat : {
  3437. LT : 'A h시 m분',
  3438. LTS : 'A h시 m분 s초',
  3439. L : 'YYYY.MM.DD',
  3440. LL : 'YYYY년 MMMM D일',
  3441. LLL : 'YYYY년 MMMM D일 LT',
  3442. LLLL : 'YYYY년 MMMM D일 dddd LT'
  3443. },
  3444. calendar : {
  3445. sameDay : '오늘 LT',
  3446. nextDay : '내일 LT',
  3447. nextWeek : 'dddd LT',
  3448. lastDay : '어제 LT',
  3449. lastWeek : '지난주 dddd LT',
  3450. sameElse : 'L'
  3451. },
  3452. relativeTime : {
  3453. future : '%s 후',
  3454. past : '%s 전',
  3455. s : '몇초',
  3456. ss : '%d초',
  3457. m : '일분',
  3458. mm : '%d분',
  3459. h : '한시간',
  3460. hh : '%d시간',
  3461. d : '하루',
  3462. dd : '%d일',
  3463. M : '한달',
  3464. MM : '%d달',
  3465. y : '일년',
  3466. yy : '%d년'
  3467. },
  3468. ordinalParse : /\d{1,2}일/,
  3469. ordinal : '%d일',
  3470. meridiemParse : /오전|오후/,
  3471. isPM : function (token) {
  3472. return token === '오후';
  3473. },
  3474. meridiem : function (hour, minute, isUpper) {
  3475. return hour < 12 ? '오전' : '오후';
  3476. }
  3477. });
  3478. //! moment.js locale configuration
  3479. //! locale : Luxembourgish (lb)
  3480. //! author : mweimerskirch : https://github.com/mweimerskirch, David Raison : https://github.com/kwisatz
  3481. function lb__processRelativeTime(number, withoutSuffix, key, isFuture) {
  3482. var format = {
  3483. 'm': ['eng Minutt', 'enger Minutt'],
  3484. 'h': ['eng Stonn', 'enger Stonn'],
  3485. 'd': ['een Dag', 'engem Dag'],
  3486. 'M': ['ee Mount', 'engem Mount'],
  3487. 'y': ['ee Joer', 'engem Joer']
  3488. };
  3489. return withoutSuffix ? format[key][0] : format[key][1];
  3490. }
  3491. function processFutureTime(string) {
  3492. var number = string.substr(0, string.indexOf(' '));
  3493. if (eifelerRegelAppliesToNumber(number)) {
  3494. return 'a ' + string;
  3495. }
  3496. return 'an ' + string;
  3497. }
  3498. function processPastTime(string) {
  3499. var number = string.substr(0, string.indexOf(' '));
  3500. if (eifelerRegelAppliesToNumber(number)) {
  3501. return 'viru ' + string;
  3502. }
  3503. return 'virun ' + string;
  3504. }
  3505. /**
  3506. * Returns true if the word before the given number loses the '-n' ending.
  3507. * e.g. 'an 10 Deeg' but 'a 5 Deeg'
  3508. *
  3509. * @param number {integer}
  3510. * @returns {boolean}
  3511. */
  3512. function eifelerRegelAppliesToNumber(number) {
  3513. number = parseInt(number, 10);
  3514. if (isNaN(number)) {
  3515. return false;
  3516. }
  3517. if (number < 0) {
  3518. // Negative Number --> always true
  3519. return true;
  3520. } else if (number < 10) {
  3521. // Only 1 digit
  3522. if (4 <= number && number <= 7) {
  3523. return true;
  3524. }
  3525. return false;
  3526. } else if (number < 100) {
  3527. // 2 digits
  3528. var lastDigit = number % 10, firstDigit = number / 10;
  3529. if (lastDigit === 0) {
  3530. return eifelerRegelAppliesToNumber(firstDigit);
  3531. }
  3532. return eifelerRegelAppliesToNumber(lastDigit);
  3533. } else if (number < 10000) {
  3534. // 3 or 4 digits --> recursively check first digit
  3535. while (number >= 10) {
  3536. number = number / 10;
  3537. }
  3538. return eifelerRegelAppliesToNumber(number);
  3539. } else {
  3540. // Anything larger than 4 digits: recursively check first n-3 digits
  3541. number = number / 1000;
  3542. return eifelerRegelAppliesToNumber(number);
  3543. }
  3544. }
  3545. var lb = moment.defineLocale('lb', {
  3546. months: 'Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'),
  3547. monthsShort: 'Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.'.split('_'),
  3548. weekdays: 'Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg'.split('_'),
  3549. weekdaysShort: 'So._Mé._Dë._Më._Do._Fr._Sa.'.split('_'),
  3550. weekdaysMin: 'So_Mé_Dë_Më_Do_Fr_Sa'.split('_'),
  3551. longDateFormat: {
  3552. LT: 'H:mm [Auer]',
  3553. LTS: 'H:mm:ss [Auer]',
  3554. L: 'DD.MM.YYYY',
  3555. LL: 'D. MMMM YYYY',
  3556. LLL: 'D. MMMM YYYY LT',
  3557. LLLL: 'dddd, D. MMMM YYYY LT'
  3558. },
  3559. calendar: {
  3560. sameDay: '[Haut um] LT',
  3561. sameElse: 'L',
  3562. nextDay: '[Muer um] LT',
  3563. nextWeek: 'dddd [um] LT',
  3564. lastDay: '[Gëschter um] LT',
  3565. lastWeek: function () {
  3566. // Different date string for 'Dënschdeg' (Tuesday) and 'Donneschdeg' (Thursday) due to phonological rule
  3567. switch (this.day()) {
  3568. case 2:
  3569. case 4:
  3570. return '[Leschten] dddd [um] LT';
  3571. default:
  3572. return '[Leschte] dddd [um] LT';
  3573. }
  3574. }
  3575. },
  3576. relativeTime : {
  3577. future : processFutureTime,
  3578. past : processPastTime,
  3579. s : 'e puer Sekonnen',
  3580. m : lb__processRelativeTime,
  3581. mm : '%d Minutten',
  3582. h : lb__processRelativeTime,
  3583. hh : '%d Stonnen',
  3584. d : lb__processRelativeTime,
  3585. dd : '%d Deeg',
  3586. M : lb__processRelativeTime,
  3587. MM : '%d Méint',
  3588. y : lb__processRelativeTime,
  3589. yy : '%d Joer'
  3590. },
  3591. ordinalParse: /\d{1,2}\./,
  3592. ordinal: '%d.',
  3593. week: {
  3594. dow: 1, // Monday is the first day of the week.
  3595. doy: 4 // The week that contains Jan 4th is the first week of the year.
  3596. }
  3597. });
  3598. //! moment.js locale configuration
  3599. //! locale : Lithuanian (lt)
  3600. //! author : Mindaugas Mozūras : https://github.com/mmozuras
  3601. var lt__units = {
  3602. 'm' : 'minutė_minutės_minutę',
  3603. 'mm': 'minutės_minučių_minutes',
  3604. 'h' : 'valanda_valandos_valandą',
  3605. 'hh': 'valandos_valandų_valandas',
  3606. 'd' : 'diena_dienos_dieną',
  3607. 'dd': 'dienos_dienų_dienas',
  3608. 'M' : 'mėnuo_mėnesio_mėnesį',
  3609. 'MM': 'mėnesiai_mėnesių_mėnesius',
  3610. 'y' : 'metai_metų_metus',
  3611. 'yy': 'metai_metų_metus'
  3612. },
  3613. weekDays = 'sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis'.split('_');
  3614. function translateSeconds(number, withoutSuffix, key, isFuture) {
  3615. if (withoutSuffix) {
  3616. return 'kelios sekundės';
  3617. } else {
  3618. return isFuture ? 'kelių sekundžių' : 'kelias sekundes';
  3619. }
  3620. }
  3621. function translateSingular(number, withoutSuffix, key, isFuture) {
  3622. return withoutSuffix ? forms(key)[0] : (isFuture ? forms(key)[1] : forms(key)[2]);
  3623. }
  3624. function special(number) {
  3625. return number % 10 === 0 || (number > 10 && number < 20);
  3626. }
  3627. function forms(key) {
  3628. return lt__units[key].split('_');
  3629. }
  3630. function lt__translate(number, withoutSuffix, key, isFuture) {
  3631. var result = number + ' ';
  3632. if (number === 1) {
  3633. return result + translateSingular(number, withoutSuffix, key[0], isFuture);
  3634. } else if (withoutSuffix) {
  3635. return result + (special(number) ? forms(key)[1] : forms(key)[0]);
  3636. } else {
  3637. if (isFuture) {
  3638. return result + forms(key)[1];
  3639. } else {
  3640. return result + (special(number) ? forms(key)[1] : forms(key)[2]);
  3641. }
  3642. }
  3643. }
  3644. function relativeWeekDay(moment, format) {
  3645. var nominative = format.indexOf('dddd HH:mm') === -1,
  3646. weekDay = weekDays[moment.day()];
  3647. return nominative ? weekDay : weekDay.substring(0, weekDay.length - 2) + 'į';
  3648. }
  3649. var lt = moment.defineLocale('lt', {
  3650. months : 'sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio'.split('_'),
  3651. monthsShort : 'sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd'.split('_'),
  3652. weekdays : relativeWeekDay,
  3653. weekdaysShort : 'Sek_Pir_Ant_Tre_Ket_Pen_Šeš'.split('_'),
  3654. weekdaysMin : 'S_P_A_T_K_Pn_Š'.split('_'),
  3655. longDateFormat : {
  3656. LT : 'HH:mm',
  3657. LTS : 'LT:ss',
  3658. L : 'YYYY-MM-DD',
  3659. LL : 'YYYY [m.] MMMM D [d.]',
  3660. LLL : 'YYYY [m.] MMMM D [d.], LT [val.]',
  3661. LLLL : 'YYYY [m.] MMMM D [d.], dddd, LT [val.]',
  3662. l : 'YYYY-MM-DD',
  3663. ll : 'YYYY [m.] MMMM D [d.]',
  3664. lll : 'YYYY [m.] MMMM D [d.], LT [val.]',
  3665. llll : 'YYYY [m.] MMMM D [d.], ddd, LT [val.]'
  3666. },
  3667. calendar : {
  3668. sameDay : '[Šiandien] LT',
  3669. nextDay : '[Rytoj] LT',
  3670. nextWeek : 'dddd LT',
  3671. lastDay : '[Vakar] LT',
  3672. lastWeek : '[Praėjusį] dddd LT',
  3673. sameElse : 'L'
  3674. },
  3675. relativeTime : {
  3676. future : 'po %s',
  3677. past : 'prieš %s',
  3678. s : translateSeconds,
  3679. m : translateSingular,
  3680. mm : lt__translate,
  3681. h : translateSingular,
  3682. hh : lt__translate,
  3683. d : translateSingular,
  3684. dd : lt__translate,
  3685. M : translateSingular,
  3686. MM : lt__translate,
  3687. y : translateSingular,
  3688. yy : lt__translate
  3689. },
  3690. ordinalParse: /\d{1,2}-oji/,
  3691. ordinal : function (number) {
  3692. return number + '-oji';
  3693. },
  3694. week : {
  3695. dow : 1, // Monday is the first day of the week.
  3696. doy : 4 // The week that contains Jan 4th is the first week of the year.
  3697. }
  3698. });
  3699. //! moment.js locale configuration
  3700. //! locale : latvian (lv)
  3701. //! author : Kristaps Karlsons : https://github.com/skakri
  3702. var lv__units = {
  3703. 'mm': 'minūti_minūtes_minūte_minūtes',
  3704. 'hh': 'stundu_stundas_stunda_stundas',
  3705. 'dd': 'dienu_dienas_diena_dienas',
  3706. 'MM': 'mēnesi_mēnešus_mēnesis_mēneši',
  3707. 'yy': 'gadu_gadus_gads_gadi'
  3708. };
  3709. function format(word, number, withoutSuffix) {
  3710. var forms = word.split('_');
  3711. if (withoutSuffix) {
  3712. return number % 10 === 1 && number !== 11 ? forms[2] : forms[3];
  3713. } else {
  3714. return number % 10 === 1 && number !== 11 ? forms[0] : forms[1];
  3715. }
  3716. }
  3717. function lv__relativeTimeWithPlural(number, withoutSuffix, key) {
  3718. return number + ' ' + format(lv__units[key], number, withoutSuffix);
  3719. }
  3720. var lv = moment.defineLocale('lv', {
  3721. months : 'janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris'.split('_'),
  3722. monthsShort : 'jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec'.split('_'),
  3723. weekdays : 'svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena'.split('_'),
  3724. weekdaysShort : 'Sv_P_O_T_C_Pk_S'.split('_'),
  3725. weekdaysMin : 'Sv_P_O_T_C_Pk_S'.split('_'),
  3726. longDateFormat : {
  3727. LT : 'HH:mm',
  3728. LTS : 'LT:ss',
  3729. L : 'DD.MM.YYYY',
  3730. LL : 'YYYY. [gada] D. MMMM',
  3731. LLL : 'YYYY. [gada] D. MMMM, LT',
  3732. LLLL : 'YYYY. [gada] D. MMMM, dddd, LT'
  3733. },
  3734. calendar : {
  3735. sameDay : '[Šodien pulksten] LT',
  3736. nextDay : '[Rīt pulksten] LT',
  3737. nextWeek : 'dddd [pulksten] LT',
  3738. lastDay : '[Vakar pulksten] LT',
  3739. lastWeek : '[Pagājušā] dddd [pulksten] LT',
  3740. sameElse : 'L'
  3741. },
  3742. relativeTime : {
  3743. future : '%s vēlāk',
  3744. past : '%s agrāk',
  3745. s : 'dažas sekundes',
  3746. m : 'minūti',
  3747. mm : lv__relativeTimeWithPlural,
  3748. h : 'stundu',
  3749. hh : lv__relativeTimeWithPlural,
  3750. d : 'dienu',
  3751. dd : lv__relativeTimeWithPlural,
  3752. M : 'mēnesi',
  3753. MM : lv__relativeTimeWithPlural,
  3754. y : 'gadu',
  3755. yy : lv__relativeTimeWithPlural
  3756. },
  3757. ordinalParse: /\d{1,2}\./,
  3758. ordinal : '%d.',
  3759. week : {
  3760. dow : 1, // Monday is the first day of the week.
  3761. doy : 4 // The week that contains Jan 4th is the first week of the year.
  3762. }
  3763. });
  3764. //! moment.js locale configuration
  3765. //! locale : macedonian (mk)
  3766. //! author : Borislav Mickov : https://github.com/B0k0
  3767. var mk = moment.defineLocale('mk', {
  3768. months : 'јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември'.split('_'),
  3769. monthsShort : 'јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек'.split('_'),
  3770. weekdays : 'недела_понеделник_вторник_среда_четврток_петок_сабота'.split('_'),
  3771. weekdaysShort : 'нед_пон_вто_сре_чет_пет_саб'.split('_'),
  3772. weekdaysMin : 'нe_пo_вт_ср_че_пе_сa'.split('_'),
  3773. longDateFormat : {
  3774. LT : 'H:mm',
  3775. LTS : 'LT:ss',
  3776. L : 'D.MM.YYYY',
  3777. LL : 'D MMMM YYYY',
  3778. LLL : 'D MMMM YYYY LT',
  3779. LLLL : 'dddd, D MMMM YYYY LT'
  3780. },
  3781. calendar : {
  3782. sameDay : '[Денес во] LT',
  3783. nextDay : '[Утре во] LT',
  3784. nextWeek : 'dddd [во] LT',
  3785. lastDay : '[Вчера во] LT',
  3786. lastWeek : function () {
  3787. switch (this.day()) {
  3788. case 0:
  3789. case 3:
  3790. case 6:
  3791. return '[Во изминатата] dddd [во] LT';
  3792. case 1:
  3793. case 2:
  3794. case 4:
  3795. case 5:
  3796. return '[Во изминатиот] dddd [во] LT';
  3797. }
  3798. },
  3799. sameElse : 'L'
  3800. },
  3801. relativeTime : {
  3802. future : 'после %s',
  3803. past : 'пред %s',
  3804. s : 'неколку секунди',
  3805. m : 'минута',
  3806. mm : '%d минути',
  3807. h : 'час',
  3808. hh : '%d часа',
  3809. d : 'ден',
  3810. dd : '%d дена',
  3811. M : 'месец',
  3812. MM : '%d месеци',
  3813. y : 'година',
  3814. yy : '%d години'
  3815. },
  3816. ordinalParse: /\d{1,2}-(ев|ен|ти|ви|ри|ми)/,
  3817. ordinal : function (number) {
  3818. var lastDigit = number % 10,
  3819. last2Digits = number % 100;
  3820. if (number === 0) {
  3821. return number + '-ев';
  3822. } else if (last2Digits === 0) {
  3823. return number + '-ен';
  3824. } else if (last2Digits > 10 && last2Digits < 20) {
  3825. return number + '-ти';
  3826. } else if (lastDigit === 1) {
  3827. return number + '-ви';
  3828. } else if (lastDigit === 2) {
  3829. return number + '-ри';
  3830. } else if (lastDigit === 7 || lastDigit === 8) {
  3831. return number + '-ми';
  3832. } else {
  3833. return number + '-ти';
  3834. }
  3835. },
  3836. week : {
  3837. dow : 1, // Monday is the first day of the week.
  3838. doy : 7 // The week that contains Jan 1st is the first week of the year.
  3839. }
  3840. });
  3841. //! moment.js locale configuration
  3842. //! locale : malayalam (ml)
  3843. //! author : Floyd Pink : https://github.com/floydpink
  3844. var ml = moment.defineLocale('ml', {
  3845. months : 'ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ'.split('_'),
  3846. monthsShort : 'ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.'.split('_'),
  3847. weekdays : 'ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച'.split('_'),
  3848. weekdaysShort : 'ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി'.split('_'),
  3849. weekdaysMin : 'ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ'.split('_'),
  3850. longDateFormat : {
  3851. LT : 'A h:mm -നു',
  3852. LTS : 'A h:mm:ss -നു',
  3853. L : 'DD/MM/YYYY',
  3854. LL : 'D MMMM YYYY',
  3855. LLL : 'D MMMM YYYY, LT',
  3856. LLLL : 'dddd, D MMMM YYYY, LT'
  3857. },
  3858. calendar : {
  3859. sameDay : '[ഇന്ന്] LT',
  3860. nextDay : '[നാളെ] LT',
  3861. nextWeek : 'dddd, LT',
  3862. lastDay : '[ഇന്നലെ] LT',
  3863. lastWeek : '[കഴിഞ്ഞ] dddd, LT',
  3864. sameElse : 'L'
  3865. },
  3866. relativeTime : {
  3867. future : '%s കഴിഞ്ഞ്',
  3868. past : '%s മുൻപ്',
  3869. s : 'അൽപ നിമിഷങ്ങൾ',
  3870. m : 'ഒരു മിനിറ്റ്',
  3871. mm : '%d മിനിറ്റ്',
  3872. h : 'ഒരു മണിക്കൂർ',
  3873. hh : '%d മണിക്കൂർ',
  3874. d : 'ഒരു ദിവസം',
  3875. dd : '%d ദിവസം',
  3876. M : 'ഒരു മാസം',
  3877. MM : '%d മാസം',
  3878. y : 'ഒരു വർഷം',
  3879. yy : '%d വർഷം'
  3880. },
  3881. meridiemParse: /രാത്രി|രാവിലെ|ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി/i,
  3882. isPM : function (input) {
  3883. return /^(ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി)$/.test(input);
  3884. },
  3885. meridiem : function (hour, minute, isLower) {
  3886. if (hour < 4) {
  3887. return 'രാത്രി';
  3888. } else if (hour < 12) {
  3889. return 'രാവിലെ';
  3890. } else if (hour < 17) {
  3891. return 'ഉച്ച കഴിഞ്ഞ്';
  3892. } else if (hour < 20) {
  3893. return 'വൈകുന്നേരം';
  3894. } else {
  3895. return 'രാത്രി';
  3896. }
  3897. }
  3898. });
  3899. //! moment.js locale configuration
  3900. //! locale : Marathi (mr)
  3901. //! author : Harshad Kale : https://github.com/kalehv
  3902. var mr__symbolMap = {
  3903. '1': '१',
  3904. '2': '२',
  3905. '3': '३',
  3906. '4': '४',
  3907. '5': '५',
  3908. '6': '६',
  3909. '7': '७',
  3910. '8': '८',
  3911. '9': '९',
  3912. '0': '०'
  3913. },
  3914. mr__numberMap = {
  3915. '१': '1',
  3916. '२': '2',
  3917. '३': '3',
  3918. '४': '4',
  3919. '५': '5',
  3920. '६': '6',
  3921. '७': '7',
  3922. '८': '8',
  3923. '९': '9',
  3924. '०': '0'
  3925. };
  3926. var mr = moment.defineLocale('mr', {
  3927. months : 'जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर'.split('_'),
  3928. monthsShort: 'जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.'.split('_'),
  3929. weekdays : 'रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार'.split('_'),
  3930. weekdaysShort : 'रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि'.split('_'),
  3931. weekdaysMin : 'र_सो_मं_बु_गु_शु_श'.split('_'),
  3932. longDateFormat : {
  3933. LT : 'A h:mm वाजता',
  3934. LTS : 'A h:mm:ss वाजता',
  3935. L : 'DD/MM/YYYY',
  3936. LL : 'D MMMM YYYY',
  3937. LLL : 'D MMMM YYYY, LT',
  3938. LLLL : 'dddd, D MMMM YYYY, LT'
  3939. },
  3940. calendar : {
  3941. sameDay : '[आज] LT',
  3942. nextDay : '[उद्या] LT',
  3943. nextWeek : 'dddd, LT',
  3944. lastDay : '[काल] LT',
  3945. lastWeek: '[मागील] dddd, LT',
  3946. sameElse : 'L'
  3947. },
  3948. relativeTime : {
  3949. future : '%s नंतर',
  3950. past : '%s पूर्वी',
  3951. s : 'सेकंद',
  3952. m: 'एक मिनिट',
  3953. mm: '%d मिनिटे',
  3954. h : 'एक तास',
  3955. hh : '%d तास',
  3956. d : 'एक दिवस',
  3957. dd : '%d दिवस',
  3958. M : 'एक महिना',
  3959. MM : '%d महिने',
  3960. y : 'एक वर्ष',
  3961. yy : '%d वर्षे'
  3962. },
  3963. preparse: function (string) {
  3964. return string.replace(/[१२३४५६७८९०]/g, function (match) {
  3965. return mr__numberMap[match];
  3966. });
  3967. },
  3968. postformat: function (string) {
  3969. return string.replace(/\d/g, function (match) {
  3970. return mr__symbolMap[match];
  3971. });
  3972. },
  3973. meridiemParse: /रात्री|सकाळी|दुपारी|सायंकाळी/,
  3974. meridiemHour : function (hour, meridiem) {
  3975. if (hour === 12) {
  3976. hour = 0;
  3977. }
  3978. if (meridiem === 'रात्री') {
  3979. return hour < 4 ? hour : hour + 12;
  3980. } else if (meridiem === 'सकाळी') {
  3981. return hour;
  3982. } else if (meridiem === 'दुपारी') {
  3983. return hour >= 10 ? hour : hour + 12;
  3984. } else if (meridiem === 'सायंकाळी') {
  3985. return hour + 12;
  3986. }
  3987. },
  3988. meridiem: function (hour, minute, isLower) {
  3989. if (hour < 4) {
  3990. return 'रात्री';
  3991. } else if (hour < 10) {
  3992. return 'सकाळी';
  3993. } else if (hour < 17) {
  3994. return 'दुपारी';
  3995. } else if (hour < 20) {
  3996. return 'सायंकाळी';
  3997. } else {
  3998. return 'रात्री';
  3999. }
  4000. },
  4001. week : {
  4002. dow : 0, // Sunday is the first day of the week.
  4003. doy : 6 // The week that contains Jan 1st is the first week of the year.
  4004. }
  4005. });
  4006. //! moment.js locale configuration
  4007. //! locale : Bahasa Malaysia (ms-MY)
  4008. //! author : Weldan Jamili : https://github.com/weldan
  4009. var ms_my = moment.defineLocale('ms-my', {
  4010. months : 'Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember'.split('_'),
  4011. monthsShort : 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis'.split('_'),
  4012. weekdays : 'Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu'.split('_'),
  4013. weekdaysShort : 'Ahd_Isn_Sel_Rab_Kha_Jum_Sab'.split('_'),
  4014. weekdaysMin : 'Ah_Is_Sl_Rb_Km_Jm_Sb'.split('_'),
  4015. longDateFormat : {
  4016. LT : 'HH.mm',
  4017. LTS : 'LT.ss',
  4018. L : 'DD/MM/YYYY',
  4019. LL : 'D MMMM YYYY',
  4020. LLL : 'D MMMM YYYY [pukul] LT',
  4021. LLLL : 'dddd, D MMMM YYYY [pukul] LT'
  4022. },
  4023. meridiemParse: /pagi|tengahari|petang|malam/,
  4024. meridiemHour: function (hour, meridiem) {
  4025. if (hour === 12) {
  4026. hour = 0;
  4027. }
  4028. if (meridiem === 'pagi') {
  4029. return hour;
  4030. } else if (meridiem === 'tengahari') {
  4031. return hour >= 11 ? hour : hour + 12;
  4032. } else if (meridiem === 'petang' || meridiem === 'malam') {
  4033. return hour + 12;
  4034. }
  4035. },
  4036. meridiem : function (hours, minutes, isLower) {
  4037. if (hours < 11) {
  4038. return 'pagi';
  4039. } else if (hours < 15) {
  4040. return 'tengahari';
  4041. } else if (hours < 19) {
  4042. return 'petang';
  4043. } else {
  4044. return 'malam';
  4045. }
  4046. },
  4047. calendar : {
  4048. sameDay : '[Hari ini pukul] LT',
  4049. nextDay : '[Esok pukul] LT',
  4050. nextWeek : 'dddd [pukul] LT',
  4051. lastDay : '[Kelmarin pukul] LT',
  4052. lastWeek : 'dddd [lepas pukul] LT',
  4053. sameElse : 'L'
  4054. },
  4055. relativeTime : {
  4056. future : 'dalam %s',
  4057. past : '%s yang lepas',
  4058. s : 'beberapa saat',
  4059. m : 'seminit',
  4060. mm : '%d minit',
  4061. h : 'sejam',
  4062. hh : '%d jam',
  4063. d : 'sehari',
  4064. dd : '%d hari',
  4065. M : 'sebulan',
  4066. MM : '%d bulan',
  4067. y : 'setahun',
  4068. yy : '%d tahun'
  4069. },
  4070. week : {
  4071. dow : 1, // Monday is the first day of the week.
  4072. doy : 7 // The week that contains Jan 1st is the first week of the year.
  4073. }
  4074. });
  4075. //! moment.js locale configuration
  4076. //! locale : Burmese (my)
  4077. //! author : Squar team, mysquar.com
  4078. var my__symbolMap = {
  4079. '1': '၁',
  4080. '2': '၂',
  4081. '3': '၃',
  4082. '4': '၄',
  4083. '5': '၅',
  4084. '6': '၆',
  4085. '7': '၇',
  4086. '8': '၈',
  4087. '9': '၉',
  4088. '0': '၀'
  4089. }, my__numberMap = {
  4090. '၁': '1',
  4091. '၂': '2',
  4092. '၃': '3',
  4093. '၄': '4',
  4094. '၅': '5',
  4095. '၆': '6',
  4096. '၇': '7',
  4097. '၈': '8',
  4098. '၉': '9',
  4099. '၀': '0'
  4100. };
  4101. var my = moment.defineLocale('my', {
  4102. months: 'ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ'.split('_'),
  4103. monthsShort: 'ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ'.split('_'),
  4104. weekdays: 'တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ'.split('_'),
  4105. weekdaysShort: 'နွေ_လာ_င်္ဂါ_ဟူး_ကြာ_သော_နေ'.split('_'),
  4106. weekdaysMin: 'နွေ_လာ_င်္ဂါ_ဟူး_ကြာ_သော_နေ'.split('_'),
  4107. longDateFormat: {
  4108. LT: 'HH:mm',
  4109. LTS: 'HH:mm:ss',
  4110. L: 'DD/MM/YYYY',
  4111. LL: 'D MMMM YYYY',
  4112. LLL: 'D MMMM YYYY LT',
  4113. LLLL: 'dddd D MMMM YYYY LT'
  4114. },
  4115. calendar: {
  4116. sameDay: '[ယနေ.] LT [မှာ]',
  4117. nextDay: '[မနက်ဖြန်] LT [မှာ]',
  4118. nextWeek: 'dddd LT [မှာ]',
  4119. lastDay: '[မနေ.က] LT [မှာ]',
  4120. lastWeek: '[ပြီးခဲ့သော] dddd LT [မှာ]',
  4121. sameElse: 'L'
  4122. },
  4123. relativeTime: {
  4124. future: 'လာမည့် %s မှာ',
  4125. past: 'လွန်ခဲ့သော %s က',
  4126. s: 'စက္ကန်.အနည်းငယ်',
  4127. m: 'တစ်မိနစ်',
  4128. mm: '%d မိနစ်',
  4129. h: 'တစ်နာရီ',
  4130. hh: '%d နာရီ',
  4131. d: 'တစ်ရက်',
  4132. dd: '%d ရက်',
  4133. M: 'တစ်လ',
  4134. MM: '%d လ',
  4135. y: 'တစ်နှစ်',
  4136. yy: '%d နှစ်'
  4137. },
  4138. preparse: function (string) {
  4139. return string.replace(/[၁၂၃၄၅၆၇၈၉၀]/g, function (match) {
  4140. return my__numberMap[match];
  4141. });
  4142. },
  4143. postformat: function (string) {
  4144. return string.replace(/\d/g, function (match) {
  4145. return my__symbolMap[match];
  4146. });
  4147. },
  4148. week: {
  4149. dow: 1, // Monday is the first day of the week.
  4150. doy: 4 // The week that contains Jan 1st is the first week of the year.
  4151. }
  4152. });
  4153. //! moment.js locale configuration
  4154. //! locale : norwegian bokmål (nb)
  4155. //! authors : Espen Hovlandsdal : https://github.com/rexxars
  4156. //! Sigurd Gartmann : https://github.com/sigurdga
  4157. var nb = moment.defineLocale('nb', {
  4158. months : 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split('_'),
  4159. monthsShort : 'jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_'),
  4160. weekdays : 'søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag'.split('_'),
  4161. weekdaysShort : 'søn_man_tirs_ons_tors_fre_lør'.split('_'),
  4162. weekdaysMin : 'sø_ma_ti_on_to_fr_lø'.split('_'),
  4163. longDateFormat : {
  4164. LT : 'H.mm',
  4165. LTS : 'LT.ss',
  4166. L : 'DD.MM.YYYY',
  4167. LL : 'D. MMMM YYYY',
  4168. LLL : 'D. MMMM YYYY [kl.] LT',
  4169. LLLL : 'dddd D. MMMM YYYY [kl.] LT'
  4170. },
  4171. calendar : {
  4172. sameDay: '[i dag kl.] LT',
  4173. nextDay: '[i morgen kl.] LT',
  4174. nextWeek: 'dddd [kl.] LT',
  4175. lastDay: '[i går kl.] LT',
  4176. lastWeek: '[forrige] dddd [kl.] LT',
  4177. sameElse: 'L'
  4178. },
  4179. relativeTime : {
  4180. future : 'om %s',
  4181. past : 'for %s siden',
  4182. s : 'noen sekunder',
  4183. m : 'ett minutt',
  4184. mm : '%d minutter',
  4185. h : 'en time',
  4186. hh : '%d timer',
  4187. d : 'en dag',
  4188. dd : '%d dager',
  4189. M : 'en måned',
  4190. MM : '%d måneder',
  4191. y : 'ett år',
  4192. yy : '%d år'
  4193. },
  4194. ordinalParse: /\d{1,2}\./,
  4195. ordinal : '%d.',
  4196. week : {
  4197. dow : 1, // Monday is the first day of the week.
  4198. doy : 4 // The week that contains Jan 4th is the first week of the year.
  4199. }
  4200. });
  4201. //! moment.js locale configuration
  4202. //! locale : nepali/nepalese
  4203. //! author : suvash : https://github.com/suvash
  4204. var ne__symbolMap = {
  4205. '1': '१',
  4206. '2': '२',
  4207. '3': '३',
  4208. '4': '४',
  4209. '5': '५',
  4210. '6': '६',
  4211. '7': '७',
  4212. '8': '८',
  4213. '9': '९',
  4214. '0': '०'
  4215. },
  4216. ne__numberMap = {
  4217. '१': '1',
  4218. '२': '2',
  4219. '३': '3',
  4220. '४': '4',
  4221. '५': '5',
  4222. '६': '6',
  4223. '७': '7',
  4224. '८': '8',
  4225. '९': '9',
  4226. '०': '0'
  4227. };
  4228. var ne = moment.defineLocale('ne', {
  4229. months : 'जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर'.split('_'),
  4230. monthsShort : 'जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.'.split('_'),
  4231. weekdays : 'आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार'.split('_'),
  4232. weekdaysShort : 'आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.'.split('_'),
  4233. weekdaysMin : 'आइ._सो._मङ्_बु._बि._शु._श.'.split('_'),
  4234. longDateFormat : {
  4235. LT : 'Aको h:mm बजे',
  4236. LTS : 'Aको h:mm:ss बजे',
  4237. L : 'DD/MM/YYYY',
  4238. LL : 'D MMMM YYYY',
  4239. LLL : 'D MMMM YYYY, LT',
  4240. LLLL : 'dddd, D MMMM YYYY, LT'
  4241. },
  4242. preparse: function (string) {
  4243. return string.replace(/[१२३४५६७८९०]/g, function (match) {
  4244. return ne__numberMap[match];
  4245. });
  4246. },
  4247. postformat: function (string) {
  4248. return string.replace(/\d/g, function (match) {
  4249. return ne__symbolMap[match];
  4250. });
  4251. },
  4252. meridiemParse: /राती|बिहान|दिउँसो|बेलुका|साँझ|राती/,
  4253. meridiemHour : function (hour, meridiem) {
  4254. if (hour === 12) {
  4255. hour = 0;
  4256. }
  4257. if (meridiem === 'राती') {
  4258. return hour < 3 ? hour : hour + 12;
  4259. } else if (meridiem === 'बिहान') {
  4260. return hour;
  4261. } else if (meridiem === 'दिउँसो') {
  4262. return hour >= 10 ? hour : hour + 12;
  4263. } else if (meridiem === 'बेलुका' || meridiem === 'साँझ') {
  4264. return hour + 12;
  4265. }
  4266. },
  4267. meridiem : function (hour, minute, isLower) {
  4268. if (hour < 3) {
  4269. return 'राती';
  4270. } else if (hour < 10) {
  4271. return 'बिहान';
  4272. } else if (hour < 15) {
  4273. return 'दिउँसो';
  4274. } else if (hour < 18) {
  4275. return 'बेलुका';
  4276. } else if (hour < 20) {
  4277. return 'साँझ';
  4278. } else {
  4279. return 'राती';
  4280. }
  4281. },
  4282. calendar : {
  4283. sameDay : '[आज] LT',
  4284. nextDay : '[भोली] LT',
  4285. nextWeek : '[आउँदो] dddd[,] LT',
  4286. lastDay : '[हिजो] LT',
  4287. lastWeek : '[गएको] dddd[,] LT',
  4288. sameElse : 'L'
  4289. },
  4290. relativeTime : {
  4291. future : '%sमा',
  4292. past : '%s अगाडी',
  4293. s : 'केही समय',
  4294. m : 'एक मिनेट',
  4295. mm : '%d मिनेट',
  4296. h : 'एक घण्टा',
  4297. hh : '%d घण्टा',
  4298. d : 'एक दिन',
  4299. dd : '%d दिन',
  4300. M : 'एक महिना',
  4301. MM : '%d महिना',
  4302. y : 'एक बर्ष',
  4303. yy : '%d बर्ष'
  4304. },
  4305. week : {
  4306. dow : 1, // Monday is the first day of the week.
  4307. doy : 7 // The week that contains Jan 1st is the first week of the year.
  4308. }
  4309. });
  4310. //! moment.js locale configuration
  4311. //! locale : dutch (nl)
  4312. //! author : Joris Röling : https://github.com/jjupiter
  4313. var nl__monthsShortWithDots = 'jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.'.split('_'),
  4314. nl__monthsShortWithoutDots = 'jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec'.split('_');
  4315. var nl = moment.defineLocale('nl', {
  4316. months : 'januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december'.split('_'),
  4317. monthsShort : function (m, format) {
  4318. if (/-MMM-/.test(format)) {
  4319. return nl__monthsShortWithoutDots[m.month()];
  4320. } else {
  4321. return nl__monthsShortWithDots[m.month()];
  4322. }
  4323. },
  4324. weekdays : 'zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag'.split('_'),
  4325. weekdaysShort : 'zo._ma._di._wo._do._vr._za.'.split('_'),
  4326. weekdaysMin : 'Zo_Ma_Di_Wo_Do_Vr_Za'.split('_'),
  4327. longDateFormat : {
  4328. LT : 'HH:mm',
  4329. LTS : 'LT:ss',
  4330. L : 'DD-MM-YYYY',
  4331. LL : 'D MMMM YYYY',
  4332. LLL : 'D MMMM YYYY LT',
  4333. LLLL : 'dddd D MMMM YYYY LT'
  4334. },
  4335. calendar : {
  4336. sameDay: '[vandaag om] LT',
  4337. nextDay: '[morgen om] LT',
  4338. nextWeek: 'dddd [om] LT',
  4339. lastDay: '[gisteren om] LT',
  4340. lastWeek: '[afgelopen] dddd [om] LT',
  4341. sameElse: 'L'
  4342. },
  4343. relativeTime : {
  4344. future : 'over %s',
  4345. past : '%s geleden',
  4346. s : 'een paar seconden',
  4347. m : 'één minuut',
  4348. mm : '%d minuten',
  4349. h : 'één uur',
  4350. hh : '%d uur',
  4351. d : 'één dag',
  4352. dd : '%d dagen',
  4353. M : 'één maand',
  4354. MM : '%d maanden',
  4355. y : 'één jaar',
  4356. yy : '%d jaar'
  4357. },
  4358. ordinalParse: /\d{1,2}(ste|de)/,
  4359. ordinal : function (number) {
  4360. return number + ((number === 1 || number === 8 || number >= 20) ? 'ste' : 'de');
  4361. },
  4362. week : {
  4363. dow : 1, // Monday is the first day of the week.
  4364. doy : 4 // The week that contains Jan 4th is the first week of the year.
  4365. }
  4366. });
  4367. //! moment.js locale configuration
  4368. //! locale : norwegian nynorsk (nn)
  4369. //! author : https://github.com/mechuwind
  4370. var nn = moment.defineLocale('nn', {
  4371. months : 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split('_'),
  4372. monthsShort : 'jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_'),
  4373. weekdays : 'sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag'.split('_'),
  4374. weekdaysShort : 'sun_mån_tys_ons_tor_fre_lau'.split('_'),
  4375. weekdaysMin : 'su_må_ty_on_to_fr_lø'.split('_'),
  4376. longDateFormat : {
  4377. LT : 'HH:mm',
  4378. LTS : 'LT:ss',
  4379. L : 'DD.MM.YYYY',
  4380. LL : 'D MMMM YYYY',
  4381. LLL : 'D MMMM YYYY LT',
  4382. LLLL : 'dddd D MMMM YYYY LT'
  4383. },
  4384. calendar : {
  4385. sameDay: '[I dag klokka] LT',
  4386. nextDay: '[I morgon klokka] LT',
  4387. nextWeek: 'dddd [klokka] LT',
  4388. lastDay: '[I går klokka] LT',
  4389. lastWeek: '[Føregåande] dddd [klokka] LT',
  4390. sameElse: 'L'
  4391. },
  4392. relativeTime : {
  4393. future : 'om %s',
  4394. past : 'for %s sidan',
  4395. s : 'nokre sekund',
  4396. m : 'eit minutt',
  4397. mm : '%d minutt',
  4398. h : 'ein time',
  4399. hh : '%d timar',
  4400. d : 'ein dag',
  4401. dd : '%d dagar',
  4402. M : 'ein månad',
  4403. MM : '%d månader',
  4404. y : 'eit år',
  4405. yy : '%d år'
  4406. },
  4407. ordinalParse: /\d{1,2}\./,
  4408. ordinal : '%d.',
  4409. week : {
  4410. dow : 1, // Monday is the first day of the week.
  4411. doy : 4 // The week that contains Jan 4th is the first week of the year.
  4412. }
  4413. });
  4414. //! moment.js locale configuration
  4415. //! locale : polish (pl)
  4416. //! author : Rafal Hirsz : https://github.com/evoL
  4417. var monthsNominative = 'styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień'.split('_'),
  4418. monthsSubjective = 'stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia'.split('_');
  4419. function pl__plural(n) {
  4420. return (n % 10 < 5) && (n % 10 > 1) && ((~~(n / 10) % 10) !== 1);
  4421. }
  4422. function pl__translate(number, withoutSuffix, key) {
  4423. var result = number + ' ';
  4424. switch (key) {
  4425. case 'm':
  4426. return withoutSuffix ? 'minuta' : 'minutę';
  4427. case 'mm':
  4428. return result + (pl__plural(number) ? 'minuty' : 'minut');
  4429. case 'h':
  4430. return withoutSuffix ? 'godzina' : 'godzinę';
  4431. case 'hh':
  4432. return result + (pl__plural(number) ? 'godziny' : 'godzin');
  4433. case 'MM':
  4434. return result + (pl__plural(number) ? 'miesiące' : 'miesięcy');
  4435. case 'yy':
  4436. return result + (pl__plural(number) ? 'lata' : 'lat');
  4437. }
  4438. }
  4439. var pl = moment.defineLocale('pl', {
  4440. months : function (momentToFormat, format) {
  4441. if (/D MMMM/.test(format)) {
  4442. return monthsSubjective[momentToFormat.month()];
  4443. } else {
  4444. return monthsNominative[momentToFormat.month()];
  4445. }
  4446. },
  4447. monthsShort : 'sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru'.split('_'),
  4448. weekdays : 'niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota'.split('_'),
  4449. weekdaysShort : 'nie_pon_wt_śr_czw_pt_sb'.split('_'),
  4450. weekdaysMin : 'N_Pn_Wt_Śr_Cz_Pt_So'.split('_'),
  4451. longDateFormat : {
  4452. LT : 'HH:mm',
  4453. LTS : 'LT:ss',
  4454. L : 'DD.MM.YYYY',
  4455. LL : 'D MMMM YYYY',
  4456. LLL : 'D MMMM YYYY LT',
  4457. LLLL : 'dddd, D MMMM YYYY LT'
  4458. },
  4459. calendar : {
  4460. sameDay: '[Dziś o] LT',
  4461. nextDay: '[Jutro o] LT',
  4462. nextWeek: '[W] dddd [o] LT',
  4463. lastDay: '[Wczoraj o] LT',
  4464. lastWeek: function () {
  4465. switch (this.day()) {
  4466. case 0:
  4467. return '[W zeszłą niedzielę o] LT';
  4468. case 3:
  4469. return '[W zeszłą środę o] LT';
  4470. case 6:
  4471. return '[W zeszłą sobotę o] LT';
  4472. default:
  4473. return '[W zeszły] dddd [o] LT';
  4474. }
  4475. },
  4476. sameElse: 'L'
  4477. },
  4478. relativeTime : {
  4479. future : 'za %s',
  4480. past : '%s temu',
  4481. s : 'kilka sekund',
  4482. m : pl__translate,
  4483. mm : pl__translate,
  4484. h : pl__translate,
  4485. hh : pl__translate,
  4486. d : '1 dzień',
  4487. dd : '%d dni',
  4488. M : 'miesiąc',
  4489. MM : pl__translate,
  4490. y : 'rok',
  4491. yy : pl__translate
  4492. },
  4493. ordinalParse: /\d{1,2}\./,
  4494. ordinal : '%d.',
  4495. week : {
  4496. dow : 1, // Monday is the first day of the week.
  4497. doy : 4 // The week that contains Jan 4th is the first week of the year.
  4498. }
  4499. });
  4500. //! moment.js locale configuration
  4501. //! locale : brazilian portuguese (pt-br)
  4502. //! author : Caio Ribeiro Pereira : https://github.com/caio-ribeiro-pereira
  4503. var pt_br = moment.defineLocale('pt-br', {
  4504. months : 'janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro'.split('_'),
  4505. monthsShort : 'jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez'.split('_'),
  4506. weekdays : 'domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado'.split('_'),
  4507. weekdaysShort : 'dom_seg_ter_qua_qui_sex_sáb'.split('_'),
  4508. weekdaysMin : 'dom_2ª_3ª_4ª_5ª_6ª_sáb'.split('_'),
  4509. longDateFormat : {
  4510. LT : 'HH:mm',
  4511. LTS : 'LT:ss',
  4512. L : 'DD/MM/YYYY',
  4513. LL : 'D [de] MMMM [de] YYYY',
  4514. LLL : 'D [de] MMMM [de] YYYY [às] LT',
  4515. LLLL : 'dddd, D [de] MMMM [de] YYYY [às] LT'
  4516. },
  4517. calendar : {
  4518. sameDay: '[Hoje às] LT',
  4519. nextDay: '[Amanhã às] LT',
  4520. nextWeek: 'dddd [às] LT',
  4521. lastDay: '[Ontem às] LT',
  4522. lastWeek: function () {
  4523. return (this.day() === 0 || this.day() === 6) ?
  4524. '[Último] dddd [às] LT' : // Saturday + Sunday
  4525. '[Última] dddd [às] LT'; // Monday - Friday
  4526. },
  4527. sameElse: 'L'
  4528. },
  4529. relativeTime : {
  4530. future : 'em %s',
  4531. past : '%s atrás',
  4532. s : 'segundos',
  4533. m : 'um minuto',
  4534. mm : '%d minutos',
  4535. h : 'uma hora',
  4536. hh : '%d horas',
  4537. d : 'um dia',
  4538. dd : '%d dias',
  4539. M : 'um mês',
  4540. MM : '%d meses',
  4541. y : 'um ano',
  4542. yy : '%d anos'
  4543. },
  4544. ordinalParse: /\d{1,2}º/,
  4545. ordinal : '%dº'
  4546. });
  4547. //! moment.js locale configuration
  4548. //! locale : portuguese (pt)
  4549. //! author : Jefferson : https://github.com/jalex79
  4550. var pt = moment.defineLocale('pt', {
  4551. months : 'janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro'.split('_'),
  4552. monthsShort : 'jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez'.split('_'),
  4553. weekdays : 'domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado'.split('_'),
  4554. weekdaysShort : 'dom_seg_ter_qua_qui_sex_sáb'.split('_'),
  4555. weekdaysMin : 'dom_2ª_3ª_4ª_5ª_6ª_sáb'.split('_'),
  4556. longDateFormat : {
  4557. LT : 'HH:mm',
  4558. LTS : 'LT:ss',
  4559. L : 'DD/MM/YYYY',
  4560. LL : 'D [de] MMMM [de] YYYY',
  4561. LLL : 'D [de] MMMM [de] YYYY LT',
  4562. LLLL : 'dddd, D [de] MMMM [de] YYYY LT'
  4563. },
  4564. calendar : {
  4565. sameDay: '[Hoje às] LT',
  4566. nextDay: '[Amanhã às] LT',
  4567. nextWeek: 'dddd [às] LT',
  4568. lastDay: '[Ontem às] LT',
  4569. lastWeek: function () {
  4570. return (this.day() === 0 || this.day() === 6) ?
  4571. '[Último] dddd [às] LT' : // Saturday + Sunday
  4572. '[Última] dddd [às] LT'; // Monday - Friday
  4573. },
  4574. sameElse: 'L'
  4575. },
  4576. relativeTime : {
  4577. future : 'em %s',
  4578. past : 'há %s',
  4579. s : 'segundos',
  4580. m : 'um minuto',
  4581. mm : '%d minutos',
  4582. h : 'uma hora',
  4583. hh : '%d horas',
  4584. d : 'um dia',
  4585. dd : '%d dias',
  4586. M : 'um mês',
  4587. MM : '%d meses',
  4588. y : 'um ano',
  4589. yy : '%d anos'
  4590. },
  4591. ordinalParse: /\d{1,2}º/,
  4592. ordinal : '%dº',
  4593. week : {
  4594. dow : 1, // Monday is the first day of the week.
  4595. doy : 4 // The week that contains Jan 4th is the first week of the year.
  4596. }
  4597. });
  4598. //! moment.js locale configuration
  4599. //! locale : romanian (ro)
  4600. //! author : Vlad Gurdiga : https://github.com/gurdiga
  4601. //! author : Valentin Agachi : https://github.com/avaly
  4602. function ro__relativeTimeWithPlural(number, withoutSuffix, key) {
  4603. var format = {
  4604. 'mm': 'minute',
  4605. 'hh': 'ore',
  4606. 'dd': 'zile',
  4607. 'MM': 'luni',
  4608. 'yy': 'ani'
  4609. },
  4610. separator = ' ';
  4611. if (number % 100 >= 20 || (number >= 100 && number % 100 === 0)) {
  4612. separator = ' de ';
  4613. }
  4614. return number + separator + format[key];
  4615. }
  4616. var ro = moment.defineLocale('ro', {
  4617. months : 'ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie'.split('_'),
  4618. monthsShort : 'ian._febr._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.'.split('_'),
  4619. weekdays : 'duminică_luni_marți_miercuri_joi_vineri_sâmbătă'.split('_'),
  4620. weekdaysShort : 'Dum_Lun_Mar_Mie_Joi_Vin_Sâm'.split('_'),
  4621. weekdaysMin : 'Du_Lu_Ma_Mi_Jo_Vi_Sâ'.split('_'),
  4622. longDateFormat : {
  4623. LT : 'H:mm',
  4624. LTS : 'LT:ss',
  4625. L : 'DD.MM.YYYY',
  4626. LL : 'D MMMM YYYY',
  4627. LLL : 'D MMMM YYYY H:mm',
  4628. LLLL : 'dddd, D MMMM YYYY H:mm'
  4629. },
  4630. calendar : {
  4631. sameDay: '[azi la] LT',
  4632. nextDay: '[mâine la] LT',
  4633. nextWeek: 'dddd [la] LT',
  4634. lastDay: '[ieri la] LT',
  4635. lastWeek: '[fosta] dddd [la] LT',
  4636. sameElse: 'L'
  4637. },
  4638. relativeTime : {
  4639. future : 'peste %s',
  4640. past : '%s în urmă',
  4641. s : 'câteva secunde',
  4642. m : 'un minut',
  4643. mm : ro__relativeTimeWithPlural,
  4644. h : 'o oră',
  4645. hh : ro__relativeTimeWithPlural,
  4646. d : 'o zi',
  4647. dd : ro__relativeTimeWithPlural,
  4648. M : 'o lună',
  4649. MM : ro__relativeTimeWithPlural,
  4650. y : 'un an',
  4651. yy : ro__relativeTimeWithPlural
  4652. },
  4653. week : {
  4654. dow : 1, // Monday is the first day of the week.
  4655. doy : 7 // The week that contains Jan 1st is the first week of the year.
  4656. }
  4657. });
  4658. //! moment.js locale configuration
  4659. //! locale : russian (ru)
  4660. //! author : Viktorminator : https://github.com/Viktorminator
  4661. //! Author : Menelion Elensúle : https://github.com/Oire
  4662. function ru__plural(word, num) {
  4663. var forms = word.split('_');
  4664. return num % 10 === 1 && num % 100 !== 11 ? forms[0] : (num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20) ? forms[1] : forms[2]);
  4665. }
  4666. function ru__relativeTimeWithPlural(number, withoutSuffix, key) {
  4667. var format = {
  4668. 'mm': withoutSuffix ? 'минута_минуты_минут' : 'минуту_минуты_минут',
  4669. 'hh': 'час_часа_часов',
  4670. 'dd': 'день_дня_дней',
  4671. 'MM': 'месяц_месяца_месяцев',
  4672. 'yy': 'год_года_лет'
  4673. };
  4674. if (key === 'm') {
  4675. return withoutSuffix ? 'минута' : 'минуту';
  4676. }
  4677. else {
  4678. return number + ' ' + ru__plural(format[key], +number);
  4679. }
  4680. }
  4681. function ru__monthsCaseReplace(m, format) {
  4682. var months = {
  4683. 'nominative': 'январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь'.split('_'),
  4684. 'accusative': 'января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря'.split('_')
  4685. },
  4686. nounCase = (/D[oD]?(\[[^\[\]]*\]|\s+)+MMMM?/).test(format) ?
  4687. 'accusative' :
  4688. 'nominative';
  4689. return months[nounCase][m.month()];
  4690. }
  4691. function ru__monthsShortCaseReplace(m, format) {
  4692. var monthsShort = {
  4693. 'nominative': 'янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек'.split('_'),
  4694. 'accusative': 'янв_фев_мар_апр_мая_июня_июля_авг_сен_окт_ноя_дек'.split('_')
  4695. },
  4696. nounCase = (/D[oD]?(\[[^\[\]]*\]|\s+)+MMMM?/).test(format) ?
  4697. 'accusative' :
  4698. 'nominative';
  4699. return monthsShort[nounCase][m.month()];
  4700. }
  4701. function ru__weekdaysCaseReplace(m, format) {
  4702. var weekdays = {
  4703. 'nominative': 'воскресенье_понедельник_вторник_среда_четверг_пятница_суббота'.split('_'),
  4704. 'accusative': 'воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу'.split('_')
  4705. },
  4706. nounCase = (/\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?\] ?dddd/).test(format) ?
  4707. 'accusative' :
  4708. 'nominative';
  4709. return weekdays[nounCase][m.day()];
  4710. }
  4711. var ru = moment.defineLocale('ru', {
  4712. months : ru__monthsCaseReplace,
  4713. monthsShort : ru__monthsShortCaseReplace,
  4714. weekdays : ru__weekdaysCaseReplace,
  4715. weekdaysShort : 'вс_пн_вт_ср_чт_пт_сб'.split('_'),
  4716. weekdaysMin : 'вс_пн_вт_ср_чт_пт_сб'.split('_'),
  4717. monthsParse : [/^янв/i, /^фев/i, /^мар/i, /^апр/i, /^ма[й|я]/i, /^июн/i, /^июл/i, /^авг/i, /^сен/i, /^окт/i, /^ноя/i, /^дек/i],
  4718. longDateFormat : {
  4719. LT : 'HH:mm',
  4720. LTS : 'LT:ss',
  4721. L : 'DD.MM.YYYY',
  4722. LL : 'D MMMM YYYY г.',
  4723. LLL : 'D MMMM YYYY г., LT',
  4724. LLLL : 'dddd, D MMMM YYYY г., LT'
  4725. },
  4726. calendar : {
  4727. sameDay: '[Сегодня в] LT',
  4728. nextDay: '[Завтра в] LT',
  4729. lastDay: '[Вчера в] LT',
  4730. nextWeek: function () {
  4731. return this.day() === 2 ? '[Во] dddd [в] LT' : '[В] dddd [в] LT';
  4732. },
  4733. lastWeek: function (now) {
  4734. if (now.week() !== this.week()) {
  4735. switch (this.day()) {
  4736. case 0:
  4737. return '[В прошлое] dddd [в] LT';
  4738. case 1:
  4739. case 2:
  4740. case 4:
  4741. return '[В прошлый] dddd [в] LT';
  4742. case 3:
  4743. case 5:
  4744. case 6:
  4745. return '[В прошлую] dddd [в] LT';
  4746. }
  4747. } else {
  4748. if (this.day() === 2) {
  4749. return '[Во] dddd [в] LT';
  4750. } else {
  4751. return '[В] dddd [в] LT';
  4752. }
  4753. }
  4754. },
  4755. sameElse: 'L'
  4756. },
  4757. relativeTime : {
  4758. future : 'через %s',
  4759. past : '%s назад',
  4760. s : 'несколько секунд',
  4761. m : ru__relativeTimeWithPlural,
  4762. mm : ru__relativeTimeWithPlural,
  4763. h : 'час',
  4764. hh : ru__relativeTimeWithPlural,
  4765. d : 'день',
  4766. dd : ru__relativeTimeWithPlural,
  4767. M : 'месяц',
  4768. MM : ru__relativeTimeWithPlural,
  4769. y : 'год',
  4770. yy : ru__relativeTimeWithPlural
  4771. },
  4772. meridiemParse: /ночи|утра|дня|вечера/i,
  4773. isPM : function (input) {
  4774. return /^(дня|вечера)$/.test(input);
  4775. },
  4776. meridiem : function (hour, minute, isLower) {
  4777. if (hour < 4) {
  4778. return 'ночи';
  4779. } else if (hour < 12) {
  4780. return 'утра';
  4781. } else if (hour < 17) {
  4782. return 'дня';
  4783. } else {
  4784. return 'вечера';
  4785. }
  4786. },
  4787. ordinalParse: /\d{1,2}-(й|го|я)/,
  4788. ordinal: function (number, period) {
  4789. switch (period) {
  4790. case 'M':
  4791. case 'd':
  4792. case 'DDD':
  4793. return number + '-й';
  4794. case 'D':
  4795. return number + '-го';
  4796. case 'w':
  4797. case 'W':
  4798. return number + '-я';
  4799. default:
  4800. return number;
  4801. }
  4802. },
  4803. week : {
  4804. dow : 1, // Monday is the first day of the week.
  4805. doy : 7 // The week that contains Jan 1st is the first week of the year.
  4806. }
  4807. });
  4808. //! moment.js locale configuration
  4809. //! locale : slovak (sk)
  4810. //! author : Martin Minka : https://github.com/k2s
  4811. //! based on work of petrbela : https://github.com/petrbela
  4812. var sk__months = 'január_február_marec_apríl_máj_jún_júl_august_september_október_november_december'.split('_'),
  4813. sk__monthsShort = 'jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec'.split('_');
  4814. function sk__plural(n) {
  4815. return (n > 1) && (n < 5);
  4816. }
  4817. function sk__translate(number, withoutSuffix, key, isFuture) {
  4818. var result = number + ' ';
  4819. switch (key) {
  4820. case 's': // a few seconds / in a few seconds / a few seconds ago
  4821. return (withoutSuffix || isFuture) ? 'pár sekúnd' : 'pár sekundami';
  4822. case 'm': // a minute / in a minute / a minute ago
  4823. return withoutSuffix ? 'minúta' : (isFuture ? 'minútu' : 'minútou');
  4824. case 'mm': // 9 minutes / in 9 minutes / 9 minutes ago
  4825. if (withoutSuffix || isFuture) {
  4826. return result + (sk__plural(number) ? 'minúty' : 'minút');
  4827. } else {
  4828. return result + 'minútami';
  4829. }
  4830. break;
  4831. case 'h': // an hour / in an hour / an hour ago
  4832. return withoutSuffix ? 'hodina' : (isFuture ? 'hodinu' : 'hodinou');
  4833. case 'hh': // 9 hours / in 9 hours / 9 hours ago
  4834. if (withoutSuffix || isFuture) {
  4835. return result + (sk__plural(number) ? 'hodiny' : 'hodín');
  4836. } else {
  4837. return result + 'hodinami';
  4838. }
  4839. break;
  4840. case 'd': // a day / in a day / a day ago
  4841. return (withoutSuffix || isFuture) ? 'deň' : 'dňom';
  4842. case 'dd': // 9 days / in 9 days / 9 days ago
  4843. if (withoutSuffix || isFuture) {
  4844. return result + (sk__plural(number) ? 'dni' : 'dní');
  4845. } else {
  4846. return result + 'dňami';
  4847. }
  4848. break;
  4849. case 'M': // a month / in a month / a month ago
  4850. return (withoutSuffix || isFuture) ? 'mesiac' : 'mesiacom';
  4851. case 'MM': // 9 months / in 9 months / 9 months ago
  4852. if (withoutSuffix || isFuture) {
  4853. return result + (sk__plural(number) ? 'mesiace' : 'mesiacov');
  4854. } else {
  4855. return result + 'mesiacmi';
  4856. }
  4857. break;
  4858. case 'y': // a year / in a year / a year ago
  4859. return (withoutSuffix || isFuture) ? 'rok' : 'rokom';
  4860. case 'yy': // 9 years / in 9 years / 9 years ago
  4861. if (withoutSuffix || isFuture) {
  4862. return result + (sk__plural(number) ? 'roky' : 'rokov');
  4863. } else {
  4864. return result + 'rokmi';
  4865. }
  4866. break;
  4867. }
  4868. }
  4869. var sk = moment.defineLocale('sk', {
  4870. months : sk__months,
  4871. monthsShort : sk__monthsShort,
  4872. monthsParse : (function (months, monthsShort) {
  4873. var i, _monthsParse = [];
  4874. for (i = 0; i < 12; i++) {
  4875. // use custom parser to solve problem with July (červenec)
  4876. _monthsParse[i] = new RegExp('^' + months[i] + '$|^' + monthsShort[i] + '$', 'i');
  4877. }
  4878. return _monthsParse;
  4879. }(sk__months, sk__monthsShort)),
  4880. weekdays : 'nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota'.split('_'),
  4881. weekdaysShort : 'ne_po_ut_st_št_pi_so'.split('_'),
  4882. weekdaysMin : 'ne_po_ut_st_št_pi_so'.split('_'),
  4883. longDateFormat : {
  4884. LT: 'H:mm',
  4885. LTS : 'LT:ss',
  4886. L : 'DD.MM.YYYY',
  4887. LL : 'D. MMMM YYYY',
  4888. LLL : 'D. MMMM YYYY LT',
  4889. LLLL : 'dddd D. MMMM YYYY LT'
  4890. },
  4891. calendar : {
  4892. sameDay: '[dnes o] LT',
  4893. nextDay: '[zajtra o] LT',
  4894. nextWeek: function () {
  4895. switch (this.day()) {
  4896. case 0:
  4897. return '[v nedeľu o] LT';
  4898. case 1:
  4899. case 2:
  4900. return '[v] dddd [o] LT';
  4901. case 3:
  4902. return '[v stredu o] LT';
  4903. case 4:
  4904. return '[vo štvrtok o] LT';
  4905. case 5:
  4906. return '[v piatok o] LT';
  4907. case 6:
  4908. return '[v sobotu o] LT';
  4909. }
  4910. },
  4911. lastDay: '[včera o] LT',
  4912. lastWeek: function () {
  4913. switch (this.day()) {
  4914. case 0:
  4915. return '[minulú nedeľu o] LT';
  4916. case 1:
  4917. case 2:
  4918. return '[minulý] dddd [o] LT';
  4919. case 3:
  4920. return '[minulú stredu o] LT';
  4921. case 4:
  4922. case 5:
  4923. return '[minulý] dddd [o] LT';
  4924. case 6:
  4925. return '[minulú sobotu o] LT';
  4926. }
  4927. },
  4928. sameElse: 'L'
  4929. },
  4930. relativeTime : {
  4931. future : 'za %s',
  4932. past : 'pred %s',
  4933. s : sk__translate,
  4934. m : sk__translate,
  4935. mm : sk__translate,
  4936. h : sk__translate,
  4937. hh : sk__translate,
  4938. d : sk__translate,
  4939. dd : sk__translate,
  4940. M : sk__translate,
  4941. MM : sk__translate,
  4942. y : sk__translate,
  4943. yy : sk__translate
  4944. },
  4945. ordinalParse: /\d{1,2}\./,
  4946. ordinal : '%d.',
  4947. week : {
  4948. dow : 1, // Monday is the first day of the week.
  4949. doy : 4 // The week that contains Jan 4th is the first week of the year.
  4950. }
  4951. });
  4952. //! moment.js locale configuration
  4953. //! locale : slovenian (sl)
  4954. //! author : Robert Sedovšek : https://github.com/sedovsek
  4955. function sl__translate(number, withoutSuffix, key) {
  4956. var result = number + ' ';
  4957. switch (key) {
  4958. case 'm':
  4959. return withoutSuffix ? 'ena minuta' : 'eno minuto';
  4960. case 'mm':
  4961. if (number === 1) {
  4962. result += 'minuta';
  4963. } else if (number === 2) {
  4964. result += 'minuti';
  4965. } else if (number === 3 || number === 4) {
  4966. result += 'minute';
  4967. } else {
  4968. result += 'minut';
  4969. }
  4970. return result;
  4971. case 'h':
  4972. return withoutSuffix ? 'ena ura' : 'eno uro';
  4973. case 'hh':
  4974. if (number === 1) {
  4975. result += 'ura';
  4976. } else if (number === 2) {
  4977. result += 'uri';
  4978. } else if (number === 3 || number === 4) {
  4979. result += 'ure';
  4980. } else {
  4981. result += 'ur';
  4982. }
  4983. return result;
  4984. case 'dd':
  4985. if (number === 1) {
  4986. result += 'dan';
  4987. } else {
  4988. result += 'dni';
  4989. }
  4990. return result;
  4991. case 'MM':
  4992. if (number === 1) {
  4993. result += 'mesec';
  4994. } else if (number === 2) {
  4995. result += 'meseca';
  4996. } else if (number === 3 || number === 4) {
  4997. result += 'mesece';
  4998. } else {
  4999. result += 'mesecev';
  5000. }
  5001. return result;
  5002. case 'yy':
  5003. if (number === 1) {
  5004. result += 'leto';
  5005. } else if (number === 2) {
  5006. result += 'leti';
  5007. } else if (number === 3 || number === 4) {
  5008. result += 'leta';
  5009. } else {
  5010. result += 'let';
  5011. }
  5012. return result;
  5013. }
  5014. }
  5015. var sl = moment.defineLocale('sl', {
  5016. months : 'januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december'.split('_'),
  5017. monthsShort : 'jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.'.split('_'),
  5018. weekdays : 'nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota'.split('_'),
  5019. weekdaysShort : 'ned._pon._tor._sre._čet._pet._sob.'.split('_'),
  5020. weekdaysMin : 'ne_po_to_sr_če_pe_so'.split('_'),
  5021. longDateFormat : {
  5022. LT : 'H:mm',
  5023. LTS : 'LT:ss',
  5024. L : 'DD. MM. YYYY',
  5025. LL : 'D. MMMM YYYY',
  5026. LLL : 'D. MMMM YYYY LT',
  5027. LLLL : 'dddd, D. MMMM YYYY LT'
  5028. },
  5029. calendar : {
  5030. sameDay : '[danes ob] LT',
  5031. nextDay : '[jutri ob] LT',
  5032. nextWeek : function () {
  5033. switch (this.day()) {
  5034. case 0:
  5035. return '[v] [nedeljo] [ob] LT';
  5036. case 3:
  5037. return '[v] [sredo] [ob] LT';
  5038. case 6:
  5039. return '[v] [soboto] [ob] LT';
  5040. case 1:
  5041. case 2:
  5042. case 4:
  5043. case 5:
  5044. return '[v] dddd [ob] LT';
  5045. }
  5046. },
  5047. lastDay : '[včeraj ob] LT',
  5048. lastWeek : function () {
  5049. switch (this.day()) {
  5050. case 0:
  5051. case 3:
  5052. case 6:
  5053. return '[prejšnja] dddd [ob] LT';
  5054. case 1:
  5055. case 2:
  5056. case 4:
  5057. case 5:
  5058. return '[prejšnji] dddd [ob] LT';
  5059. }
  5060. },
  5061. sameElse : 'L'
  5062. },
  5063. relativeTime : {
  5064. future : 'čez %s',
  5065. past : '%s nazaj',
  5066. s : 'nekaj sekund',
  5067. m : sl__translate,
  5068. mm : sl__translate,
  5069. h : sl__translate,
  5070. hh : sl__translate,
  5071. d : 'en dan',
  5072. dd : sl__translate,
  5073. M : 'en mesec',
  5074. MM : sl__translate,
  5075. y : 'eno leto',
  5076. yy : sl__translate
  5077. },
  5078. ordinalParse: /\d{1,2}\./,
  5079. ordinal : '%d.',
  5080. week : {
  5081. dow : 1, // Monday is the first day of the week.
  5082. doy : 7 // The week that contains Jan 1st is the first week of the year.
  5083. }
  5084. });
  5085. //! moment.js locale configuration
  5086. //! locale : Albanian (sq)
  5087. //! author : Flakërim Ismani : https://github.com/flakerimi
  5088. //! author: Menelion Elensúle: https://github.com/Oire (tests)
  5089. //! author : Oerd Cukalla : https://github.com/oerd (fixes)
  5090. var sq = moment.defineLocale('sq', {
  5091. months : 'Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor'.split('_'),
  5092. monthsShort : 'Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj'.split('_'),
  5093. weekdays : 'E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë'.split('_'),
  5094. weekdaysShort : 'Die_Hën_Mar_Mër_Enj_Pre_Sht'.split('_'),
  5095. weekdaysMin : 'D_H_Ma_Më_E_P_Sh'.split('_'),
  5096. meridiemParse: /PD|MD/,
  5097. isPM: function (input) {
  5098. return input.charAt(0) === 'M';
  5099. },
  5100. meridiem : function (hours, minutes, isLower) {
  5101. return hours < 12 ? 'PD' : 'MD';
  5102. },
  5103. longDateFormat : {
  5104. LT : 'HH:mm',
  5105. LTS : 'LT:ss',
  5106. L : 'DD/MM/YYYY',
  5107. LL : 'D MMMM YYYY',
  5108. LLL : 'D MMMM YYYY LT',
  5109. LLLL : 'dddd, D MMMM YYYY LT'
  5110. },
  5111. calendar : {
  5112. sameDay : '[Sot në] LT',
  5113. nextDay : '[Nesër në] LT',
  5114. nextWeek : 'dddd [në] LT',
  5115. lastDay : '[Dje në] LT',
  5116. lastWeek : 'dddd [e kaluar në] LT',
  5117. sameElse : 'L'
  5118. },
  5119. relativeTime : {
  5120. future : 'në %s',
  5121. past : '%s më parë',
  5122. s : 'disa sekonda',
  5123. m : 'një minutë',
  5124. mm : '%d minuta',
  5125. h : 'një orë',
  5126. hh : '%d orë',
  5127. d : 'një ditë',
  5128. dd : '%d ditë',
  5129. M : 'një muaj',
  5130. MM : '%d muaj',
  5131. y : 'një vit',
  5132. yy : '%d vite'
  5133. },
  5134. ordinalParse: /\d{1,2}\./,
  5135. ordinal : '%d.',
  5136. week : {
  5137. dow : 1, // Monday is the first day of the week.
  5138. doy : 4 // The week that contains Jan 4th is the first week of the year.
  5139. }
  5140. });
  5141. //! moment.js locale configuration
  5142. //! locale : Serbian-cyrillic (sr-cyrl)
  5143. //! author : Milan Janačković<milanjanackovic@gmail.com> : https://github.com/milan-j
  5144. var sr_cyrl__translator = {
  5145. words: { //Different grammatical cases
  5146. m: ['један минут', 'једне минуте'],
  5147. mm: ['минут', 'минуте', 'минута'],
  5148. h: ['један сат', 'једног сата'],
  5149. hh: ['сат', 'сата', 'сати'],
  5150. dd: ['дан', 'дана', 'дана'],
  5151. MM: ['месец', 'месеца', 'месеци'],
  5152. yy: ['година', 'године', 'година']
  5153. },
  5154. correctGrammaticalCase: function (number, wordKey) {
  5155. return number === 1 ? wordKey[0] : (number >= 2 && number <= 4 ? wordKey[1] : wordKey[2]);
  5156. },
  5157. translate: function (number, withoutSuffix, key) {
  5158. var wordKey = sr_cyrl__translator.words[key];
  5159. if (key.length === 1) {
  5160. return withoutSuffix ? wordKey[0] : wordKey[1];
  5161. } else {
  5162. return number + ' ' + sr_cyrl__translator.correctGrammaticalCase(number, wordKey);
  5163. }
  5164. }
  5165. };
  5166. var sr_cyrl = moment.defineLocale('sr-cyrl', {
  5167. months: ['јануар', 'фебруар', 'март', 'април', 'мај', 'јун', 'јул', 'август', 'септембар', 'октобар', 'новембар', 'децембар'],
  5168. monthsShort: ['јан.', 'феб.', 'мар.', 'апр.', 'мај', 'јун', 'јул', 'авг.', 'сеп.', 'окт.', 'нов.', 'дец.'],
  5169. weekdays: ['недеља', 'понедељак', 'уторак', 'среда', 'четвртак', 'петак', 'субота'],
  5170. weekdaysShort: ['нед.', 'пон.', 'уто.', 'сре.', 'чет.', 'пет.', 'суб.'],
  5171. weekdaysMin: ['не', 'по', 'ут', 'ср', 'че', 'пе', 'су'],
  5172. longDateFormat: {
  5173. LT: 'H:mm',
  5174. LTS : 'LT:ss',
  5175. L: 'DD. MM. YYYY',
  5176. LL: 'D. MMMM YYYY',
  5177. LLL: 'D. MMMM YYYY LT',
  5178. LLLL: 'dddd, D. MMMM YYYY LT'
  5179. },
  5180. calendar: {
  5181. sameDay: '[данас у] LT',
  5182. nextDay: '[сутра у] LT',
  5183. nextWeek: function () {
  5184. switch (this.day()) {
  5185. case 0:
  5186. return '[у] [недељу] [у] LT';
  5187. case 3:
  5188. return '[у] [среду] [у] LT';
  5189. case 6:
  5190. return '[у] [суботу] [у] LT';
  5191. case 1:
  5192. case 2:
  5193. case 4:
  5194. case 5:
  5195. return '[у] dddd [у] LT';
  5196. }
  5197. },
  5198. lastDay : '[јуче у] LT',
  5199. lastWeek : function () {
  5200. var lastWeekDays = [
  5201. '[прошле] [недеље] [у] LT',
  5202. '[прошлог] [понедељка] [у] LT',
  5203. '[прошлог] [уторка] [у] LT',
  5204. '[прошле] [среде] [у] LT',
  5205. '[прошлог] [четвртка] [у] LT',
  5206. '[прошлог] [петка] [у] LT',
  5207. '[прошле] [суботе] [у] LT'
  5208. ];
  5209. return lastWeekDays[this.day()];
  5210. },
  5211. sameElse : 'L'
  5212. },
  5213. relativeTime : {
  5214. future : 'за %s',
  5215. past : 'пре %s',
  5216. s : 'неколико секунди',
  5217. m : sr_cyrl__translator.translate,
  5218. mm : sr_cyrl__translator.translate,
  5219. h : sr_cyrl__translator.translate,
  5220. hh : sr_cyrl__translator.translate,
  5221. d : 'дан',
  5222. dd : sr_cyrl__translator.translate,
  5223. M : 'месец',
  5224. MM : sr_cyrl__translator.translate,
  5225. y : 'годину',
  5226. yy : sr_cyrl__translator.translate
  5227. },
  5228. ordinalParse: /\d{1,2}\./,
  5229. ordinal : '%d.',
  5230. week : {
  5231. dow : 1, // Monday is the first day of the week.
  5232. doy : 7 // The week that contains Jan 1st is the first week of the year.
  5233. }
  5234. });
  5235. //! moment.js locale configuration
  5236. //! locale : Serbian-latin (sr)
  5237. //! author : Milan Janačković<milanjanackovic@gmail.com> : https://github.com/milan-j
  5238. var sr__translator = {
  5239. words: { //Different grammatical cases
  5240. m: ['jedan minut', 'jedne minute'],
  5241. mm: ['minut', 'minute', 'minuta'],
  5242. h: ['jedan sat', 'jednog sata'],
  5243. hh: ['sat', 'sata', 'sati'],
  5244. dd: ['dan', 'dana', 'dana'],
  5245. MM: ['mesec', 'meseca', 'meseci'],
  5246. yy: ['godina', 'godine', 'godina']
  5247. },
  5248. correctGrammaticalCase: function (number, wordKey) {
  5249. return number === 1 ? wordKey[0] : (number >= 2 && number <= 4 ? wordKey[1] : wordKey[2]);
  5250. },
  5251. translate: function (number, withoutSuffix, key) {
  5252. var wordKey = sr__translator.words[key];
  5253. if (key.length === 1) {
  5254. return withoutSuffix ? wordKey[0] : wordKey[1];
  5255. } else {
  5256. return number + ' ' + sr__translator.correctGrammaticalCase(number, wordKey);
  5257. }
  5258. }
  5259. };
  5260. var sr = moment.defineLocale('sr', {
  5261. months: ['januar', 'februar', 'mart', 'april', 'maj', 'jun', 'jul', 'avgust', 'septembar', 'oktobar', 'novembar', 'decembar'],
  5262. monthsShort: ['jan.', 'feb.', 'mar.', 'apr.', 'maj', 'jun', 'jul', 'avg.', 'sep.', 'okt.', 'nov.', 'dec.'],
  5263. weekdays: ['nedelja', 'ponedeljak', 'utorak', 'sreda', 'četvrtak', 'petak', 'subota'],
  5264. weekdaysShort: ['ned.', 'pon.', 'uto.', 'sre.', 'čet.', 'pet.', 'sub.'],
  5265. weekdaysMin: ['ne', 'po', 'ut', 'sr', 'če', 'pe', 'su'],
  5266. longDateFormat: {
  5267. LT: 'H:mm',
  5268. LTS : 'LT:ss',
  5269. L: 'DD. MM. YYYY',
  5270. LL: 'D. MMMM YYYY',
  5271. LLL: 'D. MMMM YYYY LT',
  5272. LLLL: 'dddd, D. MMMM YYYY LT'
  5273. },
  5274. calendar: {
  5275. sameDay: '[danas u] LT',
  5276. nextDay: '[sutra u] LT',
  5277. nextWeek: function () {
  5278. switch (this.day()) {
  5279. case 0:
  5280. return '[u] [nedelju] [u] LT';
  5281. case 3:
  5282. return '[u] [sredu] [u] LT';
  5283. case 6:
  5284. return '[u] [subotu] [u] LT';
  5285. case 1:
  5286. case 2:
  5287. case 4:
  5288. case 5:
  5289. return '[u] dddd [u] LT';
  5290. }
  5291. },
  5292. lastDay : '[juče u] LT',
  5293. lastWeek : function () {
  5294. var lastWeekDays = [
  5295. '[prošle] [nedelje] [u] LT',
  5296. '[prošlog] [ponedeljka] [u] LT',
  5297. '[prošlog] [utorka] [u] LT',
  5298. '[prošle] [srede] [u] LT',
  5299. '[prošlog] [četvrtka] [u] LT',
  5300. '[prošlog] [petka] [u] LT',
  5301. '[prošle] [subote] [u] LT'
  5302. ];
  5303. return lastWeekDays[this.day()];
  5304. },
  5305. sameElse : 'L'
  5306. },
  5307. relativeTime : {
  5308. future : 'za %s',
  5309. past : 'pre %s',
  5310. s : 'nekoliko sekundi',
  5311. m : sr__translator.translate,
  5312. mm : sr__translator.translate,
  5313. h : sr__translator.translate,
  5314. hh : sr__translator.translate,
  5315. d : 'dan',
  5316. dd : sr__translator.translate,
  5317. M : 'mesec',
  5318. MM : sr__translator.translate,
  5319. y : 'godinu',
  5320. yy : sr__translator.translate
  5321. },
  5322. ordinalParse: /\d{1,2}\./,
  5323. ordinal : '%d.',
  5324. week : {
  5325. dow : 1, // Monday is the first day of the week.
  5326. doy : 7 // The week that contains Jan 1st is the first week of the year.
  5327. }
  5328. });
  5329. //! moment.js locale configuration
  5330. //! locale : swedish (sv)
  5331. //! author : Jens Alm : https://github.com/ulmus
  5332. var sv = moment.defineLocale('sv', {
  5333. months : 'januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december'.split('_'),
  5334. monthsShort : 'jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec'.split('_'),
  5335. weekdays : 'söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag'.split('_'),
  5336. weekdaysShort : 'sön_mån_tis_ons_tor_fre_lör'.split('_'),
  5337. weekdaysMin : 'sö_må_ti_on_to_fr_lö'.split('_'),
  5338. longDateFormat : {
  5339. LT : 'HH:mm',
  5340. LTS : 'LT:ss',
  5341. L : 'YYYY-MM-DD',
  5342. LL : 'D MMMM YYYY',
  5343. LLL : 'D MMMM YYYY LT',
  5344. LLLL : 'dddd D MMMM YYYY LT'
  5345. },
  5346. calendar : {
  5347. sameDay: '[Idag] LT',
  5348. nextDay: '[Imorgon] LT',
  5349. lastDay: '[Igår] LT',
  5350. nextWeek: 'dddd LT',
  5351. lastWeek: '[Förra] dddd[en] LT',
  5352. sameElse: 'L'
  5353. },
  5354. relativeTime : {
  5355. future : 'om %s',
  5356. past : 'för %s sedan',
  5357. s : 'några sekunder',
  5358. m : 'en minut',
  5359. mm : '%d minuter',
  5360. h : 'en timme',
  5361. hh : '%d timmar',
  5362. d : 'en dag',
  5363. dd : '%d dagar',
  5364. M : 'en månad',
  5365. MM : '%d månader',
  5366. y : 'ett år',
  5367. yy : '%d år'
  5368. },
  5369. ordinalParse: /\d{1,2}(e|a)/,
  5370. ordinal : function (number) {
  5371. var b = number % 10,
  5372. output = (~~(number % 100 / 10) === 1) ? 'e' :
  5373. (b === 1) ? 'a' :
  5374. (b === 2) ? 'a' :
  5375. (b === 3) ? 'e' : 'e';
  5376. return number + output;
  5377. },
  5378. week : {
  5379. dow : 1, // Monday is the first day of the week.
  5380. doy : 4 // The week that contains Jan 4th is the first week of the year.
  5381. }
  5382. });
  5383. //! moment.js locale configuration
  5384. //! locale : tamil (ta)
  5385. //! author : Arjunkumar Krishnamoorthy : https://github.com/tk120404
  5386. var ta = moment.defineLocale('ta', {
  5387. months : 'ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்'.split('_'),
  5388. monthsShort : 'ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்'.split('_'),
  5389. weekdays : 'ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை'.split('_'),
  5390. weekdaysShort : 'ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி'.split('_'),
  5391. weekdaysMin : 'ஞா_தி_செ_பு_வி_வெ_ச'.split('_'),
  5392. longDateFormat : {
  5393. LT : 'HH:mm',
  5394. LTS : 'LT:ss',
  5395. L : 'DD/MM/YYYY',
  5396. LL : 'D MMMM YYYY',
  5397. LLL : 'D MMMM YYYY, LT',
  5398. LLLL : 'dddd, D MMMM YYYY, LT'
  5399. },
  5400. calendar : {
  5401. sameDay : '[இன்று] LT',
  5402. nextDay : '[நாளை] LT',
  5403. nextWeek : 'dddd, LT',
  5404. lastDay : '[நேற்று] LT',
  5405. lastWeek : '[கடந்த வாரம்] dddd, LT',
  5406. sameElse : 'L'
  5407. },
  5408. relativeTime : {
  5409. future : '%s இல்',
  5410. past : '%s முன்',
  5411. s : 'ஒரு சில விநாடிகள்',
  5412. m : 'ஒரு நிமிடம்',
  5413. mm : '%d நிமிடங்கள்',
  5414. h : 'ஒரு மணி நேரம்',
  5415. hh : '%d மணி நேரம்',
  5416. d : 'ஒரு நாள்',
  5417. dd : '%d நாட்கள்',
  5418. M : 'ஒரு மாதம்',
  5419. MM : '%d மாதங்கள்',
  5420. y : 'ஒரு வருடம்',
  5421. yy : '%d ஆண்டுகள்'
  5422. },
  5423. ordinalParse: /\d{1,2}வது/,
  5424. ordinal : function (number) {
  5425. return number + 'வது';
  5426. },
  5427. // refer http://ta.wikipedia.org/s/1er1
  5428. meridiemParse: /யாமம்|வைகறை|காலை|நண்பகல்|எற்பாடு|மாலை/,
  5429. meridiem : function (hour, minute, isLower) {
  5430. if (hour < 2) {
  5431. return ' யாமம்';
  5432. } else if (hour < 6) {
  5433. return ' வைகறை'; // வைகறை
  5434. } else if (hour < 10) {
  5435. return ' காலை'; // காலை
  5436. } else if (hour < 14) {
  5437. return ' நண்பகல்'; // நண்பகல்
  5438. } else if (hour < 18) {
  5439. return ' எற்பாடு'; // எற்பாடு
  5440. } else if (hour < 22) {
  5441. return ' மாலை'; // மாலை
  5442. } else {
  5443. return ' யாமம்';
  5444. }
  5445. },
  5446. meridiemHour : function (hour, meridiem) {
  5447. if (hour === 12) {
  5448. hour = 0;
  5449. }
  5450. if (meridiem === 'யாமம்') {
  5451. return hour < 2 ? hour : hour + 12;
  5452. } else if (meridiem === 'வைகறை' || meridiem === 'காலை') {
  5453. return hour;
  5454. } else if (meridiem === 'நண்பகல்') {
  5455. return hour >= 10 ? hour : hour + 12;
  5456. } else {
  5457. return hour + 12;
  5458. }
  5459. },
  5460. week : {
  5461. dow : 0, // Sunday is the first day of the week.
  5462. doy : 6 // The week that contains Jan 1st is the first week of the year.
  5463. }
  5464. });
  5465. //! moment.js locale configuration
  5466. //! locale : thai (th)
  5467. //! author : Kridsada Thanabulpong : https://github.com/sirn
  5468. var th = moment.defineLocale('th', {
  5469. months : 'มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม'.split('_'),
  5470. monthsShort : 'มกรา_กุมภา_มีนา_เมษา_พฤษภา_มิถุนา_กรกฎา_สิงหา_กันยา_ตุลา_พฤศจิกา_ธันวา'.split('_'),
  5471. weekdays : 'อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์'.split('_'),
  5472. weekdaysShort : 'อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์'.split('_'), // yes, three characters difference
  5473. weekdaysMin : 'อา._จ._อ._พ._พฤ._ศ._ส.'.split('_'),
  5474. longDateFormat : {
  5475. LT : 'H นาฬิกา m นาที',
  5476. LTS : 'LT s วินาที',
  5477. L : 'YYYY/MM/DD',
  5478. LL : 'D MMMM YYYY',
  5479. LLL : 'D MMMM YYYY เวลา LT',
  5480. LLLL : 'วันddddที่ D MMMM YYYY เวลา LT'
  5481. },
  5482. meridiemParse: /ก่อนเที่ยง|หลังเที่ยง/,
  5483. isPM: function (input) {
  5484. return input === 'หลังเที่ยง';
  5485. },
  5486. meridiem : function (hour, minute, isLower) {
  5487. if (hour < 12) {
  5488. return 'ก่อนเที่ยง';
  5489. } else {
  5490. return 'หลังเที่ยง';
  5491. }
  5492. },
  5493. calendar : {
  5494. sameDay : '[วันนี้ เวลา] LT',
  5495. nextDay : '[พรุ่งนี้ เวลา] LT',
  5496. nextWeek : 'dddd[หน้า เวลา] LT',
  5497. lastDay : '[เมื่อวานนี้ เวลา] LT',
  5498. lastWeek : '[วัน]dddd[ที่แล้ว เวลา] LT',
  5499. sameElse : 'L'
  5500. },
  5501. relativeTime : {
  5502. future : 'อีก %s',
  5503. past : '%sที่แล้ว',
  5504. s : 'ไม่กี่วินาที',
  5505. m : '1 นาที',
  5506. mm : '%d นาที',
  5507. h : '1 ชั่วโมง',
  5508. hh : '%d ชั่วโมง',
  5509. d : '1 วัน',
  5510. dd : '%d วัน',
  5511. M : '1 เดือน',
  5512. MM : '%d เดือน',
  5513. y : '1 ปี',
  5514. yy : '%d ปี'
  5515. }
  5516. });
  5517. //! moment.js locale configuration
  5518. //! locale : Tagalog/Filipino (tl-ph)
  5519. //! author : Dan Hagman
  5520. var tl_ph = moment.defineLocale('tl-ph', {
  5521. months : 'Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre'.split('_'),
  5522. monthsShort : 'Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis'.split('_'),
  5523. weekdays : 'Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado'.split('_'),
  5524. weekdaysShort : 'Lin_Lun_Mar_Miy_Huw_Biy_Sab'.split('_'),
  5525. weekdaysMin : 'Li_Lu_Ma_Mi_Hu_Bi_Sab'.split('_'),
  5526. longDateFormat : {
  5527. LT : 'HH:mm',
  5528. LTS : 'LT:ss',
  5529. L : 'MM/D/YYYY',
  5530. LL : 'MMMM D, YYYY',
  5531. LLL : 'MMMM D, YYYY LT',
  5532. LLLL : 'dddd, MMMM DD, YYYY LT'
  5533. },
  5534. calendar : {
  5535. sameDay: '[Ngayon sa] LT',
  5536. nextDay: '[Bukas sa] LT',
  5537. nextWeek: 'dddd [sa] LT',
  5538. lastDay: '[Kahapon sa] LT',
  5539. lastWeek: 'dddd [huling linggo] LT',
  5540. sameElse: 'L'
  5541. },
  5542. relativeTime : {
  5543. future : 'sa loob ng %s',
  5544. past : '%s ang nakalipas',
  5545. s : 'ilang segundo',
  5546. m : 'isang minuto',
  5547. mm : '%d minuto',
  5548. h : 'isang oras',
  5549. hh : '%d oras',
  5550. d : 'isang araw',
  5551. dd : '%d araw',
  5552. M : 'isang buwan',
  5553. MM : '%d buwan',
  5554. y : 'isang taon',
  5555. yy : '%d taon'
  5556. },
  5557. ordinalParse: /\d{1,2}/,
  5558. ordinal : function (number) {
  5559. return number;
  5560. },
  5561. week : {
  5562. dow : 1, // Monday is the first day of the week.
  5563. doy : 4 // The week that contains Jan 4th is the first week of the year.
  5564. }
  5565. });
  5566. //! moment.js locale configuration
  5567. //! locale : turkish (tr)
  5568. //! authors : Erhan Gundogan : https://github.com/erhangundogan,
  5569. //! Burak Yiğit Kaya: https://github.com/BYK
  5570. var tr__suffixes = {
  5571. 1: '\'inci',
  5572. 5: '\'inci',
  5573. 8: '\'inci',
  5574. 70: '\'inci',
  5575. 80: '\'inci',
  5576. 2: '\'nci',
  5577. 7: '\'nci',
  5578. 20: '\'nci',
  5579. 50: '\'nci',
  5580. 3: '\'üncü',
  5581. 4: '\'üncü',
  5582. 100: '\'üncü',
  5583. 6: '\'ncı',
  5584. 9: '\'uncu',
  5585. 10: '\'uncu',
  5586. 30: '\'uncu',
  5587. 60: '\'ıncı',
  5588. 90: '\'ıncı'
  5589. };
  5590. var tr = moment.defineLocale('tr', {
  5591. months : 'Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık'.split('_'),
  5592. monthsShort : 'Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara'.split('_'),
  5593. weekdays : 'Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi'.split('_'),
  5594. weekdaysShort : 'Paz_Pts_Sal_Çar_Per_Cum_Cts'.split('_'),
  5595. weekdaysMin : 'Pz_Pt_Sa_Ça_Pe_Cu_Ct'.split('_'),
  5596. longDateFormat : {
  5597. LT : 'HH:mm',
  5598. LTS : 'LT:ss',
  5599. L : 'DD.MM.YYYY',
  5600. LL : 'D MMMM YYYY',
  5601. LLL : 'D MMMM YYYY LT',
  5602. LLLL : 'dddd, D MMMM YYYY LT'
  5603. },
  5604. calendar : {
  5605. sameDay : '[bugün saat] LT',
  5606. nextDay : '[yarın saat] LT',
  5607. nextWeek : '[haftaya] dddd [saat] LT',
  5608. lastDay : '[dün] LT',
  5609. lastWeek : '[geçen hafta] dddd [saat] LT',
  5610. sameElse : 'L'
  5611. },
  5612. relativeTime : {
  5613. future : '%s sonra',
  5614. past : '%s önce',
  5615. s : 'birkaç saniye',
  5616. m : 'bir dakika',
  5617. mm : '%d dakika',
  5618. h : 'bir saat',
  5619. hh : '%d saat',
  5620. d : 'bir gün',
  5621. dd : '%d gün',
  5622. M : 'bir ay',
  5623. MM : '%d ay',
  5624. y : 'bir yıl',
  5625. yy : '%d yıl'
  5626. },
  5627. ordinalParse: /\d{1,2}'(inci|nci|üncü|ncı|uncu|ıncı)/,
  5628. ordinal : function (number) {
  5629. if (number === 0) { // special case for zero
  5630. return number + '\'ıncı';
  5631. }
  5632. var a = number % 10,
  5633. b = number % 100 - a,
  5634. c = number >= 100 ? 100 : null;
  5635. return number + (tr__suffixes[a] || tr__suffixes[b] || tr__suffixes[c]);
  5636. },
  5637. week : {
  5638. dow : 1, // Monday is the first day of the week.
  5639. doy : 7 // The week that contains Jan 1st is the first week of the year.
  5640. }
  5641. });
  5642. //! moment.js locale configuration
  5643. //! locale : Morocco Central Atlas Tamaziɣt in Latin (tzm-latn)
  5644. //! author : Abdel Said : https://github.com/abdelsaid
  5645. var tzm_latn = moment.defineLocale('tzm-latn', {
  5646. months : 'innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir'.split('_'),
  5647. monthsShort : 'innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir'.split('_'),
  5648. weekdays : 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'),
  5649. weekdaysShort : 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'),
  5650. weekdaysMin : 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'),
  5651. longDateFormat : {
  5652. LT : 'HH:mm',
  5653. LTS : 'LT:ss',
  5654. L : 'DD/MM/YYYY',
  5655. LL : 'D MMMM YYYY',
  5656. LLL : 'D MMMM YYYY LT',
  5657. LLLL : 'dddd D MMMM YYYY LT'
  5658. },
  5659. calendar : {
  5660. sameDay: '[asdkh g] LT',
  5661. nextDay: '[aska g] LT',
  5662. nextWeek: 'dddd [g] LT',
  5663. lastDay: '[assant g] LT',
  5664. lastWeek: 'dddd [g] LT',
  5665. sameElse: 'L'
  5666. },
  5667. relativeTime : {
  5668. future : 'dadkh s yan %s',
  5669. past : 'yan %s',
  5670. s : 'imik',
  5671. m : 'minuḍ',
  5672. mm : '%d minuḍ',
  5673. h : 'saɛa',
  5674. hh : '%d tassaɛin',
  5675. d : 'ass',
  5676. dd : '%d ossan',
  5677. M : 'ayowr',
  5678. MM : '%d iyyirn',
  5679. y : 'asgas',
  5680. yy : '%d isgasn'
  5681. },
  5682. week : {
  5683. dow : 6, // Saturday is the first day of the week.
  5684. doy : 12 // The week that contains Jan 1st is the first week of the year.
  5685. }
  5686. });
  5687. //! moment.js locale configuration
  5688. //! locale : Morocco Central Atlas Tamaziɣt (tzm)
  5689. //! author : Abdel Said : https://github.com/abdelsaid
  5690. var tzm = moment.defineLocale('tzm', {
  5691. months : 'ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ'.split('_'),
  5692. monthsShort : 'ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ'.split('_'),
  5693. weekdays : 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),
  5694. weekdaysShort : 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),
  5695. weekdaysMin : 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),
  5696. longDateFormat : {
  5697. LT : 'HH:mm',
  5698. LTS: 'LT:ss',
  5699. L : 'DD/MM/YYYY',
  5700. LL : 'D MMMM YYYY',
  5701. LLL : 'D MMMM YYYY LT',
  5702. LLLL : 'dddd D MMMM YYYY LT'
  5703. },
  5704. calendar : {
  5705. sameDay: '[ⴰⵙⴷⵅ ⴴ] LT',
  5706. nextDay: '[ⴰⵙⴽⴰ ⴴ] LT',
  5707. nextWeek: 'dddd [ⴴ] LT',
  5708. lastDay: '[ⴰⵚⴰⵏⵜ ⴴ] LT',
  5709. lastWeek: 'dddd [ⴴ] LT',
  5710. sameElse: 'L'
  5711. },
  5712. relativeTime : {
  5713. future : 'ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s',
  5714. past : 'ⵢⴰⵏ %s',
  5715. s : 'ⵉⵎⵉⴽ',
  5716. m : 'ⵎⵉⵏⵓⴺ',
  5717. mm : '%d ⵎⵉⵏⵓⴺ',
  5718. h : 'ⵙⴰⵄⴰ',
  5719. hh : '%d ⵜⴰⵙⵙⴰⵄⵉⵏ',
  5720. d : 'ⴰⵙⵙ',
  5721. dd : '%d oⵙⵙⴰⵏ',
  5722. M : 'ⴰⵢoⵓⵔ',
  5723. MM : '%d ⵉⵢⵢⵉⵔⵏ',
  5724. y : 'ⴰⵙⴳⴰⵙ',
  5725. yy : '%d ⵉⵙⴳⴰⵙⵏ'
  5726. },
  5727. week : {
  5728. dow : 6, // Saturday is the first day of the week.
  5729. doy : 12 // The week that contains Jan 1st is the first week of the year.
  5730. }
  5731. });
  5732. //! moment.js locale configuration
  5733. //! locale : ukrainian (uk)
  5734. //! author : zemlanin : https://github.com/zemlanin
  5735. //! Author : Menelion Elensúle : https://github.com/Oire
  5736. function uk__plural(word, num) {
  5737. var forms = word.split('_');
  5738. return num % 10 === 1 && num % 100 !== 11 ? forms[0] : (num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20) ? forms[1] : forms[2]);
  5739. }
  5740. function uk__relativeTimeWithPlural(number, withoutSuffix, key) {
  5741. var format = {
  5742. 'mm': 'хвилина_хвилини_хвилин',
  5743. 'hh': 'година_години_годин',
  5744. 'dd': 'день_дні_днів',
  5745. 'MM': 'місяць_місяці_місяців',
  5746. 'yy': 'рік_роки_років'
  5747. };
  5748. if (key === 'm') {
  5749. return withoutSuffix ? 'хвилина' : 'хвилину';
  5750. }
  5751. else if (key === 'h') {
  5752. return withoutSuffix ? 'година' : 'годину';
  5753. }
  5754. else {
  5755. return number + ' ' + uk__plural(format[key], +number);
  5756. }
  5757. }
  5758. function uk__monthsCaseReplace(m, format) {
  5759. var months = {
  5760. 'nominative': 'січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень'.split('_'),
  5761. 'accusative': 'січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня'.split('_')
  5762. },
  5763. nounCase = (/D[oD]? *MMMM?/).test(format) ?
  5764. 'accusative' :
  5765. 'nominative';
  5766. return months[nounCase][m.month()];
  5767. }
  5768. function uk__weekdaysCaseReplace(m, format) {
  5769. var weekdays = {
  5770. 'nominative': 'неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота'.split('_'),
  5771. 'accusative': 'неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу'.split('_'),
  5772. 'genitive': 'неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи'.split('_')
  5773. },
  5774. nounCase = (/(\[[ВвУу]\]) ?dddd/).test(format) ?
  5775. 'accusative' :
  5776. ((/\[?(?:минулої|наступної)? ?\] ?dddd/).test(format) ?
  5777. 'genitive' :
  5778. 'nominative');
  5779. return weekdays[nounCase][m.day()];
  5780. }
  5781. function processHoursFunction(str) {
  5782. return function () {
  5783. return str + 'о' + (this.hours() === 11 ? 'б' : '') + '] LT';
  5784. };
  5785. }
  5786. var uk = moment.defineLocale('uk', {
  5787. months : uk__monthsCaseReplace,
  5788. monthsShort : 'січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд'.split('_'),
  5789. weekdays : uk__weekdaysCaseReplace,
  5790. weekdaysShort : 'нд_пн_вт_ср_чт_пт_сб'.split('_'),
  5791. weekdaysMin : 'нд_пн_вт_ср_чт_пт_сб'.split('_'),
  5792. longDateFormat : {
  5793. LT : 'HH:mm',
  5794. LTS : 'LT:ss',
  5795. L : 'DD.MM.YYYY',
  5796. LL : 'D MMMM YYYY р.',
  5797. LLL : 'D MMMM YYYY р., LT',
  5798. LLLL : 'dddd, D MMMM YYYY р., LT'
  5799. },
  5800. calendar : {
  5801. sameDay: processHoursFunction('[Сьогодні '),
  5802. nextDay: processHoursFunction('[Завтра '),
  5803. lastDay: processHoursFunction('[Вчора '),
  5804. nextWeek: processHoursFunction('[У] dddd ['),
  5805. lastWeek: function () {
  5806. switch (this.day()) {
  5807. case 0:
  5808. case 3:
  5809. case 5:
  5810. case 6:
  5811. return processHoursFunction('[Минулої] dddd [').call(this);
  5812. case 1:
  5813. case 2:
  5814. case 4:
  5815. return processHoursFunction('[Минулого] dddd [').call(this);
  5816. }
  5817. },
  5818. sameElse: 'L'
  5819. },
  5820. relativeTime : {
  5821. future : 'за %s',
  5822. past : '%s тому',
  5823. s : 'декілька секунд',
  5824. m : uk__relativeTimeWithPlural,
  5825. mm : uk__relativeTimeWithPlural,
  5826. h : 'годину',
  5827. hh : uk__relativeTimeWithPlural,
  5828. d : 'день',
  5829. dd : uk__relativeTimeWithPlural,
  5830. M : 'місяць',
  5831. MM : uk__relativeTimeWithPlural,
  5832. y : 'рік',
  5833. yy : uk__relativeTimeWithPlural
  5834. },
  5835. // M. E.: those two are virtually unused but a user might want to implement them for his/her website for some reason
  5836. meridiemParse: /ночі|ранку|дня|вечора/,
  5837. isPM: function (input) {
  5838. return /^(дня|вечора)$/.test(input);
  5839. },
  5840. meridiem : function (hour, minute, isLower) {
  5841. if (hour < 4) {
  5842. return 'ночі';
  5843. } else if (hour < 12) {
  5844. return 'ранку';
  5845. } else if (hour < 17) {
  5846. return 'дня';
  5847. } else {
  5848. return 'вечора';
  5849. }
  5850. },
  5851. ordinalParse: /\d{1,2}-(й|го)/,
  5852. ordinal: function (number, period) {
  5853. switch (period) {
  5854. case 'M':
  5855. case 'd':
  5856. case 'DDD':
  5857. case 'w':
  5858. case 'W':
  5859. return number + '-й';
  5860. case 'D':
  5861. return number + '-го';
  5862. default:
  5863. return number;
  5864. }
  5865. },
  5866. week : {
  5867. dow : 1, // Monday is the first day of the week.
  5868. doy : 7 // The week that contains Jan 1st is the first week of the year.
  5869. }
  5870. });
  5871. //! moment.js locale configuration
  5872. //! locale : uzbek (uz)
  5873. //! author : Sardor Muminov : https://github.com/muminoff
  5874. var uz = moment.defineLocale('uz', {
  5875. months : 'январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь'.split('_'),
  5876. monthsShort : 'янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек'.split('_'),
  5877. weekdays : 'Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба'.split('_'),
  5878. weekdaysShort : 'Якш_Душ_Сеш_Чор_Пай_Жум_Шан'.split('_'),
  5879. weekdaysMin : 'Як_Ду_Се_Чо_Па_Жу_Ша'.split('_'),
  5880. longDateFormat : {
  5881. LT : 'HH:mm',
  5882. LTS : 'LT:ss',
  5883. L : 'DD/MM/YYYY',
  5884. LL : 'D MMMM YYYY',
  5885. LLL : 'D MMMM YYYY LT',
  5886. LLLL : 'D MMMM YYYY, dddd LT'
  5887. },
  5888. calendar : {
  5889. sameDay : '[Бугун соат] LT [да]',
  5890. nextDay : '[Эртага] LT [да]',
  5891. nextWeek : 'dddd [куни соат] LT [да]',
  5892. lastDay : '[Кеча соат] LT [да]',
  5893. lastWeek : '[Утган] dddd [куни соат] LT [да]',
  5894. sameElse : 'L'
  5895. },
  5896. relativeTime : {
  5897. future : 'Якин %s ичида',
  5898. past : 'Бир неча %s олдин',
  5899. s : 'фурсат',
  5900. m : 'бир дакика',
  5901. mm : '%d дакика',
  5902. h : 'бир соат',
  5903. hh : '%d соат',
  5904. d : 'бир кун',
  5905. dd : '%d кун',
  5906. M : 'бир ой',
  5907. MM : '%d ой',
  5908. y : 'бир йил',
  5909. yy : '%d йил'
  5910. },
  5911. week : {
  5912. dow : 1, // Monday is the first day of the week.
  5913. doy : 7 // The week that contains Jan 4th is the first week of the year.
  5914. }
  5915. });
  5916. //! moment.js locale configuration
  5917. //! locale : vietnamese (vi)
  5918. //! author : Bang Nguyen : https://github.com/bangnk
  5919. var vi = moment.defineLocale('vi', {
  5920. months : 'tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12'.split('_'),
  5921. monthsShort : 'Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12'.split('_'),
  5922. weekdays : 'chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy'.split('_'),
  5923. weekdaysShort : 'CN_T2_T3_T4_T5_T6_T7'.split('_'),
  5924. weekdaysMin : 'CN_T2_T3_T4_T5_T6_T7'.split('_'),
  5925. longDateFormat : {
  5926. LT : 'HH:mm',
  5927. LTS : 'LT:ss',
  5928. L : 'DD/MM/YYYY',
  5929. LL : 'D MMMM [năm] YYYY',
  5930. LLL : 'D MMMM [năm] YYYY LT',
  5931. LLLL : 'dddd, D MMMM [năm] YYYY LT',
  5932. l : 'DD/M/YYYY',
  5933. ll : 'D MMM YYYY',
  5934. lll : 'D MMM YYYY LT',
  5935. llll : 'ddd, D MMM YYYY LT'
  5936. },
  5937. calendar : {
  5938. sameDay: '[Hôm nay lúc] LT',
  5939. nextDay: '[Ngày mai lúc] LT',
  5940. nextWeek: 'dddd [tuần tới lúc] LT',
  5941. lastDay: '[Hôm qua lúc] LT',
  5942. lastWeek: 'dddd [tuần rồi lúc] LT',
  5943. sameElse: 'L'
  5944. },
  5945. relativeTime : {
  5946. future : '%s tới',
  5947. past : '%s trước',
  5948. s : 'vài giây',
  5949. m : 'một phút',
  5950. mm : '%d phút',
  5951. h : 'một giờ',
  5952. hh : '%d giờ',
  5953. d : 'một ngày',
  5954. dd : '%d ngày',
  5955. M : 'một tháng',
  5956. MM : '%d tháng',
  5957. y : 'một năm',
  5958. yy : '%d năm'
  5959. },
  5960. ordinalParse: /\d{1,2}/,
  5961. ordinal : function (number) {
  5962. return number;
  5963. },
  5964. week : {
  5965. dow : 1, // Monday is the first day of the week.
  5966. doy : 4 // The week that contains Jan 4th is the first week of the year.
  5967. }
  5968. });
  5969. //! moment.js locale configuration
  5970. //! locale : chinese (zh-cn)
  5971. //! author : suupic : https://github.com/suupic
  5972. //! author : Zeno Zeng : https://github.com/zenozeng
  5973. var zh_cn = moment.defineLocale('zh-cn', {
  5974. months : '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split('_'),
  5975. monthsShort : '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
  5976. weekdays : '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),
  5977. weekdaysShort : '周日_周一_周二_周三_周四_周五_周六'.split('_'),
  5978. weekdaysMin : '日_一_二_三_四_五_六'.split('_'),
  5979. longDateFormat : {
  5980. LT : 'Ah点mm',
  5981. LTS : 'Ah点m分s秒',
  5982. L : 'YYYY-MM-DD',
  5983. LL : 'YYYY年MMMD日',
  5984. LLL : 'YYYY年MMMD日LT',
  5985. LLLL : 'YYYY年MMMD日ddddLT',
  5986. l : 'YYYY-MM-DD',
  5987. ll : 'YYYY年MMMD日',
  5988. lll : 'YYYY年MMMD日LT',
  5989. llll : 'YYYY年MMMD日ddddLT'
  5990. },
  5991. meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,
  5992. meridiemHour: function (hour, meridiem) {
  5993. if (hour === 12) {
  5994. hour = 0;
  5995. }
  5996. if (meridiem === '凌晨' || meridiem === '早上' ||
  5997. meridiem === '上午') {
  5998. return hour;
  5999. } else if (meridiem === '下午' || meridiem === '晚上') {
  6000. return hour + 12;
  6001. } else {
  6002. // '中午'
  6003. return hour >= 11 ? hour : hour + 12;
  6004. }
  6005. },
  6006. meridiem : function (hour, minute, isLower) {
  6007. var hm = hour * 100 + minute;
  6008. if (hm < 600) {
  6009. return '凌晨';
  6010. } else if (hm < 900) {
  6011. return '早上';
  6012. } else if (hm < 1130) {
  6013. return '上午';
  6014. } else if (hm < 1230) {
  6015. return '中午';
  6016. } else if (hm < 1800) {
  6017. return '下午';
  6018. } else {
  6019. return '晚上';
  6020. }
  6021. },
  6022. calendar : {
  6023. sameDay : function () {
  6024. return this.minutes() === 0 ? '[今天]Ah[点整]' : '[今天]LT';
  6025. },
  6026. nextDay : function () {
  6027. return this.minutes() === 0 ? '[明天]Ah[点整]' : '[明天]LT';
  6028. },
  6029. lastDay : function () {
  6030. return this.minutes() === 0 ? '[昨天]Ah[点整]' : '[昨天]LT';
  6031. },
  6032. nextWeek : function () {
  6033. var startOfWeek, prefix;
  6034. startOfWeek = moment().startOf('week');
  6035. prefix = this.unix() - startOfWeek.unix() >= 7 * 24 * 3600 ? '[下]' : '[本]';
  6036. return this.minutes() === 0 ? prefix + 'dddAh点整' : prefix + 'dddAh点mm';
  6037. },
  6038. lastWeek : function () {
  6039. var startOfWeek, prefix;
  6040. startOfWeek = moment().startOf('week');
  6041. prefix = this.unix() < startOfWeek.unix() ? '[上]' : '[本]';
  6042. return this.minutes() === 0 ? prefix + 'dddAh点整' : prefix + 'dddAh点mm';
  6043. },
  6044. sameElse : 'LL'
  6045. },
  6046. ordinalParse: /\d{1,2}(日|月|周)/,
  6047. ordinal : function (number, period) {
  6048. switch (period) {
  6049. case 'd':
  6050. case 'D':
  6051. case 'DDD':
  6052. return number + '日';
  6053. case 'M':
  6054. return number + '月';
  6055. case 'w':
  6056. case 'W':
  6057. return number + '周';
  6058. default:
  6059. return number;
  6060. }
  6061. },
  6062. relativeTime : {
  6063. future : '%s内',
  6064. past : '%s前',
  6065. s : '几秒',
  6066. m : '1分钟',
  6067. mm : '%d分钟',
  6068. h : '1小时',
  6069. hh : '%d小时',
  6070. d : '1天',
  6071. dd : '%d天',
  6072. M : '1个月',
  6073. MM : '%d个月',
  6074. y : '1年',
  6075. yy : '%d年'
  6076. },
  6077. week : {
  6078. // GB/T 7408-1994《数据元和交换格式·信息交换·日期和时间表示法》与ISO 8601:1988等效
  6079. dow : 1, // Monday is the first day of the week.
  6080. doy : 4 // The week that contains Jan 4th is the first week of the year.
  6081. }
  6082. });
  6083. //! moment.js locale configuration
  6084. //! locale : traditional chinese (zh-tw)
  6085. //! author : Ben : https://github.com/ben-lin
  6086. var zh_tw = moment.defineLocale('zh-tw', {
  6087. months : '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split('_'),
  6088. monthsShort : '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
  6089. weekdays : '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),
  6090. weekdaysShort : '週日_週一_週二_週三_週四_週五_週六'.split('_'),
  6091. weekdaysMin : '日_一_二_三_四_五_六'.split('_'),
  6092. longDateFormat : {
  6093. LT : 'Ah點mm',
  6094. LTS : 'Ah點m分s秒',
  6095. L : 'YYYY年MMMD日',
  6096. LL : 'YYYY年MMMD日',
  6097. LLL : 'YYYY年MMMD日LT',
  6098. LLLL : 'YYYY年MMMD日ddddLT',
  6099. l : 'YYYY年MMMD日',
  6100. ll : 'YYYY年MMMD日',
  6101. lll : 'YYYY年MMMD日LT',
  6102. llll : 'YYYY年MMMD日ddddLT'
  6103. },
  6104. meridiemParse: /早上|上午|中午|下午|晚上/,
  6105. meridiemHour : function (hour, meridiem) {
  6106. if (hour === 12) {
  6107. hour = 0;
  6108. }
  6109. if (meridiem === '早上' || meridiem === '上午') {
  6110. return hour;
  6111. } else if (meridiem === '中午') {
  6112. return hour >= 11 ? hour : hour + 12;
  6113. } else if (meridiem === '下午' || meridiem === '晚上') {
  6114. return hour + 12;
  6115. }
  6116. },
  6117. meridiem : function (hour, minute, isLower) {
  6118. var hm = hour * 100 + minute;
  6119. if (hm < 900) {
  6120. return '早上';
  6121. } else if (hm < 1130) {
  6122. return '上午';
  6123. } else if (hm < 1230) {
  6124. return '中午';
  6125. } else if (hm < 1800) {
  6126. return '下午';
  6127. } else {
  6128. return '晚上';
  6129. }
  6130. },
  6131. calendar : {
  6132. sameDay : '[今天]LT',
  6133. nextDay : '[明天]LT',
  6134. nextWeek : '[下]ddddLT',
  6135. lastDay : '[昨天]LT',
  6136. lastWeek : '[上]ddddLT',
  6137. sameElse : 'L'
  6138. },
  6139. ordinalParse: /\d{1,2}(日|月|週)/,
  6140. ordinal : function (number, period) {
  6141. switch (period) {
  6142. case 'd' :
  6143. case 'D' :
  6144. case 'DDD' :
  6145. return number + '日';
  6146. case 'M' :
  6147. return number + '月';
  6148. case 'w' :
  6149. case 'W' :
  6150. return number + '週';
  6151. default :
  6152. return number;
  6153. }
  6154. },
  6155. relativeTime : {
  6156. future : '%s內',
  6157. past : '%s前',
  6158. s : '幾秒',
  6159. m : '一分鐘',
  6160. mm : '%d分鐘',
  6161. h : '一小時',
  6162. hh : '%d小時',
  6163. d : '一天',
  6164. dd : '%d天',
  6165. M : '一個月',
  6166. MM : '%d個月',
  6167. y : '一年',
  6168. yy : '%d年'
  6169. }
  6170. });
  6171. }));