Localize
import type { Localize } from "https://esm.sh/v135/date-fns@3.6.0/index.d.mts";
The object with functions used to localize various values. Part of the public locale API.
interface Localize {
day: LocalizeFn<Day>;
dayPeriod: LocalizeFn<LocaleDayPeriod>;
era: LocalizeFn<Era>;
month: LocalizeFn<Month>;
ordinalNumber: LocalizeFn<number>;
preprocessor?: <DateType extends Date>(date: DateType, parts: FormatPart[]) => FormatPart[];
quarter: LocalizeFn<Quarter>;
}§Properties
§
day: LocalizeFn<Day>
[src]The function that localizes the day of the week
§
dayPeriod: LocalizeFn<LocaleDayPeriod>
[src]The function that localizes the day period
§
era: LocalizeFn<Era>
[src]The function that localized the era
§
month: LocalizeFn<Month>
[src]The function that localizes the month
§
ordinalNumber: LocalizeFn<number>
[src]The function that localizes an ordinal number
§
preprocessor?: <DateType extends Date>(date: DateType, parts: FormatPart[]) => FormatPart[]
[src]The function that can preprocess parts/tokens *
§
quarter: LocalizeFn<Quarter>
[src]The function that localizes the quarter