2019-08-26 23:31:17 +02:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8" />
|
|
|
|
<title>LBRY</title>
|
|
|
|
</head>
|
|
|
|
|
|
|
|
<body>
|
|
|
|
<div id="app"></div>
|
2019-09-04 23:43:37 +02:00
|
|
|
<script>
|
2019-10-17 17:20:06 +02:00
|
|
|
function loadUi() {
|
|
|
|
const script = document.createElement('script');
|
|
|
|
script.setAttribute('src', 'ui.js');
|
|
|
|
document.body.appendChild(script);
|
|
|
|
}
|
|
|
|
|
|
|
|
require('electron').ipcRenderer.on('language-set', (event, messages, language, error) => {
|
|
|
|
window.i18n_messages = messages;
|
|
|
|
window.localStorage.setItem('language', language);
|
|
|
|
if(error) {
|
|
|
|
console.error('Can\'t set language to ' + language);
|
|
|
|
console.error(error);
|
|
|
|
}
|
|
|
|
loadUi();
|
|
|
|
});
|
2019-09-04 23:43:37 +02:00
|
|
|
</script>
|
2019-08-26 23:31:17 +02:00
|
|
|
</body>
|
|
|
|
</html>
|