resources: Bump moment.js from 2.15.0 to 2.19.3
[lhc/web/wiklou.git] / resources / lib / moment / locale / ur.js
1 //! moment.js locale configuration
2 //! locale : Urdu [ur]
3 //! author : Sawood Alam : https://github.com/ibnesayeed
4 //! author : Zack : https://github.com/ZackVision
5
6 ;(function (global, factory) {
7 typeof exports === 'object' && typeof module !== 'undefined'
8 && typeof require === 'function' ? factory(require('../moment')) :
9 typeof define === 'function' && define.amd ? define(['../moment'], factory) :
10 factory(global.moment)
11 }(this, (function (moment) { 'use strict';
12
13
14 var months = [
15 'جنوری',
16 'فروری',
17 'مارچ',
18 'اپریل',
19 'مئی',
20 'جون',
21 'جولائی',
22 'اگست',
23 'ستمبر',
24 'اکتوبر',
25 'نومبر',
26 'دسمبر'
27 ];
28 var days = [
29 'اتوار',
30 'پیر',
31 'منگل',
32 'بدھ',
33 'جمعرات',
34 'جمعہ',
35 'ہفتہ'
36 ];
37
38 var ur = moment.defineLocale('ur', {
39 months : months,
40 monthsShort : months,
41 weekdays : days,
42 weekdaysShort : days,
43 weekdaysMin : days,
44 longDateFormat : {
45 LT : 'HH:mm',
46 LTS : 'HH:mm:ss',
47 L : 'DD/MM/YYYY',
48 LL : 'D MMMM YYYY',
49 LLL : 'D MMMM YYYY HH:mm',
50 LLLL : 'dddd، D MMMM YYYY HH:mm'
51 },
52 meridiemParse: /صبح|شام/,
53 isPM : function (input) {
54 return 'شام' === input;
55 },
56 meridiem : function (hour, minute, isLower) {
57 if (hour < 12) {
58 return 'صبح';
59 }
60 return 'شام';
61 },
62 calendar : {
63 sameDay : '[آج بوقت] LT',
64 nextDay : '[کل بوقت] LT',
65 nextWeek : 'dddd [بوقت] LT',
66 lastDay : '[گذشتہ روز بوقت] LT',
67 lastWeek : '[گذشتہ] dddd [بوقت] LT',
68 sameElse : 'L'
69 },
70 relativeTime : {
71 future : '%s بعد',
72 past : '%s قبل',
73 s : 'چند سیکنڈ',
74 m : 'ایک منٹ',
75 mm : '%d منٹ',
76 h : 'ایک گھنٹہ',
77 hh : '%d گھنٹے',
78 d : 'ایک دن',
79 dd : '%d دن',
80 M : 'ایک ماہ',
81 MM : '%d ماہ',
82 y : 'ایک سال',
83 yy : '%d سال'
84 },
85 preparse: function (string) {
86 return string.replace(/،/g, ',');
87 },
88 postformat: function (string) {
89 return string.replace(/,/g, '،');
90 },
91 week : {
92 dow : 1, // Monday is the first day of the week.
93 doy : 4 // The week that contains Jan 4th is the first week of the year.
94 }
95 });
96
97 return ur;
98
99 })));