Files
ppgo_job/frontend/node_modules/dayjs/esm/locale/bn.js
T
2026-07-10 11:28:16 +08:00

72 lines
2.2 KiB
Go
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.
// Bengali [bn]
import dayjs from '../index';
var symbolMap = {
1: '১',
2: '২',
3: '৩',
4: '',
5: '৫',
6: '৬',
7: '',
8: '৮',
9: '৯',
0: ''
};
var numberMap = {
'১': '1',
'২': '2',
'৩': '3',
'': '4',
'৫': '5',
'৬': '6',
'': '7',
'৮': '8',
'৯': '9',
'': '0'
};
var locale = {
name: 'bn',
weekdays: 'রবির_সমবর_মঙ্গলবর_বুধবর_বৃহস্পতির_শুক্রবর_শনি'.split('_'),
months: 'নুয়ি_ফব্রুয়ি_মর্চ_এপ্রিল_ম_জুন_জুলই_আগস্ট_সপ্টম্বর_অক্টবর_নভম্বর_ডিম্বর'.split('_'),
weekdaysShort: 'রবি_সম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি'.split('_'),
monthsShort: 'নু_ফব্রু_মর্চ_এপ্রিল_ম_জুন_জুলই_আগস্ট_সপ্ট_অক্ট_নভ_ডিে'.split('_'),
weekdaysMin: 'রবি_সম_মঙ্গ_বুধ_বৃহ_শুক্র_শনি'.split('_'),
preparse: function preparse(string) {
return string.replace(/[১২৩৪৫৬৭৮৯০]/g, function (match) {
return numberMap[match];
});
},
postformat: function postformat(string) {
return string.replace(/\d/g, function (match) {
return symbolMap[match];
});
},
ordinal: function ordinal(n) {
return n;
},
formats: {
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 সময়'
},
relativeTime: {
future: '%s পরে',
past: '%s আগে',
s: 'কয় ন্ড',
m: 'এক িি',
mm: '%d িি',
h: 'এক ঘন্টা',
hh: '%d ঘন্টা',
d: 'এক ি',
dd: '%d ি',
M: 'এক ',
MM: '%d ',
y: 'এক বছর',
yy: '%d বছর'
}
};
dayjs.locale(locale, null, true);
export default locale;