{ "id": "api/common/getLocaleExtraDayPeriods", "title": "getLocaleExtraDayPeriods", "contents": "\n\n
\n
\n
\n \n API > @angular/common\n
\n \n
\n \n
\n

getLocaleExtraDayPeriodslink

\n \n \n \n \n \n
\n \n \n\n
\n \n
\n

Retrieves locale-specific day periods, which indicate roughly how a day is broken up\nin different languages.\nFor example, for en-US, periods are morning, noon, afternoon, evening, and midnight.

\n\n

See more...

\n
\n \n \n \n\n
\n \n\n getLocaleExtraDayPeriods(locale: string, formStyle: FormStyle, width: TranslationWidth): string[]\n\n \n\n
Parameters
\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
\n \n locale\n string\n

A locale code for the locale format rules to use.

\n\n
\n \n formStyle\n FormStyle\n

The required grammatical form.

\n\n
\n \n width\n TranslationWidth\n

The required character width.

\n\n
\n\n \n
Returns
\n

string[]: The translated day-period strings.

\n\n \n\n\n \n\n \n
\n\n\n \n
\n

See alsolink

\n \n
\n\n\n \n\n
\n

Descriptionlink

\n

This functionality is only available when you have loaded the full locale data.\nSee the \"I18n guide\".

\n\n \n
\n\n\n\n \n\n\n
\n
\n\n\n" }