René's URL Explorer Experiment


Title: Support for PWA together with localized app serving all languages on same url · Issue #56910 · angular/angular · GitHub

Open Graph Title: Support for PWA together with localized app serving all languages on same url · Issue #56910 · angular/angular

X Title: Support for PWA together with localized app serving all languages on same url · Issue #56910 · angular/angular

Description: Which @angular/* package(s) are relevant/related to the feature request? service-worker Description Some use-cases require a localized ng app to have all translated bundles served on the same URL. A prominent example is https://google.co...

Open Graph Description: Which @angular/* package(s) are relevant/related to the feature request? service-worker Description Some use-cases require a localized ng app to have all translated bundles served on the same URL. ...

X Description: Which @angular/* package(s) are relevant/related to the feature request? service-worker Description Some use-cases require a localized ng app to have all translated bundles served on the same URL. ...

Opengraph URL: https://github.com/angular/angular/issues/56910

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Support for PWA together with localized app serving all languages on same url","articleBody":"### Which @angular/* package(s) are relevant/related to the feature request?\r\n\r\nservice-worker\r\n\r\n### Description\r\n\r\nSome use-cases require a localized ng app to have all translated bundles served on the same URL. A prominent example is https://google.com which serves all locales on the same url. \r\n\r\nSetting that up with an Angular app is not easy but can be done – although combining it with PWA support seems impossible.\r\n\r\nThis is a wish/request for either **support for a localized PWA serving all locales on the same url** or **documentation for how to implement it**.\r\n\r\n### Background: Serving localized on same url\r\nUsing fx express we can serve the right bundle according to the preferred language. But because of https://github.com/angular/angular-cli/issues/17416, it is required to serve all js-files with language in the url. I do what https://github.com/angular/angular-cli/issues/17416#issuecomment-1158205744 suggests, and serves the index.html at fx. https://server/index.html and the js-files at fx. https://server/{locale}/main.44242342.js. (https://github.com/angular/angular-cli/issues/17416#issuecomment-1158205744 gives more details into how to make it work with routing and all)\r\n\r\nWe have this working quite nicely at https://app.previsto.com serving 5 different languages on the same url and all deep links goes to the same content just with the app language in the user's preferred language.\r\n\r\n### Adding PWA\r\nWe cannot get PWA working though. We have tried to create a very simple app with `ng new` at https://github.com/michaelkrog/i18n-pwa-test. We have then:\r\n* added the localize package (`ng add @angular/localize`)\r\n* added the pwa package (`ng add @angular/pwa`)\r\n* adjusted angular.json to build `en-US` and `da` for production builds\r\n* added an express script for serving both languages (defaults to `en-US`)\r\n\r\nThe app serves fines, the service-worker registers itself, I can see files cached.\r\nBut the files are not served by the service-worker at any time.\r\n\r\n\r\n\u003cimg width=\"1524\" alt=\"Skærmbillede 2024-07-09 kl  11 06 18\" src=\"https://github.com/angular/angular/assets/681472/6b73fc53-1414-4403-9faf-55e19aae0a87\">\r\n\r\n\u003cimg width=\"1087\" alt=\"Skærmbillede 2024-07-09 kl  11 21 46\" src=\"https://github.com/angular/angular/assets/681472/76e87657-1598-46fa-9cda-6f3a56f6ee2a\">\r\n\u003cimg width=\"1497\" alt=\"Skærmbillede 2024-07-09 kl  11 23 55\" src=\"https://github.com/angular/angular/assets/681472/8c2b4527-71dd-4cbd-ac6d-7e5cb76c6cdf\">\r\n\r\n\r\n### Getting the test app running\r\nTo get the test app running, do this:\r\n\r\n1. Check out https://github.com/michaelkrog/i18n-pwa-test\r\n2. `cd i18n-pwa-test`\r\n3. `npm i` and `npm run serve`\r\n\r\n\r\n\r\n\r\n### Proposed solution\r\n\r\nAdd documentation for how to serving multiple locales on the same url while preserving angulars PWA support.\r\n\r\n### Alternatives considered\r\n\r\nngx-translate to ensure just one build - but I prefer to stick with Angulars native i18n.","author":{"url":"https://github.com/michaelkrog","@type":"Person","name":"michaelkrog"},"datePublished":"2024-07-09T09:28:48Z","url":"https://github.com/angular/angular/issues/56910"}

react-profiling0
react-import-mapreact,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-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:53d32dec-7224-e2a0-2f12-95b808bd402a
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idC83A:1D20B7:56F489:6D9661:6B010FAB
html-safe-noncec528dffa7e77569ebcd75a19be3f0a11d2ae5994686cf12294d4498ca36a6835
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDODNBOjFEMjBCNzo1NkY0ODk6NkQ5NjYxOjZCMDEwRkFCIiwidmlzaXRvcl9pZCI6IjgwMTE0MTg4NjI4NDk0Mjk0MTkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac6666eba19317ccef97ab51b85ac793e06d59f3f4010345e4656a887a6cff2d84
hovercard-subject-tagissue:2397654199
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/angular/angular/56910/issue_layout
twitter:imagehttps://opengraph.githubassets.com/4221e4b77a1c113a35e863adf0268b7e6a8b4a47142feb654c4a07b57bb00dcd/angular/angular/issues/56910
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/4221e4b77a1c113a35e863adf0268b7e6a8b4a47142feb654c4a07b57bb00dcd/angular/angular/issues/56910
og:image:altWhich @angular/* package(s) are relevant/related to the feature request? service-worker Description Some use-cases require a localized ng app to have all translated bundles served on the same URL. ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamemichaelkrog
hostnamegithub.com
expected-hostnamegithub.com
Nonecb7fa109eca7d4156c889f474306b0e91336055e9adf8fd4684b61e49094d124
turbo-cache-controlno-preview
go-importgithub.com/angular/angular git https://github.com/angular/angular.git
octolytics-dimension-user_id139426
octolytics-dimension-user_loginangular
octolytics-dimension-repository_id24195339
octolytics-dimension-repository_nwoangular/angular
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id24195339
octolytics-dimension-repository_network_root_nwoangular/angular
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release2b59d31a4e44f08b7af67a4b67f8fd0af3befe2a
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/angular/angular/issues/56910#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular%2Fissues%2F56910
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular%2Fissues%2F56910
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=angular%2Fangular
Reloadhttps://github.com/angular/angular/issues/56910
Reloadhttps://github.com/angular/angular/issues/56910
Reloadhttps://github.com/angular/angular/issues/56910
angularhttps://github.com/angular
angularhttps://github.com/angular/angular
Codehttps://github.com/angular/angular
Issues835 (835)https://github.com/angular/angular/issues
Pull requests141 (141)https://github.com/angular/angular/pulls
Discussionshttps://github.com/angular/angular/discussions
Actionshttps://github.com/angular/angular/actions
Projectshttps://github.com/angular/angular/projects
Security and quality40 (40)https://github.com/angular/angular/security
Insightshttps://github.com/angular/angular/insights
https://github.com/angular/angular
New issuehttps://github.com/login?return_to=https://github.com/angular/angular/issues/56910
New issuehttps://github.com/login?return_to=https://github.com/angular/angular/issues/56910
Support for PWA together with localized app serving all languages on same urlhttps://github.com/angular/angular/issues/56910#top
area: service-workerIssues related to the @angular/service-worker packagehttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20service-worker%22
needsTriagehttps://github.com/angular/angular/milestone/83
https://github.com/michaelkrog
michaelkroghttps://github.com/michaelkrog
on Jul 9, 2024https://github.com/angular/angular/issues/56910#issue-2397654199
https://google.comhttps://google.com
angular/angular-cli#17416https://github.com/angular/angular-cli/issues/17416
angular/angular-cli#17416 (comment)https://github.com/angular/angular-cli/issues/17416#issuecomment-1158205744
https://server/index.htmlhttps://server/index.html
https://server/{locale}/main.44242342.jshttps://server/%7Blocale%7D/main.44242342.js
angular/angular-cli#17416 (comment)https://github.com/angular/angular-cli/issues/17416#issuecomment-1158205744
https://app.previsto.comhttps://app.previsto.com
https://github.com/michaelkrog/i18n-pwa-testhttps://github.com/michaelkrog/i18n-pwa-test
https://private-user-images.githubusercontent.com/681472/346894746-6b73fc53-1414-4403-9faf-55e19aae0a87.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3OTUyMzE5NjAsIm5iZiI6MTc5NTIzMTY2MCwicGF0aCI6Ii82ODE0NzIvMzQ2ODk0NzQ2LTZiNzNmYzUzLTE0MTQtNDQwMy05ZmFmLTU1ZTE5YWFlMGE4Ny5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjYxMTIxJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI2MTEyMVQwMzI3NDBaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0xOGZmMWU3NjFjZmNhMjZkMGNjMGNlNTc1ZjZhZDhhOTA4YmQ4YTdmNTA2NGMyZmE5ZTdmZjJkNTdiYmY1ZTVjJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZyZXNwb25zZS1jb250ZW50LXR5cGU9aW1hZ2UlMkZwbmcifQ.AMjYID0m1JLafAnBcCskcVEO5tFwFro5YJW1_WKxdGw
https://private-user-images.githubusercontent.com/681472/346900072-76e87657-1598-46fa-9cda-6f3a56f6ee2a.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3OTUyMzE5NjAsIm5iZiI6MTc5NTIzMTY2MCwicGF0aCI6Ii82ODE0NzIvMzQ2OTAwMDcyLTc2ZTg3NjU3LTE1OTgtNDZmYS05Y2RhLTZmM2E1NmY2ZWUyYS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjYxMTIxJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI2MTEyMVQwMzI3NDBaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1hNmZkYWJmNDU0MTViNjg3ODUzNzEzNWMxMzhkMDZjNDZhZDZkZmJlNTM2ZjRmOGM3MzlkNDExZGU5YTk5MmQ2JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZyZXNwb25zZS1jb250ZW50LXR5cGU9aW1hZ2UlMkZwbmcifQ.G0IAfWroGzeVojs5lM84b9_PoEo3Kw_QFAtyhC-hoWU
https://private-user-images.githubusercontent.com/681472/346900804-8c2b4527-71dd-4cbd-ac6d-7e5cb76c6cdf.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3OTUyMzE5NjAsIm5iZiI6MTc5NTIzMTY2MCwicGF0aCI6Ii82ODE0NzIvMzQ2OTAwODA0LThjMmI0NTI3LTcxZGQtNGNiZC1hYzZkLTdlNWNiNzZjNmNkZi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjYxMTIxJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI2MTEyMVQwMzI3NDBaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT02ZmUwNWVlNmQ2NDgwMGUwYTk0NDkwM2MxNjY1MTdkMGE0M2M1NTJkOWY2NmU2YmU0YTI3Njk5MzkxMzUzMDIxJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZyZXNwb25zZS1jb250ZW50LXR5cGU9aW1hZ2UlMkZwbmcifQ.k-IDTe-B8iBQWElOznXTr16Clea1BfpCIHJ02eWIvc0
https://github.com/michaelkrog/i18n-pwa-testhttps://github.com/michaelkrog/i18n-pwa-test
michaelkroghttps://github.com/michaelkrog
on Jul 9, 2024https://github.com/angular/angular/issues/56910#event-13436780372
https://github.com/alan-agius4
alan-agius4https://github.com/alan-agius4
on Jul 9, 2024https://github.com/angular/angular/issues/56910#issuecomment-2217196029
www.google.comhttp://www.google.com
https://developers.google.com/search/docs/specialty/international/managing-multi-regional-siteshttps://developers.google.com/search/docs/specialty/international/managing-multi-regional-sites
pkozlowski-opensourcehttps://github.com/pkozlowski-opensource
area: service-workerIssues related to the @angular/service-worker packagehttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20service-worker%22
on Jul 9, 2024https://github.com/angular/angular/issues/56910#event-13437879597
ngbothttps://github.com/apps/ngbot
needsTriagehttps://github.com/angular/angular/milestone/83
on Jul 9, 2024https://github.com/angular/angular/issues/56910#event-13437879928
https://github.com/michaelkrog
michaelkroghttps://github.com/michaelkrog
on Jul 9, 2024https://github.com/angular/angular/issues/56910#issuecomment-2217378734
@alan-agius4https://github.com/alan-agius4
https://previsto.com/enhttps://previsto.com/en
https://previsto.com/dahttps://previsto.com/da
https://app.previsto.com/my-company/tasks/task-123https://app.previsto.com/my-company/tasks/task-123
https://github.com/spock123
spock123https://github.com/spock123
on Jul 15, 2024https://github.com/angular/angular/issues/56910#issuecomment-2228306488
https://github.com/michaelkrog
michaelkroghttps://github.com/michaelkrog
on Jul 18, 2024https://github.com/angular/angular/issues/56910#issuecomment-2235733912
@spock123https://github.com/spock123
https://github.com/spock123
spock123https://github.com/spock123
on Jul 18, 2024https://github.com/angular/angular/issues/56910#issuecomment-2235898364
…https://github.com/angular/angular/issues/56910
@spock123https://github.com/spock123
https://github.com/spock123https://github.com/spock123
#56910 (comment)https://github.com/angular/angular/issues/56910#issuecomment-2235733912
https://github.com/notifications/unsubscribe-auth/AAJVM5BKRC4B3KN5R2QCQWLZM5PAJAVCNFSM6AAAAABKSOYWW2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMZVG4ZTGOJRGIhttps://github.com/notifications/unsubscribe-auth/AAJVM5BKRC4B3KN5R2QCQWLZM5PAJAVCNFSM6AAAAABKSOYWW2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMZVG4ZTGOJRGI
https://github.com/sondreb
sondrebhttps://github.com/sondreb
on Jul 3, 2025https://github.com/angular/angular/issues/56910#issuecomment-3031255888
https://github.com/JeanMeche
JeanMechehttps://github.com/JeanMeche
on Aug 29, 2025https://github.com/angular/angular/issues/56910#issuecomment-3236673418
#63364https://github.com/angular/angular/pull/63364
https://angular.dev/ecosystem/service-workershttps://angular.dev/ecosystem/service-workers
JeanMechehttps://github.com/JeanMeche
not plannedhttps://github.com/angular/angular/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Anot-planned
on Aug 29, 2025https://github.com/angular/angular/issues/56910#event-19409669562
https://github.com/apps/angular-automatic-lock-bot
angular-automatic-lock-bothttps://github.com/apps/angular-automatic-lock-bot
on Sep 29, 2025https://github.com/angular/angular/issues/56910#issuecomment-3344434272
automatic conversation locking policyhttps://github.com/angular/angular/blob/f0fbced1c55bc8b8ed9df01cea99df42f3e7eae3/contributing-docs/auto-issue-locking.md
angular-automatic-lock-bothttps://github.com/apps/angular-automatic-lock-bot
on Sep 29, 2025https://github.com/angular/angular/issues/56910#event-19971534874
Sign up for freehttps://github.com/signup?return_to=https://github.com/angular/angular/issues/56910
Sign in to commenthttps://github.com/login?return_to=https://github.com/angular/angular/issues/56910
area: service-workerIssues related to the @angular/service-worker packagehttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20service-worker%22
needsTriageNo due datehttps://github.com/angular/angular/milestone/83
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.