diff --git a/jslib b/jslib index 790e50f2b68..6dc13e8579a 160000 --- a/jslib +++ b/jslib @@ -1 +1 @@ -Subproject commit 790e50f2b68b2ed956533f46ded6b393a5dd96b5 +Subproject commit 6dc13e8579a02f2acb6a748624add7b1b2647fb7 diff --git a/src/app/accounts/settings.component.ts b/src/app/accounts/settings.component.ts index 17336d78436..52fc1d24c17 100644 --- a/src/app/accounts/settings.component.ts +++ b/src/app/accounts/settings.component.ts @@ -19,6 +19,8 @@ import { ConstantsService } from 'jslib/services/constants.service'; import { ElectronConstants } from 'jslib/electron/electronConstants'; +import { Utils } from 'jslib/misc/utils'; + @Component({ selector: 'app-settings', templateUrl: 'settings.component.html', @@ -55,10 +57,13 @@ export class SettingsComponent implements OnInit { { name: i18nService.t('never'), value: null }, ]; - this.localeOptions = [{ name: i18nService.t('default'), value: null }]; + const localeOptions: any[] = []; i18nService.supportedTranslationLocales.forEach((locale) => { - this.localeOptions.push({ name: locale, value: locale }); + localeOptions.push({ name: locale, value: locale }); }); + localeOptions.sort(Utils.getSortFunction(i18nService, 'name')); + localeOptions.splice(0, 0, { name: i18nService.t('default'), value: null }); + this.localeOptions = localeOptions; this.themeOptions = [ { name: i18nService.t('default'), value: null },