From: Chocobozzz Date: Thu, 16 Apr 2020 15:04:02 +0000 (+0200) Subject: Fix unknown video language label X-Git-Tag: v2.2.0-rc.1~183 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=bb3933ef370c46be6090e4e522c6e3f5b7144f4c;p=oweals%2Fpeertube.git Fix unknown video language label --- 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 { } langForLocale (localeId: string) { + if (localeId === '_unknown') return this.i18n('Unknown') + return this.languages.find(lang => lang.id === localeId).label }