UNPKG

2.84 kBJavaScriptView Raw
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 //! moment.js locale configuration
14
15 var months = [
16 'جنوری',
17 'فروری',
18 'مارچ',
19 'اپریل',
20 'مئی',
21 'جون',
22 'جولائی',
23 'اگست',
24 'ستمبر',
25 'اکتوبر',
26 'نومبر',
27 'دسمبر',
28 ],
29 days = ['اتوار', 'پیر', 'منگل', 'بدھ', 'جمعرات', 'جمعہ', 'ہفتہ'];
30
31 var ur = moment.defineLocale('ur', {
32 months: months,
33 monthsShort: months,
34 weekdays: days,
35 weekdaysShort: days,
36 weekdaysMin: days,
37 longDateFormat: {
38 LT: 'HH:mm',
39 LTS: 'HH:mm:ss',
40 L: 'DD/MM/YYYY',
41 LL: 'D MMMM YYYY',
42 LLL: 'D MMMM YYYY HH:mm',
43 LLLL: 'dddd، D MMMM YYYY HH:mm',
44 },
45 meridiemParse: /صبح|شام/,
46 isPM: function (input) {
47 return 'شام' === input;
48 },
49 meridiem: function (hour, minute, isLower) {
50 if (hour < 12) {
51 return 'صبح';
52 }
53 return 'شام';
54 },
55 calendar: {
56 sameDay: '[آج بوقت] LT',
57 nextDay: '[کل بوقت] LT',
58 nextWeek: 'dddd [بوقت] LT',
59 lastDay: '[گذشتہ روز بوقت] LT',
60 lastWeek: '[گذشتہ] dddd [بوقت] LT',
61 sameElse: 'L',
62 },
63 relativeTime: {
64 future: '%s بعد',
65 past: '%s قبل',
66 s: 'چند سیکنڈ',
67 ss: '%d سیکنڈ',
68 m: 'ایک منٹ',
69 mm: '%d منٹ',
70 h: 'ایک گھنٹہ',
71 hh: '%d گھنٹے',
72 d: 'ایک دن',
73 dd: '%d دن',
74 M: 'ایک ماہ',
75 MM: '%d ماہ',
76 y: 'ایک سال',
77 yy: '%d سال',
78 },
79 preparse: function (string) {
80 return string.replace(/،/g, ',');
81 },
82 postformat: function (string) {
83 return string.replace(/,/g, '،');
84 },
85 week: {
86 dow: 1, // Monday is the first day of the week.
87 doy: 4, // The week that contains Jan 4th is the first week of the year.
88 },
89 });
90
91 return ur;
92
93})));