mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-23 11:56:00 +01:00
sort languages
This commit is contained in:
parent
ad471ffde1
commit
e6ba1ad934
2
jslib
2
jslib
@ -1 +1 @@
|
||||
Subproject commit 790e50f2b68b2ed956533f46ded6b393a5dd96b5
|
||||
Subproject commit 6dc13e8579a02f2acb6a748624add7b1b2647fb7
|
@ -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 },
|
||||
|
Loading…
Reference in New Issue
Block a user