Skip to content

Function: getLocaleData()

@taqwim/core


@taqwim/core / getLocaleData

getLocaleData(locale, key): string | string[]

Defined in: packages/core/src/lib/getLocaleData.ts:13

Retrieves the locale data based on the specified locale and key.

string

The locale for which to retrieve the data.

The key indicating the specific data to retrieve.

"day" | "month" | "year" | "years" | "months" | "week" | "weeks" | "days" | "monthsLong" | "monthsMedium" | "monthsShort" | "weekDaysLong" | "weekDaysMedium" | "weekDaysShort" | "today" | "from" | "to"

string | string[]

The locale data as an array of strings or a single string.