diff options
author | Chocobozzz <me@florianbigard.com> | 2020-02-06 17:06:11 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2020-02-06 17:06:11 +0100 |
commit | 4fdeef8125417128852a0b69208adcd61bff3caa (patch) | |
tree | 063e509f2b440d21c762e5576b6090158d812043 /server/initializers | |
parent | bfa3a5d0feff8700c74b1393a2de78d8efbd711f (diff) | |
download | PeerTube-4fdeef8125417128852a0b69208adcd61bff3caa.tar.gz PeerTube-4fdeef8125417128852a0b69208adcd61bff3caa.tar.zst PeerTube-4fdeef8125417128852a0b69208adcd61bff3caa.zip |
Fix language list build
Diffstat (limited to 'server/initializers')
-rw-r--r-- | server/initializers/constants.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/initializers/constants.ts b/server/initializers/constants.ts index fb8ae7cd6..68c84f509 100644 --- a/server/initializers/constants.ts +++ b/server/initializers/constants.ts | |||
@@ -866,7 +866,7 @@ function buildLanguages () { | |||
866 | // Only add ISO639-1 languages and some sign languages (ISO639-3) | 866 | // Only add ISO639-1 languages and some sign languages (ISO639-3) |
867 | iso639 | 867 | iso639 |
868 | .filter(l => { | 868 | .filter(l => { |
869 | return (l.iso6391 !== null && l.type === 'living') || | 869 | return (l.iso6391 !== undefined && l.type === 'living') || |
870 | additionalLanguages[l.iso6393] === true | 870 | additionalLanguages[l.iso6393] === true |
871 | }) | 871 | }) |
872 | .forEach(l => { languages[l.iso6391 || l.iso6393] = l.name }) | 872 | .forEach(l => { languages[l.iso6391 || l.iso6393] = l.name }) |