MOBILE-3320 github: Check some strings are not yet translatable

main
Pau Ferrer Ocaña 2021-05-20 12:21:56 +02:00
parent 660866b80d
commit cd074b7e0f
1 changed files with 6 additions and 4 deletions

View File

@ -23,10 +23,12 @@ jobs:
exit 1
fi
gulp
langlength=`jq -r '. | length' src/assets/lang/en.json`
langindexlength=`jq -r '. | length' scripts/langindex.json`
if [ $langlength -ne $langindexlength ]; then
echo "Lang file has $langlength while langindex $langindexlength"
langcount=`jq -r '. | length' src/assets/lang/en.json`
freemiumcount=`jq 'keys' src/assets/lang/en.json | grep "freemium." | wc -l | xargs`
allcount=$(($langcount - $freemiumcount))
langindexcount=`jq -r '. | length' scripts/langindex.json`
if [ $allcount -ne $langindexcount ]; then
echo "Lang file has $langcount ($freemiumcount) while langindex $langindexcount"
exit 1
fi