MOBILE-3320 github: Fix lang check on test action
parent
fd6212ac3f
commit
eff001f6bc
|
@ -24,7 +24,7 @@ jobs:
|
||||||
fi
|
fi
|
||||||
gulp
|
gulp
|
||||||
langcount=`jq -r '. | length' src/assets/lang/en.json`
|
langcount=`jq -r '. | length' src/assets/lang/en.json`
|
||||||
freemiumcount=`jq 'keys' src/assets/lang/en.json | grep "freemium." | wc -l | xargs`
|
freemiumcount=`jq 'keys' src/assets/lang/en.json | grep "freemium\." | wc -l | xargs`
|
||||||
allcount=$(($langcount - $freemiumcount))
|
allcount=$(($langcount - $freemiumcount))
|
||||||
langindexcount=`jq -r '. | length' scripts/langindex.json`
|
langindexcount=`jq -r '. | length' scripts/langindex.json`
|
||||||
if [ $allcount -ne $langindexcount ]; then
|
if [ $allcount -ne $langindexcount ]; then
|
||||||
|
@ -32,7 +32,7 @@ jobs:
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
langkeys=`jq -r 'keys[]' src/assets/lang/en.json`
|
langkeys=`jq -r 'keys[]' src/assets/lang/en.json | grep -v "freemium\."`
|
||||||
langindex=`jq -r 'keys[]' scripts/langindex.json`
|
langindex=`jq -r 'keys[]' scripts/langindex.json`
|
||||||
found=0
|
found=0
|
||||||
for i in $langkeys; do
|
for i in $langkeys; do
|
||||||
|
|
Loading…
Reference in New Issue