提交 a7fa5ba5 编写于 作者: Q qiang

feat(App): uni.startSoterAuthentication i18n

上级 e8d7958b
......@@ -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",
......
......@@ -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",
......
......@@ -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",
......
......@@ -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": "弹幕",
......
......@@ -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": "彈幕",
......
......@@ -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()
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册