mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-27 20:03:25 +01:00
Introduce dialog for long database migrations
This commit is contained in:
committed by
Scott Nonnenberg
parent
30e5051239
commit
750e50812c
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);
|
||||
Reference in New Issue
Block a user