#109078Labels inside <unit> (XLIFF 2.0) are not generated in labels.d.ts
Description
The generate-labels-types.js script currently only parses <trans-unit> elements (XLIFF 1.2). Labels defined inside <unit> elements (XLIFF 2.0) are ignored and therefore missing in the generated labels.d.ts.</unit></trans-unit>
For example, labels from:
typo3/sysext/core/Resources/Private/Language/db/pages.xlf
(e.g. core.db.pages.*) are not available in the generated type definitions.
Expected behavior:
The generator should support both XLIFF 1.2 (<trans-unit>) and XLIFF 2.0 (<unit>) structures and include all labels in labels.d.ts.</unit></trans-unit>
Actual behavior:
Only <trans-unit> entries are processed. <unit> entries are ignored.</unit></trans-unit>
Impact:
Missing type definitions for core labels using XLIFF 2.0 format.
clipboard-202602240829-ngmfc.png