New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature: ability to add a meaning/description to an ICU messages #24080
Comments
Please give a reproduction OR at least the exact template, the exact output and what output you expect. Thanks. |
https://plnkr.co/edit/UqTRzbqGRZcdnkjTiKBY?p=info If you extract the string you will get three unit elements. Only first one has the meaning attribute. I tried to include XLIFF output here but this platform does not let me to include it such way that it would be readable. I will make a screenshot about the out XLIFF and draw the issue. |
This sample has another issue. In the template we have one logical string. However once extracted it is split to three different units. A localization tool must try to parse them back into the logical string but that might not be possible. In above sample all three units are extracted into consecutive unit elements. However if some other string anywhere in the app uses the string any any of these three parts there is a string collision and both instances are mapped together and one of these part my be located on totally different part of the XLIFF. |
Thanks for the clarification.
Then I think that what you are asking is the ability to add meaning/description/id to the ICU messages. Is my understanding correct ? (If that is the case, we might have an opened issue tracking this already) |
Thanks. You got it right. |
@vicb Why is the message split into 3 parts in the first place? If I put them back together into one string after extraction, the translation still works. Would it be possible to add an option to not split the message? |
Just a heads up that we kicked off a community voting process for your feature request. There are 20 days until the voting process ends. Find more details about Angular's feature request process in our documentation. |
Thank you for submitting your feature request! Looks like during the polling process it didn't collect a sufficient number of votes to move to the next stage. We want to keep Angular rich and ergonomic and at the same time be mindful about its scope and learning journey. If you think your request could live outside Angular's scope, we'd encourage you to collaborate with the community on publishing it as an open source package. You can find more details about the feature request process in our documentation. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
I have the following string in a template
When I run xi18n three unit elements are created. Only the first one has the meaning attribute.
I'm submitting a...
Current behavior
Meaning attribute is added only to the first unit element
Expected behavior
Meaning attribute should be added to all three unit elements
Minimal reproduction of the problem with instructions
Add the following p element into a template and run xi18n
Environment
The text was updated successfully, but these errors were encountered: