Favivon - Correção

This commit is contained in:
2026-05-30 19:59:39 -03:00
parent 76ddaa815d
commit d7dfd221f0
32859 changed files with 5459654 additions and 404 deletions
+3
View File
@@ -0,0 +1,3 @@
import type { DayPickerLocale } from "../classes/DateLib.js";
/** Afrikaans locale extended with DayPicker-specific translations. */
export declare const af: DayPickerLocale;
+34
View File
@@ -0,0 +1,34 @@
import { af as dateFnsAf } from "date-fns/locale";
import { DateLib } from "../classes/DateLib.js";
/** Afrikaans locale extended with DayPicker-specific translations. */
export const af = {
...dateFnsAf,
labels: {
labelDayButton: (date, modifiers, options, dateLib) => {
const lib = dateLib ?? new DateLib(options);
let label = lib.format(date, "PPPP");
if (modifiers.today)
label = `Vandag, ${label}`;
if (modifiers.selected)
label = `${label}, gekies`;
return label;
},
labelMonthDropdown: "Kies die maand",
labelNext: "Gaan na volgende maand",
labelPrevious: "Gaan na vorige maand",
labelWeekNumber: (weekNumber) => `Week ${weekNumber}`,
labelYearDropdown: "Kies die jaar",
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 = `Vandag, ${label}`;
}
return label;
},
labelNav: "Navigasiebalk",
labelWeekNumberHeader: "Weeknommer",
labelWeekday: (date, options, dateLib) => (dateLib ?? new DateLib(options)).format(date, "cccc"),
},
};
+7
View File
@@ -0,0 +1,7 @@
import type { DayPickerLocale } from "../classes/DateLib.js";
/**
* Amharic (Ethiopia) locale backed by Intl for core names plus DayPicker
* labels.
*/
export declare const amET: DayPickerLocale;
export default amET;
+128
View File
@@ -0,0 +1,128 @@
import { DateLib } from "../classes/DateLib.js";
import { enUS } from "./en-US.js";
/**
* Minimal Amharic (Ethiopia) locale for date-fns v4.
*
* - Uses `Intl.DateTimeFormat('am-ET')` to localize month and weekday names.
* - Reuses `en-US` implementations for `formatLong`, `formatDistance`,
* `formatRelative`, and `match` to keep the footprint small.
* - Ordinals are returned as plain numeric strings.
*/
// Map date-fns widths to Intl widths
function mapWidth(width) {
switch (width) {
case "narrow":
return "narrow";
case "short":
case "abbreviated":
return "short";
default:
return "long";
}
}
function buildMonthNames(width) {
const intlWidth = mapWidth(width);
const fmt = new Intl.DateTimeFormat("am-ET", {
month: intlWidth,
timeZone: "UTC",
});
const names = [];
for (let i = 0; i < 12; i++) {
// Use a fixed UTC date to avoid locale-specific DST artifacts
names.push(fmt.format(new Date(Date.UTC(2017, i, 1))));
}
return names;
}
function buildDayNames(width) {
const intlWidth = mapWidth(width);
const fmt = new Intl.DateTimeFormat("am-ET", {
weekday: intlWidth,
timeZone: "UTC",
});
const names = [];
// 2017-01-01 was a Sunday; iterate 0..6
const base = Date.UTC(2017, 0, 1);
for (let i = 0; i < 7; i++) {
names.push(fmt.format(new Date(base + i * 24 * 60 * 60 * 1000)));
}
return names;
}
function getDayPeriod(value, width) {
if (value === "am" || value === "pm") {
const sampleHour = value === "am" ? 1 : 13;
const parts = new Intl.DateTimeFormat("am-ET", {
hour: "numeric",
hour12: true,
timeZone: "UTC",
})
.formatToParts(new Date(Date.UTC(2017, 0, 1, sampleHour)))
.find((p) => p.type === "dayPeriod");
if (parts?.value)
return parts.value;
}
// Fallback: delegate to en-US for anything else
return enUS.localize.dayPeriod(value, { width: width });
}
const localize = {
...enUS.localize,
// Ordinals in Amharic are commonly written as cardinals; keep simple numeric output
ordinalNumber: (n) => String(n),
month: (value, options) => {
const names = buildMonthNames(options?.width);
// value is 0..11 in date-fns v4
return names[value];
},
day: (value, options) => {
const names = buildDayNames(options?.width);
// value is 0..6, where 0 = Sunday
return names[value];
},
dayPeriod: (value, options) => getDayPeriod(value, options?.width),
};
const options = {
weekStartsOn: 1,
firstWeekContainsDate: 1,
};
/**
* Amharic (Ethiopia) locale backed by Intl for core names plus DayPicker
* labels.
*/
export const amET = {
code: "am-ET",
// Reuse en-US for distance/relative formatting and formatLong skeletons
formatDistance: enUS.formatDistance,
formatRelative: enUS.formatRelative,
formatLong: enUS.formatLong,
localize,
match: enUS.match,
options,
labels: {
labelDayButton: (date, modifiers, opts, dateLib) => {
const lib = dateLib ?? new DateLib(opts);
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, opts, dateLib) => (dateLib ?? new DateLib(opts)).formatMonthYear(date),
labelGridcell: (date, modifiers, opts, dateLib) => {
const lib = dateLib ?? new DateLib(opts);
let label = lib.format(date, "PPPP");
if (modifiers?.today) {
label = `ዛሬ፣ ${label}`;
}
return label;
},
labelNav: "መምሪያ አሞሌ",
labelWeekNumberHeader: "የሳምንት ቁጥር",
labelWeekday: (date, opts, dateLib) => (dateLib ?? new DateLib(opts)).format(date, "cccc"),
},
};
export default amET;
+3
View File
@@ -0,0 +1,3 @@
import type { DayPickerLocale } from "../classes/DateLib.js";
/** Arabic (Algeria) locale extended with DayPicker-specific translations. */
export declare const arDZ: DayPickerLocale;
+34
View File
@@ -0,0 +1,34 @@
import { arDZ as dateFnsArDZ } from "date-fns/locale";
import { DateLib } from "../classes/DateLib.js";
/** Arabic (Algeria) locale extended with DayPicker-specific translations. */
export const arDZ = {
...dateFnsArDZ,
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"),
},
};
+3
View File
@@ -0,0 +1,3 @@
import type { DayPickerLocale } from "../classes/DateLib.js";
/** Arabic (Egypt) locale extended with DayPicker-specific translations. */
export declare const arEG: DayPickerLocale;
+34
View File
@@ -0,0 +1,34 @@
import { arEG as dateFnsArEG } from "date-fns/locale";
import { DateLib } from "../classes/DateLib.js";
/** Arabic (Egypt) locale extended with DayPicker-specific translations. */
export const arEG = {
...dateFnsArEG,
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"),
},
};
+3
View File
@@ -0,0 +1,3 @@
import type { DayPickerLocale } from "../classes/DateLib.js";
/** Arabic (Morocco) locale extended with DayPicker-specific translations. */
export declare const arMA: DayPickerLocale;
+34
View File
@@ -0,0 +1,34 @@
import { arMA as dateFnsArMA } from "date-fns/locale";
import { DateLib } from "../classes/DateLib.js";
/** Arabic (Morocco) locale extended with DayPicker-specific translations. */
export const arMA = {
...dateFnsArMA,
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"),
},
};
+3
View File
@@ -0,0 +1,3 @@
import type { DayPickerLocale } from "../classes/DateLib.js";
/** Arabic (Saudi Arabia) locale extended with DayPicker-specific translations. */
export declare const arSA: DayPickerLocale;
+34
View File
@@ -0,0 +1,34 @@
import { arSA as dateFnsArSA } from "date-fns/locale";
import { DateLib } from "../classes/DateLib.js";
/** Arabic (Saudi Arabia) locale extended with DayPicker-specific translations. */
export const arSA = {
...dateFnsArSA,
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"),
},
};
+3
View File
@@ -0,0 +1,3 @@
import type { DayPickerLocale } from "../classes/DateLib.js";
/** Arabic (Tunisia) locale extended with DayPicker-specific translations. */
export declare const arTN: DayPickerLocale;
+34
View File
@@ -0,0 +1,34 @@
import { arTN as dateFnsArTN } from "date-fns/locale";
import { DateLib } from "../classes/DateLib.js";
/** Arabic (Tunisia) locale extended with DayPicker-specific translations. */
export const arTN = {
...dateFnsArTN,
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"),
},
};
+3
View File
@@ -0,0 +1,3 @@
import type { DayPickerLocale } from "../classes/DateLib.js";
/** Arabic locale extended with DayPicker-specific translations. */
export declare const ar: DayPickerLocale;
+34
View File
@@ -0,0 +1,34 @@
import { ar as dateFnsAr } from "date-fns/locale";
import { DateLib } from "../classes/DateLib.js";
/** Arabic locale extended with DayPicker-specific translations. */
export const ar = {
...dateFnsAr,
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"),
},
};
+3
View File
@@ -0,0 +1,3 @@
import type { DayPickerLocale } from "../classes/DateLib.js";
/** Azerbaijani locale extended with DayPicker-specific translations. */
export declare const az: DayPickerLocale;
+34
View File
@@ -0,0 +1,34 @@
import { az as dateFnsAz } from "date-fns/locale";
import { DateLib } from "../classes/DateLib.js";
/** Azerbaijani locale extended with DayPicker-specific translations. */
export const az = {
...dateFnsAz,
labels: {
labelDayButton: (date, modifiers, options, dateLib) => {
const lib = dateLib ?? new DateLib(options);
let label = lib.format(date, "PPPP");
if (modifiers.today)
label = `Bu gün, ${label}`;
if (modifiers.selected)
label = `${label}, seçilmiş`;
return label;
},
labelMonthDropdown: "Ayı seçin",
labelNext: "Növbəti aya keç",
labelPrevious: "Əvvəlki aya keç",
labelWeekNumber: (weekNumber) => `Həftə ${weekNumber}`,
labelYearDropdown: "İli seçin",
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 = `Bu gün, ${label}`;
}
return label;
},
labelNav: "Naviqasiya paneli",
labelWeekNumberHeader: "Həftə nömrəsi",
labelWeekday: (date, options, dateLib) => (dateLib ?? new DateLib(options)).format(date, "cccc"),
},
};
+6
View File
@@ -0,0 +1,6 @@
import type { DayPickerLocale } from "../classes/DateLib.js";
/**
* Belarusian (Taraskievica) locale extended with DayPicker-specific
* translations.
*/
export declare const beTarask: DayPickerLocale;
+37
View File
@@ -0,0 +1,37 @@
import { beTarask as dateFnsBeTarask } from "date-fns/locale";
import { DateLib } from "../classes/DateLib.js";
/**
* Belarusian (Taraskievica) locale extended with DayPicker-specific
* translations.
*/
export const beTarask = {
...dateFnsBeTarask,
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"),
},
};
+3
View File
@@ -0,0 +1,3 @@
import type { DayPickerLocale } from "../classes/DateLib.js";
/** Belarusian locale extended with DayPicker-specific translations. */
export declare const be: DayPickerLocale;
+34
View File
@@ -0,0 +1,34 @@
import { be as dateFnsBe } from "date-fns/locale";
import { DateLib } from "../classes/DateLib.js";
/** Belarusian locale extended with DayPicker-specific translations. */
export const be = {
...dateFnsBe,
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"),
},
};
+3
View File
@@ -0,0 +1,3 @@
import type { DayPickerLocale } from "../classes/DateLib.js";
/** Bulgarian locale extended with DayPicker-specific translations. */
export declare const bg: DayPickerLocale;
+34
View File
@@ -0,0 +1,34 @@
import { bg as dateFnsBg } from "date-fns/locale";
import { DateLib } from "../classes/DateLib.js";
/** Bulgarian locale extended with DayPicker-specific translations. */
export const bg = {
...dateFnsBg,
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"),
},
};
+3
View File
@@ -0,0 +1,3 @@
import type { DayPickerLocale } from "../classes/DateLib.js";
/** Bengali locale extended with DayPicker-specific translations. */
export declare const bn: DayPickerLocale;
+34
View File
@@ -0,0 +1,34 @@
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"),
},
};
+3
View File
@@ -0,0 +1,3 @@
import type { DayPickerLocale } from "../classes/DateLib.js";
/** Bosnian locale extended with DayPicker-specific translations. */
export declare const bs: DayPickerLocale;
+34
View File
@@ -0,0 +1,34 @@
import { bs as dateFnsBs } from "date-fns/locale";
import { DateLib } from "../classes/DateLib.js";
/** Bosnian locale extended with DayPicker-specific translations. */
export const bs = {
...dateFnsBs,
labels: {
labelDayButton: (date, modifiers, options, dateLib) => {
const lib = dateLib ?? new DateLib(options);
let label = lib.format(date, "PPPP");
if (modifiers.today)
label = `Danas, ${label}`;
if (modifiers.selected)
label = `${label}, odabrano`;
return label;
},
labelMonthDropdown: "Odaberite mjesec",
labelNext: "Idi na sljedeći mjesec",
labelPrevious: "Idi na prethodni mjesec",
labelWeekNumber: (weekNumber) => `Sedmica ${weekNumber}`,
labelYearDropdown: "Odaberite godinu",
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 = `Danas, ${label}`;
}
return label;
},
labelNav: "Navigacijska traka",
labelWeekNumberHeader: "Broj sedmice",
labelWeekday: (date, options, dateLib) => (dateLib ?? new DateLib(options)).format(date, "cccc"),
},
};
+3
View File
@@ -0,0 +1,3 @@
import type { DayPickerLocale } from "../classes/DateLib.js";
/** Catalan locale extended with DayPicker-specific translations. */
export declare const ca: DayPickerLocale;
+34
View File
@@ -0,0 +1,34 @@
import { ca as dateFnsCa } from "date-fns/locale";
import { DateLib } from "../classes/DateLib.js";
/** Catalan locale extended with DayPicker-specific translations. */
export const ca = {
...dateFnsCa,
labels: {
labelDayButton: (date, modifiers, options, dateLib) => {
const lib = dateLib ?? new DateLib(options);
let label = lib.format(date, "PPPP");
if (modifiers.today)
label = `Avui, ${label}`;
if (modifiers.selected)
label = `${label}, seleccionat`;
return label;
},
labelMonthDropdown: "Tria el mes",
labelNext: "Ves al mes següent",
labelPrevious: "Ves al mes anterior",
labelWeekNumber: (weekNumber) => `Setmana ${weekNumber}`,
labelYearDropdown: "Tria l'any",
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 = `Avui, ${label}`;
}
return label;
},
labelNav: "Barra de navegació",
labelWeekNumberHeader: "Número de setmana",
labelWeekday: (date, options, dateLib) => (dateLib ?? new DateLib(options)).format(date, "cccc"),
},
};
+6
View File
@@ -0,0 +1,6 @@
import type { DayPickerLocale } from "../classes/DateLib.js";
/**
* Central Kurdish (Sorani) locale extended with DayPicker-specific
* translations.
*/
export declare const ckb: DayPickerLocale;
+37
View File
@@ -0,0 +1,37 @@
import { ckb as dateFnsCkb } from "date-fns/locale";
import { DateLib } from "../classes/DateLib.js";
/**
* Central Kurdish (Sorani) locale extended with DayPicker-specific
* translations.
*/
export const ckb = {
...dateFnsCkb,
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"),
},
};
+3
View File
@@ -0,0 +1,3 @@
import type { DayPickerLocale } from "../classes/DateLib.js";
/** Czech locale extended with DayPicker-specific translations. */
export declare const cs: DayPickerLocale;
+34
View File
@@ -0,0 +1,34 @@
import { cs as dateFnsCs } from "date-fns/locale";
import { DateLib } from "../classes/DateLib.js";
/** Czech locale extended with DayPicker-specific translations. */
export const cs = {
...dateFnsCs,
labels: {
labelDayButton: (date, modifiers, options, dateLib) => {
const lib = dateLib ?? new DateLib(options);
let label = lib.format(date, "PPPP");
if (modifiers.today)
label = `Dnes, ${label}`;
if (modifiers.selected)
label = `${label}, vybráno`;
return label;
},
labelMonthDropdown: "Vyberte měsíc",
labelNext: "Přejít na další měsíc",
labelPrevious: "Přejít na předchozí měsíc",
labelWeekNumber: (weekNumber) => `Týden ${weekNumber}`,
labelYearDropdown: "Vyberte rok",
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 = `Dnes, ${label}`;
}
return label;
},
labelNav: "Navigační panel",
labelWeekNumberHeader: "Číslo týdne",
labelWeekday: (date, options, dateLib) => (dateLib ?? new DateLib(options)).format(date, "cccc"),
},
};
+3
View File
@@ -0,0 +1,3 @@
import type { DayPickerLocale } from "../classes/DateLib.js";
/** Welsh locale extended with DayPicker-specific translations. */
export declare const cy: DayPickerLocale;
+34
View File
@@ -0,0 +1,34 @@
import { cy as dateFnsCy } from "date-fns/locale";
import { DateLib } from "../classes/DateLib.js";
/** Welsh locale extended with DayPicker-specific translations. */
export const cy = {
...dateFnsCy,
labels: {
labelDayButton: (date, modifiers, options, dateLib) => {
const lib = dateLib ?? new DateLib(options);
let label = lib.format(date, "PPPP");
if (modifiers.today)
label = `Heddiw, ${label}`;
if (modifiers.selected)
label = `${label}, wedi'i ddewis`;
return label;
},
labelMonthDropdown: "Dewiswch y mis",
labelNext: "Ewch i'r mis nesaf",
labelPrevious: "Ewch i'r mis blaenorol",
labelWeekNumber: (weekNumber) => `Wythnos ${weekNumber}`,
labelYearDropdown: "Dewiswch y flwyddyn",
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 = `Heddiw, ${label}`;
}
return label;
},
labelNav: "Bar llywio",
labelWeekNumberHeader: "Rhif yr wythnos",
labelWeekday: (date, options, dateLib) => (dateLib ?? new DateLib(options)).format(date, "cccc"),
},
};
+3
View File
@@ -0,0 +1,3 @@
import type { DayPickerLocale } from "../classes/DateLib.js";
/** Danish locale extended with DayPicker-specific translations. */
export declare const da: DayPickerLocale;
+34
View File
@@ -0,0 +1,34 @@
import { da as dateFnsDa } from "date-fns/locale";
import { DateLib } from "../classes/DateLib.js";
/** Danish locale extended with DayPicker-specific translations. */
export const da = {
...dateFnsDa,
labels: {
labelDayButton: (date, modifiers, options, dateLib) => {
const lib = dateLib ?? new DateLib(options);
let label = lib.format(date, "PPPP");
if (modifiers.today)
label = `I dag, ${label}`;
if (modifiers.selected)
label = `${label}, valgt`;
return label;
},
labelMonthDropdown: "Vælg måned",
labelNext: "Gå til næste måned",
labelPrevious: "Gå til forrige måned",
labelWeekNumber: (weekNumber) => `Uge ${weekNumber}`,
labelYearDropdown: "Vælg år",
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 = `I dag, ${label}`;
}
return label;
},
labelNav: "Navigationslinje",
labelWeekNumberHeader: "Ugenummer",
labelWeekday: (date, options, dateLib) => (dateLib ?? new DateLib(options)).format(date, "cccc"),
},
};
+3
View File
@@ -0,0 +1,3 @@
import type { DayPickerLocale } from "../classes/DateLib.js";
/** German (Austria) locale extended with DayPicker-specific translations. */
export declare const deAT: DayPickerLocale;
+34
View File
@@ -0,0 +1,34 @@
import { deAT as dateFnsDeAT } from "date-fns/locale";
import { DateLib } from "../classes/DateLib.js";
/** German (Austria) locale extended with DayPicker-specific translations. */
export const deAT = {
...dateFnsDeAT,
labels: {
labelDayButton: (date, modifiers, options, dateLib) => {
const lib = dateLib ?? new DateLib(options);
let label = lib.format(date, "PPPP");
if (modifiers.today)
label = `Heute, ${label}`;
if (modifiers.selected)
label = `${label}, ausgewählt`;
return label;
},
labelMonthDropdown: "Monat auswählen",
labelNext: "Zum nächsten Monat",
labelPrevious: "Zum vorherigen Monat",
labelWeekNumber: (weekNumber) => `Woche ${weekNumber}`,
labelYearDropdown: "Jahr auswählen",
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 = `Heute, ${label}`;
}
return label;
},
labelNav: "Navigationsleiste",
labelWeekNumberHeader: "Wochennummer",
labelWeekday: (date, options, dateLib) => (dateLib ?? new DateLib(options)).format(date, "cccc"),
},
};
+3
View File
@@ -0,0 +1,3 @@
import type { DayPickerLocale } from "../classes/DateLib.js";
/** German locale extended with DayPicker-specific translations. */
export declare const de: DayPickerLocale;
+34
View File
@@ -0,0 +1,34 @@
import { de as dateFnsDe } from "date-fns/locale";
import { DateLib } from "../classes/DateLib.js";
/** German locale extended with DayPicker-specific translations. */
export const de = {
...dateFnsDe,
labels: {
labelDayButton: (date, modifiers, options, dateLib) => {
const lib = dateLib ?? new DateLib(options);
let label = lib.format(date, "PPPP");
if (modifiers.today)
label = `Heute, ${label}`;
if (modifiers.selected)
label = `${label}, ausgewählt`;
return label;
},
labelMonthDropdown: "Monat auswählen",
labelNext: "Zum nächsten Monat",
labelPrevious: "Zum vorherigen Monat",
labelWeekNumber: (weekNumber) => `Woche ${weekNumber}`,
labelYearDropdown: "Jahr auswählen",
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 = `Heute, ${label}`;
}
return label;
},
labelNav: "Navigationsleiste",
labelWeekNumberHeader: "Wochennummer",
labelWeekday: (date, options, dateLib) => (dateLib ?? new DateLib(options)).format(date, "cccc"),
},
};
+3
View File
@@ -0,0 +1,3 @@
import type { DayPickerLocale } from "../classes/DateLib.js";
/** Greek locale extended with DayPicker-specific translations. */
export declare const el: DayPickerLocale;
+34
View File
@@ -0,0 +1,34 @@
import { el as dateFnsEl } from "date-fns/locale";
import { DateLib } from "../classes/DateLib.js";
/** Greek locale extended with DayPicker-specific translations. */
export const el = {
...dateFnsEl,
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"),
},
};
+3
View File
@@ -0,0 +1,3 @@
import type { DayPickerLocale } from "../classes/DateLib.js";
/** English (Australia) locale extended with DayPicker-specific translations. */
export declare const enAU: DayPickerLocale;
+34
View File
@@ -0,0 +1,34 @@
import { enAU as dateFnsEnAU } from "date-fns/locale";
import { DateLib } from "../classes/DateLib.js";
/** English (Australia) locale extended with DayPicker-specific translations. */
export const enAU = {
...dateFnsEnAU,
labels: {
labelDayButton: (date, modifiers, options, dateLib) => {
const lib = dateLib ?? new DateLib(options);
let label = lib.format(date, "PPPP");
if (modifiers.today)
label = `Today, ${label}`;
if (modifiers.selected)
label = `${label}, selected`;
return label;
},
labelMonthDropdown: "Choose the Month",
labelNext: "Go to the Next Month",
labelPrevious: "Go to the Previous Month",
labelWeekNumber: (weekNumber) => `Week ${weekNumber}`,
labelYearDropdown: "Choose the Year",
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 = `Today, ${label}`;
}
return label;
},
labelNav: "Navigation bar",
labelWeekNumberHeader: "Week Number",
labelWeekday: (date, options, dateLib) => (dateLib ?? new DateLib(options)).format(date, "cccc"),
},
};
+3
View File
@@ -0,0 +1,3 @@
import type { DayPickerLocale } from "../classes/DateLib.js";
/** English (Canada) locale extended with DayPicker-specific translations. */
export declare const enCA: DayPickerLocale;
+34
View File
@@ -0,0 +1,34 @@
import { enCA as dateFnsEnCA } from "date-fns/locale";
import { DateLib } from "../classes/DateLib.js";
/** English (Canada) locale extended with DayPicker-specific translations. */
export const enCA = {
...dateFnsEnCA,
labels: {
labelDayButton: (date, modifiers, options, dateLib) => {
const lib = dateLib ?? new DateLib(options);
let label = lib.format(date, "PPPP");
if (modifiers.today)
label = `Today, ${label}`;
if (modifiers.selected)
label = `${label}, selected`;
return label;
},
labelMonthDropdown: "Choose the Month",
labelNext: "Go to the Next Month",
labelPrevious: "Go to the Previous Month",
labelWeekNumber: (weekNumber) => `Week ${weekNumber}`,
labelYearDropdown: "Choose the Year",
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 = `Today, ${label}`;
}
return label;
},
labelNav: "Navigation bar",
labelWeekNumberHeader: "Week Number",
labelWeekday: (date, options, dateLib) => (dateLib ?? new DateLib(options)).format(date, "cccc"),
},
};
+6
View File
@@ -0,0 +1,6 @@
import type { DayPickerLocale } from "../classes/DateLib.js";
/**
* English (United Kingdom) locale extended with DayPicker-specific
* translations.
*/
export declare const enGB: DayPickerLocale;
+37
View File
@@ -0,0 +1,37 @@
import { enGB as dateFnsEnGB } from "date-fns/locale";
import { DateLib } from "../classes/DateLib.js";
/**
* English (United Kingdom) locale extended with DayPicker-specific
* translations.
*/
export const enGB = {
...dateFnsEnGB,
labels: {
labelDayButton: (date, modifiers, options, dateLib) => {
const lib = dateLib ?? new DateLib(options);
let label = lib.format(date, "PPPP");
if (modifiers.today)
label = `Today, ${label}`;
if (modifiers.selected)
label = `${label}, selected`;
return label;
},
labelMonthDropdown: "Choose the Month",
labelNext: "Go to the Next Month",
labelPrevious: "Go to the Previous Month",
labelWeekNumber: (weekNumber) => `Week ${weekNumber}`,
labelYearDropdown: "Choose the Year",
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 = `Today, ${label}`;
}
return label;
},
labelNav: "Navigation bar",
labelWeekNumberHeader: "Week Number",
labelWeekday: (date, options, dateLib) => (dateLib ?? new DateLib(options)).format(date, "cccc"),
},
};
+3
View File
@@ -0,0 +1,3 @@
import type { DayPickerLocale } from "../classes/DateLib.js";
/** English (Ireland) locale extended with DayPicker-specific translations. */
export declare const enIE: DayPickerLocale;
+34
View File
@@ -0,0 +1,34 @@
import { enIE as dateFnsEnIE } from "date-fns/locale";
import { DateLib } from "../classes/DateLib.js";
/** English (Ireland) locale extended with DayPicker-specific translations. */
export const enIE = {
...dateFnsEnIE,
labels: {
labelDayButton: (date, modifiers, options, dateLib) => {
const lib = dateLib ?? new DateLib(options);
let label = lib.format(date, "PPPP");
if (modifiers.today)
label = `Today, ${label}`;
if (modifiers.selected)
label = `${label}, selected`;
return label;
},
labelMonthDropdown: "Choose the Month",
labelNext: "Go to the Next Month",
labelPrevious: "Go to the Previous Month",
labelWeekNumber: (weekNumber) => `Week ${weekNumber}`,
labelYearDropdown: "Choose the Year",
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 = `Today, ${label}`;
}
return label;
},
labelNav: "Navigation bar",
labelWeekNumberHeader: "Week Number",
labelWeekday: (date, options, dateLib) => (dateLib ?? new DateLib(options)).format(date, "cccc"),
},
};
+3
View File
@@ -0,0 +1,3 @@
import type { DayPickerLocale } from "../classes/DateLib.js";
/** English (India) locale extended with DayPicker-specific translations. */
export declare const enIN: DayPickerLocale;
+34
View File
@@ -0,0 +1,34 @@
import { enIN as dateFnsEnIN } from "date-fns/locale";
import { DateLib } from "../classes/DateLib.js";
/** English (India) locale extended with DayPicker-specific translations. */
export const enIN = {
...dateFnsEnIN,
labels: {
labelDayButton: (date, modifiers, options, dateLib) => {
const lib = dateLib ?? new DateLib(options);
let label = lib.format(date, "PPPP");
if (modifiers.today)
label = `Today, ${label}`;
if (modifiers.selected)
label = `${label}, selected`;
return label;
},
labelMonthDropdown: "Choose the Month",
labelNext: "Go to the Next Month",
labelPrevious: "Go to the Previous Month",
labelWeekNumber: (weekNumber) => `Week ${weekNumber}`,
labelYearDropdown: "Choose the Year",
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 = `Today, ${label}`;
}
return label;
},
labelNav: "Navigation bar",
labelWeekNumberHeader: "Week Number",
labelWeekday: (date, options, dateLib) => (dateLib ?? new DateLib(options)).format(date, "cccc"),
},
};
+3
View File
@@ -0,0 +1,3 @@
import type { DayPickerLocale } from "../classes/DateLib.js";
/** English (New Zealand) locale extended with DayPicker-specific translations. */
export declare const enNZ: DayPickerLocale;
+34
View File
@@ -0,0 +1,34 @@
import { enNZ as dateFnsEnNZ } from "date-fns/locale";
import { DateLib } from "../classes/DateLib.js";
/** English (New Zealand) locale extended with DayPicker-specific translations. */
export const enNZ = {
...dateFnsEnNZ,
labels: {
labelDayButton: (date, modifiers, options, dateLib) => {
const lib = dateLib ?? new DateLib(options);
let label = lib.format(date, "PPPP");
if (modifiers.today)
label = `Today, ${label}`;
if (modifiers.selected)
label = `${label}, selected`;
return label;
},
labelMonthDropdown: "Choose the Month",
labelNext: "Go to the Next Month",
labelPrevious: "Go to the Previous Month",
labelWeekNumber: (weekNumber) => `Week ${weekNumber}`,
labelYearDropdown: "Choose the Year",
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 = `Today, ${label}`;
}
return label;
},
labelNav: "Navigation bar",
labelWeekNumberHeader: "Week Number",
labelWeekday: (date, options, dateLib) => (dateLib ?? new DateLib(options)).format(date, "cccc"),
},
};
+6
View File
@@ -0,0 +1,6 @@
import type { DayPickerLocale } from "../classes/DateLib.js";
/**
* English (United States) locale for the Jalali (Persian) calendar, extended
* with DayPicker-specific translations.
*/
export declare const enUSJalali: DayPickerLocale;
+38
View File
@@ -0,0 +1,38 @@
import * as dateFnsJalali from "date-fns-jalali";
import { enUS as jalaliEnUS } from "date-fns-jalali/locale";
import { DateLib } from "../classes/DateLib.js";
/**
* English (United States) locale for the Jalali (Persian) calendar, extended
* with DayPicker-specific translations.
*/
export const enUSJalali = {
...jalaliEnUS,
labels: {
labelDayButton: (date, modifiers, options, dateLib) => {
const lib = dateLib ?? new DateLib(options, dateFnsJalali);
let label = lib.format(date, "PPPP");
if (modifiers.today)
label = `Today, ${label}`;
if (modifiers.selected)
label = `${label}, selected`;
return label;
},
labelMonthDropdown: "Choose the Month",
labelNext: "Go to the Next Month",
labelPrevious: "Go to the Previous Month",
labelWeekNumber: (weekNumber) => `Week ${weekNumber}`,
labelYearDropdown: "Choose the Year",
labelGrid: (date, options, dateLib) => (dateLib ?? new DateLib(options, dateFnsJalali)).formatMonthYear(date),
labelGridcell: (date, modifiers, options, dateLib) => {
const lib = dateLib ?? new DateLib(options, dateFnsJalali);
let label = lib.format(date, "PPPP");
if (modifiers?.today) {
label = `Today, ${label}`;
}
return label;
},
labelNav: "Navigation bar",
labelWeekNumberHeader: "Week Number",
labelWeekday: (date, options, dateLib) => (dateLib ?? new DateLib(options, dateFnsJalali)).format(date, "cccc"),
},
};
+3
View File
@@ -0,0 +1,3 @@
import type { DayPickerLocale } from "../classes/DateLib.js";
/** English (United States) locale extended with DayPicker-specific translations. */
export declare const enUS: DayPickerLocale;
+64
View File
@@ -0,0 +1,64 @@
import { format } from "date-fns";
import { enUS as dateFnsEnUS } from "date-fns/locale";
/** English (United States) locale extended with DayPicker-specific translations. */
export const enUS = {
...dateFnsEnUS,
labels: {
labelDayButton: (date, modifiers, options, dateLib) => {
let formatDate;
if (dateLib && typeof dateLib.format === "function") {
formatDate = dateLib.format.bind(dateLib);
}
else {
formatDate = (d, pattern) => format(d, pattern, { locale: dateFnsEnUS, ...options });
}
let label = formatDate(date, "PPPP");
if (modifiers.today)
label = `Today, ${label}`;
if (modifiers.selected)
label = `${label}, selected`;
return label;
},
labelMonthDropdown: "Choose the Month",
labelNext: "Go to the Next Month",
labelPrevious: "Go to the Previous Month",
labelWeekNumber: (weekNumber) => `Week ${weekNumber}`,
labelYearDropdown: "Choose the Year",
labelGrid: (date, options, dateLib) => {
let formatDate;
if (dateLib && typeof dateLib.format === "function") {
formatDate = dateLib.format.bind(dateLib);
}
else {
formatDate = (d, pattern) => format(d, pattern, { locale: dateFnsEnUS, ...options });
}
return formatDate(date, "LLLL yyyy");
},
labelGridcell: (date, modifiers, options, dateLib) => {
let formatDate;
if (dateLib && typeof dateLib.format === "function") {
formatDate = dateLib.format.bind(dateLib);
}
else {
formatDate = (d, pattern) => format(d, pattern, { locale: dateFnsEnUS, ...options });
}
let label = formatDate(date, "PPPP");
if (modifiers?.today) {
label = `Today, ${label}`;
}
return label;
},
labelNav: "Navigation bar",
labelWeekNumberHeader: "Week Number",
labelWeekday: (date, options, dateLib) => {
let formatDate;
if (dateLib && typeof dateLib.format === "function") {
formatDate = dateLib.format.bind(dateLib);
}
else {
formatDate = (d, pattern) => format(d, pattern, { locale: dateFnsEnUS, ...options });
}
return formatDate(date, "cccc");
},
},
};
+3
View File
@@ -0,0 +1,3 @@
import type { DayPickerLocale } from "../classes/DateLib.js";
/** English (South Africa) locale extended with DayPicker-specific translations. */
export declare const enZA: DayPickerLocale;
+34
View File
@@ -0,0 +1,34 @@
import { enZA as dateFnsEnZA } from "date-fns/locale";
import { DateLib } from "../classes/DateLib.js";
/** English (South Africa) locale extended with DayPicker-specific translations. */
export const enZA = {
...dateFnsEnZA,
labels: {
labelDayButton: (date, modifiers, options, dateLib) => {
const lib = dateLib ?? new DateLib(options);
let label = lib.format(date, "PPPP");
if (modifiers.today)
label = `Today, ${label}`;
if (modifiers.selected)
label = `${label}, selected`;
return label;
},
labelMonthDropdown: "Choose the Month",
labelNext: "Go to the Next Month",
labelPrevious: "Go to the Previous Month",
labelWeekNumber: (weekNumber) => `Week ${weekNumber}`,
labelYearDropdown: "Choose the Year",
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 = `Today, ${label}`;
}
return label;
},
labelNav: "Navigation bar",
labelWeekNumberHeader: "Week Number",
labelWeekday: (date, options, dateLib) => (dateLib ?? new DateLib(options)).format(date, "cccc"),
},
};
+3
View File
@@ -0,0 +1,3 @@
import type { DayPickerLocale } from "../classes/DateLib.js";
/** Esperanto locale extended with DayPicker-specific translations. */
export declare const eo: DayPickerLocale;
+34
View File
@@ -0,0 +1,34 @@
import { eo as dateFnsEo } from "date-fns/locale";
import { DateLib } from "../classes/DateLib.js";
/** Esperanto locale extended with DayPicker-specific translations. */
export const eo = {
...dateFnsEo,
labels: {
labelDayButton: (date, modifiers, options, dateLib) => {
const lib = dateLib ?? new DateLib(options);
let label = lib.format(date, "PPPP");
if (modifiers.today)
label = `Hodiaŭ, ${label}`;
if (modifiers.selected)
label = `${label}, elektita`;
return label;
},
labelMonthDropdown: "Elektu la monaton",
labelNext: "Iru al la sekva monato",
labelPrevious: "Iru al la antaŭa monato",
labelWeekNumber: (weekNumber) => `Semajno ${weekNumber}`,
labelYearDropdown: "Elektu la jaron",
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 = `Hodiaŭ, ${label}`;
}
return label;
},
labelNav: "Naviga breto",
labelWeekNumberHeader: "Semajna numero",
labelWeekday: (date, options, dateLib) => (dateLib ?? new DateLib(options)).format(date, "cccc"),
},
};
+3
View File
@@ -0,0 +1,3 @@
import type { DayPickerLocale } from "../classes/DateLib.js";
/** Spanish locale extended with DayPicker-specific translations. */
export declare const es: DayPickerLocale;
+34
View File
@@ -0,0 +1,34 @@
import { es as dateFnsEs } from "date-fns/locale";
import { DateLib } from "../classes/DateLib.js";
/** Spanish locale extended with DayPicker-specific translations. */
export const es = {
...dateFnsEs,
labels: {
labelDayButton: (date, modifiers, options, dateLib) => {
const lib = dateLib ?? new DateLib(options);
let label = lib.format(date, "PPPP");
if (modifiers.today)
label = `Hoy, ${label}`;
if (modifiers.selected)
label = `${label}, seleccionado`;
return label;
},
labelMonthDropdown: "Elegir el mes",
labelNext: "Ir al mes siguiente",
labelPrevious: "Ir al mes anterior",
labelWeekNumber: (weekNumber) => `Semana ${weekNumber}`,
labelYearDropdown: "Elegir el año",
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 = `Hoy, ${label}`;
}
return label;
},
labelNav: "Barra de navegación",
labelWeekNumberHeader: "Número de semana",
labelWeekday: (date, options, dateLib) => (dateLib ?? new DateLib(options)).format(date, "cccc"),
},
};
+3
View File
@@ -0,0 +1,3 @@
import type { DayPickerLocale } from "../classes/DateLib.js";
/** Estonian locale extended with DayPicker-specific translations. */
export declare const et: DayPickerLocale;
+34
View File
@@ -0,0 +1,34 @@
import { et as dateFnsEt } from "date-fns/locale";
import { DateLib } from "../classes/DateLib.js";
/** Estonian locale extended with DayPicker-specific translations. */
export const et = {
...dateFnsEt,
labels: {
labelDayButton: (date, modifiers, options, dateLib) => {
const lib = dateLib ?? new DateLib(options);
let label = lib.format(date, "PPPP");
if (modifiers.today)
label = `Täna, ${label}`;
if (modifiers.selected)
label = `${label}, valitud`;
return label;
},
labelMonthDropdown: "Vali kuu",
labelNext: "Mine järgmisele kuule",
labelPrevious: "Mine eelmisele kuule",
labelWeekNumber: (weekNumber) => `Nädal ${weekNumber}`,
labelYearDropdown: "Vali aasta",
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 = `Täna, ${label}`;
}
return label;
},
labelNav: "Navigeerimisriba",
labelWeekNumberHeader: "Nädala number",
labelWeekday: (date, options, dateLib) => (dateLib ?? new DateLib(options)).format(date, "cccc"),
},
};
+3
View File
@@ -0,0 +1,3 @@
import type { DayPickerLocale } from "../classes/DateLib.js";
/** Basque locale extended with DayPicker-specific translations. */
export declare const eu: DayPickerLocale;
+34
View File
@@ -0,0 +1,34 @@
import { eu as dateFnsEu } from "date-fns/locale";
import { DateLib } from "../classes/DateLib.js";
/** Basque locale extended with DayPicker-specific translations. */
export const eu = {
...dateFnsEu,
labels: {
labelDayButton: (date, modifiers, options, dateLib) => {
const lib = dateLib ?? new DateLib(options);
let label = lib.format(date, "PPPP");
if (modifiers.today)
label = `Gaur, ${label}`;
if (modifiers.selected)
label = `${label}, hautatua`;
return label;
},
labelMonthDropdown: "Hautatu hilabetea",
labelNext: "Joan hurrengo hilabetera",
labelPrevious: "Joan aurreko hilabetera",
labelWeekNumber: (weekNumber) => `Astea ${weekNumber}`,
labelYearDropdown: "Hautatu urtea",
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 = `Gaur, ${label}`;
}
return label;
},
labelNav: "Nabigazio barra",
labelWeekNumberHeader: "Aste zenbakia",
labelWeekday: (date, options, dateLib) => (dateLib ?? new DateLib(options)).format(date, "cccc"),
},
};
+6
View File
@@ -0,0 +1,6 @@
import type { DayPickerLocale } from "../classes/DateLib.js";
/**
* Persian (Iran) locale for the Jalali (Persian) calendar, extended with
* DayPicker-specific translations.
*/
export declare const faIRJalali: DayPickerLocale;
+38
View File
@@ -0,0 +1,38 @@
import * as dateFnsJalali from "date-fns-jalali";
import { faIR as jalaliFaIR } from "date-fns-jalali/locale";
import { DateLib } from "../classes/DateLib.js";
/**
* Persian (Iran) locale for the Jalali (Persian) calendar, extended with
* DayPicker-specific translations.
*/
export const faIRJalali = {
...jalaliFaIR,
labels: {
labelDayButton: (date, modifiers, options, dateLib) => {
const lib = dateLib ?? new DateLib(options, dateFnsJalali);
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, dateFnsJalali)).formatMonthYear(date),
labelGridcell: (date, modifiers, options, dateLib) => {
const lib = dateLib ?? new DateLib(options, dateFnsJalali);
let label = lib.format(date, "PPPP");
if (modifiers?.today) {
label = `امروز، ${label}`;
}
return label;
},
labelNav: "نوار ناوبری",
labelWeekNumberHeader: "شماره هفته",
labelWeekday: (date, options, dateLib) => (dateLib ?? new DateLib(options, dateFnsJalali)).format(date, "cccc"),
},
};
+3
View File
@@ -0,0 +1,3 @@
import type { DayPickerLocale } from "../classes/DateLib.js";
/** Persian (Iran) locale extended with DayPicker-specific translations. */
export declare const faIR: DayPickerLocale;
+34
View File
@@ -0,0 +1,34 @@
import { faIR as dateFnsFaIR } from "date-fns/locale";
import { DateLib } from "../classes/DateLib.js";
/** Persian (Iran) locale extended with DayPicker-specific translations. */
export const faIR = {
...dateFnsFaIR,
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"),
},
};
+3
View File
@@ -0,0 +1,3 @@
import type { DayPickerLocale } from "../classes/DateLib.js";
/** Finnish locale extended with DayPicker-specific translations. */
export declare const fi: DayPickerLocale;
+34
View File
@@ -0,0 +1,34 @@
import { fi as dateFnsFi } from "date-fns/locale";
import { DateLib } from "../classes/DateLib.js";
/** Finnish locale extended with DayPicker-specific translations. */
export const fi = {
...dateFnsFi,
labels: {
labelDayButton: (date, modifiers, options, dateLib) => {
const lib = dateLib ?? new DateLib(options);
let label = lib.format(date, "PPPP");
if (modifiers.today)
label = `Tänään, ${label}`;
if (modifiers.selected)
label = `${label}, valittu`;
return label;
},
labelMonthDropdown: "Valitse kuukausi",
labelNext: "Siirry seuraavaan kuukauteen",
labelPrevious: "Siirry edelliseen kuukauteen",
labelWeekNumber: (weekNumber) => `Viikko ${weekNumber}`,
labelYearDropdown: "Valitse vuosi",
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 = `Tänään, ${label}`;
}
return label;
},
labelNav: "Navigointipalkki",
labelWeekNumberHeader: "Viikkonumero",
labelWeekday: (date, options, dateLib) => (dateLib ?? new DateLib(options)).format(date, "cccc"),
},
};
+3
View File
@@ -0,0 +1,3 @@
import type { DayPickerLocale } from "../classes/DateLib.js";
/** French (Canada) locale extended with DayPicker-specific translations. */
export declare const frCA: DayPickerLocale;
+34
View File
@@ -0,0 +1,34 @@
import { frCA as dateFnsFrCA } from "date-fns/locale";
import { DateLib } from "../classes/DateLib.js";
/** French (Canada) locale extended with DayPicker-specific translations. */
export const frCA = {
...dateFnsFrCA,
labels: {
labelDayButton: (date, modifiers, options, dateLib) => {
const lib = dateLib ?? new DateLib(options);
let label = lib.format(date, "PPPP");
if (modifiers.today)
label = `Aujourd'hui, ${label}`;
if (modifiers.selected)
label = `${label}, sélectionné`;
return label;
},
labelMonthDropdown: "Choisir le mois",
labelNext: "Aller au mois suivant",
labelPrevious: "Aller au mois précédent",
labelWeekNumber: (weekNumber) => `Semaine ${weekNumber}`,
labelYearDropdown: "Choisir l'année",
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 = `Aujourd'hui, ${label}`;
}
return label;
},
labelNav: "Barre de navigation",
labelWeekNumberHeader: "Numéro de semaine",
labelWeekday: (date, options, dateLib) => (dateLib ?? new DateLib(options)).format(date, "cccc"),
},
};
+3
View File
@@ -0,0 +1,3 @@
import type { DayPickerLocale } from "../classes/DateLib.js";
/** French (Switzerland) locale extended with DayPicker-specific translations. */
export declare const frCH: DayPickerLocale;
+34
View File
@@ -0,0 +1,34 @@
import { frCH as dateFnsFrCH } from "date-fns/locale";
import { DateLib } from "../classes/DateLib.js";
/** French (Switzerland) locale extended with DayPicker-specific translations. */
export const frCH = {
...dateFnsFrCH,
labels: {
labelDayButton: (date, modifiers, options, dateLib) => {
const lib = dateLib ?? new DateLib(options);
let label = lib.format(date, "PPPP");
if (modifiers.today)
label = `Aujourd'hui, ${label}`;
if (modifiers.selected)
label = `${label}, sélectionné`;
return label;
},
labelMonthDropdown: "Choisir le mois",
labelNext: "Aller au mois suivant",
labelPrevious: "Aller au mois précédent",
labelWeekNumber: (weekNumber) => `Semaine ${weekNumber}`,
labelYearDropdown: "Choisir l'année",
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 = `Aujourd'hui, ${label}`;
}
return label;
},
labelNav: "Barre de navigation",
labelWeekNumberHeader: "Numéro de semaine",
labelWeekday: (date, options, dateLib) => (dateLib ?? new DateLib(options)).format(date, "cccc"),
},
};
+3
View File
@@ -0,0 +1,3 @@
import type { DayPickerLocale } from "../classes/DateLib.js";
/** French locale extended with DayPicker-specific translations. */
export declare const fr: DayPickerLocale;
+34
View File
@@ -0,0 +1,34 @@
import { fr as dateFnsFr } from "date-fns/locale";
import { DateLib } from "../classes/DateLib.js";
/** French locale extended with DayPicker-specific translations. */
export const fr = {
...dateFnsFr,
labels: {
labelDayButton: (date, modifiers, options, dateLib) => {
const lib = dateLib ?? new DateLib(options);
let label = lib.format(date, "PPPP");
if (modifiers.today)
label = `Aujourd'hui, ${label}`;
if (modifiers.selected)
label = `${label}, sélectionné`;
return label;
},
labelMonthDropdown: "Choisir le mois",
labelNext: "Aller au mois suivant",
labelPrevious: "Aller au mois précédent",
labelWeekNumber: (weekNumber) => `Semaine ${weekNumber}`,
labelYearDropdown: "Choisir l'année",
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 = `Aujourd'hui, ${label}`;
}
return label;
},
labelNav: "Barre de navigation",
labelWeekNumberHeader: "Numéro de semaine",
labelWeekday: (date, options, dateLib) => (dateLib ?? new DateLib(options)).format(date, "cccc"),
},
};
+3
View File
@@ -0,0 +1,3 @@
import type { DayPickerLocale } from "../classes/DateLib.js";
/** Frisian locale extended with DayPicker-specific translations. */
export declare const fy: DayPickerLocale;
+34
View File
@@ -0,0 +1,34 @@
import { fy as dateFnsFy } from "date-fns/locale";
import { DateLib } from "../classes/DateLib.js";
/** Frisian locale extended with DayPicker-specific translations. */
export const fy = {
...dateFnsFy,
labels: {
labelDayButton: (date, modifiers, options, dateLib) => {
const lib = dateLib ?? new DateLib(options);
let label = lib.format(date, "PPPP");
if (modifiers.today)
label = `Hjoed, ${label}`;
if (modifiers.selected)
label = `${label}, selektearre`;
return label;
},
labelMonthDropdown: "Kies de moanne",
labelNext: "Nei folgjende moanne",
labelPrevious: "Nei foarige moanne",
labelWeekNumber: (weekNumber) => `Wike ${weekNumber}`,
labelYearDropdown: "Kies it jier",
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 = `Hjoed, ${label}`;
}
return label;
},
labelNav: "Navigaasjebalke",
labelWeekNumberHeader: "Wikenûmer",
labelWeekday: (date, options, dateLib) => (dateLib ?? new DateLib(options)).format(date, "cccc"),
},
};
+3
View File
@@ -0,0 +1,3 @@
import type { DayPickerLocale } from "../classes/DateLib.js";
/** Scottish Gaelic locale extended with DayPicker-specific translations. */
export declare const gd: DayPickerLocale;
+34
View File
@@ -0,0 +1,34 @@
import { gd as dateFnsGd } from "date-fns/locale";
import { DateLib } from "../classes/DateLib.js";
/** Scottish Gaelic locale extended with DayPicker-specific translations. */
export const gd = {
...dateFnsGd,
labels: {
labelDayButton: (date, modifiers, options, dateLib) => {
const lib = dateLib ?? new DateLib(options);
let label = lib.format(date, "PPPP");
if (modifiers.today)
label = `An-diugh, ${label}`;
if (modifiers.selected)
label = `${label}, air a thaghadh`;
return label;
},
labelMonthDropdown: "Tagh am mìos",
labelNext: "Rach gu mìos an ath mhìos",
labelPrevious: "Rach gu mìos roimhe",
labelWeekNumber: (weekNumber) => `Seachdain ${weekNumber}`,
labelYearDropdown: "Tagh am bliadhna",
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 = `An-diugh, ${label}`;
}
return label;
},
labelNav: "Bàr seòlaidh",
labelWeekNumberHeader: "Àireamh seachdain",
labelWeekday: (date, options, dateLib) => (dateLib ?? new DateLib(options)).format(date, "cccc"),
},
};
+3
View File
@@ -0,0 +1,3 @@
import type { DayPickerLocale } from "../classes/DateLib.js";
/** Galician locale extended with DayPicker-specific translations. */
export declare const gl: DayPickerLocale;
+34
View File
@@ -0,0 +1,34 @@
import { gl as dateFnsGl } from "date-fns/locale";
import { DateLib } from "../classes/DateLib.js";
/** Galician locale extended with DayPicker-specific translations. */
export const gl = {
...dateFnsGl,
labels: {
labelDayButton: (date, modifiers, options, dateLib) => {
const lib = dateLib ?? new DateLib(options);
let label = lib.format(date, "PPPP");
if (modifiers.today)
label = `Hoxe, ${label}`;
if (modifiers.selected)
label = `${label}, seleccionado`;
return label;
},
labelMonthDropdown: "Escoller o mes",
labelNext: "Ir ao mes seguinte",
labelPrevious: "Ir ao mes anterior",
labelWeekNumber: (weekNumber) => `Semana ${weekNumber}`,
labelYearDropdown: "Escoller o ano",
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 = `Hoxe, ${label}`;
}
return label;
},
labelNav: "Barra de navegación",
labelWeekNumberHeader: "Número de semana",
labelWeekday: (date, options, dateLib) => (dateLib ?? new DateLib(options)).format(date, "cccc"),
},
};
+3
View File
@@ -0,0 +1,3 @@
import type { DayPickerLocale } from "../classes/DateLib.js";
/** Gujarati locale extended with DayPicker-specific translations. */
export declare const gu: DayPickerLocale;
+34
View File
@@ -0,0 +1,34 @@
import { gu as dateFnsGu } from "date-fns/locale";
import { DateLib } from "../classes/DateLib.js";
/** Gujarati locale extended with DayPicker-specific translations. */
export const gu = {
...dateFnsGu,
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"),
},
};
+3
View File
@@ -0,0 +1,3 @@
import type { DayPickerLocale } from "../classes/DateLib.js";
/** Hebrew locale extended with DayPicker-specific translations. */
export declare const he: DayPickerLocale;
+34
View File
@@ -0,0 +1,34 @@
import { he as dateFnsHe } from "date-fns/locale";
import { DateLib } from "../classes/DateLib.js";
/** Hebrew locale extended with DayPicker-specific translations. */
export const he = {
...dateFnsHe,
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"),
},
};
+3
View File
@@ -0,0 +1,3 @@
import type { DayPickerLocale } from "../classes/DateLib.js";
/** Hindi locale extended with DayPicker-specific translations. */
export declare const hi: DayPickerLocale;
+34
View File
@@ -0,0 +1,34 @@
import { hi as dateFnsHi } from "date-fns/locale";
import { DateLib } from "../classes/DateLib.js";
/** Hindi locale extended with DayPicker-specific translations. */
export const hi = {
...dateFnsHi,
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"),
},
};
+3
View File
@@ -0,0 +1,3 @@
import type { DayPickerLocale } from "../classes/DateLib.js";
/** Croatian locale extended with DayPicker-specific translations. */
export declare const hr: DayPickerLocale;
+34
View File
@@ -0,0 +1,34 @@
import { hr as dateFnsHr } from "date-fns/locale";
import { DateLib } from "../classes/DateLib.js";
/** Croatian locale extended with DayPicker-specific translations. */
export const hr = {
...dateFnsHr,
labels: {
labelDayButton: (date, modifiers, options, dateLib) => {
const lib = dateLib ?? new DateLib(options);
let label = lib.format(date, "PPPP");
if (modifiers.today)
label = `Danas, ${label}`;
if (modifiers.selected)
label = `${label}, odabrano`;
return label;
},
labelMonthDropdown: "Odaberite mjesec",
labelNext: "Prijeđi na sljedeći mjesec",
labelPrevious: "Prijeđi na prethodni mjesec",
labelWeekNumber: (weekNumber) => `Tjedan ${weekNumber}`,
labelYearDropdown: "Odaberite godinu",
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 = `Danas, ${label}`;
}
return label;
},
labelNav: "Navigacijska traka",
labelWeekNumberHeader: "Broj tjedna",
labelWeekday: (date, options, dateLib) => (dateLib ?? new DateLib(options)).format(date, "cccc"),
},
};
+3
View File
@@ -0,0 +1,3 @@
import type { DayPickerLocale } from "../classes/DateLib.js";
/** Haitian Creole locale extended with DayPicker-specific translations. */
export declare const ht: DayPickerLocale;
+34
View File
@@ -0,0 +1,34 @@
import { ht as dateFnsHt } from "date-fns/locale";
import { DateLib } from "../classes/DateLib.js";
/** Haitian Creole locale extended with DayPicker-specific translations. */
export const ht = {
...dateFnsHt,
labels: {
labelDayButton: (date, modifiers, options, dateLib) => {
const lib = dateLib ?? new DateLib(options);
let label = lib.format(date, "PPPP");
if (modifiers.today)
label = `Jodi a, ${label}`;
if (modifiers.selected)
label = `${label}, chwazi`;
return label;
},
labelMonthDropdown: "Chwazi mwa a",
labelNext: "Ale nan pwochen mwa",
labelPrevious: "Ale nan mwa anvan",
labelWeekNumber: (weekNumber) => `Semèn ${weekNumber}`,
labelYearDropdown: "Chwazi ane a",
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 = `Jodi a, ${label}`;
}
return label;
},
labelNav: "Ba navigasyon",
labelWeekNumberHeader: "Nimewo semèn",
labelWeekday: (date, options, dateLib) => (dateLib ?? new DateLib(options)).format(date, "cccc"),
},
};
+3
View File
@@ -0,0 +1,3 @@
import type { DayPickerLocale } from "../classes/DateLib.js";
/** Hungarian locale extended with DayPicker-specific translations. */
export declare const hu: DayPickerLocale;
+34
View File
@@ -0,0 +1,34 @@
import { hu as dateFnsHu } from "date-fns/locale";
import { DateLib } from "../classes/DateLib.js";
/** Hungarian locale extended with DayPicker-specific translations. */
export const hu = {
...dateFnsHu,
labels: {
labelDayButton: (date, modifiers, options, dateLib) => {
const lib = dateLib ?? new DateLib(options);
let label = lib.format(date, "PPPP");
if (modifiers.today)
label = `Ma, ${label}`;
if (modifiers.selected)
label = `${label}, kiválasztva`;
return label;
},
labelMonthDropdown: "Válassza ki a hónapot",
labelNext: "Ugrás a következő hónapra",
labelPrevious: "Ugrás az előző hónapra",
labelWeekNumber: (weekNumber) => `Hét ${weekNumber}`,
labelYearDropdown: "Válassza ki az évet",
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 = `Ma, ${label}`;
}
return label;
},
labelNav: "Navigációs sáv",
labelWeekNumberHeader: "Hét száma",
labelWeekday: (date, options, dateLib) => (dateLib ?? new DateLib(options)).format(date, "cccc"),
},
};

Some files were not shown because too many files have changed in this diff Show More