Skip to content

Commit

Permalink
translate text.
Browse files Browse the repository at this point in the history
  • Loading branch information
iineva committed Mar 6, 2021
1 parent d323d8c commit 7a48e9e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion public/app/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@
window.location.href = 'itms-services://?action=download-manifest&url=' + plist
}
function onClickDelete(id) {
if (!confirm("请按按钮")) {
if (!confirm(IPA.langString('Confirm to Delete?'))) {
return
}
IPA.fetch(IPA.getApiUrl('/api/delete'), {
Expand Down
5 changes: 4 additions & 1 deletion public/js/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,10 @@
},
'Back to home?': {
'zh-cn': '是否返回首页?'
}
},
'Confirm to Delete?': {
'zh-cn': '确认删除?'
},
}
const lang = (localStr[key] || key)[language().toLowerCase()]
return lang ? lang : key
Expand Down

0 comments on commit 7a48e9e

Please sign in to comment.