You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ngcp-csc-ui/bin/vue-i18n-extract/extract.sh

11 lines
414 B

#!/bin/bash
if [ "$1" == "report" ]; then
OTHER_PARAMS=(--main-language-to-sync-keys en -l './src/i18n/*.json')
else
OTHER_PARAMS=(--add --json-sort-keys --json-indent-characters "4,space" --no-detailed-report -l './src/i18n/*.json')
fi
node ./bin/vue-i18n-extract/vue-i18n-extract.js report -v './src/**/*.?(js|vue)' \
--no-dot-notation --add-value-for-languages en,it,fr,es,de "${OTHER_PARAMS[@]}"