Fix unknown video language label
authorChocobozzz <me@florianbigard.com>
Thu, 16 Apr 2020 15:04:02 +0000 (17:04 +0200)
committerChocobozzz <me@florianbigard.com>
Thu, 16 Apr 2020 15:04:02 +0000 (17:04 +0200)
client/src/app/menu/menu.component.ts

index 37702e975d0c5a94a9ba86bca34a6152abbf24b3..75bae090ea5e82bf31d88d103bbb86400c1293dc 100644 (file)
@@ -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
   }