René's URL Explorer Experiment


Title: localized components containing i18n tags will produce identical chunk hashes when building with --localize · Issue #17416 · angular/angular-cli · GitHub

Open Graph Title: localized components containing i18n tags will produce identical chunk hashes when building with --localize · Issue #17416 · angular/angular-cli

X Title: localized components containing i18n tags will produce identical chunk hashes when building with --localize · Issue #17416 · angular/angular-cli

Description: 🐞 Bug report Command (mark with an x) new build serve test e2e generate add update lint xi18n run config help version doc Description I have an application that is being translated in several (21 at the moment) languages using the Angula...

Open Graph Description: 🐞 Bug report Command (mark with an x) new build serve test e2e generate add update lint xi18n run config help version doc Description I have an application that is being translated in several (21 a...

X Description: 🐞 Bug report Command (mark with an x) new build serve test e2e generate add update lint xi18n run config help version doc Description I have an application that is being translated in several (21 a...

Opengraph URL: https://github.com/angular/angular-cli/issues/17416

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"localized components containing i18n tags will produce identical chunk hashes when building with --localize","articleBody":"\u003c!--🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅\r\n\r\nOh hi there! 😄\r\n\r\nTo expedite issue processing please search open and closed issues before submitting a new one.\r\nExisting issues often contain information about workarounds, resolution, or progress updates.\r\n\r\n🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅-->\r\n\r\n\r\n# 🐞 Bug report\r\n\r\n### Command (mark with an `x`)\r\n\r\n- [ ] new\r\n- [x] build\r\n- [ ] serve\r\n- [ ] test\r\n- [ ] e2e\r\n- [ ] generate\r\n- [ ] add\r\n- [ ] update\r\n- [ ] lint\r\n- [ ] xi18n\r\n- [ ] run\r\n- [ ] config\r\n- [ ] help\r\n- [ ] version\r\n- [ ] doc\r\n\r\n\r\n### Description\r\nI have an application that is being translated in several (21 at the moment) languages using the Angular i18n mechanism. I'm compiling the app AOT, therefore I need a separate build for each locale. To achieve this I setup my Azure pipeline to build the app using multiple agents in parallel, one for each locale, and it works like a charm. However, this is very resource-consuming, so I'm updating to Angular 9 in order to use the `--localize` option, which perfectly fits my needs.\r\nAfter the update I can build the app once and translate it to all languages in a few seconds, which is amazing.\r\nI am now facing this issue: when I build my application for all locales, the resulting chunk hashes are identical. As a result, browser cache is not invalidated and files are not re-requested, so the app is not translated.\r\n\r\n\r\n## 🔬 Minimal Reproduction\r\n- clone this [repo](https://github.com/nas90/i18n-hash-issue)\r\n- run `npm install`\r\n- run `ng build --localize`\r\n- check the dist folder: file content for `main.js` is different for each locale (template text is translated), while the hashes are the same\r\n\r\n\r\n## 🌍 Your Environment\r\n\u003cpre>\u003ccode>\r\nAngular CLI: 9.1.0\r\nNode: 10.19.0\r\nOS: win32 x64\r\n\r\nAngular: 9.1.0\r\n... animations, cli, common, compiler, compiler-cli, core, forms\r\n... language-service, localize, platform-browser\r\n... platform-browser-dynamic, router\r\nIvy Workspace: Yes\r\n\r\nPackage                           Version\r\n-----------------------------------------------------------\r\n@angular-devkit/architect         0.901.0\r\n@angular-devkit/build-angular     0.901.0\r\n@angular-devkit/build-optimizer   0.901.0\r\n@angular-devkit/build-webpack     0.901.0\r\n@angular-devkit/core              9.1.0\r\n@angular-devkit/schematics        9.1.0\r\n@ngtools/webpack                  9.1.0\r\n@schematics/angular               9.1.0\r\n@schematics/update                0.901.0\r\nrxjs                              6.5.5\r\ntypescript                        3.8.3\r\nwebpack                           4.42.0\r\n\r\n\u003c/code>\u003c/pre>\r\n\r\n**Anything else relevant?**\r\nIn my scenario, the user language preference is stored in the cookies, and a shell app serves the corresponding folder. I can't add the locale to the URL.\r\nTherefore in my `angular.json` I set `baseHref=\"/\"` for all locales.\r\n\r\nI am aware of this [issue](https://github.com/angular/angular-cli/issues/16526) and the [PR](https://github.com/angular/angular-cli/pull/16817) mentioned there, however the issue is still not resolved.\r\n","author":{"url":"https://github.com/nas90","@type":"Person","name":"nas90"},"datePublished":"2020-04-07T15:32:23Z","url":"https://github.com/angular/angular-cli/issues/17416"}

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:3dc1776c-595e-ea77-1dfd-4bcb5e2e11a5
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idC4DC:11EACE:10270A6:1595F1C:6B01131C
html-safe-nonce1b1367d2c86423885172368dc35d60c51b5097e7ba7e78a5185d6ec51dc20d8b
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNERDOjExRUFDRToxMDI3MEE2OjE1OTVGMUM6NkIwMTEzMUMiLCJ2aXNpdG9yX2lkIjoiNzU3OTI4NTU5MDI2NTM2OTM3MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac04d086b080af9b4ac7dae242e2b0a2d3210fdca902581fac669c4fb26c407623
hovercard-subject-tagissue:595958468
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-cli/17416/issue_layout
twitter:imagehttps://opengraph.githubassets.com/93f565d8cb94a979d8c6731dc91c324ea3f15a7c2be1d0aa8d6f948054a255fe/angular/angular-cli/issues/17416
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/93f565d8cb94a979d8c6731dc91c324ea3f15a7c2be1d0aa8d6f948054a255fe/angular/angular-cli/issues/17416
og:image:alt🐞 Bug report Command (mark with an x) new build serve test e2e generate add update lint xi18n run config help version doc Description I have an application that is being translated in several (21 a...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamenas90
hostnamegithub.com
expected-hostnamegithub.com
Nonecb7fa109eca7d4156c889f474306b0e91336055e9adf8fd4684b61e49094d124
turbo-cache-controlno-preview
go-importgithub.com/angular/angular-cli git https://github.com/angular/angular-cli.git
octolytics-dimension-user_id139426
octolytics-dimension-user_loginangular
octolytics-dimension-repository_id36891867
octolytics-dimension-repository_nwoangular/angular-cli
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id36891867
octolytics-dimension-repository_network_root_nwoangular/angular-cli
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-cli/issues/17416#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular-cli%2Fissues%2F17416
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-cli%2Fissues%2F17416
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-cli
Reloadhttps://github.com/angular/angular-cli/issues/17416
Reloadhttps://github.com/angular/angular-cli/issues/17416
Reloadhttps://github.com/angular/angular-cli/issues/17416
angularhttps://github.com/angular
angular-clihttps://github.com/angular/angular-cli
Codehttps://github.com/angular/angular-cli
Issues198 (198)https://github.com/angular/angular-cli/issues
Pull requests23 (23)https://github.com/angular/angular-cli/pulls
Actionshttps://github.com/angular/angular-cli/actions
Security and quality8 (8)https://github.com/angular/angular-cli/security
Insightshttps://github.com/angular/angular-cli/insights
https://github.com/angular/angular-cli
New issuehttps://github.com/login?return_to=https://github.com/angular/angular-cli/issues/17416
New issuehttps://github.com/login?return_to=https://github.com/angular/angular-cli/issues/17416
localized components containing i18n tags will produce identical chunk hashes when building with --localizehttps://github.com/angular/angular-cli/issues/17416#top
area: @angular-devkit/build-angularhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22area%3A%20%40angular-devkit%2Fbuild-angular%22
featureLabel used to distinguish feature request from other issueshttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22feature%22
feature: under considerationFeature request for which voting has completed and the request is now under considerationhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22feature%3A%20under%20consideration%22
needsTriagehttps://github.com/angular/angular-cli/milestone/11
https://github.com/nas90
nas90https://github.com/nas90
on Apr 7, 2020https://github.com/angular/angular-cli/issues/17416#issue-595958468
repohttps://github.com/nas90/i18n-hash-issue
issuehttps://github.com/angular/angular-cli/issues/16526
PRhttps://github.com/angular/angular-cli/pull/16817
Nexthttps://github.com/angular/angular-cli/issues/17416?timeline_page=1
https://github.com/alan-agius4
alan-agius4https://github.com/alan-agius4
on Apr 7, 2020https://github.com/angular/angular-cli/issues/17416#issuecomment-610520740
#16526https://github.com/angular/angular-cli/issues/16526
alan-agius4https://github.com/alan-agius4
--localize produces files with same hash values, even though file contents are different #16526https://github.com/angular/angular-cli/issues/16526
on Apr 7, 2020https://github.com/angular/angular-cli/issues/17416#event-3210902261
alan-agius4https://github.com/alan-agius4
completedhttps://github.com/angular/angular-cli/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Apr 7, 2020https://github.com/angular/angular-cli/issues/17416#event-3210902272
alan-agius4https://github.com/alan-agius4
on Apr 7, 2020https://github.com/angular/angular-cli/issues/17416#event-3210903312
alan-agius4https://github.com/alan-agius4
area: @angular-devkit/build-angularhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22area%3A%20%40angular-devkit%2Fbuild-angular%22
freq1: lowOnly reported by a handful of users who observe it rarelyhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22freq1%3A%20low%22
severity3: brokenhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22severity3%3A%20broken%22
on Apr 7, 2020https://github.com/angular/angular-cli/issues/17416#event-3210903920
ngbothttps://github.com/apps/ngbot
needsTriagehttps://github.com/angular/angular-cli/milestone/11
on Apr 7, 2020https://github.com/angular/angular-cli/issues/17416#event-3210903963
alan-agius4https://github.com/alan-agius4
featureLabel used to distinguish feature request from other issueshttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22feature%22
freq1: lowOnly reported by a handful of users who observe it rarelyhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22freq1%3A%20low%22
severity3: brokenhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22severity3%3A%20broken%22
on Apr 7, 2020https://github.com/angular/angular-cli/issues/17416#event-3210904396
ngbothttps://github.com/apps/ngbot
needsTriagehttps://github.com/angular/angular-cli/milestone/11
Backloghttps://github.com/angular/angular-cli/milestone/12
on Apr 7, 2020https://github.com/angular/angular-cli/issues/17416#event-3210904452
https://github.com/dgp1130
dgp1130https://github.com/dgp1130
on May 26, 2022https://github.com/angular/angular-cli/issues/17416#issuecomment-1138921055
https://github.com/matrium0
matrium0https://github.com/matrium0
on May 26, 2022https://github.com/angular/angular-cli/issues/17416#issuecomment-1138929462
https://github.com/dgp1130
dgp1130https://github.com/dgp1130
on May 26, 2022https://github.com/angular/angular-cli/issues/17416#issuecomment-1139105432
SO answerhttps://stackoverflow.com/a/52786672
@clydinhttps://github.com/clydin
https://github.com/matrium0
matrium0https://github.com/matrium0
on May 27, 2022https://github.com/angular/angular-cli/issues/17416#issuecomment-1139352848
https://budisoft.athttps://budisoft.at
https://budisoft/**en_US**/main.03b15c0004fb5dfc.jshttps://budisoft/**en_US**/main.03b15c0004fb5dfc.js
https://github.com/bartcorremans
bartcorremanshttps://github.com/bartcorremans
on May 27, 2022https://github.com/angular/angular-cli/issues/17416#issuecomment-1139427112
https://github.com/matrium0
matrium0https://github.com/matrium0
on May 27, 2022https://github.com/angular/angular-cli/issues/17416#issuecomment-1139475532
https://your-page/order/123456https://your-page/order/123456
https://your-page/main.03b15c0004fb5dfc.jshttps://your-page/main.03b15c0004fb5dfc.js
https://your-page/en_US/main.03b15c0004fb5dfc.jshttps://your-page/en_US/main.03b15c0004fb5dfc.js
https://github.com/thduttonuk
thduttonukhttps://github.com/thduttonuk
on May 31, 2022https://github.com/angular/angular-cli/issues/17416#issuecomment-1141860561
https://github.com/matrium0
matrium0https://github.com/matrium0
on Jun 1, 2022https://github.com/angular/angular-cli/issues/17416#issuecomment-1143766964
@bartcorremanshttps://github.com/bartcorremans
https://budisoft.athttps://budisoft.at
https://budisoft.at/en_US/articleshttps://budisoft.at/en_US/articles
https://github.com/dgp1130
dgp1130https://github.com/dgp1130
on Jun 1, 2022https://github.com/angular/angular-cli/issues/17416#issuecomment-1144258935
@alan-agius4https://github.com/alan-agius4
https://budisoft/**en_US**/main.03b15c0004fb5dfc.jshttps://budisoft/**en_US**/main.03b15c0004fb5dfc.js
@bartcorremanshttps://github.com/bartcorremans
direct Angular supporthttps://docs.sentry.io/platforms/javascript/guides/angular/
https://github.com/bartcorremans
bartcorremanshttps://github.com/bartcorremans
on Jun 2, 2022https://github.com/angular/angular-cli/issues/17416#issuecomment-1145207497
https://your-page/order/123456https://your-page/order/123456
https://your-page/main.03b15c0004fb5dfc.jshttps://your-page/main.03b15c0004fb5dfc.js
https://your-page/en_US/main.03b15c0004fb5dfc.jshttps://your-page/en_US/main.03b15c0004fb5dfc.js
https://github.com/dgp1130
dgp1130https://github.com/dgp1130
on Jun 16, 2022https://github.com/angular/angular-cli/issues/17416#issuecomment-1158205744
dgp1130https://github.com/dgp1130
completedhttps://github.com/angular/angular-cli/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Jun 16, 2022https://github.com/angular/angular-cli/issues/17416#event-6824493750
dgp1130https://github.com/dgp1130
needs: discussionOn the agenda for team meeting to determine next stepshttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22needs%3A%20discussion%22
on Jun 16, 2022https://github.com/angular/angular-cli/issues/17416#event-6824499815
https://github.com/apps/angular-automatic-lock-bot
angular-automatic-lock-bothttps://github.com/apps/angular-automatic-lock-bot
on Jul 17, 2022https://github.com/angular/angular-cli/issues/17416#issuecomment-1186438640
automatic conversation locking policyhttps://github.com/angular/angular/blob/8f24bc9443b3872fe095d9f7f77b308a361a13b4/docs/GITHUB_PROCESS.md#conversation-locking
angular-automatic-lock-bothttps://github.com/apps/angular-automatic-lock-bot
on Jul 17, 2022https://github.com/angular/angular-cli/issues/17416#event-7007101834
Sign up for freehttps://github.com/signup?return_to=https://github.com/angular/angular-cli/issues/17416
Sign in to commenthttps://github.com/login?return_to=https://github.com/angular/angular-cli/issues/17416
area: @angular-devkit/build-angularhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22area%3A%20%40angular-devkit%2Fbuild-angular%22
featureLabel used to distinguish feature request from other issueshttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22feature%22
feature: under considerationFeature request for which voting has completed and the request is now under considerationhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22feature%3A%20under%20consideration%22
needsTriageNo due datehttps://github.com/angular/angular-cli/milestone/11
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.