Change-Id: I3b1828847310234a15e3d5db4826630b76941207mr10.0
parent
04357864fa
commit
f5c1f457c4
@ -1,10 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ "$1" == "report" ]; then
|
||||
OTHER_PARAMS=()
|
||||
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)
|
||||
OTHER_PARAMS=(--add --json-sort-keys --json-indent-characters "4,space" --no-detailed-report -l './src/i18n/en.json')
|
||||
fi
|
||||
|
||||
node ./bin/vue-i18n-extract/vue-i18n-extract.js report -v './src/**/*.?(js|vue)' -l './src/i18n/*.json' \
|
||||
--no-dot-notation --add-value-for-languages en --main-language-to-sync-keys en "${OTHER_PARAMS[@]}"
|
||||
node ./bin/vue-i18n-extract/vue-i18n-extract.js report -v './src/**/*.?(js|vue)' \
|
||||
--no-dot-notation --add-value-for-languages en "${OTHER_PARAMS[@]}"
|
||||
|
Loading…
Reference in new issue