mirror of
https://github.com/bitwarden/browser
synced 2025-12-15 15:53:27 +00:00
load OS locales in main process
This commit is contained in:
@@ -57,7 +57,8 @@ export class Main {
|
||||
|
||||
bootstrap() {
|
||||
this.windowMain.init().then(async () => {
|
||||
await this.i18nService.init();
|
||||
const locale = await require('os-locale')();
|
||||
await this.i18nService.init(locale.replace('_', '-'));
|
||||
this.messagingMain.init();
|
||||
this.menuMain.init();
|
||||
this.powerMonitorMain.init();
|
||||
|
||||
Reference in New Issue
Block a user