Feature/refactor community language method (#4071)

* Refactoring
This commit is contained in:
Thomas Kaul 2024-12-02 17:32:24 +01:00 committed by GitHub
parent 66cace0c56
commit dbfac54af9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -117,7 +117,7 @@ export class UserAccountSettingsComponent implements OnDestroy, OnInit {
} }
public isCommunityLanguage() { public isCommunityLanguage() {
return !(this.language === 'de' || this.language === 'en'); return !['de', 'en'].includes(this.language);
} }
public onChangeUserSetting(aKey: string, aValue: string) { public onChangeUserSetting(aKey: string, aValue: string) {