2016-02-05 15:42:48 -05:00
|
|
|
//! moment.js locale configuration
|
2017-04-20 00:24:20 -04:00
|
|
|
//! locale : Maldivian [dv]
|
2016-02-05 15:42:48 -05:00
|
|
|
//! author : Jawish Hameed : https://github.com/jawish
|
|
|
|
|
|
|
|
;(function (global, factory) {
|
|
|
|
typeof exports === 'object' && typeof module !== 'undefined'
|
|
|
|
&& typeof require === 'function' ? factory(require('../moment')) :
|
2017-04-20 00:24:20 -04:00
|
|
|
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
|
2016-02-05 15:42:48 -05:00
|
|
|
factory(global.moment)
|
2017-04-20 00:24:20 -04:00
|
|
|
}(this, (function (moment) { 'use strict';
|
2016-02-05 15:42:48 -05:00
|
|
|
|
|
|
|
|
2017-04-20 00:24:20 -04:00
|
|
|
var months = [
|
|
|
|
'ޖެނުއަރީ',
|
|
|
|
'ފެބްރުއަރީ',
|
|
|
|
'މާރިޗު',
|
|
|
|
'އޭޕްރީލު',
|
|
|
|
'މޭ',
|
|
|
|
'ޖޫން',
|
|
|
|
'ޖުލައި',
|
|
|
|
'އޯގަސްޓު',
|
|
|
|
'ސެޕްޓެމްބަރު',
|
|
|
|
'އޮކްޓޯބަރު',
|
|
|
|
'ނޮވެމްބަރު',
|
|
|
|
'ޑިސެމްބަރު'
|
|
|
|
];
|
|
|
|
var weekdays = [
|
|
|
|
'އާދިއްތަ',
|
|
|
|
'ހޯމަ',
|
|
|
|
'އަންގާރަ',
|
|
|
|
'ބުދަ',
|
|
|
|
'ބުރާސްފަތި',
|
|
|
|
'ހުކުރު',
|
|
|
|
'ހޮނިހިރު'
|
|
|
|
];
|
2016-02-05 15:42:48 -05:00
|
|
|
|
2017-04-20 00:24:20 -04:00
|
|
|
var dv = moment.defineLocale('dv', {
|
|
|
|
months : months,
|
|
|
|
monthsShort : months,
|
|
|
|
weekdays : weekdays,
|
|
|
|
weekdaysShort : weekdays,
|
|
|
|
weekdaysMin : 'އާދި_ހޯމަ_އަން_ބުދަ_ބުރާ_ހުކު_ހޮނި'.split('_'),
|
|
|
|
longDateFormat : {
|
2016-02-05 15:42:48 -05:00
|
|
|
|
2017-04-20 00:24:20 -04:00
|
|
|
LT : 'HH:mm',
|
|
|
|
LTS : 'HH:mm:ss',
|
|
|
|
L : 'D/M/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 'މކ';
|
|
|
|
} else {
|
|
|
|
return 'މފ';
|
2016-02-05 15:42:48 -05:00
|
|
|
}
|
2017-04-20 00:24:20 -04:00
|
|
|
},
|
|
|
|
calendar : {
|
|
|
|
sameDay : '[މިއަދު] LT',
|
|
|
|
nextDay : '[މާދަމާ] LT',
|
|
|
|
nextWeek : 'dddd LT',
|
|
|
|
lastDay : '[އިއްޔެ] LT',
|
|
|
|
lastWeek : '[ފާއިތުވި] dddd LT',
|
|
|
|
sameElse : 'L'
|
|
|
|
},
|
|
|
|
relativeTime : {
|
|
|
|
future : 'ތެރޭގައި %s',
|
|
|
|
past : 'ކުރިން %s',
|
|
|
|
s : 'ސިކުންތުކޮޅެއް',
|
|
|
|
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 : 7, // Sunday is the first day of the week.
|
|
|
|
doy : 12 // The week that contains Jan 1st is the first week of the year.
|
|
|
|
}
|
|
|
|
});
|
2016-02-05 15:42:48 -05:00
|
|
|
|
2017-04-20 00:24:20 -04:00
|
|
|
return dv;
|
2016-02-05 15:42:48 -05:00
|
|
|
|
2017-04-20 00:24:20 -04:00
|
|
|
})));
|