getLocaleExtraDayPeriods
function
deprecatedsince v18
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.
Deprecation warning
API
function getLocaleExtraDayPeriods( locale: string, formStyle: FormStyle, width: TranslationWidth,): string[];Description
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".
Jump to details