daniel-sc / ng-extract-i18n-merge

Extract and merge i18n xliff translation files for angular projects.
MIT License
175 stars 18 forks source link

Cannot read properties of undefined (reading 'attr') #40

Closed Khokhlachov closed 2 years ago

Khokhlachov commented 2 years ago

Hi, I faced issue if destination file is not empty. "@angular/core": "14.0.2", "ng-extract-i18n-merge": "^2.0.1",

https://www.screencast.com/t/Wn8dB1QxvVP2

Khokhlachov commented 2 years ago

@daniel-sc found the same issue in your nested library

daniel-sc commented 2 years ago

Hi @Khokhlachov thanks for reporting! could you detail what the contents of your destination file (messages.en.xlf, I suppose) is?

daniel-sc commented 2 years ago

ok - just read the referenced issue - now I think the problem is clear and solvable :)

Khokhlachov commented 2 years ago

ok - just read the referenced issue - now I think the problem is clear and solvable :)

In my case we use third party tool for translators (poeditor.com) so each export will forced to this case... Thanks for quick response !