From 81f1cf427320d1724d06064aba02813d9427f852 Mon Sep 17 00:00:00 2001 From: Jesse van Muijden Date: Fri, 9 Oct 2026 09:43:26 -0400 Subject: [PATCH] Explain chip_photo_mismatch refusals facetec-api now refuses a scan whose face does not match the photo on the document's chip (sirosfoundation/facetec-api#77). Without a message of its own it fell through to the generic "identity could not be verified". Translated into Greek, Finnish, Portuguese and Swedish like the other Photo ID messages. --- wwWallet/Localizable.xcstrings | 28 ++++++++++++++++++++++++++++ wwWallet/Models/Errors.swift | 3 +++ 2 files changed, 31 insertions(+) diff --git a/wwWallet/Localizable.xcstrings b/wwWallet/Localizable.xcstrings index 459d24e..9916420 100644 --- a/wwWallet/Localizable.xcstrings +++ b/wwWallet/Localizable.xcstrings @@ -365,6 +365,34 @@ } } }, + "Your face did not match the photo stored in your document's chip, so no credential was issued. Please try again, or use another identity document." : { + "localizations" : { + "el" : { + "stringUnit" : { + "state" : "translated", + "value" : "Το πρόσωπό σας δεν ταίριαξε με τη φωτογραφία που είναι αποθηκευμένη στο τσιπ του εγγράφου σας, επομένως δεν εκδόθηκε πιστοποιητικό. Δοκιμάστε ξανά ή χρησιμοποιήστε άλλο έγγραφο ταυτότητας." + } + }, + "fi" : { + "stringUnit" : { + "state" : "translated", + "value" : "Kasvosi eivät vastanneet asiakirjasi siruun tallennettua kuvaa, joten todistusta ei myönnetty. Yritä uudelleen tai käytä toista henkilöllisyysasiakirjaa." + } + }, + "pt" : { + "stringUnit" : { + "state" : "translated", + "value" : "O seu rosto não correspondeu à fotografia guardada no chip do seu documento, pelo que não foi emitida nenhuma credencial. Tente novamente ou utilize outro documento de identificação." + } + }, + "sv" : { + "stringUnit" : { + "state" : "translated", + "value" : "Ditt ansikte stämde inte med fotot som är lagrat i dokumentets chip, så inget intyg utfärdades. Försök igen eller använd en annan identitetshandling." + } + } + } + }, "Your identity could not be verified, so no credential was issued. Please try again." : { "localizations" : { "el" : { diff --git a/wwWallet/Models/Errors.swift b/wwWallet/Models/Errors.swift index fab8b06..87a474a 100644 --- a/wwWallet/Models/Errors.swift +++ b/wwWallet/Models/Errors.swift @@ -81,6 +81,9 @@ enum Errors: LocalizedError { case "nfc_not_authenticated": return NSLocalizedString("The chip in your document could not be verified, so no credential was issued.", comment: "") + case "chip_photo_mismatch": + return NSLocalizedString("Your face did not match the photo stored in your document's chip, so no credential was issued. Please try again, or use another identity document.", comment: "") + case "chip_untrusted": return NSLocalizedString("The chip in your document could not be confirmed as issued by a recognised authority, so no credential was issued.", comment: "")