🎧 Your Personal Streaming Service
Go airsonicmadsonicmedia-servermusicmusic-servernavidromeopensubsonicraspberry-piself-hostedstreamerstreaming-apistreaming-audiosubsonicsubsonic-server
Ignore formatting diffs when checking for POEditor changes
Deluan8720bd154fb9
diff --git a/update-translations.sh b/update-translations.shindex 35d599559..97f7a6754 100755--- a/update-translations.sh+++ b/update-translations.sh@@ -3,6 +3,7 @@set -edownload_lang() {+ filename=resources/i18n/"$1".jsonurl=$(curl -s -X POST https://poeditor.com/api/ \-d api_token="${POEDITOR_APIKEY}" \-d action="export" \@@ -13,7 +14,12 @@ download_lang() {echo "Failed to export $1"return 1fi- curl -sSL "$url" > resources/i18n/"$1".json+ curl -sSL "$url" > poeditor.json+ if [ "$(jq -c . < $filename)" != "$(jq -c . < poeditor.json)" ]; then+ mv poeditor.json "$filename"+ else+ rm poeditor.json+ fi}for file in resources/i18n/*.json; do