mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-24 07:16:19 +00:00
22 lines
471 B
Bash
Executable file
22 lines
471 B
Bash
Executable file
#!/bin/bash
|
|
set -e
|
|
|
|
pushd ../lemmy-translations
|
|
git fetch weblate
|
|
git merge weblate/main
|
|
git push
|
|
popd
|
|
|
|
# look for unused translations
|
|
for langfile in lemmy-translations/translations/*.json; do
|
|
lang=$(basename $langfile .json)
|
|
if ! grep -q "\"./translations/$lang\"" src/shared/services/I18NextService.ts; then
|
|
echo "Unused language $lang"
|
|
fi
|
|
done
|
|
|
|
git submodule update --remote
|
|
git add lemmy-translations
|
|
git commit -m"Updating translations."
|
|
git push
|