kyubisation / angular-t9n

Apache License 2.0
9 stars 1 forks source link

Feature: Auto merging trans-unit with same text #11

Open Raphyyy opened 2 years ago

Raphyyy commented 2 years ago

Hello,

First of all thanks for your work, I started using this tool since https://github.com/martinroob/ngx-i18nsupport is no longer maintened and it works like a charm.

One feature I am missing is the auto-merging of trans-units with the same text into one trans-unit. While ng extract-i18n manage to generate only one trans-unit for all occurences of the same text in templates, it is not doing the same if one occurence come from the $localize function.

However, manually merging those trans-unit in the translated .xlf files seems to work.

I guess that if no custom ID, description or meaning has been defined for both trans-units with the same source text, it should be auto-merged.

kyubisation commented 2 years ago

I'll take a look at this. However, I cannot promise any timeline right now, as I'm fairly swamped with work.

Raphyyy commented 2 years ago

No problem, thank you for considering it