adding locales extName length check

This commit is contained in:
Joseph Flinn 2021-05-12 15:25:13 -07:00
parent 9434eb7dd4
commit c3690a28bd
1 changed files with 13 additions and 0 deletions

View File

@ -62,6 +62,19 @@ jobs:
node --version
npm --version
- name: Testing locale lengths
run: |
for file in $(ls src/_locales/);
do
echo "Testing locales extName lengths"
echo "All must be 40 or less for Safari"
echo "================================="
test_string=$(cat src/_locales/$file/messages.json | jq .extName.message | tr -d '"')
if [[ ${#test_string} -gt 40 ]]; then
echo $file: ${#test_string}
fi
done
- name: npm setup & test
run: |
npm install