René's URL Explorer Experiment


Title: i18n translation duplicated · Issue #15573 · angular/angular · GitHub

Open Graph Title: i18n translation duplicated · Issue #15573 · angular/angular

X Title: i18n translation duplicated · Issue #15573 · angular/angular

Description: I'm submitting a ... (check one with "x") [x] bug report => search github for a similar issue or PR before submitting Current behavior Actually I have

Open Graph Description: I'm submitting a ... (check one with "x") [x] bug report => search github for a similar issue or PR before submitting Current behavior Actually I have search github for a similar issue or PR before submitting\r\n```\r\n\r\n**Current behavior**\r\nActually I have \r\n```\r\n\u003cspan class=\"slds-form-element__help\" *ngIf=\"form.get('sapNumber').errors?.maxlength\" i18n>Maximum de {{max8}} caractères autorisé.\u003c/span>\r\n\u003cspan class=\"slds-form-element__help\" *ngIf=\"form.get('interfaceAccountNumber').errors?.maxlength\" i18n>Maximum de {{max15}} caractères autorisé.\u003c/span>\r\n\u003cspan class=\"slds-form-element__help\" *ngIf=\"form.get('formDesignation').errors?.maxlength\" i18n>Maximum de {{max20}} caractères autorisé.\u003c/span>\r\n\u003cspan class=\"slds-form-element__help\" *ngIf=\"form.get('shortDesignation').errors?.maxlength\" i18n>Maximum de {{max35}} caractères autorisé.\u003c/span>\r\n```\r\nand when I extract with `\"./node_modules/.bin/ng-xi18n\" --i18nFormat=xmb` I get 4 times same strings to translate with different ID in my `messages.xmb` file. All others strings aren't duplicated but this one is, why ?\r\n\r\n```\r\n\u003cmsg id=\"4591664065864994257\">Maximum de \u003cph name=\"INTERPOLATION\">\u003cex>INTERPOLATION\u003c/ex>\u003c/ph> caractères autorisé.\u003c/msg>\r\n\u003cmsg id=\"3596670943450897156\">Maximum de \u003cph name=\"INTERPOLATION\">\u003cex>INTERPOLATION\u003c/ex>\u003c/ph> caractères autorisé.\u003c/msg>\r\n\u003cmsg id=\"27126914192147611\">Maximum de \u003cph name=\"INTERPOLATION\">\u003cex>INTERPOLATION\u003c/ex>\u003c/ph> caractères autorisé.\u003c/msg>\r\n\u003cmsg id=\"8495459888526831686\">Maximum de \u003cph name=\"INTERPOLATION\">\u003cex>INTERPOLATION\u003c/ex>\u003c/ph> caractères autorisé.\u003c/msg>\r\n```\r\nN.B. I tried with `{{15}}` interpolation, I tried with `max15 : string = \"15\"` I tried with `max15 : number = 15` and same behavior !\r\n\r\n**Expected behavior**\r\nExtract only one time this i18n string.\r\n\r\n**Please tell us about your environment:** webstorm 2017.1 \r\n\r\n* **Angular version:** 4.0.0\r\n\r\n* **Language:** [ts 2.2.1]\r\n\r\n* **Node (for AoT issues):** `node --version` = v7.7.2 ","author":{"url":"https://github.com/elvisbegovic","@type":"Person","name":"elvisbegovic"},"datePublished":"2017-03-29T07:45:14Z","url":"https://github.com/angular/angular/issues/15573"}


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:f5357b4c-ceec-e435-3afa-b7c62941f839
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idE3A6:F7C4C:1CB60C9:2664217:6B016DFB
html-safe-nonce271d0b5a596238cf0802b062c580b6ac3a0d5411869e40e1e16031fe0775ed1d
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFM0E2OkY3QzRDOjFDQjYwQzk6MjY2NDIxNzo2QjAxNkRGQiIsInZpc2l0b3JfaWQiOiIyMzc5NDUwODc3Nzg3MzM2MTg3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac548381cd5ef038e2136002f5300a24572dfbe7cdd50c65888cd38b4495fa5423
hovercard-subject-tagissue:217791085
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/15573/issue_layout
twitter:imagehttps://opengraph.githubassets.com/a04fc8920567ccac88f5cb60ace9aec37dae3fcb5355f3c6b158fcd4bc536eed/angular/angular/issues/15573
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/a04fc8920567ccac88f5cb60ace9aec37dae3fcb5355f3c6b158fcd4bc536eed/angular/angular/issues/15573
og:image:altI'm submitting a ... (check one with "x") [x] bug report => search github for a similar issue or PR before submitting Current behavior Actually I have