From 8c360747995e17eb5520e22fc3d7bd4c3d26eeee Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 12 Aug 2020 10:29:44 +0200 Subject: Update build steps for localization --- scripts/build/client.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'scripts/build/client.sh') diff --git a/scripts/build/client.sh b/scripts/build/client.sh index 878de60df..644a0807f 100755 --- a/scripts/build/client.sh +++ b/scripts/build/client.sh @@ -36,6 +36,10 @@ if [ ! -z ${1+x} ] && [ "$1" == "--analyze-bundle" ]; then export ANALYZE_BUNDLE=true fi +if [ ! -z ${1+x} ] && [ "$1" == "--i18n" ]; then + additionalParams="--configuration=i18n" + export ANALYZE_BUNDLE=true +fi defaultLanguage="en-US" npm run ng build -- --output-path "dist/$defaultLanguage/" --deploy-url "/client/$defaultLanguage/" --prod --stats-json $additionalParams @@ -45,7 +49,7 @@ mv "./dist/$defaultLanguage/manifest.webmanifest" "./dist/manifest.webmanifest" post_build_hook # Don't build other languages if --light arg is provided -if [ -z ${1+x} ] || ([ "$1" != "--light" ] && [ "$1" != "--analyze-bundle" ]); then +if [ -z ${1+x} ] || ([ "$1" != "--light" ] && [ "$1" != "--analyze-bundle" ] && [ "$1" != "--i18n" ]); then if [ ! -z ${1+x} ] && [ "$1" == "--light-hu" ]; then languages=(["hu"]="hu-HU") elif [ ! -z ${1+x} ] && [ "$1" == "--light-ar" ]; then -- cgit v1.2.3