Title: Single PWA with i18n · Issue #43796 · angular/angular · GitHub
Open Graph Title: Single PWA with i18n · Issue #43796 · angular/angular
X Title: Single PWA with i18n · Issue #43796 · angular/angular
Description: Which @angular/* package(s) are relevant/releated to the feature request? localize, service-worker Description Following up on this post on stackoverflow. After adding internationalization (i18n) to our app we run into the big problem of...
Open Graph Description: Which @angular/* package(s) are relevant/releated to the feature request? localize, service-worker Description Following up on this post on stackoverflow. After adding internationalization (i18n) t...
X Description: Which @angular/* package(s) are relevant/releated to the feature request? localize, service-worker Description Following up on this post on stackoverflow. After adding internationalization (i18n) t...
Opengraph URL: https://github.com/angular/angular/issues/43796
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Single PWA with i18n","articleBody":"### Which @angular/* package(s) are relevant/releated to the feature request?\n\nlocalize, service-worker\n\n### Description\n\nFollowing up on [this post](https://stackoverflow.com/q/61532813/10713841) on stackoverflow. \r\n\r\nAfter adding internationalization (`i18n`) to our app we run into the big problem of backwards compatibility. Before adding `i18n` we had our service worker at the root folder and after adding `i18n` we now have a separate service worker for each language we translated the app into. This is a problem because a user that installed the app prior to this change will not correctly get updates because the old service worker will not be able to find the new service worker.\r\n\r\nThis is the default behavior of Angular and left us with the decision that we either have to tell all our users that they will have to uninstall and re-install the app or add a service worker in the root folder that automatically takes care of the migration and leave it deployed until all users are migrated. Theses solutions are rather unsatisfying, poorly documented and mean that a we would have to go through the same struggle again if we decide to remove the `i18n` or take a different approach for it.\n\n### Proposed solution\n\nIt would be great if Angular would not enforce to use the _one-PWA-per-language_ approach but rather leave this as a choice to the developer. This would make the transition from a single- to a multi-language app much easier and leaves the option open to also go back to the previous approach (no `i18n`).\r\n\r\nThis could be configured through the compiler options in the `angular.json` file. E.g. `rootServiceWorker: true`. \n\n### Alternatives considered\n\nAlternatively, it would be great if Angular provided a guide or a predefined service worker (similar to the `safety-worker.js`) that allows a easy migration of the PWAs when `i18n` is introduced.","author":{"url":"https://github.com/TheSlimvReal","@type":"Person","name":"TheSlimvReal"},"datePublished":"2021-10-11T16:24:50Z","url":"https://github.com/angular/angular/issues/43796"}
| 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:4ef9a15d-3c51-1307-be8f-0de4a9c923e0 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E9A2:291B58:3DCACE:4E2C00:6B0107B5 |
| html-safe-nonce | be2b31990dad63d0682757e79026720b8db8fb2bbf30ba3c45dffcbf4c85b91f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFOUEyOjI5MUI1ODozRENBQ0U6NEUyQzAwOjZCMDEwN0I1IiwidmlzaXRvcl9pZCI6IjIxMTY4NTI5Njk1MzczNDEzNjUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 4773d14380834b40ce5899cf0eab737d22c6ea7680332dcd6a07ce4367e1f7fd |
| hovercard-subject-tag | issue:1022904883 |
| 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/43796/issue_layout |
| twitter:image | https://opengraph.githubassets.com/cc7c147faac5b992f3a976e4f7ac31b964c8b42936040909a9289a5ecf1cd0f0/angular/angular/issues/43796 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/cc7c147faac5b992f3a976e4f7ac31b964c8b42936040909a9289a5ecf1cd0f0/angular/angular/issues/43796 |
| og:image:alt | Which @angular/* package(s) are relevant/releated to the feature request? localize, service-worker Description Following up on this post on stackoverflow. After adding internationalization (i18n) t... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | TheSlimvReal |
| hostname | github.com |
| expected-hostname | github.com |
| None | cb7fa109eca7d4156c889f474306b0e91336055e9adf8fd4684b61e49094d124 |
| 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 | 2b59d31a4e44f08b7af67a4b67f8fd0af3befe2a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width