blob: 075aee08cbace2064d7fc060fde5a70e3b363e7a [file] [log] [blame]
avm999639f77d0d2020-12-28 22:16:12 +01001#!/bin/bash
2emptyTranslationFile="{}"
3
4# Download new translations
5if [ ! -f "crowdin.yml" ]; then
6 echo "Copy crowdin.template.yml to crowdin.yml and fill in the API token."
7fi
8
9crowdin download -c crowdin.yml
10
11cd ../../src/_locales
12
13for lang in *; do
14 if [ "x$emptyTranslationFile" = "x$(cat $lang/messages.json)" ]; then
15 echo "$lang has an empty translation. Deleting folder..."
16 rm -rf $lang
17 fi
18done