Title: [i18n] follow up for PR 18284 (moving away from the Intl API) · Issue #18763 · angular/angular · GitHub
Open Graph Title: [i18n] follow up for PR 18284 (moving away from the Intl API) · Issue #18763 · angular/angular
X Title: [i18n] follow up for PR 18284 (moving away from the Intl API) · Issue #18763 · angular/angular
Description: @ocombe Could you please generate a file named locale_all.ts in the folder common/i18n-data with the following structure: // import all locales import af from './locale_af'; import ardz from './locale_ar-DZ'; import {registerLocaleData} ...
Open Graph Description: @ocombe Could you please generate a file named locale_all.ts in the folder common/i18n-data with the following structure: // import all locales import af from './locale_af'; import ardz from './loc...
X Description: @ocombe Could you please generate a file named locale_all.ts in the folder common/i18n-data with the following structure: // import all locales import af from './locale_af'; import ardz fro...
Opengraph URL: https://github.com/angular/angular/issues/18763
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[i18n] follow up for PR 18284 (moving away from the Intl API)","articleBody":"@ocombe \r\n\r\nCould you please generate a file named `locale_all.ts` in the folder `common/i18n-data` with the following structure:\r\n\r\n```ts\r\n// import all locales\r\nimport af from './locale_af';\r\nimport ardz from './locale_ar-DZ';\r\n\r\n\r\nimport {registerLocaleData} from '@angular/common';\r\n\r\nlet locale: any;\r\n\r\n// add cases for each locale\r\nswitch (goog.LOCALE) {\r\n case 'af':\r\n locale = af;\r\n break;\r\n case 'ar_DZ':\r\n case 'ar-DZ':\r\n locale = ardz;\r\n break;\r\n default:\r\n locale = en;\r\n}\r\n\r\nregisterLocaleData(locale);\r\n```\r\n\r\nThe model is https://github.com/google/closure-library/blob/048a4c201e1b3c40ef55ba753aabe7287ce341a0/closure/goog/i18n/datetimepatterns.js#L2134\r\n\r\nThe rationale is that this file will be included automatically when building the `CommonModule` with closure. The effect will be that the data for the target locale will be included and all other files will be tree shaken away.\r\n\r\nEdit: We probably do not want all the locales in the imports and switch case. Please add the ability to pass a list of locales to your generation script. Thanks !\r\n\r\n\r\n","author":{"url":"https://github.com/vicb","@type":"Person","name":"vicb"},"datePublished":"2017-08-17T23:37:43Z","url":"https://github.com/angular/angular/issues/18763"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:5e109f55-7b62-789e-75e6-12cd3331d6b9 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B29A:19E4BB:1AC1B10:221C6F3:6B015168 |
| html-safe-nonce | e22ca2c751a4952945fbb4303a31ea4b494f904115e5a9cdc26704ed129466d2 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMjlBOjE5RTRCQjoxQUMxQjEwOjIyMUM2RjM6NkIwMTUxNjgiLCJ2aXNpdG9yX2lkIjoiMjE5MTgzNjYxMzEyNDkwMzI3MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 0aa2c7294146583ff7b25ced4c7adfed6670c7c88be033d9e4bffe786419f462 |
| hovercard-subject-tag | issue:251101480 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/angular/angular/18763/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b5c6b9ee73c1bba4596312c01e66ea47de84fb75af82719bd664ccb9f0970b6f/angular/angular/issues/18763 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b5c6b9ee73c1bba4596312c01e66ea47de84fb75af82719bd664ccb9f0970b6f/angular/angular/issues/18763 |
| og:image:alt | @ocombe Could you please generate a file named locale_all.ts in the folder common/i18n-data with the following structure: // import all locales import af from './locale_af'; import ardz from './loc... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | vicb |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/angular/angular git https://github.com/angular/angular.git |
| octolytics-dimension-user_id | 139426 |
| octolytics-dimension-user_login | angular |
| octolytics-dimension-repository_id | 24195339 |
| octolytics-dimension-repository_nwo | angular/angular |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 24195339 |
| octolytics-dimension-repository_network_root_nwo | angular/angular |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width