locl
locl copied to clipboard
Suggestion: Convert multiple files without aggregation
Would it be possible to extend the locl convert
so that multiple files can be converted without aggregating them into a single file?
For example, if the provided --outputPath
is a directory:
npx locl convert -s=src/locale/messages.*.xlf -f=json -o=src/assets/i18n/
each source file would be converted (individually):
Converted file "[...]\src\locale\messages.en.xlf" to "[...]\src\assets\i18n\messages.en.json"
Converted file "[...]\src\locale\messages.fr.xlf" to "[...]\src\assets\i18n\messages.fr.json"
Converted file "[...]\src\locale\messages.it.xlf" to "[...]\src\assets\i18n\messages.it.json"
Converted file "[...]\src\locale\messages.de.xlf" to "[...]\src\assets\i18n\messages.de.json"
Converted file "[...]\src\locale\messages.es.xlf" to "[...]\src\assets\i18n\messages.es.json"
...