René's URL Explorer Experiment


Title: i18n support in Angular libraries · Issue #17140 · angular/angular-cli · GitHub

Open Graph Title: i18n support in Angular libraries · Issue #17140 · angular/angular-cli

X Title: i18n support in Angular libraries · Issue #17140 · 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 Is this a regression? No. Related functionaliy only available with new i18n capabilities of angular 9. Description ...

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 Is this a regression? No. Related functionaliy only available with new i18n...

X Description: 🐞 Bug report Command (mark with an x) new build serve test e2e generate add update lint xi18n run config help version doc Is this a regression? No. Related functionaliy only available with new i18n...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"i18n support in Angular libraries","articleBody":"# 🐞 Bug report\r\n\r\n### Command (mark with an `x`)\r\n\u003c!-- Can you pin-point the command or commands that are effected by this bug? -->\r\n\u003c!-- ✍️edit: -->\r\n\r\n- [ ] new\r\n- [ ] build\r\n- [ ] serve\r\n- [ ] test\r\n- [ ] e2e\r\n- [ ] generate\r\n- [ ] add\r\n- [ ] update\r\n- [ ] lint\r\n- [x] xi18n\r\n- [ ] run\r\n- [ ] config\r\n- [ ] help\r\n- [ ] version\r\n- [ ] doc\r\n\r\n\r\n### Is this a regression?\r\n\r\n\u003c!-- Did this behavior use to work in the previous version? -->\r\n\u003c!-- ✍️--> No. Related functionaliy only available with new i18n capabilities of angular 9.\r\n\r\n\r\n### Description\r\n\r\n\u003c!-- ✍️-->I want to use ng xi18n command to extract messages for i18n tags which are part of a library project which is part of a monrepo setup created by the cli. According to docs at \r\nhttps://angular.io/cli/xi18n this is supposed to be possible  \r\n  \r\n> ng xi18n \\\u003cproject\\>\r\n> \\\u003cproject\\> The name of the project to build. Can be an application or a library.\r\n\r\n## 🔬 Minimal Reproduction\r\n\r\n1. create project: `ng new lib-i18n`\r\n1. add localize: `ng add @angular/localize`\r\n1. generate library: `ng g library my-lib`\r\n1. add i18n attribute in my-lib.component.ts  \r\n    ```\r\n    \u003cp i18n>\r\n      my-lib works!\r\n    \u003c/p>\r\n    ```\r\n1. run `ng xi18n my-lib`: Result will be  \r\n`An unhandled exception occurred: Project 'my-lib' does not support the 'extract-i18n' target.`  \r\nAfter adding corresponding extract-i18n target in angular.json, error output as below.\r\n\r\nI created a minimal demo project which incorporates the scenario describe above. It is located here:\r\nhttps://github.com/multimike77/lib-i18n-issue\r\n\r\nCheckout and run `npm install`. Then run `ng xi18n my-lib` and it should produce error as below.\r\n\r\n## 🔥 Exception or Error\r\n\u003cpre>\u003ccode>\r\nAn unhandled exception occurred: The \"path\" argument must be of type string. Received undefined\r\n\r\n[error] TypeError [ERR_INVALID_ARG_TYPE]: The \"path\" argument must be of type string. Received undefined\r\n    at validateString (internal/validators.js:117:11)\r\n    at Object.resolve (path.js:980:7)\r\n    at Object.getCommonConfig (/Users/.../lib-i18n/node_modules/@angular-devkit/build-angular/src/angular-cli-files/models/webpack-configs/common.js:390:24)\r\n    at /Users/.../lib-i18n/node_modules/@angular-devkit/build-angular/src/extract-i18n/index.js:91:27\r\n    at generateWebpackConfig (/Users/.../lib-i18n/node_modules/@angular-devkit/build-angular/src/utils/webpack-browser-config.js:62:22)\r\n    at async Object.generateBrowserWebpackConfigFromContext (/Users/.../lib-i18n/node_modules/@angular-devkit/build-angular/src/utils/webpack-browser-config.js:137:20)\r\n    at async execute (/Users/.../lib-i18n/node_modules/@angular-devkit/build-angular/src/extract-i18n/index.js:73:24)\r\n\u003c/code>\u003c/pre>\r\n\r\n\r\n## 🌍 Your Environment\r\n\u003cpre>\u003ccode>\r\nAngular CLI: 9.0.4\r\nNode: 12.16.1\r\nOS: darwin x64\r\n\r\nAngular: 9.0.4\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.900.4\r\n@angular-devkit/build-angular      0.900.4\r\n@angular-devkit/build-ng-packagr   0.900.4\r\n@angular-devkit/build-optimizer    0.900.4\r\n@angular-devkit/build-webpack      0.900.4\r\n@angular-devkit/core               9.0.4\r\n@angular-devkit/schematics         9.0.4\r\n@ngtools/webpack                   9.0.4\r\n@schematics/angular                9.0.4\r\n@schematics/update                 0.900.4\r\nng-packagr                         9.0.2\r\nrxjs                               6.5.4\r\ntypescript                         3.7.5\r\nwebpack                            4.41.2\r\n\u003c/code>\u003c/pre>\r\n\r\n**Anything else relevant?**\r\n\u003c!-- ✍️Is this a browser specific issue? If so, please specify the browser and version. -->\r\n\r\n\u003c!-- ✍️Do any of these matter: operating system, IDE, package manager, HTTP server, ...? If so, please mention it below. -->\r\n","author":{"url":"https://github.com/multimike77","@type":"Person","name":"multimike77"},"datePublished":"2020-03-03T09:44:20Z","url":"https://github.com/angular/angular-cli/issues/17140"}

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:fc3ed996-e034-6fc4-cd27-91d35c42e210
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idCFEA:1F7384:9B6B13:CF5A88:6B00E666
html-safe-nonce30934e1645755333929df5cecddc44704af54ddc31758c281407ddbe80f76680
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRkVBOjFGNzM4NDo5QjZCMTM6Q0Y1QTg4OjZCMDBFNjY2IiwidmlzaXRvcl9pZCI6IjY2NzY4NDUyODk4NzEwNDIxNTAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac187de45ff792bad43d53f76dc4208527709287a77148741b36fa5dec4fe56386
hovercard-subject-tagissue:574538931
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/17140/issue_layout
twitter:imagehttps://opengraph.githubassets.com/f802318550989ccf69f94b6bba082988b243fba06c2830d7d624ffa65bf263ea/angular/angular-cli/issues/17140
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/f802318550989ccf69f94b6bba082988b243fba06c2830d7d624ffa65bf263ea/angular/angular-cli/issues/17140
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 Is this a regression? No. Related functionaliy only available with new i18n...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamemultimike77
hostnamegithub.com
expected-hostnamegithub.com
None27088b6977484d0d3321d9a11c907c6d6637b315cfa359ef7952dbf6292f9b14
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
release624179fb8b88d26ba5bba08894eb60a1c5a1d93d
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/angular/angular-cli/issues/17140#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular-cli%2Fissues%2F17140
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%2F17140
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/17140
Reloadhttps://github.com/angular/angular-cli/issues/17140
Reloadhttps://github.com/angular/angular-cli/issues/17140
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/17140
New issuehttps://github.com/login?return_to=https://github.com/angular/angular-cli/issues/17140
Enhancementhttps://github.com/angular/angular-cli/issues?q=type:"Enhancement"
i18n support in Angular librarieshttps://github.com/angular/angular-cli/issues/17140#top
devkit/build-angular:i18nhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22devkit%2Fbuild-angular%3Ai18n%22
devkit/build-angular:libraryhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22devkit%2Fbuild-angular%3Alibrary%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
https://github.com/multimike77
multimike77https://github.com/multimike77
on Mar 3, 2020https://github.com/angular/angular-cli/issues/17140#issue-574538931
https://angular.io/cli/xi18nhttps://angular.io/cli/xi18n
https://github.com/multimike77/lib-i18n-issuehttps://github.com/multimike77/lib-i18n-issue
Nexthttps://github.com/angular/angular-cli/issues/17140?timeline_page=1
alan-agius4https://github.com/alan-agius4
area: @angular/clihttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22area%3A%20%40angular%2Fcli%22
area: docsRelated to the documentationhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22area%3A%20docs%22
on Mar 3, 2020https://github.com/angular/angular-cli/issues/17140#event-3091587623
ngbothttps://github.com/apps/ngbot
Backloghttps://github.com/angular/angular-cli/milestone/12
on Mar 3, 2020https://github.com/angular/angular-cli/issues/17140#event-3091587728
alan-agius4https://github.com/alan-agius4
severity1: confusinghttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22severity1%3A%20confusing%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
on Mar 3, 2020https://github.com/angular/angular-cli/issues/17140#event-3091588572
https://github.com/alan-agius4
alan-agius4https://github.com/alan-agius4
on Mar 3, 2020https://github.com/angular/angular-cli/issues/17140#issuecomment-593882334
@multimike77https://github.com/multimike77
https://github.com/multimike77
multimike77https://github.com/multimike77
on Mar 3, 2020https://github.com/angular/angular-cli/issues/17140#issuecomment-593931362
https://github.com/alan-agius4
alan-agius4https://github.com/alan-agius4
on Mar 3, 2020https://github.com/angular/angular-cli/issues/17140#issuecomment-593939878
@clydinhttps://github.com/clydin
https://github.com/petebacondarwin
petebacondarwinhttps://github.com/petebacondarwin
on Mar 3, 2020https://github.com/angular/angular-cli/issues/17140#issuecomment-593944032
https://github.com/multimike77
multimike77https://github.com/multimike77
on Mar 3, 2020https://github.com/angular/angular-cli/issues/17140#issuecomment-593993064
@petebacondarwinhttps://github.com/petebacondarwin
https://github.com/meriturva
meriturvahttps://github.com/meriturva
on Apr 23, 2020https://github.com/angular/angular-cli/issues/17140#issuecomment-618439052
@petebacondarwinhttps://github.com/petebacondarwin
https://github.com/petebacondarwin
petebacondarwinhttps://github.com/petebacondarwin
on Apr 24, 2020https://github.com/angular/angular-cli/issues/17140#issuecomment-618945423
https://github.com/michaelhunziker
michaelhunzikerhttps://github.com/michaelhunziker
on May 6, 2020https://github.com/angular/angular-cli/issues/17140#issuecomment-624587948
@petebacondarwinhttps://github.com/petebacondarwin
https://github.com/petebacondarwin
petebacondarwinhttps://github.com/petebacondarwin
on May 6, 2020https://github.com/angular/angular-cli/issues/17140#issuecomment-624707942
@michaelhunzikerhttps://github.com/michaelhunziker
https://github.com/angular/angular/pulls?q=is%3Apr+is%3Aopen+label%3A%22comp%3A+i18n%22+https://github.com/angular/angular/pulls?q=is%3Apr+is%3Aopen+label%3A%22comp%3A+i18n%22+
clydinhttps://github.com/clydin
triage #1https://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22triage%20%231%22
on May 29, 2020https://github.com/angular/angular-cli/issues/17140#event-3388529963
https://github.com/PowerKiKi
PowerKiKihttps://github.com/PowerKiKi
on Feb 16, 2023https://github.com/angular/angular-cli/issues/17140#issuecomment-1432417066
https://github.com/meriturva
meriturvahttps://github.com/meriturva
on Feb 16, 2023https://github.com/angular/angular-cli/issues/17140#issuecomment-1432654957
angular/angular#38366 (comment)https://github.com/angular/angular/issues/38366#issuecomment-672932976
https://github.com/PowerKiKi
PowerKiKihttps://github.com/PowerKiKi
on Feb 16, 2023https://github.com/angular/angular-cli/issues/17140#issuecomment-1432888295
an array of stringshttps://github.com/angular/angular-cli/blob/c8ac660d8b13922be7ebcc92dfd5b18392602c40/packages/angular/cli/lib/config/workspace-schema.json#L324-L331
https://github.com/meriturva
meriturvahttps://github.com/meriturva
on Feb 16, 2023https://github.com/angular/angular-cli/issues/17140#issuecomment-1433563717
@PowerKiKihttps://github.com/PowerKiKi
https://github.com/gzf6
gzf6https://github.com/gzf6
on May 31, 2024https://github.com/angular/angular-cli/issues/17140#issuecomment-2141134862
https://github.com/meriturva
meriturvahttps://github.com/meriturva
on May 31, 2024https://github.com/angular/angular-cli/issues/17140#issuecomment-2141588328
https://github.com/magioloro
magiolorohttps://github.com/magioloro
on Dec 13, 2024https://github.com/angular/angular-cli/issues/17140#issuecomment-2541729199
https://angular.io/guide/i18nhttps://angular.io/guide/i18n
angular/angular#29536 (comment)https://github.com/angular/angular/issues/29536#issuecomment-774861859
https://v18.angular.dev/cli/extract-i18nhttps://v18.angular.dev/cli/extract-i18n
https://github.com/sroucheray
sroucherayhttps://github.com/sroucheray
on Jan 27, 2025https://github.com/angular/angular-cli/issues/17140#issuecomment-2615413677
@alan-agius4https://github.com/alan-agius4
https://github.com/alan-agius4
alan-agius4https://github.com/alan-agius4
on Jan 27, 2025https://github.com/angular/angular-cli/issues/17140#issuecomment-2615638130
https://github.com/meriturva
meriturvahttps://github.com/meriturva
on Jan 27, 2025https://github.com/angular/angular-cli/issues/17140#issuecomment-2615863139
@alan-agius4https://github.com/alan-agius4
https://github.com/sroucheray
sroucherayhttps://github.com/sroucheray
on Jan 27, 2025https://github.com/angular/angular-cli/issues/17140#issuecomment-2615930774
@alan-agius4https://github.com/alan-agius4
rajsitehttps://github.com/rajsite
on Dec 17, 2025https://github.com/angular/angular-cli/issues/17140#event-21629352653
Angular 19 update (#2786)https://github.com/ni/nimble/commit/5796d17bb92450e5027c46f52aa9ea86d64dca92
#2786https://github.com/ni/nimble/pull/2786
5796d17https://github.com/ni/nimble/commit/5796d17bb92450e5027c46f52aa9ea86d64dca92
https://github.com/pb-aw-nl
pb-aw-nlhttps://github.com/pb-aw-nl
on May 11, 2026https://github.com/angular/angular-cli/issues/17140#issuecomment-4421533153
https://github.com/jonaskuske
jonaskuskehttps://github.com/jonaskuske
on Jul 30, 2026https://github.com/angular/angular-cli/issues/17140#issuecomment-5134264249
https://v18.angular.dev/cli/extract-i18nhttps://v18.angular.dev/cli/extract-i18n
https://angular.dev/cli/extract-i18n#argumentshttps://angular.dev/cli/extract-i18n#arguments
https://github.com/india-e
india-ehttps://github.com/india-e
on Oct 16, 2026https://github.com/angular/angular-cli/issues/17140#issuecomment-6223770927
https://v18.angular.dev/cli/extract-i18nhttps://v18.angular.dev/cli/extract-i18n
Sign up for freehttps://github.com/signup?return_to=https://github.com/angular/angular-cli/issues/17140
Sign in to commenthttps://github.com/login?return_to=https://github.com/angular/angular-cli/issues/17140
devkit/build-angular:i18nhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22devkit%2Fbuild-angular%3Ai18n%22
devkit/build-angular:libraryhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22devkit%2Fbuild-angular%3Alibrary%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
Enhancementhttps://github.com/angular/angular-cli/issues?q=type:"Enhancement"
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.