PageRenderTime 18ms CodeModel.GetById 10ms app.highlight 6ms RepoModel.GetById 1ms app.codeStats 0ms

/node_modules/moment/src/locale/dv.js

https://bitbucket.org/coleman333/smartsite
JavaScript | 90 lines | 83 code | 4 blank | 3 comment | 2 complexity | e0996e65f207f97d2ce849bd622d299b MD5 | raw file
 1//! moment.js locale configuration
 2//! locale : Maldivian [dv]
 3//! author : Jawish Hameed : https://github.com/jawish
 4
 5import moment from '../moment';
 6
 7var months = [
 8    'ޖެނުއަރީ',
 9    'ފެބްރުއަރީ',
10    'މާރިޗު',
11    'އޭޕްރީލު',
12    'މޭ',
13    'ޖޫން',
14    'ޖުލައި',
15    'އޯގަސްޓު',
16    'ސެޕްޓެމްބަރު',
17    'އޮކްޓޯބަރު',
18    'ނޮވެމްބަރު',
19    'ޑިސެމްބަރު'
20], weekdays = [
21    'އާދިއްތަ',
22    'ހޯމަ',
23    'އަންގާރަ',
24    'ބުދަ',
25    'ބުރާސްފަތި',
26    'ހުކުރު',
27    'ހޮނިހިރު'
28];
29
30export default moment.defineLocale('dv', {
31    months : months,
32    monthsShort : months,
33    weekdays : weekdays,
34    weekdaysShort : weekdays,
35    weekdaysMin : 'އާދި_ހޯމަ_އަން_ބުދަ_ބުރާ_ހުކު_ހޮނި'.split('_'),
36    longDateFormat : {
37
38        LT : 'HH:mm',
39        LTS : 'HH:mm:ss',
40        L : 'D/M/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        } else {
53            return 'މފ';
54        }
55    },
56    calendar : {
57        sameDay : '[މިއަދު] LT',
58        nextDay : '[މާދަމާ] LT',
59        nextWeek : 'dddd LT',
60        lastDay : '[އިއްޔެ] LT',
61        lastWeek : '[ފާއިތުވި] dddd LT',
62        sameElse : 'L'
63    },
64    relativeTime : {
65        future : 'ތެރޭގައި %s',
66        past : 'ކުރިން %s',
67        s : 'ސިކުންތުކޮޅެއް',
68        ss : 'd% ސިކުންތު',
69        m : 'މިނިޓެއް',
70        mm : 'މިނިޓު %d',
71        h : 'ގަޑިއިރެއް',
72        hh : 'ގަޑިއިރު %d',
73        d : 'ދުވަހެއް',
74        dd : 'ދުވަސް %d',
75        M : 'މަހެއް',
76        MM : 'މަސް %d',
77        y : 'އަހަރެއް',
78        yy : 'އަހަރު %d'
79    },
80    preparse: function (string) {
81        return string.replace(/،/g, ',');
82    },
83    postformat: function (string) {
84        return string.replace(/,/g, '،');
85    },
86    week : {
87        dow : 7,  // Sunday is the first day of the week.
88        doy : 12  // The week that contains Jan 1st is the first week of the year.
89    }
90});