From bb3933ef370c46be6090e4e522c6e3f5b7144f4c Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 16 Apr 2020 17:04:02 +0200 Subject: [PATCH] Fix unknown video language label --- client/src/app/menu/menu.component.ts | 2 ++ 1 file changed, 2 insertions(+) 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 } -- 2.25.1