mirror of
https://github.com/LemmyNet/joinlemmy-site.git
synced 2024-11-22 12:21:16 +00:00
22 lines
483 B
Bash
Executable file
22 lines
483 B
Bash
Executable file
#!/bin/bash
|
|
set -e
|
|
|
|
git submodule update --remote
|
|
git add lemmy-docs
|
|
git commit -m"Updating docs"
|
|
git add joinlemmy-translations
|
|
git commit -m"Updating translations"
|
|
git push
|
|
|
|
# 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
|
|
|
|
new_tag="$1"
|
|
|
|
git tag $new_tag
|
|
git push origin $new_tag
|