diff options
author | Chocobozzz <me@florianbigard.com> | 2018-08-16 10:48:35 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-08-16 10:48:35 +0200 |
commit | 3dfa84940273619ae00f11a5f419a5e4876b2f53 (patch) | |
tree | bd31beeb985a9696af90e15ff6b767c4a0da03d9 /scripts/build/client.sh | |
parent | 4f1f6f038389ce9cdf0c77dfccdc63efc6948101 (diff) | |
download | PeerTube-3dfa84940273619ae00f11a5f419a5e4876b2f53.tar.gz PeerTube-3dfa84940273619ae00f11a5f419a5e4876b2f53.tar.zst PeerTube-3dfa84940273619ae00f11a5f419a5e4876b2f53.zip |
Translate subtitle langs in player
Diffstat (limited to 'scripts/build/client.sh')
-rwxr-xr-x | scripts/build/client.sh | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/scripts/build/client.sh b/scripts/build/client.sh index 080454d07..3d1d0234e 100755 --- a/scripts/build/client.sh +++ b/scripts/build/client.sh | |||
@@ -30,8 +30,12 @@ post_build_hook | |||
30 | 30 | ||
31 | # Don't build other languages if --light arg is provided | 31 | # Don't build other languages if --light arg is provided |
32 | if [ -z ${1+x} ] || [ "$1" != "--light" ]; then | 32 | if [ -z ${1+x} ] || [ "$1" != "--light" ]; then |
33 | # Supported languages | 33 | if [ ! -z ${1+x} ] && [ "$1" == "--light-fr" ]; then |
34 | languages=("fr_FR" "eu_ES" "ca_ES" "cs_CZ" "eo" "zh_Hant_TW" "de_DE" "es_ES" "oc") | 34 | languages=("fr_FR") |
35 | else | ||
36 | # Supported languages | ||
37 | languages=("fr_FR" "eu_ES" "ca_ES" "cs_CZ" "eo" "zh_Hant_TW" "de_DE" "es_ES" "oc") | ||
38 | fi | ||
35 | 39 | ||
36 | for lang in "${languages[@]}"; do | 40 | for lang in "${languages[@]}"; do |
37 | # TODO: remove when the project will use runtime translations | 41 | # TODO: remove when the project will use runtime translations |