4 pushd ../lemmy-translations
10 # look for unused translations
11 for langfile in lemmy-translations/translations/*.json; do
12 lang=$(basename $langfile .json)
13 if ! grep -q "\"./translations/$lang\"" src/shared/i18next.ts; then
14 echo "Unused language $lang"
18 git submodule update --remote
19 git add lemmy-translations
20 git commit -m"Updating translations."