René's URL Explorer Experiment


Title: Include context/context-group tags in i18n extraction tooling · Issue #37202 · angular/angular · GitHub

Open Graph Title: Include context/context-group tags in i18n extraction tooling · Issue #37202 · angular/angular

X Title: Include context/context-group tags in i18n extraction tooling · Issue #37202 · angular/angular

Description: 🚀 feature request It would be useful for the still in-development i18n extraction tooling to include support for context and context-group tags in the generated XLIFF files when this functionality is released. Relevant Package @angular/l...

Open Graph Description: 🚀 feature request It would be useful for the still in-development i18n extraction tooling to include support for context and context-group tags in the generated XLIFF files when this functionality ...

X Description: 🚀 feature request It would be useful for the still in-development i18n extraction tooling to include support for context and context-group tags in the generated XLIFF files when this functionality ...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Include context/context-group tags in i18n extraction tooling","articleBody":"# 🚀 feature request\r\nIt would be useful for the still in-development i18n extraction tooling to include support for `context` and `context-group` tags in the generated XLIFF files when this functionality is released.\r\n\r\n### Relevant Package\r\n@angular/localize\r\n\r\n### Description\r\nThis is in anticipation of functionality that is currently in-flight (#32912 ). I looked through that PR, open issues, and other i18n-related PRs but couldn't find any mention of this. It would be really useful for the i18n extraction tooling, whenever it is released, to include support for including the `context` and `context-group`  tags as defined in the [XLIFF 1.2 Specs](http://docs.oasis-open.org/xliff/v1.2/os/xliff-core.html#context-group). This would make it easier to see where strings are used in source, at a glance.\r\n\r\n### Describe the solution you'd like\r\nInclude `context` and `context-group` tag information in generated XLIFF files when i18n extraction support is released. An example of what this might look like in a generated XLIFF file's `trans-unit` block:\r\n```\r\n      \u003ctrans-unit id=\"0aaa61f16a4e7f7d6a1bfc6d513fb99ceec77f17\" datatype=\"html\">\r\n        \u003csource>String 1\u003c/source>\r\n        \u003ctarget>String 1 translation\u003c/target>\r\n        \u003ccontext-group purpose=\"location\">\r\n          \u003ccontext context-type=\"sourcefile\">src/app/components/examplecomponent/example.component.ts\u003c/context>\r\n          \u003ccontext context-type=\"linenumber\">25\u003c/context>\r\n        \u003c/context-group>\r\n        \u003ccontext-group purpose=\"location\">\r\n          \u003ccontext context-type=\"sourcefile\">src/app/components/examplecomponent/example.component.html\u003c/context>\r\n          \u003ccontext context-type=\"linenumber\">7\u003c/context>\r\n        \u003c/context-group>\r\n      \u003c/trans-unit>\r\n```\r\n\r\n### Describe alternatives you've considered\r\nTwo alternatives would make it a little easier to back-track from string to source but have shortcomings:\r\n- \u003cb>Option 1:\u003c/b> Use custom ids for all localized strings, and use some convention to ensure that every id is unique. The downside to this approach is that in cases where the same string needs to be used multiple times, your XLIFF file has separate entries for each instance of the string, making the XLIFF file a bit of a mess with duplicate entries.\r\n- \u003cb>Option 2:\u003c/b> Use a custom id for all unique strings. So, every time we needed the string 'String 1', we'd specify custom id 'string1'. The issue here of course is that if someone changes the actual string used in one of those cases without changing the custom id, per the i18n documentation: *\"If you use the same id for two different text messages, only the first one is extracted, and its translation is used in place of both original text messages\"*.","author":{"url":"https://github.com/scotia673","@type":"Person","name":"scotia673"},"datePublished":"2020-05-19T17:41:39Z","url":"https://github.com/angular/angular/issues/37202"}

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:30d60ae2-7c9a-df9d-ed27-ffb147dfd947
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idE87E:395430:B9901F:F6B2B4:6B00EFF0
html-safe-nonce50140000bf60a93ff378da1c2022f2852bca1fe981b02a6292cf6f2ac752637a
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFODdFOjM5NTQzMDpCOTkwMUY6RjZCMkI0OjZCMDBFRkYwIiwidmlzaXRvcl9pZCI6Ijg3NzQ2Mzc4NjI3Njg0MDY1MTIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac33663fc33e718ca57ad9c670ae4246283b04c18f307109b6e549165fe31112f6
hovercard-subject-tagissue:621165870
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/37202/issue_layout
twitter:imagehttps://opengraph.githubassets.com/00d85a26acc2aca2c25b5d801d15f9ec88919bed2d04333199a1eec4eb3de376/angular/angular/issues/37202
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/00d85a26acc2aca2c25b5d801d15f9ec88919bed2d04333199a1eec4eb3de376/angular/angular/issues/37202
og:image:alt🚀 feature request It would be useful for the still in-development i18n extraction tooling to include support for context and context-group tags in the generated XLIFF files when this functionality ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamescotia673
hostnamegithub.com
expected-hostnamegithub.com
None4ef498cbabcbe3c50befc7a5b743e7072ee770b4daf0e15e54801180d1fa91fc
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
release9983dd5da06943f833c971dd5b6bc988e2858be5
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/angular/angular/issues/37202#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular%2Fissues%2F37202
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%2F37202
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/37202
Reloadhttps://github.com/angular/angular/issues/37202
Reloadhttps://github.com/angular/angular/issues/37202
angularhttps://github.com/angular
angularhttps://github.com/angular/angular
Codehttps://github.com/angular/angular
Issues835 (835)https://github.com/angular/angular/issues
Pull requests140 (140)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/37202
New issuehttps://github.com/login?return_to=https://github.com/angular/angular/issues/37202
Include context/context-group tags in i18n extraction toolinghttps://github.com/angular/angular/issues/37202#top
area: i18nIssues related to localization and internationalizationhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20i18n%22
featureLabel used to distinguish feature request from other issueshttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22feature%22
Backloghttps://github.com/angular/angular/milestone/82
https://github.com/scotia673
scotia673https://github.com/scotia673
on May 19, 2020https://github.com/angular/angular/issues/37202#issue-621165870
#32912https://github.com/angular/angular/pull/32912
XLIFF 1.2 Specshttp://docs.oasis-open.org/xliff/v1.2/os/xliff-core.html#context-group
https://github.com/petebacondarwin
petebacondarwinhttps://github.com/petebacondarwin
on May 19, 2020https://github.com/angular/angular/issues/37202#issuecomment-630997350
@scotia673https://github.com/scotia673
#32912https://github.com/angular/angular/pull/32912
petebacondarwinhttps://github.com/petebacondarwin
area: i18nIssues related to localization and internationalizationhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20i18n%22
featureLabel used to distinguish feature request from other issueshttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22feature%22
on May 19, 2020https://github.com/angular/angular/issues/37202#event-3353158393
ngbothttps://github.com/apps/ngbot
Backloghttps://github.com/angular/angular/milestone/82
on May 19, 2020https://github.com/angular/angular/issues/37202#event-3353158468
https://github.com/petebacondarwin
petebacondarwinhttps://github.com/petebacondarwin
on Jul 10, 2020https://github.com/angular/angular/issues/37202#issuecomment-656578906
petebacondarwinhttps://github.com/petebacondarwin
completedhttps://github.com/angular/angular/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Jul 10, 2020https://github.com/angular/angular/issues/37202#event-3533107558
https://github.com/apps/angular-automatic-lock-bot
angular-automatic-lock-bothttps://github.com/apps/angular-automatic-lock-bot
on Aug 10, 2020https://github.com/angular/angular/issues/37202#issuecomment-671450210
automatic conversation locking policyhttps://github.com/angular/angular/blob/67d80f/docs/GITHUB_PROCESS.md#conversation-locking
angular-automatic-lock-bothttps://github.com/apps/angular-automatic-lock-bot
on Aug 10, 2020https://github.com/angular/angular/issues/37202#event-3639499757
Sign up for freehttps://github.com/signup?return_to=https://github.com/angular/angular/issues/37202
Sign in to commenthttps://github.com/login?return_to=https://github.com/angular/angular/issues/37202
area: i18nIssues related to localization and internationalizationhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20i18n%22
featureLabel used to distinguish feature request from other issueshttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22feature%22
BacklogNo due datehttps://github.com/angular/angular/milestone/82
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.