Merge branch 'develop' of https://github.com/Kareadita/Kavita into feature/reading-profiles

This commit is contained in:
Joseph Milazzo 2025-06-05 05:17:58 -05:00
commit 4744cf44d4
38 changed files with 275 additions and 93 deletions

View file

@ -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;
}