Files
2026-05-30 19:59:39 -03:00

35 lines
1.6 KiB
JavaScript

import { bn as dateFnsBn } from "date-fns/locale";
import { DateLib } from "../classes/DateLib.js";
/** Bengali locale extended with DayPicker-specific translations. */
export const bn = {
...dateFnsBn,
labels: {
labelDayButton: (date, modifiers, options, dateLib) => {
const lib = dateLib ?? new DateLib(options);
let label = lib.format(date, "PPPP");
if (modifiers.today)
label = `আজ, ${label}`;
if (modifiers.selected)
label = `${label}, নির্বাচিত`;
return label;
},
labelMonthDropdown: "মাস নির্বাচন করুন",
labelNext: "পরবর্তী মাসে যান",
labelPrevious: "পূর্ববর্তী মাসে যান",
labelWeekNumber: (weekNumber) => `সপ্তাহ ${weekNumber}`,
labelYearDropdown: "বছর নির্বাচন করুন",
labelGrid: (date, options, dateLib) => (dateLib ?? new DateLib(options)).formatMonthYear(date),
labelGridcell: (date, modifiers, options, dateLib) => {
const lib = dateLib ?? new DateLib(options);
let label = lib.format(date, "PPPP");
if (modifiers?.today) {
label = `আজ, ${label}`;
}
return label;
},
labelNav: "নেভিগেশন বার",
labelWeekNumberHeader: "সপ্তাহ নম্বর",
labelWeekday: (date, options, dateLib) => (dateLib ?? new DateLib(options)).format(date, "cccc"),
},
};