mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 08:13:42 +00:00
Add language selection in settings (#75)
* Add language selection in settings * Removed comment * Mapping Locale-Language saved as key-value instead of list of objects * Remove comment * Revert supported locales array
This commit is contained in:
committed by
Kyle Spearrin
parent
4d015568f5
commit
6bf0821ca6
20
src/main.ts
20
src/main.ts
@@ -62,15 +62,17 @@ export class Main {
|
||||
}
|
||||
|
||||
bootstrap() {
|
||||
this.windowMain.init().then(async () => {
|
||||
await this.i18nService.init(app.getLocale());
|
||||
this.messagingMain.init();
|
||||
this.menuMain.init();
|
||||
this.powerMonitorMain.init();
|
||||
await this.updaterMain.init();
|
||||
}, (e: any) => {
|
||||
// tslint:disable-next-line
|
||||
console.error(e);
|
||||
this.storageService.get<string>('locale').then(async (locale) => {
|
||||
this.windowMain.init().then(async () => {
|
||||
await this.i18nService.init(locale !== null ? locale : app.getLocale());
|
||||
this.messagingMain.init();
|
||||
this.menuMain.init();
|
||||
this.powerMonitorMain.init();
|
||||
await this.updaterMain.init();
|
||||
}, (e: any) => {
|
||||
// tslint:disable-next-line
|
||||
console.error(e);
|
||||
});
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user