Skip to content

Commit

Permalink
feat(i18n): Add native camera hint for QR code scanning
Browse files Browse the repository at this point in the history
  • Loading branch information
luclu7 committed Mar 4, 2025
1 parent 0bdaed6 commit 261437f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
3 changes: 3 additions & 0 deletions web/src/components/scan/QRCodeDrawer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ export const QRCodeDrawer = () => {
}}
onCameraAccessFail={() => console.log("oh no, no camera :(")}
/>
<p className="px-4 py-2 text-center text-xs text-gray-600">
{t("scanQRDrawer.nativeCameraHint")}
</p>
<DrawerFooter>
<DrawerClose>{t("close")}</DrawerClose>
</DrawerFooter>
Expand Down
3 changes: 2 additions & 1 deletion web/src/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,8 @@
"scanQRCode": "Scan a QR code",
"scanQRDrawer": {
"description": "Add a stamp in your collection by scanning the QR code showed to you by the artist!",
"title": "Scan a QR Code"
"title": "Scan a QR Code",
"nativeCameraHint": "If you're experiencing issues, please try using your device's Camera app to scan the QR code."
},
"scanThisQR": "Scan this QR code to get the stamp!",
"settings": {
Expand Down
3 changes: 2 additions & 1 deletion web/src/i18n/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,8 @@
"scanQRCode": "Scanner un QR code",
"scanQRDrawer": {
"description": "Ajoutez un tampon dans votre collection en scannant le code fourni par l'artiste !",
"title": "Scannez un QR Code"
"title": "Scannez un QR Code",
"nativeCameraHint": "En cas de difficultés, vous pouvez utiliser l'application Caméra de votre appareil pour tenter de scanner le QR code."
},
"scanThisQR": "Scannez ce QR pour récupérer le tampon !",
"settings": {
Expand Down

0 comments on commit 261437f

Please sign in to comment.