FruitBank/Presentation/Nop.Web/wwwroot/lib_npm/moment/locale/ne.js

122 lines
3.9 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//! moment.js locale configuration
//! locale : Nepalese [ne]
//! author : suvash : https://github.com/suvash
import moment from '../moment';
var symbolMap = {
1: '',
2: '',
3: '',
4: '',
5: '',
6: '',
7: '',
8: '',
9: '',
0: '',
},
numberMap = {
'': '1',
'': '2',
'': '3',
'': '4',
'': '5',
'': '6',
'': '7',
'': '8',
'': '9',
'': '0',
};
export default moment.defineLocale('ne', {
months: 'जनवर_फवर_म_अपि_मई_ज_ज_अगष_सबर_अकबर_नबर_डिबर'.split(
'_'
),
monthsShort:
'जन._फ._म_अपि._मई_ज_ज._अग._स._अक._न._डि.'.split(
'_'
),
monthsParseExact: true,
weekdays: 'आइतब_समब_मङगलब_बधब_बिि_शरब_शनि'.split(
'_'
),
weekdaysShort: 'आइत._स._मङगल._ब._बिि._श._शनि.'.split('_'),
weekdaysMin: '._स._म._ब._बि._श._श.'.split('_'),
weekdaysParseExact: true,
longDateFormat: {
LT: 'Aक h:mm बज',
LTS: 'Aक h:mm:ss बज',
L: 'DD/MM/YYYY',
LL: 'D MMMM YYYY',
LLL: 'D MMMM YYYY, Aक h:mm बज',
LLLL: 'dddd, D MMMM YYYY, Aक h:mm बज',
},
preparse: function (string) {
return string.replace(/[१२३४५६७८९०]/g, function (match) {
return numberMap[match];
});
},
postformat: function (string) {
return string.replace(/\d/g, function (match) {
return symbolMap[match];
});
},
meridiemParse: /राति|बिहान|दिउँसो|साँझ/,
meridiemHour: function (hour, meridiem) {
if (hour === 12) {
hour = 0;
}
if (meridiem === 'ि') {
return hour < 4 ? hour : hour + 12;
} else if (meridiem === 'ि') {
return hour;
} else if (meridiem === 'ि') {
return hour >= 10 ? hour : hour + 12;
} else if (meridiem === '') {
return hour + 12;
}
},
meridiem: function (hour, minute, isLower) {
if (hour < 3) {
return 'ि';
} else if (hour < 12) {
return 'ि';
} else if (hour < 16) {
return 'ि';
} else if (hour < 20) {
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 बर',
},
week: {
dow: 0, // Sunday is the first day of the week.
doy: 6, // The week that contains Jan 6th is the first week of the year.
},
});