From 7a48e9edc16fedef65caaeccd2a490ad96395708 Mon Sep 17 00:00:00 2001 From: Steven Date: Sat, 6 Mar 2021 21:13:35 +0800 Subject: [PATCH] translate text. --- public/app/index.html | 2 +- public/js/core.js | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/public/app/index.html b/public/app/index.html index 187e67a..a97f255 100644 --- a/public/app/index.html +++ b/public/app/index.html @@ -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'), { diff --git a/public/js/core.js b/public/js/core.js index a2e8c29..ddb6ddd 100644 --- a/public/js/core.js +++ b/public/js/core.js @@ -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