1
0
mirror of https://github.com/bpatrik/pigallery2.git synced 2025-01-26 05:27:35 +02:00

ordering languages alphabetically #438

This commit is contained in:
Patrik J. Braun 2022-03-04 17:45:51 +01:00
parent c32d625308
commit 41b94f11e9

View File

@ -15,7 +15,7 @@ export class LanguageComponent {
current: string = null;
constructor(private cookieService: CookieService) {
this.languages = Config.Client.languages;
this.languages = Config.Client.languages.sort();
if (this.cookieService.get(CookieNames.lang) != null) {
this.current = this.cookieService.get(CookieNames.lang);
}