1
0
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:
Costantini Matteo
2018-04-25 05:25:31 +02:00
committed by Kyle Spearrin
parent 4d015568f5
commit 6bf0821ca6
7 changed files with 43 additions and 12 deletions

View File

@@ -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);
});
});
}
}