- mkdir "./src/locale/pending_target/" > /dev/null || true
- mv ./src/locale/target/angular_*.xml "./src/locale/pending_target"
+ mkdir "./src/pending_locale" > /dev/null || true
+ mv ./src/locale/angular.*.xlf "./src/pending_locale"
-if [ ! -f client/src/locale/target/angular_fr_FR.xml ]; then
- git checkout -- client/src/locale/target/
- rm -r client/src/locale/pending_target/
+if [ ! -f "client/src/locale/angular.fr-FR.xlf" ]; then
+ git checkout -- client/src/locale/
+ rm -r client/src/pending_locale
npm run ng build -- --output-path "dist/$defaultLanguage/" --deploy-url "/client/$defaultLanguage/" --prod --stats-json
mv "./dist/$defaultLanguage/assets" "./dist"
mv "./dist/$defaultLanguage/manifest.webmanifest" "./dist/manifest.webmanifest"
npm run ng build -- --output-path "dist/$defaultLanguage/" --deploy-url "/client/$defaultLanguage/" --prod --stats-json
mv "./dist/$defaultLanguage/assets" "./dist"
mv "./dist/$defaultLanguage/manifest.webmanifest" "./dist/manifest.webmanifest"
# Don't build other languages if --light arg is provided
if [ -z ${1+x} ] || [ "$1" != "--light" ]; then
if [ ! -z ${1+x} ] && [ "$1" == "--light-fr" ]; then
# Don't build other languages if --light arg is provided
if [ -z ${1+x} ] || [ "$1" != "--light" ]; then
if [ ! -z ${1+x} ] && [ "$1" == "--light-fr" ]; then