NuclearDispersionSystem/ant-design-vue-jeecg/node_modules/moment/locale/km.js
2023-09-14 14:47:11 +08:00

114 lines
4.0 KiB
Java

//! moment.js locale configuration
//! locale : Cambodian [km]
//! author : Kruy Vanna : https://github.com/kruyvanna
;(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 symbolMap = {
'1': '១',
'2': '២',
'3': '៣',
'4': '៤',
'5': '៥',
'6': '៦',
'7': '៧',
'8': '៨',
'9': '៩',
'0': '០',
},
numberMap = {
'១': '1',
'២': '2',
'៣': '3',
'៤': '4',
'៥': '5',
'៦': '6',
'៧': '7',
'៨': '8',
'៩': '9',
'០': '0',
};
var km = moment.defineLocale('km', {
months: 'មករ_កុម្ភ_មីន_ម_ឧសភ_មិថុន_កក្កដ_សីហ_កញ្ញ_តុល_វិច្ឆិក_ធ្នូ'.split(
'_'
),
monthsShort: 'មករ_កុម្ភ_មីន_ម_ឧសភ_មិថុន_កក្កដ_សីហ_កញ្ញ_តុល_វិច្ឆិក_ធ្នូ'.split(
'_'
),
weekdays: 'ទិត្យ_ច័ន្ទ_អង្គរ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សរ៍'.split('_'),
weekdaysShort: '_ច_អ_ព_ព្រ_សុ_ស'.split('_'),
weekdaysMin: '_ច_អ_ព_ព្រ_សុ_ស'.split('_'),
weekdaysParseExact: true,
longDateFormat: {
LT: 'HH:mm',
LTS: 'HH:mm:ss',
L: 'DD/MM/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 ឆ្ន',
},
dayOfMonthOrdinalParse: /ទី\d{1,2}/,
ordinal: 'ទី%d',
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];
});
},
week: {
dow: 1, // Monday is the first day of the week.
doy: 4, // The week that contains Jan 4th is the first week of the year.
},
});
return km;
})));