getLocaleDayPeriods
function
deprecatedsince v18
Retrieves day period strings for the given locale.
Deprecation warning
API
function getLocaleDayPeriods(
locale: string,
formStyle: FormStyle,
width: TranslationWidth,
): readonly [string, string];
getLocaleDayPeriods
readonly [string, string]
Retrieves day period strings for the given locale.
@paramlocale
string
A locale code for the locale format rules to use.
@returns
readonly [string, string]
Jump to details