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
Got a TypeError after converting xliff12 to json with empty groups
To Reproduce
Сonvert xliff12 with empty group to json
Got TypeError:
TypeError: Cannot read property 'filter' of undefined
at /.../node_modules/xliff/cjs/xliff12ToJs.js:67:35
at Array.reduce (<anonymous>)
at createUnits (/...node_modules/xliff/cjs/xliff12ToJs.js:65:24)
at /.../node_modules/xliff/cjs/xliff12ToJs.js:57:28
at Array.reduce (<anonymous>)
at xliff12ToJsClb (/.../node_modules/xliff/cjs/xliff12ToJs.js:48:41)
at /.../node_modules/xliff/cjs/xliff12ToJs.js:121:14
at new Promise (<anonymous>)
at Object.xliff12ToJs (/.../node_modules/xliff/cjs/xliff12ToJs.js:120:12)
at readXlf (/.../src/locale/scripts/failure_example.js:15:24)
🐛 Bug Report
Got a TypeError after converting xliff12 to json with empty groups
To Reproduce
Artifact:
Code to reproduce:
Expected behavior
Get correct error or ignore empty groups
Your Environment
The text was updated successfully, but these errors were encountered: