From 12c0f116dac191b0fc35da977811cf9cd0850533 Mon Sep 17 00:00:00 2001 From: Luk Date: Thu, 3 Apr 2025 16:42:07 +0800 Subject: [PATCH] add some deDE translations --- tool_uniapp.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tool_uniapp.js b/tool_uniapp.js index 93b8cc1..fde889b 100644 --- a/tool_uniapp.js +++ b/tool_uniapp.js @@ -752,12 +752,12 @@ module.exports = { option.content = (uni.getSystemInfoSync().uniPlatform === 'app' ? '\n' : '') + this.localizeText(option.content)?.substring?.(0, option.contentLength || 300) if (option.content) option.content += '\n\n' - option.cancelText = this.localizeText(option.cancelText || { zhCN: '取消', enUS: 'Cancel', jaJP: 'キャンセル' }) + option.cancelText = this.localizeText(option.cancelText || { zhCN: '取消', enUS: 'Cancel', deDE: 'Abbrechen', jaJP: 'キャンセル' }) option.confirmText = this.localizeText( option.confirmText || (option.showCanel === true || option.showCancel === undefined - ? { zhCN: '确认', enUS: 'Confirm', jaJP: '確認' } - : { zhCN: '好的', enUS: 'OK', jaJP: 'OK' }) + ? { zhCN: '确认', enUS: 'Confirm', deDE: 'Bestätigen', jaJP: '確認' } + : { zhCN: '好的', enUS: 'OK', deDE: 'Ja', jaJP: 'OK' }) ) // #ifdef APP if (option.content) option.content = '\n' + option.content @@ -766,7 +766,7 @@ module.exports = { uni.showModal(option) // uni.showModal 的 showCancel 默认为 true }, - showLoading ({ title = { zhCN: '加载中...', enUS: 'Loading...' }, mask = false } = {}) { + showLoading ({ title = { zhCN: '加载中...', enUS: 'Loading...', deDE: 'Laden...', jaJP: '読み込み中...' }, mask = false } = {}) { title = this.localizeText(title) // #ifndef APP uni.showLoading({ title, mask }) // 原函数的 mask 默认为 false