UNPKG

react-day-picker

Version:

Customizable Date Picker for React

35 lines (34 loc) 1.79 kB
import { ta as dateFnsTa } from "date-fns/locale"; import { DateLib } from "../classes/DateLib.js"; /** Tamil locale extended with DayPicker-specific translations. */ export const ta = { ...dateFnsTa, 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"), }, };