You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

101 lines
3.1 KiB

//! moment.js locale configuration
//! locale : Maldivian [dv]
//! author : Jawish Hameed : https://github.com/jawish
;(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';
//! moment.js locale configuration
var months = [
ެނުއަރީ',
ެބްރުއަރީ',
ާރިޗު',
ޭޕްރީލު',
ޭ',
ޫން',
ުލައި',
ޯގަސްޓު',
ެޕްޓެމްބަރު',
ޮކްޓޯބަރު',
ޮވެމްބަރު',
ިސެމްބަރު',
],
weekdays = [
ާދިއްތަ',
ޯމަ',
ަންގާރަ',
ުދަ',
ުރާސްފަތި',
ުކުރު',
ޮނިހިރު',
];
var dv = moment.defineLocale('dv', {
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',
},
meridiemParse: /މކ|މފ/,
isPM: function (input) {
return 'މފ' === input;
},
meridiem: function (hour, minute, isLower) {
if (hour < 12) {
return 'މކ';
} else {
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: 7, // Sunday is the first day of the week.
doy: 12, // The week that contains Jan 12th is the first week of the year.
},
});
return dv;
})));