You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think I found a lil bug. I had the same text to translate in multiple components and noticed that it was only translated in one of the components. It seems angular uses context-groups to translate multiple components. I used "includeContext": true to fix this but found the following even without it.
sorry for the late response! I tried to reproduce this and found the following:
The context-groups are not used to "manage" translations in multiple files/occurrences but are purely informational for the translator. So when you apply the i18n attribute correctly to each occurrence, in every place the translation will be used. This is independent of the "includeContext" configuration. (If I'm missing something here, please provide a minimal reproduction - e.g. a git repository with a new angular project where the problem can be reproduced.)
When using "includeContext": true it is actually a bug, that all but one context is missing - I'll provide a fix for this!
First. Thank you for this plugin!!!
I think I found a lil bug. I had the same text to translate in multiple components and noticed that it was only translated in one of the components. It seems angular uses context-groups to translate multiple components. I used "includeContext": true to fix this but found the following even without it.
For example this is the original messages.xlf:
and this is what the plugin generates:
I would also recommend to set "includeContext": true as default in the plugin if I did not miss anything here.
Thank you!
The text was updated successfully, but these errors were encountered: