Files
ArchiSteamFarm/tools/crowdin-cli/archi_sync.sh
2018-10-24 05:54:31 +02:00

53 lines
921 B
Bash
Executable File

#!/bin/bash
set -eu
cd "$(dirname "$(readlink -f "$0")")"
cd ../..
cd ASF-ui
git reset --hard
git clean -fd
git pull
cd ..
cd ASF-WebConfigGenerator
git reset --hard
git clean -fd
git pull
cd ..
cd wiki
git reset --hard
git clean -fd
git pull
cd ..
crowdin -b master --identity tools/crowdin-cli/crowdin_identity.yml upload sources
crowdin -b master --identity tools/crowdin-cli/crowdin_identity.yml download
git reset
cd ASF-ui
git pull
git add -A "src/i18n/locale/*.json"
git commit -m "Translations update"
cd ..
cd ASF-WebConfigGenerator
git pull
git add -A "src/locale/*.json"
git commit -m "Translations update"
cd ..
cd wiki
git pull
git add -A "locale/*.md"
git commit -m "Translations update"
cd ..
git add -A "ArchiSteamFarm/Localization/*.resx" "ASF-ui" "ASF-WebConfigGenerator" "wiki"
git commit -m "Translations update"
git push --recurse-submodules=on-demand
read -p "Press enter to continue..."