Introduce dialog for long database migrations
This commit is contained in:
parent
30e5051239
commit
750e50812c
8 changed files with 118 additions and 8 deletions
12
loading_preload.js
Normal file
12
loading_preload.js
Normal file
|
@ -0,0 +1,12 @@
|
|||
/* global window */
|
||||
|
||||
const { ipcRenderer } = require('electron');
|
||||
|
||||
const url = require('url');
|
||||
const i18n = require('./js/modules/i18n');
|
||||
|
||||
const config = url.parse(window.location.toString(), true).query;
|
||||
const { locale } = config;
|
||||
const localeMessages = ipcRenderer.sendSync('locale-data');
|
||||
|
||||
window.i18n = i18n.setup(locale, localeMessages);
|
Loading…
Add table
Add a link
Reference in a new issue