aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-04-16 17:04:02 +0200
committerChocobozzz <me@florianbigard.com>2020-04-16 17:04:02 +0200
commitbb3933ef370c46be6090e4e522c6e3f5b7144f4c (patch)
treed175a197ff8f12b28d6da5ee266da7b67ea7b400
parent14cbb9a65a1b2853c93df429fcc3df9004a5c940 (diff)
downloadPeerTube-bb3933ef370c46be6090e4e522c6e3f5b7144f4c.tar.gz
PeerTube-bb3933ef370c46be6090e4e522c6e3f5b7144f4c.tar.zst
PeerTube-bb3933ef370c46be6090e4e522c6e3f5b7144f4c.zip
Fix unknown video language label
-rw-r--r--client/src/app/menu/menu.component.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/client/src/app/menu/menu.component.ts b/client/src/app/menu/menu.component.ts
index 37702e975..75bae090e 100644
--- a/client/src/app/menu/menu.component.ts
+++ b/client/src/app/menu/menu.component.ts
@@ -166,6 +166,8 @@ export class MenuComponent implements OnInit {
166 } 166 }
167 167
168 langForLocale (localeId: string) { 168 langForLocale (localeId: string) {
169 if (localeId === '_unknown') return this.i18n('Unknown')
170
169 return this.languages.find(lang => lang.id === localeId).label 171 return this.languages.find(lang => lang.id === localeId).label
170 } 172 }
171 173