1
0
mirror of https://github.com/bitwarden/desktop synced 2025-12-21 02:33:15 +00:00

os-locale in src package

This commit is contained in:
Kyle Spearrin
2018-02-22 15:54:09 -05:00
parent 2343840433
commit 839f7e4a2e
3 changed files with 143 additions and 2 deletions

View File

@@ -11,6 +11,8 @@ import { PowerMonitorMain } from './main/powerMonitor.main';
import { UpdaterMain } from './main/updater.main';
import { WindowMain } from './main/window.main';
const osLocale = require('os-locale');
export class Main {
i18nService: I18nService;
storageService: DesktopStorageService;
@@ -57,7 +59,7 @@ export class Main {
bootstrap() {
this.windowMain.init().then(async () => {
const locale = await require('os-locale')();
const locale = await osLocale();
await this.i18nService.init(locale.replace('_', '-'));
this.messagingMain.init();
this.menuMain.init();