angular-cn/aio/dist/generated/docs/api/common/getLocaleExtraDayPeriods.json

5 lines
5.9 KiB
JSON

{
"id": "api/common/getLocaleExtraDayPeriods",
"title": "getLocaleExtraDayPeriods",
"contents": "\n\n<article>\n <div class=\"breadcrumb-container\">\n <div class=\"breadcrumb\">\n <script type=\"application/ld+json\">\n {\n \"@context\": \"http://schema.org\",\n \"@type\": \"BreadcrumbList\",\n \"itemListElement\": [\n { \"@type\": \"ListItem\", \"position\": 1, \"item\": { \"@id\": \"https://angular.io//api\", \"name\": \"API\" } },\n { \"@type\": \"ListItem\", \"position\": 2, \"item\": { \"@id\": \"https://angular.io/api/common\", \"name\": \"@angular/common\" } },\n { \"@type\": \"ListItem\", \"position\": 3, \"item\": { \"@id\": \"https://angular.io/api/common/getLocaleExtraDayPeriods\", \"name\": \"getLocaleExtraDayPeriods\" } }\n ]\n }\n </script>\n <a href=\"/api\">API</a> > <a href=\"api/common\">@angular/common</a>\n </div>\n <div class=\"github-links\">\n <a href=\"https://github.com/angular/angular/edit/master/packages/common/src/i18n/locale_data_api.ts?message=docs(common)%3A%20describe%20your%20change...#L551-L579\" aria-label=\"Suggest Edits\" title=\"Suggest Edits\"><i class=\"material-icons\" aria-hidden=\"true\" role=\"img\">mode_edit</i></a>\n <a href=\"https://github.com/angular/angular/tree/12.0.0-next.7/packages/common/src/i18n/locale_data_api.ts#L551-L579\" aria-label=\"View Source\" title=\"View Source\"><i class=\"material-icons\" aria-hidden=\"true\" role=\"img\">code</i></a>\n</div>\n </div>\n \n <header class=\"api-header\">\n <h1 id=\"getlocaleextradayperiods\">getLocaleExtraDayPeriods<a title=\"Link to this heading\" class=\"header-link\" aria-hidden=\"true\" href=\"api/common/getLocaleExtraDayPeriods#getlocaleextradayperiods\"><i class=\"material-icons\">link</i></a></h1>\n \n <label class=\"api-type-label function\">function</label>\n \n \n \n </header>\n \n <aio-toc class=\"embedded\"></aio-toc>\n\n <div class=\"api-body\">\n \n <section class=\"short-description\">\n <p>Retrieves locale-specific day periods, which indicate roughly how a day is broken up\nin different languages.\nFor example, for <code>en-US</code>, periods are morning, noon, afternoon, evening, and midnight.</p>\n\n <p><a href=\"api/common/getLocaleExtraDayPeriods#description\">See more...</a></p>\n </section>\n \n \n \n\n <div class=\"overload-info\">\n \n\n <code-example language=\"ts\" hidecopy=\"true\" class=\"no-box api-heading\"> <span class=\"member-name\"><a href=\"api/common/getLocaleExtraDayPeriods\" class=\"code-anchor\">getLocaleExtraDayPeriods</a></span>(locale: string, formStyle: <a href=\"api/common/FormStyle\" class=\"code-anchor\">FormStyle</a>, width: <a href=\"api/common/TranslationWidth\" class=\"code-anchor\">TranslationWidth</a>): string[]</code-example>\n\n \n\n <h6 class=\"no-anchor\" id=\"parameters\">Parameters</h6>\n <table class=\"is-full-width list-table parameters-table function-overload-parameters\">\n <tbody>\n \n <tr class=\"function-overload-parameter\">\n <td class=\"param-name\">\n <a id=\"\"></a>\n <code>locale</code>\n </td>\n <td class=\"param-type\"><code>string</code></td>\n <td class=\"param-description\">\n <p>A locale code for the locale format rules to use.</p>\n\n </td>\n </tr>\n <tr class=\"function-overload-parameter\">\n <td class=\"param-name\">\n <a id=\"\"></a>\n <code>formStyle</code>\n </td>\n <td class=\"param-type\"><code><a href=\"api/common/FormStyle\" class=\"code-anchor\">FormStyle</a></code></td>\n <td class=\"param-description\">\n <p>The required grammatical form.</p>\n\n </td>\n </tr>\n <tr class=\"function-overload-parameter\">\n <td class=\"param-name\">\n <a id=\"\"></a>\n <code>width</code>\n </td>\n <td class=\"param-type\"><code><a href=\"api/common/TranslationWidth\" class=\"code-anchor\">TranslationWidth</a></code></td>\n <td class=\"param-description\">\n <p>The required character width.</p>\n\n </td>\n </tr>\n </tbody>\n</table>\n\n \n <h6 class=\"no-anchor\" id=\"returns\">Returns</h6>\n <p><code>string[]</code>: The translated day-period strings.</p>\n\n \n\n\n \n\n \n</div>\n\n\n \n<section class=\"see-also\">\n <h2 id=\"see-also\">See also<a title=\"Link to this heading\" class=\"header-link\" aria-hidden=\"true\" href=\"api/common/getLocaleExtraDayPeriods#see-also\"><i class=\"material-icons\">link</i></a></h2>\n <ul>\n \n <li><p><code><a href=\"api/common/getLocaleExtraDayPeriodRules\" class=\"code-anchor\">getLocaleExtraDayPeriodRules</a>()</code></p>\n</li>\n <li><p><a href=\"https://angular.io/guide/i18n\">Internationalization (i18n) Guide</a></p>\n</li>\n </ul>\n</section>\n\n\n \n\n<section class=\"description\">\n <h2 id=\"description\">Description<a title=\"Link to this heading\" class=\"header-link\" aria-hidden=\"true\" href=\"api/common/getLocaleExtraDayPeriods#description\"><i class=\"material-icons\">link</i></a></h2>\n <p>This functionality is only available when you have loaded the full locale data.\nSee the <a href=\"guide/i18n#i18n-pipes\">\"I18n guide\"</a>.</p>\n\n \n</section>\n\n\n\n \n\n\n </div>\n</article>\n\n<!-- links to this doc:\n - api/common\n - api/common/getLocaleExtraDayPeriodRules\n-->\n<!-- links from this doc:\n - /api\n - api/common\n - api/common/FormStyle\n - api/common/TranslationWidth\n - api/common/getLocaleExtraDayPeriodRules\n - api/common/getLocaleExtraDayPeriods#description\n - api/common/getLocaleExtraDayPeriods#getlocaleextradayperiods\n - api/common/getLocaleExtraDayPeriods#see-also\n - guide/i18n#i18n-pipes\n - https://angular.io/guide/i18n\n - https://github.com/angular/angular/edit/master/packages/common/src/i18n/locale_data_api.ts?message=docs(common)%3A%20describe%20your%20change...#L551-L579\n - https://github.com/angular/angular/tree/12.0.0-next.7/packages/common/src/i18n/locale_data_api.ts#L551-L579\n-->"
}