ci(check-locale): fix check-locale workflow (#2202)
This commit is contained in:
parent
3e59c1f2ae
commit
fa8d0cdf45
2
.github/workflows/check_locale.yml
vendored
2
.github/workflows/check_locale.yml
vendored
@ -36,7 +36,7 @@ jobs:
|
||||
run: |
|
||||
mkdir ./i18n-extract
|
||||
for file in ${{ steps.changed-files.outputs.all_changed_files }}; do
|
||||
npx vue-i18n-extract --vueFiles './src/**/{*.?(js|ts|vue),.i18nignore}' --languageFiles './src/locales/${file##*/}' --output './i18n-extract/${file##*/}'
|
||||
npx vue-i18n-extract --vueFiles './src/**/{*.?(js|ts|vue),.i18nignore}' --languageFiles ./src/locales/${file##*/} --output ./i18n-extract/${file##*/}
|
||||
MISSING=$(cat i18n-extract/${file##*/} | jq '.missingKeys | length')
|
||||
UNUSED=$(cat i18n-extract/${file##*/} | jq '.unusedKeys | length')
|
||||
echo "$file=|${file##*/}|${MISSING}|${UNUSED}|" >> $GITHUB_OUTPUT
|
||||
|
Loading…
x
Reference in New Issue
Block a user