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
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?
The text was updated successfully, but these errors were encountered:
ytsurk
changed the title
Workflow / New/empty translations
Workflow / new/empty translations
Mar 3, 2023
The changes in #50 would solve our use case, but there might still be work left to do (XLFSerializer and XLFDeserializer, which I didn't touch). Also there are no tests in it.
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.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?
The text was updated successfully, but these errors were encountered: