Function: getLocaleData()
@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.
Parameters
Section titled “Parameters”locale
Section titled “locale”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"
Returns
Section titled “Returns”string | string[]
The locale data as an array of strings or a single string.