mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 08:13:42 +00:00
i18n from main proc as well
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { app, BrowserWindow, screen, ipcMain } from 'electron';
|
||||
import { app, BrowserWindow, ipcMain, screen } from 'electron';
|
||||
import * as path from 'path';
|
||||
import * as url from 'url';
|
||||
/*
|
||||
@@ -26,6 +26,10 @@ ipcMain.on('keytar', async (event: any, message: any) => {
|
||||
});
|
||||
*/
|
||||
|
||||
import { I18nService } from './services/i18n.service';
|
||||
const i18nService = new I18nService('en', './_locales/');
|
||||
i18nService.init().then(() => { });
|
||||
|
||||
let win: BrowserWindow;
|
||||
const args = process.argv.slice(1);
|
||||
const watch = args.some((val) => val === '--watch');
|
||||
|
||||
Reference in New Issue
Block a user