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

130 lines
4.6 KiB
Java
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 : Bengali [bn]
//! author : Kaushik Gandhi : https://github.com/kaushikgandhi
;(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 bn = moment.defineLocale('bn', {
months: 'নুয়ি_ফব্রুয়ি_মর্চ_এপ্রিল_ম_জুন_জুলই_আগস্ট_সপ্টম্বর_অক্টবর_নভম্বর_ডিম্বর'.split(
'_'
),
monthsShort: 'নু_ফব্রু_মর্চ_এপ্রিল_ম_জুন_জুলই_আগস্ট_সপ্ট_অক্ট_নভ_ডি'.split(
'_'
),
weekdays: 'রবির_সমবর_মঙ্গলবর_বুধবর_বৃহস্পতির_শুক্রবর_শনি'.split(
'_'
),
weekdaysShort: 'রবি_সম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি'.split('_'),
weekdaysMin: 'রবি_সম_মঙ্গল_বুধ_বৃহ_শুক্র_শনি'.split('_'),
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 সময়',
},
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, 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 === '' && hour >= 4) ||
(meridiem === 'দুপুর' && hour < 5) ||
meridiem === 'ি'
) {
return hour + 12;
} else {
return hour;
}
},
meridiem: function (hour, minute, isLower) {
if (hour < 4) {
return '';
} else if (hour < 10) {
return 'সক';
} else if (hour < 17) {
return 'দুপুর';
} else if (hour < 20) {
return 'ি';
} else {
return '';
}
},
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.
},
});
return bn;
})));