YAML to XLIFF CLI
The extension provides the Symfony command klaro:. It converts
top-level Klaro translation YAML files into TYPO3-compatible XLIFF 1.2 files.
After conversion, reference the generated or adjusted file as a
custom XLIFF file when it should override
project-specific labels.
Usage
vendor/bin/typo3 klaro:yaml-to-xliff src/translations Resources/Private/Language --base=en
With DDEV:
ddev typo3 klaro:yaml-to-xliff src/translations Resources/Private/Language --base=en
Arguments and options
input
-
- type
-
directory
Directory containing
*.oryml *.files. File names are interpreted as locale identifiers, for exampleyaml en.oryml de..yaml
output
-
- type
-
directory
Target directory for generated XLIFF files. The command creates the directory if it does not exist.
--base
-
- type
-
string
Base language. If the base language is
en, the command writeslocallang.for the base language andxlf <iso>.for target languages.locallang. xlf
--product-name
-
- type
-
string
- Default
-
klaro_consent_ manager
Optional
product-attribute for the generated XLIFFname <file>tag.
--original
-
- type
-
string
- Default
-
EXT:klaro_ consent_ manager/ Resources/ Private/ Language/ locallang. xlf
Optional
originalattribute for the generated XLIFF<file>tag.