1
0
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:
Kyle Spearrin
2018-02-21 08:58:42 -05:00
parent dea275f56d
commit 837465e171
3 changed files with 14 additions and 32 deletions

View File

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