daniel-sc / xliff-simple-merge

Merges XLIFF 1.2/2.0 files. Usable for Angular i18n automation.
MIT License
16 stars 7 forks source link

TypeError: Cannot read properties of undefined (reading 'attr') #5

Closed atix9000 closed 2 years ago

atix9000 commented 2 years ago

xliff-simple-merge --input-file messages.xlf --destination-file messages.de.xlf -output-file output.xlf ...npm\node_modules\xliff-simple-merge\dist\src\merge.js:54 destUnit.childNamed('target').attr.state = 'new'; ^

TypeError: Cannot read properties of undefined (reading 'attr')

daniel-sc commented 2 years ago

Hi @atix9000 Would it be possible to share input and target files? (At least anonymized)

atix9000 commented 2 years ago

@daniel-sc in destination-file there was no tag, so i added empty tag and it is working. It would be good to add auto create tag option.

Thanks for the library helped me a lot :)

filol commented 2 years ago

Hello @daniel-sc i got the same bug on my side :)