-
Notifications
You must be signed in to change notification settings - Fork 12k
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
Duplicate translations for message '9182224963637946835' when merging after update to Angular 13.1 #22398
Comments
This seems like a bug but we'll need to look at a reproduction to find and fix the problem. Can you setup a minimal repro please? You can read here why this is needed. A good way to make a minimal repro is to create a new app via This might be related to your directory structure so its really important to get an accurate repro to diagnose this. |
Ill try that in few weeks if it's not fixed by then. Our usage of localization is pretty basic so I assume there will be more people. |
Does this happen during serve or build? |
Only serve. |
I have the same problem after upgrading to v13 The warnings appears after the first rebuild (I mean, the first "build" while serving is ok, but if I modify a file I see this warnings) I will try to create a new project to reproduce the problem |
I confirm same behavior. |
The repository: https://github.com/JoniJnm/bug-22398 Use "npm start", modify a file and see the i18n warnings |
We are facing the same issue after upgrading to the newest version. Glad to see we are not the only ones. |
I believe it was caused by #16341 More specifically the reload here: 9300545#diff-50f53ef4e38233adf87a2a3af8e79f59cb5befbeb7d053d52a84b76e04d52b18R367-R378 doesn't re-initialize If only one translation file is permitted during |
@alan-agius4 we have repo. Update label please. |
we've got the same issue after upgrading to 13.1 |
Same problem here also, started after upgrading to 13.1 |
Same issue after upgrading to 13.1 |
Currently when making a change while serving a localized application, duplicate translation warnings appear for every translation id. This fixes that by replacing the whole translation object with a new one each time translations are loaded. fixes angular#22398
Currently when making a change while serving a localized application, duplicate translation warnings appear for every translation id. This fixes that by replacing the whole translation object with a new one each time translations are loaded. fixes angular#22398
Currently when making a change while serving a localized application, duplicate translation warnings appear for every translation id. This fixes that by replacing the whole translation object with a new one each time translations are loaded. fixes angular#22398
Currently when making a change while serving a localized application, duplicate translation warnings appear for every translation id. This fixes that by replacing the whole translation object with a new one each time translations are loaded. fixes angular#22398
Currently when making a change while serving a localized application, duplicate translation warnings appear for every translation id. This fixes that by replacing the whole translation object with a new one each time translations are loaded. fixes angular#22398
We've got the same issue within our project running Angular 13.1 |
@alan-agius4 You added freq1: low tag. It's not low. It's bug in production version of Angular that affects everybody who use localization. That's not low number of people. |
Currently when making a change while serving a localized application, duplicate translation warnings appear for every translation id. This fixes that by replacing the whole translation object with a new one each time translations are loaded. fixes #22398
Currently when making a change while serving a localized application, duplicate translation warnings appear for every translation id. This fixes that by replacing the whole translation object with a new one each time translations are loaded. fixes #22398
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. |
Which @angular/* package(s) are the source of the bug?
localize
Is this a regression?
Yes
Description
After updating to Angular 13.1 i have ton of warnings in console that look like this:
WARNING [locales/messages.sr.xlf]: Duplicate translations for message '9088279543992873374' when merging
Please provide a link to a minimal reproduction of the bug
No response
Please provide the exception or error you saw
No response
Please provide the environment you discovered this bug in (run
ng version
)Anything else?
No response
The text was updated successfully, but these errors were encountered: