Commit df7ad286 authored by antoor's avatar antoor

Multi-language support

多语言支持
parent ea00b9d2
......@@ -203,8 +203,8 @@ ipcRenderer
* @return {[type]} [description]
*/
.on('notification-update', (e, opt) => {
let n = new Notification('发现更新', {
body: '新版本:' + opt['ver']
let n = new Notification(antSword['language']['update']['title'], {
body: antSword['language']['update']['body'](opt['ver'])
});
n.addEventListener('click', () => {
antSword.shell.openExternal(opt['url']);
......
......@@ -508,5 +508,9 @@ module.exports = {
},
plugin: {
error: (err) => antSword.noxss(`Load Plugin Store failed!\n${err}`)
},
update: {
title: 'Found updates',
body: (ver) => `New version: ${ver}`
}
}
......@@ -476,5 +476,9 @@ module.exports = {
},
plugin: {
error: (err) => antSword.noxss(`加载插件中心失败!\n${err}`)
},
update: {
title: '发现更新',
body: (ver) => `新的版本:${ver}`
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment