Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Framasoft
PeerTube
PeerTube
Commits
96bb360d
Verified
Commit
96bb360d
authored
Jun 06, 2018
by
Chocobozzz
Browse files
Update build with i18n
parent
9f164722
Changes
1
Hide whitespace changes
Inline
Side-by-side
scripts/build/client.sh
View file @
96bb360d
...
...
@@ -6,14 +6,15 @@ cd client
rm
-rf
./dist ./compiled
defaultLanguage
=
"en
-
US"
defaultLanguage
=
"en
_
US"
npm run ng build
--
--output-path
"dist/
$defaultLanguage
/"
--deploy-url
"/client/
$defaultLanguage
/"
--prod
--stats-json
mv
"./dist/
$defaultLanguage
/assets"
"./dist"
languages
=
"fr"
# Supported languages
languages
=
"fr_FR"
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/webpack.video-embed.js
--mode
production
# Copy runtime locales
cp
-r
"./src/locale/target"
"./dist/locale"
\ No newline at end of file
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment