Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix(translations): Also check unicode characters for now
Signed-off-by: Joas Schilling <[email protected]>
  • Loading branch information
nickvergessen committed Feb 25, 2025
commit 77f2851540ee369b7f5a4d34b5ccd6963e54efdf
6 changes: 6 additions & 0 deletions translations-app/handleAppTranslations.sh
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,12 @@ if [ $(jq '.translations | keys[]' l10n/en_GB.json | grep '|' | wc -l) -ne 0 ];
EXIT=4
fi

# Confirm English source does not contain the unicode single quote character
if [ $(jq '.translations | keys[]' l10n/en_GB.json | grep -E '(´|’)' | wc -l) -ne 0 ]; then
echo "English source contains unicode single quote character, that should be replaced by normal single quotes" 1>&2
EXIT=4
fi

for file in $(ls l10n/*.json)
do
# Make sure only RTL languages contain such characters
Expand Down