Gym check-in in the browser/PWA too

The feature was gated behind MOBILE because scanning went through the native ML Kit
plugin. iPhone users only have the PWA, so: route, Home card and Settings switch on
every platform; photo import and a live camera sheet decode in the browser with
BarcodeDetector where it exists and jsQR (Apache-2.0, lazy chunk) otherwise. The app
build keeps ML Kit. Round-trip test lean-qr -> jsQR.
This commit is contained in:
Duarte Santos committed 2026-09-04 15:15:31 +02:00
1 parent 0af9f55528
commit aa487d29f4
30 files changed
+315 -47

No files matched your search

+3
View File
@@ -1126,4 +1126,7 @@ export default {
'Could not start the scanner': 'Scanner konnte nicht gestartet werden',
'Gym check-in': 'Gym-Check-in',
'Show a card on Home with your membership QR codes.': 'Zeigt auf Start eine Karte mit deinen Mitglieds-QR-Codes.',
'Point the camera at the QR code': 'Richte die Kamera auf den QR-Code',
'Camera is not available here — import a photo or type the code instead.': 'Die Kamera ist hier nicht verfügbar — importiere ein Foto oder tippe den Code ein.',
'Camera access was denied — allow it in your browser and try again.': 'Kamerazugriff wurde verweigert — erlaube ihn im Browser und versuche es erneut.',
}
+3
View File
@@ -1107,4 +1107,7 @@ export default {
'Could not start the scanner': 'No se pudo iniciar el escáner',
'Gym check-in': 'Check-in del gimnasio',
'Show a card on Home with your membership QR codes.': 'Muestra en Inicio una tarjeta con tus códigos QR de socio.',
'Point the camera at the QR code': 'Apunta la cámara al código QR',
'Camera is not available here — import a photo or type the code instead.': 'La cámara no está disponible aquí — importa una foto o escribe el código.',
'Camera access was denied — allow it in your browser and try again.': 'Se denegó el acceso a la cámara — permítelo en el navegador e inténtalo de nuevo.',
}
+3
View File
@@ -1107,4 +1107,7 @@ export default {
'Could not start the scanner': 'Impossible de démarrer le scanner',
'Gym check-in': 'Enregistrement à la salle',
'Show a card on Home with your membership QR codes.': 'Affiche sur l’Accueil une carte avec vos codes QR d’abonné.',
'Point the camera at the QR code': 'Pointez la caméra vers le code QR',
'Camera is not available here — import a photo or type the code instead.': 'La caméra n’est pas disponible ici — importez une photo ou saisissez le code.',
'Camera access was denied — allow it in your browser and try again.': 'L’accès à la caméra a été refusé — autorisez-le dans le navigateur et réessayez.',
}
+3
View File
@@ -1107,4 +1107,7 @@ export default {
'Could not start the scanner': 'स्कैनर शुरू नहीं हो सका',
'Gym check-in': 'जिम चेक-इन',
'Show a card on Home with your membership QR codes.': 'होम पर आपके सदस्यता QR कोड वाला कार्ड दिखाता है।',
'Point the camera at the QR code': 'कैमरे को QR कोड पर रखें',
'Camera is not available here — import a photo or type the code instead.': 'कैमरा यहाँ उपलब्ध नहीं है — फ़ोटो इंपोर्ट करें या कोड टाइप करें।',
'Camera access was denied — allow it in your browser and try again.': 'कैमरे की अनुमति नहीं मिली — ब्राउज़र में अनुमति दें और फिर कोशिश करें।',
}
+3
View File
@@ -1110,4 +1110,7 @@ export default {
'Message the Coach…': 'Üzenet az Edzőnek…',
'Gym check-in': 'Bejelentkezés a teremben',
'Show a card on Home with your membership QR codes.': 'A Kezdőlapon egy kártyát mutat a tagsági QR-kódjaiddal.',
'Point the camera at the QR code': 'Irányítsd a kamerát a QR-kódra',
'Camera is not available here — import a photo or type the code instead.': 'A kamera itt nem elérhető — importálj egy fotót vagy írd be a kódot.',
'Camera access was denied — allow it in your browser and try again.': 'A kamera-hozzáférés elutasítva — engedélyezd a böngészőben, és próbáld újra.',
}
+3
View File
@@ -1107,4 +1107,7 @@ export default {
'Could not start the scanner': 'Impossibile avviare lo scanner',
'Gym check-in': 'Check-in in palestra',
'Show a card on Home with your membership QR codes.': 'Mostra nella Home una scheda con i tuoi codici QR di iscrizione.',
'Point the camera at the QR code': 'Inquadra il codice QR con la fotocamera',
'Camera is not available here — import a photo or type the code instead.': 'La fotocamera non è disponibile qui — importa una foto o digita il codice.',
'Camera access was denied — allow it in your browser and try again.': 'Accesso alla fotocamera negato — consentilo nel browser e riprova.',
}
+3
View File
@@ -1107,4 +1107,7 @@ export default {
'Could not start the scanner': '스캐너를 시작할 수 없습니다',
'Gym check-in': '헬스장 체크인',
'Show a card on Home with your membership QR codes.': '홈 화면에 회원 QR 코드 카드를 표시합니다.',
'Point the camera at the QR code': '카메라를 QR 코드에 맞추세요',
'Camera is not available here — import a photo or type the code instead.': '여기서는 카메라를 사용할 수 없습니다 — 사진을 가져오거나 코드를 입력하세요.',
'Camera access was denied — allow it in your browser and try again.': '카메라 접근이 거부되었습니다 — 브라우저에서 허용한 뒤 다시 시도하세요.',
}
+3
View File
@@ -1107,4 +1107,7 @@ export default {
'Could not start the scanner': 'Nie udało się uruchomić skanera',
'Gym check-in': 'Zameldowanie na siłowni',
'Show a card on Home with your membership QR codes.': 'Pokazuje na Starcie kartę z Twoimi kodami QR członkowskimi.',
'Point the camera at the QR code': 'Skieruj aparat na kod QR',
'Camera is not available here — import a photo or type the code instead.': 'Aparat nie jest tu dostępny — zaimportuj zdjęcie lub wpisz kod.',
'Camera access was denied — allow it in your browser and try again.': 'Odmówiono dostępu do aparatu — zezwól w przeglądarce i spróbuj ponownie.',
}
+3
View File
@@ -624,6 +624,9 @@ export const PT_BR_OVERRIDES = {
'Could not start the scanner': 'Não foi possível iniciar o scanner',
'Gym check-in': 'Check-in na academia',
'Show a card on Home with your membership QR codes.': 'Mostra no Início um cartão com seus códigos QR de sócio.',
'Point the camera at the QR code': 'Aponte a câmera para o código QR',
'Camera is not available here — import a photo or type the code instead.': 'A câmera não está disponível aqui — importe uma foto ou digite o código.',
'Camera access was denied — allow it in your browser and try again.': 'O acesso à câmera foi negado — permita-o no navegador e tente de novo.',
}
export default { ...pt, ...PT_BR_OVERRIDES }
+3
View File
@@ -1107,4 +1107,7 @@ export default {
'Could not start the scanner': 'Não foi possível iniciar o scanner',
'Gym check-in': 'Check-in no ginásio',
'Show a card on Home with your membership QR codes.': 'Mostra no Início um cartão com os teus códigos QR de sócio.',
'Point the camera at the QR code': 'Aponta a câmara para o código QR',
'Camera is not available here — import a photo or type the code instead.': 'A câmara não está disponível aqui — importa uma foto ou escreve o código.',
'Camera access was denied — allow it in your browser and try again.': 'O acesso à câmara foi recusado — permite-o no navegador e tenta de novo.',
}
+3
View File
@@ -1107,4 +1107,7 @@ export default {
'Could not start the scanner': 'Не удалось запустить сканер',
'Gym check-in': 'Отметка в зале',
'Show a card on Home with your membership QR codes.': 'Показывает на Главной карточку с вашими QR-кодами абонемента.',
'Point the camera at the QR code': 'Наведите камеру на QR-код',
'Camera is not available here — import a photo or type the code instead.': 'Камера здесь недоступна — импортируйте фото или введите код.',
'Camera access was denied — allow it in your browser and try again.': 'Доступ к камере запрещён — разрешите его в браузере и попробуйте снова.',
}
+3
View File
@@ -1118,4 +1118,7 @@ export default {
'Message the Coach…': 'ส่งข้อความถึงโค้ช…',
'Gym check-in': 'เช็คอินที่ยิม',
'Show a card on Home with your membership QR codes.': 'แสดงการ์ดพร้อม QR โค้ดสมาชิกของคุณบนหน้าหลัก',
'Point the camera at the QR code': 'เล็งกล้องไปที่ QR โค้ด',
'Camera is not available here — import a photo or type the code instead.': 'ใช้กล้องที่นี่ไม่ได้ — นำเข้ารูปภาพหรือพิมพ์รหัสแทน',
'Camera access was denied — allow it in your browser and try again.': 'การเข้าถึงกล้องถูกปฏิเสธ — อนุญาตในเบราว์เซอร์แล้วลองอีกครั้ง',
}
+3
View File
@@ -1107,4 +1107,7 @@ export default {
'Could not start the scanner': 'Tarayıcı başlatılamadı',
'Gym check-in': 'Salon girişi',
'Show a card on Home with your membership QR codes.': 'Ana sayfada üyelik QR kodlarınızı içeren bir kart gösterir.',
'Point the camera at the QR code': 'Kamerayı QR koda tutun',
'Camera is not available here — import a photo or type the code instead.': 'Kamera burada kullanılamıyor — bir fotoğraf içe aktarın veya kodu yazın.',
'Camera access was denied — allow it in your browser and try again.': 'Kamera erişimi reddedildi — tarayıcıda izin verip tekrar deneyin.',
}
+3
View File
@@ -1107,4 +1107,7 @@ export default {
'Could not start the scanner': '无法启动扫描器',
'Gym check-in': '健身房签到',
'Show a card on Home with your membership QR codes.': '在首页显示一张包含会员二维码的卡片。',
'Point the camera at the QR code': '将摄像头对准二维码',
'Camera is not available here — import a photo or type the code instead.': '此处无法使用摄像头 — 请导入照片或手动输入代码。',
'Camera access was denied — allow it in your browser and try again.': '摄像头访问被拒绝 — 请在浏览器中允许后重试。',
}