This commit is contained in:
KANE LAZENI 2026-05-13 11:31:56 +00:00
parent 5cd108a52b
commit d47419a3e7

View File

@ -12,6 +12,136 @@
$lg = $_GET['lg'];
$codeLangue = base64_decode($lg);
$lang = ($codeLangue === 'en_US') ? 'en_US' : 'fr_FR';
$translations = [
'fr_FR' => [
'error' => 'Erreur',
'information' => 'Information',
'missing_language' => 'Paramètre langue absent de la requête !',
'unknown_language' => 'Langue inconnue !',
'missing_entity' => 'Paramètre entité absent de la requête !',
'missing_provider' => 'Paramètre prestataire absent de la requête !',
'missing_insured' => 'ID assuré absent de la requête !',
'missing_request' => 'ID demande absent de la requête !',
'entity_not_found' => 'Entité introuvable !',
'insured_not_found' => 'Assuré introuvable !',
'no_request_found' => 'Aucune demande trouvée !',
'token_used' => 'Token déjà utilisé !',
'request_expired' => 'Demande expirée depuis %s !',
'verification_done' => 'Vérification déjà effectuée !',
'too_many_attempts' => 'Trop de tentatives !',
'secure_identity_verification' => 'Vérification d\'identité sécurisée',
'provider' => 'Prestataire',
'patient' => 'Patient',
'counter' => 'Compteur',
'attempts_on' => 'tentative(s) sur',
'loading_request' => 'Vérification du lien...',
'verification_instructions' => 'Instructions pour la vérification',
'instruction_1' => 'Positionnez votre visage dans l\'ovale',
'instruction_2' => 'Assurez-vous d\'être dans un endroit bien éclairé',
'instruction_3' => 'Regardez directement la caméra',
'instruction_4' => 'Restez immobile lors de la capture',
'instruction_5' => 'Retirez lunettes de soleil, casquette ou masque',
'start_camera' => 'Démarrer la caméra',
'position_face' => 'Positionnez votre visage dans l\'ovale',
'take_photo' => 'Prendre la photo',
'confirm_photo' => 'Confirmez votre photo',
'confirm_verify' => 'Confirmer et vérifier',
'retake_photo' => 'Reprendre la photo',
'verification_processing' => 'Vérification de votre identité en cours...',
'please_wait' => 'Merci de patienter',
'identity_verified' => 'Identité vérifiée !',
'identity_confirmed' => 'Votre identité a été confirmée avec succès.',
'confidence' => 'Confiance',
'access_services' => 'Vous pouvez maintenant accéder à vos prestations.',
'verification_failed' => 'Vérification échouée',
'face_not_match' => 'Votre visage ne correspond pas à notre base de données.',
'contact_support' => 'Veuillez contacter notre service client.',
'remaining_attempts' => 'Tentatives restantes',
'redirection_in' => 'Redirection dans %s secondes...',
'invalid_link' => 'Lien de vérification invalide',
'expired_link' => 'Lien expiré ou invalide',
'server_error' => 'Erreur de connexion au serveur',
'camera_error' => 'Impossible d\'accéder à la caméra. Veuillez autoriser l\'accès.',
],
'en_US' => [
'error' => 'Error',
'information' => 'Information',
'missing_language' => 'Language parameter missing from query!',
'unknown_language' => 'Unknown language!',
'missing_entity' => 'Entity parameter missing from query!',
'missing_provider' => 'Provider parameter missing from query!',
'missing_insured' => 'Insured ID missing from query!',
'missing_request' => 'Request ID missing from query!',
'entity_not_found' => 'Entity not found!',
'insured_not_found' => 'Insured not found!',
'no_request_found' => 'No requests found!',
'token_used' => 'Token already used!',
'request_expired' => 'Request expired since %s!',
'verification_done' => 'Verification already completed!',
'too_many_attempts' => 'Too many attempts!',
'secure_identity_verification' => 'Secure identity verification',
'provider' => 'Provider',
'patient' => 'Patient',
'counter' => 'Counter',
'attempts_on' => 'attempt(s) out of',
'loading_request' => 'Checking verification link...',
'verification_instructions' => 'Verification instructions',
'instruction_1' => 'Place your face inside the oval',
'instruction_2' => 'Ensure you are in a well-lit place',
'instruction_3' => 'Look directly at the camera',
'instruction_4' => 'Remain still during capture',
'instruction_5' => 'Remove sunglasses, cap, or mask',
'start_camera' => 'Start camera',
'position_face' => 'Position your face inside the oval',
'take_photo' => 'Take photo',
'confirm_photo' => 'Confirm your photo',
'confirm_verify' => 'Confirm and verify',
'retake_photo' => 'Retake photo',
'verification_processing' => 'Identity verification in progress...',
'please_wait' => 'Please wait',
'identity_verified' => 'Identity verified!',
'identity_confirmed' => 'Your identity has been successfully confirmed.',
'confidence' => 'Confidence',
'access_services' => 'You may now access your services.',
'verification_failed' => 'Verification failed',
'face_not_match' => 'Your face does not match our database.',
'contact_support' => 'Please contact customer support.',
'remaining_attempts' => 'Remaining attempts',
'redirection_in' => 'Redirecting in %s seconds...',
'invalid_link' => 'Invalid verification link',
'expired_link' => 'Expired or invalid link',
'server_error' => 'Server connection error',
'camera_error' => 'Unable to access the camera. Please allow access.',
]
];
$tab_code_langue = ["fr_FR", "en_US"];
if (!in_array($codeLangue, $tab_code_langue)) {
@ -620,8 +750,6 @@
},
error: function(xhr, status, err) {
showError('Erreur de connexion au serveur');
// console.log(xhr.responseText);
// showError(xhr.responseText);
}
});
}
@ -720,8 +848,6 @@
},
error: function(xhr, status, error) {
showError('Erreur lors de la vérification: ' + error);
// console.log(error);
// console.log(xhr.responseText);
}
});
}
@ -784,4 +910,4 @@
};
</script>
</body>
</html>
</html>