2019-06-10 15:38:54 +00:00
|
|
|
//! moment.js locale configuration
|
2020-07-23 21:12:30 +00:00
|
|
|
//! locale : Maldivian [dv]
|
|
|
|
//! author : Jawish Hameed : https://github.com/jawish
|
2019-06-10 15:38:54 +00:00
|
|
|
|
|
|
|
;(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';
|
|
|
|
|
2020-07-23 21:12:30 +00:00
|
|
|
//! moment.js locale configuration
|
2019-06-10 15:38:54 +00:00
|
|
|
|
|
|
|
var months = [
|
2020-07-23 21:12:30 +00:00
|
|
|
'ޖެނުއަރީ',
|
|
|
|
'ފެބްރުއަރީ',
|
|
|
|
'މާރިޗު',
|
|
|
|
'އޭޕްރީލު',
|
|
|
|
'މޭ',
|
|
|
|
'ޖޫން',
|
|
|
|
'ޖުލައި',
|
|
|
|
'އޯގަސްޓު',
|
|
|
|
'ސެޕްޓެމްބަރު',
|
|
|
|
'އޮކްޓޯބަރު',
|
|
|
|
'ނޮވެމްބަރު',
|
|
|
|
'ޑިސެމްބަރު',
|
|
|
|
],
|
|
|
|
weekdays = [
|
|
|
|
'އާދިއްތަ',
|
|
|
|
'ހޯމަ',
|
|
|
|
'އަންގާރަ',
|
|
|
|
'ބުދަ',
|
|
|
|
'ބުރާސްފަތި',
|
|
|
|
'ހުކުރު',
|
|
|
|
'ހޮނިހިރު',
|
|
|
|
];
|
2019-06-10 15:38:54 +00:00
|
|
|
|
|
|
|
var dv = moment.defineLocale('dv', {
|
2020-07-23 21:12:30 +00:00
|
|
|
months: months,
|
|
|
|
monthsShort: months,
|
|
|
|
weekdays: weekdays,
|
|
|
|
weekdaysShort: weekdays,
|
|
|
|
weekdaysMin: 'އާދި_ހޯމަ_އަން_ބުދަ_ބުރާ_ހުކު_ހޮނި'.split('_'),
|
|
|
|
longDateFormat: {
|
|
|
|
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',
|
2019-06-10 15:38:54 +00:00
|
|
|
},
|
|
|
|
meridiemParse: /މކ|މފ/,
|
2020-07-23 21:12:30 +00:00
|
|
|
isPM: function (input) {
|
2019-06-10 15:38:54 +00:00
|
|
|
return 'މފ' === input;
|
|
|
|
},
|
2020-07-23 21:12:30 +00:00
|
|
|
meridiem: function (hour, minute, isLower) {
|
2019-06-10 15:38:54 +00:00
|
|
|
if (hour < 12) {
|
|
|
|
return 'މކ';
|
|
|
|
} else {
|
|
|
|
return 'މފ';
|
|
|
|
}
|
|
|
|
},
|
2020-07-23 21:12:30 +00:00
|
|
|
calendar: {
|
|
|
|
sameDay: '[މިއަދު] LT',
|
|
|
|
nextDay: '[މާދަމާ] LT',
|
|
|
|
nextWeek: 'dddd LT',
|
|
|
|
lastDay: '[އިއްޔެ] LT',
|
|
|
|
lastWeek: '[ފާއިތުވި] dddd LT',
|
|
|
|
sameElse: 'L',
|
2019-06-10 15:38:54 +00:00
|
|
|
},
|
2020-07-23 21:12:30 +00:00
|
|
|
relativeTime: {
|
|
|
|
future: 'ތެރޭގައި %s',
|
|
|
|
past: 'ކުރިން %s',
|
|
|
|
s: 'ސިކުންތުކޮޅެއް',
|
|
|
|
ss: 'd% ސިކުންތު',
|
|
|
|
m: 'މިނިޓެއް',
|
|
|
|
mm: 'މިނިޓު %d',
|
|
|
|
h: 'ގަޑިއިރެއް',
|
|
|
|
hh: 'ގަޑިއިރު %d',
|
|
|
|
d: 'ދުވަހެއް',
|
|
|
|
dd: 'ދުވަސް %d',
|
|
|
|
M: 'މަހެއް',
|
|
|
|
MM: 'މަސް %d',
|
|
|
|
y: 'އަހަރެއް',
|
|
|
|
yy: 'އަހަރު %d',
|
2019-06-10 15:38:54 +00:00
|
|
|
},
|
|
|
|
preparse: function (string) {
|
|
|
|
return string.replace(/،/g, ',');
|
|
|
|
},
|
|
|
|
postformat: function (string) {
|
|
|
|
return string.replace(/,/g, '،');
|
|
|
|
},
|
2020-07-23 21:12:30 +00:00
|
|
|
week: {
|
|
|
|
dow: 7, // Sunday is the first day of the week.
|
|
|
|
doy: 12, // The week that contains Jan 12th is the first week of the year.
|
|
|
|
},
|
2019-06-10 15:38:54 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
return dv;
|
|
|
|
|
|
|
|
})));
|