1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-21 18:53:29 +00:00

adding locales extName length check

This commit is contained in:
Joseph Flinn
2021-05-12 15:25:13 -07:00
parent 9434eb7dd4
commit c3690a28bd

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