add some deDE translations

This commit is contained in:
Luk 2025-04-03 16:42:07 +08:00
parent dce1e02085
commit 12c0f116da

View File

@ -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