]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - scripts/build/client.sh
Remove unused i18n build
[github/Chocobozzz/PeerTube.git] / scripts / build / client.sh
index 9cd8d8cce92229aa1c46c795472c76fb74980527..3bca9105a495ecf5a27f0c352f79dd7deb285f33 100755 (executable)
@@ -41,7 +41,7 @@ cd client
 rm -rf ./dist ./compiled
 
 # Don't build other languages if --light arg is provided
-if [ -z ${1+x} ] || ([ "$1" != "--light" ] && [ "$1" != "--analyze-bundle" ] && [ "$1" != "--i18n" ]); then
+if [ -z ${1+x} ] || ([ "$1" != "--light" ] && [ "$1" != "--analyze-bundle" ]); then
     npm run ng build -- --prod --output-path "dist/build"
 
     for key in "${!languages[@]}"; do
@@ -66,11 +66,6 @@ else
         export ANALYZE_BUNDLE=true
     fi
 
-    if [ ! -z ${1+x} ] && [ "$1" == "--i18n" ]; then
-        additionalParams="--configuration=i18n"
-        export ANALYZE_BUNDLE=true
-    fi
-
     npm run ng build -- --localize=false --output-path "dist/$defaultLanguage/" --deploy-url "/client/$defaultLanguage/" --prod --stats-json $additionalParams
 fi