1
0
mirror of https://github.com/bitwarden/browser.git synced 2025-01-03 18:28:13 +01: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