diff --git a/src/core/helpers/i18n/en.json b/src/core/helpers/i18n/en.json index b88904b8853c91d9332e731fa857e43f86d3bfc0..9e9d23a92b81900f5e47a21c9adb20050a2cd01d 100644 --- a/src/core/helpers/i18n/en.json +++ b/src/core/helpers/i18n/en.json @@ -21,6 +21,7 @@ "uni.scanCode.fail": "Recognition failure", "uni.scanCode.flash.on": "Tap to turn light on", "uni.scanCode.flash.off": "Tap to turn light off", + "uni.startSoterAuthentication.authContent": "Fingerprint recognition", "uni.picker.done": "Done", "uni.picker.cancel": "Cancel", "uni.video.danmu": "Danmu", diff --git a/src/core/helpers/i18n/es.json b/src/core/helpers/i18n/es.json index b2a9c113b5341e18308feaf1553cf4a0406bd293..0c106b1eb4a93839a7b1c31a4aaa49829c3f4181 100644 --- a/src/core/helpers/i18n/es.json +++ b/src/core/helpers/i18n/es.json @@ -21,6 +21,7 @@ "uni.scanCode.fail": "Échec de la reconnaissance", "uni.scanCode.flash.on": "Toque para encender la luz", "uni.scanCode.flash.off": "Toque para apagar la luz", + "uni.startSoterAuthentication.authContent": "Reconocimiento de huellas dactilares", "uni.picker.done": "OK", "uni.picker.cancel": "Cancelar", "uni.video.danmu": "Danmu", diff --git a/src/core/helpers/i18n/fr.json b/src/core/helpers/i18n/fr.json index 61e235c2aad4b0d2c3276650f70cdb703655f23c..89ed22f0f0289b42258c9ab6c5e661c2ef2b7f01 100644 --- a/src/core/helpers/i18n/fr.json +++ b/src/core/helpers/i18n/fr.json @@ -21,6 +21,7 @@ "uni.scanCode.fail": "Fallo de reconocimiento", "uni.scanCode.flash.on": "Appuyez pour activer l'éclairage", "uni.scanCode.flash.off": "Appuyez pour désactiver l'éclairage", + "uni.startSoterAuthentication.authContent": "Reconnaissance de l'empreinte digitale", "uni.picker.done": "OK", "uni.picker.cancel": "Annuler", "uni.video.danmu": "Danmu", diff --git a/src/core/helpers/i18n/zh-Hans.json b/src/core/helpers/i18n/zh-Hans.json index 7feae1018d06922aaf8e0846ba797b994fd501bc..16d0010dd50656b5611bd92da1fa3c1a41c2d5a9 100644 --- a/src/core/helpers/i18n/zh-Hans.json +++ b/src/core/helpers/i18n/zh-Hans.json @@ -21,6 +21,7 @@ "uni.scanCode.fail": "识别失败", "uni.scanCode.flash.on": "轻触照亮", "uni.scanCode.flash.off": "轻触关闭", + "uni.startSoterAuthentication.authContent": "指纹识别中...", "uni.picker.done": "完成", "uni.picker.cancel": "取消", "uni.video.danmu": "弹幕", diff --git a/src/core/helpers/i18n/zh-Hant.json b/src/core/helpers/i18n/zh-Hant.json index c29388ea40bf62d645d0508e1b1802eb28e95789..888f74173be584ce2f72687b6a7ed51f3baec7c1 100644 --- a/src/core/helpers/i18n/zh-Hant.json +++ b/src/core/helpers/i18n/zh-Hant.json @@ -21,6 +21,7 @@ "uni.scanCode.fail": "識別失敗", "uni.scanCode.flash.on": "輕觸照亮", "uni.scanCode.flash.off": "輕觸關閉", + "uni.startSoterAuthentication.authContent": "指紋識別中...", "uni.picker.done": "完成", "uni.picker.cancel": "取消", "uni.video.danmu": "彈幕", diff --git a/src/platforms/app-plus/service/api/device/soter-authentication.js b/src/platforms/app-plus/service/api/device/soter-authentication.js index 7ac69ee12a0e76c5fd290d4e2278ca2ecb71d950..d8ea1e95a1181ef8efe895b2e737582296a21ddf 100644 --- a/src/platforms/app-plus/service/api/device/soter-authentication.js +++ b/src/platforms/app-plus/service/api/device/soter-authentication.js @@ -2,6 +2,9 @@ import { invoke, requireNativePlugin } from '../../bridge' +import { + t +} from 'uni-core/helpers/i18n' function checkIsSupportFaceID () { const platform = plus.os.name.toLowerCase() @@ -128,7 +131,7 @@ export function startSoterAuthentication ({ const realAuthMode = enrolledRequestAuthMode[0] if (realAuthMode === 'fingerPrint') { if (plus.os.name.toLowerCase() === 'android') { - plus.nativeUI.showWaiting(authContent || '指纹识别中...').onclose = function () { + plus.nativeUI.showWaiting(authContent || t('uni.startSoterAuthentication.authContent')).onclose = function () { plus.fingerprint.cancel() } }