getLocaleExtraDayPeriods

function experimental

npm Package @angular/common
Module import { getLocaleExtraDayPeriods } from '@angular/common';
Source common/src/i18n/locale_data_api.ts

function getLocaleExtraDayPeriods(locale: string, formStyle: FormStyle, width: TranslationWidth): string[];

Description

Day Periods indicate roughly how the day is broken up in different languages (e.g. morning, noon, afternoon, midnight, ...). You should use the function getLocaleExtraDayPeriodRules to determine which period to use. You should fallback to AM/PM when there are no day periods available.

Note: this is only available if you load the full locale data. See the "I18n guide" to know how to import additional locale data.

© 2010–2018 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v5.angular.io/api/common/getLocaleExtraDayPeriods