Merge branch 'develop' of https://github.com/Kareadita/Kavita into feature/reading-profiles
This commit is contained in:
commit
4744cf44d4
38 changed files with 275 additions and 93 deletions
|
|
@ -90,7 +90,12 @@ export class ManageUserPreferencesComponent implements OnInit {
|
|||
get Locale() {
|
||||
if (!this.settingsForm.get('locale')) return 'English';
|
||||
|
||||
return (this.locales || []).filter(l => l.fileName === this.settingsForm.get('locale')!.value)[0].renderName;
|
||||
const locale = (this.locales || []).find(l => l.fileName === this.settingsForm.get('locale')!.value);
|
||||
if (!locale) {
|
||||
return 'English';
|
||||
}
|
||||
|
||||
return locale.renderName;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue