2021-02-04 19:55:58 +00:00
|
|
|
#!/bin/bash
|
2021-04-21 12:02:41 +00:00
|
|
|
set -e
|
2021-03-15 17:18:03 +00:00
|
|
|
|
2021-02-08 04:54:43 +00:00
|
|
|
git submodule update --remote
|
|
|
|
git add lemmy-docs
|
|
|
|
git commit -m"Updating docs"
|
2021-03-31 14:02:57 +00:00
|
|
|
git add joinlemmy-translations
|
|
|
|
git commit -m"Updating translations"
|
2021-02-08 04:54:43 +00:00
|
|
|
git push
|
2021-03-15 17:18:03 +00:00
|
|
|
|
2021-04-21 12:02:41 +00:00
|
|
|
# look for unused translations
|
|
|
|
for langfile in joinlemmy-translations/translations/*.json; do
|
|
|
|
lang=$(basename $langfile .json)
|
|
|
|
if ! grep -q "\"./translations/$lang\"" src/shared/i18next.ts; then
|
|
|
|
echo "Unused language $lang"
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
2021-03-15 17:18:03 +00:00
|
|
|
new_tag="$1"
|
|
|
|
|
|
|
|
git tag $new_tag
|
|
|
|
git push origin $new_tag
|