Blame view

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