Verified Commit 96bb360d authored by Chocobozzz's avatar Chocobozzz
Browse files

Update build with i18n

parent 9f164722
......@@ -6,14 +6,15 @@ cd client
rm -rf ./dist ./compiled
npm run ng build -- --output-path "dist/$defaultLanguage/" --deploy-url "/client/$defaultLanguage/" --prod --stats-json
mv "./dist/$defaultLanguage/assets" "./dist"
# Supported languages
for lang in "$languages"; do
npm run ng build -- --prod --i18n-file "./src/locale/target/messages_$lang.xml" --i18n-format xlf --i18n-locale "$lang" \
npm run ng build -- --prod --i18n-file "./src/locale/target/angular_$lang.xml" --i18n-format xlf --i18n-locale "$lang" \
--output-path "dist/$lang/" --deploy-url "/client/$lang/"
# Do no duplicate assets
......@@ -22,3 +23,5 @@ done
NODE_ENV=production npm run webpack -- --config webpack/ --mode production
# Copy runtime locales
cp -r "./src/locale/target" "./dist/locale"
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment