René's URL Explorer Experiment


Title: [i18n] enable control over translation message ID · Issue #12941 · angular/angular · GitHub

Open Graph Title: [i18n] enable control over translation message ID · Issue #12941 · angular/angular

X Title: [i18n] enable control over translation message ID · Issue #12941 · angular/angular

Description: I'm submitting a ... (check one with "x") [ ] bug report => search github for a similar issue or PR before submitting [x] feature request [ ] support request => Please do not submit support request here, instead see https://github.com/an...

Open Graph Description: I'm submitting a ... (check one with "x") [ ] bug report => search github for a similar issue or PR before submitting [x] feature request [ ] support request => Please do not submit support request...

X Description: I'm submitting a ... (check one with "x") [ ] bug report => search github for a similar issue or PR before submitting [x] feature request [ ] support request => Please do not su...

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

X: @github

direct link

Domain: patch-diff.githubusercontent.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[i18n] enable control over translation message ID ","articleBody":"**I'm submitting a ...**  (check one with \"x\")\r\n```\r\n [ ] bug report =\u003e search github for a similar issue or PR before submitting\r\n [x] feature request\r\n [ ] support request =\u003e Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question\r\n```\r\n\r\n**Current behavior**\r\nCurrently the traduction ID is created by hashing the node content and the traduction \"meaning\" value. e.g: : \r\n\r\nfor this html fragment : \r\n```html\r\n\u003cp i18n=\"vehicule|personal vehicule\"\u003ethe  car\u003c/p\u003e\r\n```\r\nthe traduction ID will be a hash of `the  car[vehicule]`\r\n\r\nFixing any typo in the html tag content (*in this example removing the two spaces between \"the\" and \"car\"*) will create a new ID for translation. So I will have to change the ID for each XLIFF | XTB files despite the fact that I don't know the ID because it's a hash.\r\n\r\n**Expected behavior**\r\nIt would be very useful to have an option to disable the message ID generation to only use the \"meaning\" value as the translation ID.\r\n\r\nFor example, we can have an option in the ng-xi18n script to disable hashing : \r\n```bash\r\n./node_modules/.bin/ng-xi18n --i18nFormat=xlf --meaningAsId\r\n```\r\nAnd add a new provider in the app : \r\n```js \r\nplatformBrowserDynamic().bootstrapModule(AppModule, {[\r\n    {provide : TRANSLATIONS, useValue : translationFile},\r\n    {provide : TRANSLATIONS_FORMAT, useValue : 'xlf'},\r\n    {provide : LOCALE_ID, useValue : 'fr'},\r\n    {provide : MESSAGE_ID, useValue : 'meaning'}\r\n]});\r\n```\r\n\r\n**What is the motivation / use case for changing the behavior?**\r\nThis feature will avoid the fact that each minimal changes in the \"original content\" (without affecting the meaning of a word or sentence) will produce a crash of the app because the message ID changes for the `HTML_parser`. In other words, if the developper adds a meaning in the i18n attribute, he must have the choice to change the translation (by changing its ID) or not.\r\n\r\nCurrently, it's impossible to change something in the original content without fixing the ID for every translation files.\r\n\r\n* **Angular version:** 2.1.0\r\n\r\n* **Browser:** all\r\n \r\n* **Language:** TypeScript 2.0.2\r\n\r\n* **Node (for AoT issues):** `node --version` =   4.4.1\r\n","author":{"url":"https://github.com/maxime-allex","@type":"Person","name":"maxime-allex"},"datePublished":"2016-11-17T14:30:34.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":10},"url":"https://github.com/12941/angular/issues/12941"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:f38cfee6-f6b6-3811-d97b-fb3a98f1e0eb
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id9286:2A7CC:2780BEB:34A9428:69742166
html-safe-nonce3e9d29bbee16cfeda518546f79901b6356f9d73f48d4b2ad0795359e0fc98b39
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5Mjg2OjJBN0NDOjI3ODBCRUI6MzRBOTQyODo2OTc0MjE2NiIsInZpc2l0b3JfaWQiOiIzNjM1MTIxNTY2NjMzMjUwMzAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac5535a3b40f103df91637f0e244a68f2efab7108bb561174683360c32febf3985
hovercard-subject-tagissue:190062557
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/12941/issue_layout
twitter:imagehttps://opengraph.githubassets.com/0497a33d137c29841026dbd3af7b1c95f34930241f2c0f118580457a0b8383ac/angular/angular/issues/12941
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/0497a33d137c29841026dbd3af7b1c95f34930241f2c0f118580457a0b8383ac/angular/angular/issues/12941
og:image:altI'm submitting a ... (check one with "x") [ ] bug report => search github for a similar issue or PR before submitting [x] feature request [ ] support request => Please do not submit support request...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamemaxime-allex
hostnamegithub.com
expected-hostnamegithub.com
None447dc9917c3d68d647a01abfdefe55ec7ee1785922136c1d8395dbb3ab6d57b9
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
release8dad7bdfecbe3eaa97ac4e632d6b47e2b23e81d9
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/angular/angular/issues/12941#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular%2Fissues%2F12941
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
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
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://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/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular%2Fissues%2F12941
Sign up https://patch-diff.githubusercontent.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://patch-diff.githubusercontent.com/angular/angular/issues/12941
Reloadhttps://patch-diff.githubusercontent.com/angular/angular/issues/12941
Reloadhttps://patch-diff.githubusercontent.com/angular/angular/issues/12941
angular https://patch-diff.githubusercontent.com/angular
angularhttps://patch-diff.githubusercontent.com/angular/angular
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Fangular%2Fangular
Fork 27k https://patch-diff.githubusercontent.com/login?return_to=%2Fangular%2Fangular
Star 99.7k https://patch-diff.githubusercontent.com/login?return_to=%2Fangular%2Fangular
Code https://patch-diff.githubusercontent.com/angular/angular
Issues 1k https://patch-diff.githubusercontent.com/angular/angular/issues
Pull requests 123 https://patch-diff.githubusercontent.com/angular/angular/pulls
Discussions https://patch-diff.githubusercontent.com/angular/angular/discussions
Actions https://patch-diff.githubusercontent.com/angular/angular/actions
Projects 2 https://patch-diff.githubusercontent.com/angular/angular/projects
Security 4 https://patch-diff.githubusercontent.com/angular/angular/security
Insights https://patch-diff.githubusercontent.com/angular/angular/pulse
Code https://patch-diff.githubusercontent.com/angular/angular
Issues https://patch-diff.githubusercontent.com/angular/angular/issues
Pull requests https://patch-diff.githubusercontent.com/angular/angular/pulls
Discussions https://patch-diff.githubusercontent.com/angular/angular/discussions
Actions https://patch-diff.githubusercontent.com/angular/angular/actions
Projects https://patch-diff.githubusercontent.com/angular/angular/projects
Security https://patch-diff.githubusercontent.com/angular/angular/security
Insights https://patch-diff.githubusercontent.com/angular/angular/pulse
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/angular/angular/issues/12941
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/angular/angular/issues/12941
[i18n] enable control over translation message ID https://patch-diff.githubusercontent.com/angular/angular/issues/12941#top
area: i18nIssues related to localization and internationalizationhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20i18n%22
featureIssue that requests a new featurehttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22feature%22
https://github.com/maxime-allex
https://github.com/maxime-allex
maxime-allexhttps://github.com/maxime-allex
on Nov 17, 2016https://github.com/angular/angular/issues/12941#issue-190062557
area: i18nIssues related to localization and internationalizationhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20i18n%22
featureIssue that requests a new featurehttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22feature%22
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.