getLocaleExtraDayPeriods
function
Deprecated
Retrieves locale-specific day periods, which indicate roughly how a day is broken up
in different languages.
For example, for en-US
, periods are morning, noon, afternoon, evening, and midnight.
API
Description
function getLocaleExtraDayPeriods( locale: string, formStyle: FormStyle, width: TranslationWidth): string[];
getLocaleExtraDayPeriods
string[]
Retrieves locale-specific day periods, which indicate roughly how a day is broken up
in different languages.
For example, for en-US
, periods are morning, noon, afternoon, evening, and midnight.
This functionality is only available when you have loaded the full locale data. See the "I18n guide".
@paramlocale
string
A locale code for the locale format rules to use.
@returns
string[]
Jump to details