mirror of https://github.com/Chocobozzz/PeerTube
Fix unknown video language label
parent
14cbb9a65a
commit
bb3933ef37
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue