projects
/
oweals
/
peertube.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
14cbb9a
)
Fix unknown video language label
author
Chocobozzz
<me@florianbigard.com>
Thu, 16 Apr 2020 15:04:02 +0000
(17:04 +0200)
committer
Chocobozzz
<me@florianbigard.com>
Thu, 16 Apr 2020 15:04:02 +0000
(17:04 +0200)
client/src/app/menu/menu.component.ts
patch
|
blob
|
history
diff --git
a/client/src/app/menu/menu.component.ts
b/client/src/app/menu/menu.component.ts
index 37702e975d0c5a94a9ba86bca34a6152abbf24b3..75bae090ea5e82bf31d88d103bbb86400c1293dc 100644
(file)
--- 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
}