projects
/
oweals
/
peertube.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bfa3a5d
)
Fix language list build
author
Chocobozzz
<me@florianbigard.com>
Thu, 6 Feb 2020 16:06:11 +0000
(17:06 +0100)
committer
Chocobozzz
<me@florianbigard.com>
Thu, 6 Feb 2020 16:06:11 +0000
(17:06 +0100)
server/initializers/constants.ts
patch
|
blob
|
history
diff --git
a/server/initializers/constants.ts
b/server/initializers/constants.ts
index fb8ae7cd66cdfe1aa18c083bf7fe12a56bb71312..68c84f509c1effdbfc539f9a00b8b218b4d046d6 100644
(file)
--- a/
server/initializers/constants.ts
+++ b/
server/initializers/constants.ts
@@
-866,7
+866,7
@@
function buildLanguages () {
// Only add ISO639-1 languages and some sign languages (ISO639-3)
iso639
.filter(l => {
- return (l.iso6391 !==
null
&& l.type === 'living') ||
+ return (l.iso6391 !==
undefined
&& l.type === 'living') ||
additionalLanguages[l.iso6393] === true
})
.forEach(l => { languages[l.iso6391 || l.iso6393] = l.name })