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

5 lines
27 KiB
JSON

{
"id": "api/common/NgLocaleLocalization",
"title": "NgLocaleLocalization",
"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/NgLocaleLocalization\", \"name\": \"NgLocaleLocalization\" } }\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/localization.ts?message=docs(common)%3A%20describe%20your%20change...#L47-L77\" 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/localization.ts#L47-L77\" 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=\"nglocalelocalization\">NgLocaleLocalization<a title=\"Link to this heading\" class=\"header-link\" aria-hidden=\"true\" href=\"api/common/NgLocaleLocalization#nglocalelocalization\"><i class=\"material-icons\">link</i></a></h1>\n \n <label class=\"api-type-label class\">class</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>Returns the plural case based on the locale</p>\n\n \n </section>\n \n \n \n <section class=\"class-overview\">\n<code-example language=\"ts\" hidecopy=\"true\">\nclass <a href=\"api/common/NgLocaleLocalization\" class=\"code-anchor\">NgLocaleLocalization</a> extends <a class=\"code-anchor\" href=\"api/common/NgLocalization\">NgLocalization</a> {\n <a class=\"code-anchor\" href=\"api/common/NgLocaleLocalization#locale\">protected <span class=\"member-name\">locale</span>: string</a>\n <a class=\"code-anchor\" href=\"api/common/NgLocaleLocalization#getPluralCategory\"><span class=\"member-name\">getPluralCategory</span>(value: any, locale?: string): string</a>\n\n // inherited from <a class=\"code-anchor\" href=\"api/common/NgLocalization\">common/NgLocalization</a>\n <a class=\"code-anchor\" href=\"api/common/NgLocalization#getPluralCategory\">abstract <span class=\"member-name\">getPluralCategory</span>(value: any, locale?: string): string</a>\n}\n</code-example>\n\n \n \n\n</section>\n\n\n \n\n \n \n \n\n\n\n\n\n\n\n\n<section class=\"instance-properties\">\n <h2 id=\"properties\">Properties<a title=\"Link to this heading\" class=\"header-link\" aria-hidden=\"true\" href=\"api/common/NgLocaleLocalization#properties\"><i class=\"material-icons\">link</i></a></h2>\n <table class=\"is-full-width list-table property-table\">\n <thead>\n <tr>\n <th>Property</th>\n <th>Description</th>\n </tr>\n </thead>\n <tbody>\n \n <tr class=\"instance-property\">\n <td>\n <a id=\"locale\"></a>\n <code class=\"\">protected <span class=\"member-name\">locale</span>: string</code>\n </td>\n <td>\n \n \n \n </td>\n </tr>\n \n </tbody>\n </table>\n</section>\n\n\n\n<section class=\"instance-methods\">\n <h2 id=\"methods\">Methods<a title=\"Link to this heading\" class=\"header-link\" aria-hidden=\"true\" href=\"api/common/NgLocaleLocalization#methods\"><i class=\"material-icons\">link</i></a></h2>\n \n <a id=\"getPluralCategory\"></a>\n<table class=\"is-full-width method-table instance-method\">\n <thead><tr><th>\n <div class=\"with-github-links\">\n <h3 id=\"getpluralcategory\">\n getPluralCategory()\n \n <a title=\"Link to this heading\" class=\"header-link\" aria-hidden=\"true\" href=\"api/common/NgLocaleLocalization#getpluralcategory\"><i class=\"material-icons\">link</i></a></h3>\n <div class=\"github-links\">\n <a href=\"https://github.com/angular/angular/edit/master/packages/common/src/i18n/localization.ts?message=docs(common)%3A%20describe%20your%20change...#L58-L76\" 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/localization.ts#L58-L76\" aria-label=\"View Source\" title=\"View Source\"><i class=\"material-icons\" aria-hidden=\"true\" role=\"img\">code</i></a>\n</div>\n </div>\n </th></tr></thead>\n <tbody>\n \n \n <tr>\n <td>\n <div class=\"overload-info\">\n \n\n <code-example language=\"ts\" hidecopy=\"true\" class=\"no-box api-heading\"><span class=\"member-name\">getPluralCategory</span>(value: any, locale?: string): 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 instance-method-overload-parameters\">\n <tbody>\n \n <tr class=\"instance-method-overload-parameter\">\n <td class=\"param-name\">\n <a id=\"\"></a>\n <code>value</code>\n </td>\n <td class=\"param-type\"><code>any</code></td>\n <td class=\"param-description\">\n \n \n </td>\n </tr>\n <tr class=\"instance-method-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>Optional. Default is <code>undefined</code>.</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></p>\n\n \n\n\n \n\n \n</div>\n </td>\n </tr>\n \n\n \n\n \n </tbody>\n</table>\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/CommonModule\n - api/common/NgLocalization\n-->\n<!-- links from this doc:\n - /api\n - api/common\n - api/common/NgLocaleLocalization#getPluralCategory\n - api/common/NgLocaleLocalization#getpluralcategory\n - api/common/NgLocaleLocalization#locale\n - api/common/NgLocaleLocalization#methods\n - api/common/NgLocaleLocalization#nglocalelocalization\n - api/common/NgLocaleLocalization#properties\n - api/common/NgLocalization\n - api/common/NgLocalization#getPluralCategory\n - https://github.com/angular/angular/edit/master/packages/common/src/i18n/localization.ts?message=docs(common)%3A%20describe%20your%20change...#L47-L77\n - https://github.com/angular/angular/edit/master/packages/common/src/i18n/localization.ts?message=docs(common)%3A%20describe%20your%20change...#L58-L76\n - https://github.com/angular/angular/tree/12.0.0-next.7/packages/common/src/i18n/localization.ts#L47-L77\n - https://github.com/angular/angular/tree/12.0.0-next.7/packages/common/src/i18n/localization.ts#L58-L76\n-->"
}