-
Notifications
You must be signed in to change notification settings - Fork 2
Description
When I start a new project, and use the extracted file (with ng extract-i18n) as template for my locales (I added also the trgLang), t9n wont start until I deleted all <units> or added them empty <target> nodes.
Failed to serialize target files
[Nest] 34132 - 03.03.2023, 14:37:47 ERROR [ExceptionHandler] Cannot read properties of undefined (reading 'textContent')
TypeError: Cannot read properties of undefined (reading 'textContent')
at Xlf2Deserializer._convertToString (C:\ws\zvs-vertragsmanager-web\node_modules\angular-t9n\server\index.js:945:19)
at Xlf2Deserializer._extractTarget (C:\ws\zvs-vertragsmanager-web\node_modules\angular-t9n\server\index.js:1124:21)
at Xlf2Deserializer._deserializeTargetUnit (C:\ws\zvs-vertragsmanager-web\node_modules\angular-t9n\server\index.js:1101:26)
at C:\ws\zvs-vertragsmanager-web\node_modules\angular-t9n\server\index.js:1084:30
You also can reproduce this, if you delete one <target> node in a messages.xx_YY.xlf file.
Further - as soon as I start t9n, all my translations will get empty <target> nodes, which seems quite bad to me.
As long as I do not provide translations, running my app in the non source locale will display emptiness...
Is this the desired behavior? How can I mark translations as no availabe?