TT#127852 i18n - Extraction tool must extract to english language file only

Change-Id: I3b1828847310234a15e3d5db4826630b76941207
mr10.0
Sergii Leonenko 4 years ago
parent 04357864fa
commit f5c1f457c4

@ -1,10 +1,10 @@
#!/bin/bash #!/bin/bash
if [ "$1" == "report" ]; then if [ "$1" == "report" ]; then
OTHER_PARAMS=() OTHER_PARAMS=(--main-language-to-sync-keys en -l './src/i18n/*.json')
else 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 fi
node ./bin/vue-i18n-extract/vue-i18n-extract.js report -v './src/**/*.?(js|vue)' -l './src/i18n/*.json' \ node ./bin/vue-i18n-extract/vue-i18n-extract.js report -v './src/**/*.?(js|vue)' \
--no-dot-notation --add-value-for-languages en --main-language-to-sync-keys en "${OTHER_PARAMS[@]}" --no-dot-notation --add-value-for-languages en "${OTHER_PARAMS[@]}"

Loading…
Cancel
Save