Introduce dialog for long database migrations

This commit is contained in:
Ken Powers
2020-03-25 19:45:37 -04:00
committed by Scott Nonnenberg
parent 30e5051239
commit 750e50812c
8 changed files with 118 additions and 8 deletions

12
loading_preload.js Normal file
View 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);