corrade-nucleus-nucleons – Rev 15
?pathlinks?
//! moment.js locale configuration
//! locale : Maldivian [dv]
//! author : Jawish Hameed : https://github.com/jawish
import moment from '../moment';
var months = [
'Þ–Þ¬Þ‚ÞªÞ‡Þ¦ÞƒÞ©',
'ÞŠÞ¬Þ„Þ°ÞƒÞªÞ‡Þ¦ÞƒÞ©',
'Þ‰Þ§ÞƒÞ¨Þ—Þª',
'Þ‡ÞÞ•Þ°ÞƒÞ©ÞÞª',
'މޭ',
'Þ–Þ«Þ‚Þ°',
'Þ–ÞªÞÞ¦Þ‡Þ¨',
'Þ‡Þ¯ÞŽÞ¦ÞÞ°Þ“Þª',
'ÞÞ¬Þ•Þ°Þ“Þ¬Þ‰Þ°Þ„Þ¦ÞƒÞª',
'Þ‡Þ®Þ†Þ°Þ“Þ¯Þ„Þ¦ÞƒÞª',
'Þ‚Þ®ÞˆÞ¬Þ‰Þ°Þ„Þ¦ÞƒÞª',
'Þ‘Þ¨ÞÞ¬Þ‰Þ°Þ„Þ¦ÞƒÞª'
], weekdays = [
'އާދިއްތަ',
'Þ€Þ¯Þ‰Þ¦',
'Þ‡Þ¦Þ‚Þ°ÞŽÞ§ÞƒÞ¦',
'Þ„ÞªÞ‹Þ¦',
'Þ„ÞªÞƒÞ§Þްފަތި',
'Þ€ÞªÞ†ÞªÞƒÞª',
'Þ€Þ®Þ‚Þ¨Þ€Þ¨ÞƒÞª'
];
export default 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 : 'Þިކުންތުކޮޅެއް',
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.
}
});