diff options
author | Chocobozzz <me@florianbigard.com> | 2018-05-31 18:12:15 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-06-05 08:43:01 +0200 |
commit | 989e526abf0c0dd7958deb630df009608561bb67 (patch) | |
tree | 5d948bf953a7006b1d6b8c34fb03da1df612a50f /scripts/build/client.sh | |
parent | 1dd59831f80ff4d49f3b60c8c3b2aabfb1512eeb (diff) | |
download | PeerTube-989e526abf0c0dd7958deb630df009608561bb67.tar.gz PeerTube-989e526abf0c0dd7958deb630df009608561bb67.tar.zst PeerTube-989e526abf0c0dd7958deb630df009608561bb67.zip |
Prepare i18n files
Diffstat (limited to 'scripts/build/client.sh')
-rwxr-xr-x | scripts/build/client.sh | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/scripts/build/client.sh b/scripts/build/client.sh index 305af1e5f..61ba4ea99 100755 --- a/scripts/build/client.sh +++ b/scripts/build/client.sh | |||
@@ -6,5 +6,19 @@ cd client | |||
6 | 6 | ||
7 | rm -rf ./dist ./compiled | 7 | rm -rf ./dist ./compiled |
8 | 8 | ||
9 | npm run ng build -- --prod --stats-json | 9 | defaultLanguage="en-US" |
10 | npm run ng build -- --output-path "dist/$defaultLanguage/" --deploy-url "/client/$defaultLanguage/" --prod --stats-json | ||
11 | mv "./dist/$defaultLanguage/assets" "./dist" | ||
12 | |||
13 | languages="fr" | ||
14 | |||
15 | for lang in "$languages"; do | ||
16 | npm run ng build -- --prod --i18n-file "./src/locale/target/messages_$lang.xml" --i18n-format xlf --i18n-locale "$lang" \ | ||
17 | --output-path "dist/$lang/" --deploy-url "/client/$lang/" | ||
18 | |||
19 | # Do no duplicate assets | ||
20 | rm -r "./dist/$lang/assets" | ||
21 | done | ||
22 | |||
10 | NODE_ENV=production npm run webpack -- --config webpack/webpack.video-embed.js --mode production | 23 | NODE_ENV=production npm run webpack -- --config webpack/webpack.video-embed.js --mode production |
24 | |||