Skip to content

Open-source gym & body-weight tracker, now in the App Store (iPhone + Apple Watch) and as an Android APK. Plan routines, log workouts, see which muscles are trained, import from Strong/Hevy/FitNotes. Self-host it or use it on the phone alone.

Sign-in: "fingerprint, face or PIN" and the passkey vault read in the UI language

Duarte Santos76de6b53d146
diff --git a/frontend/src/lib/api.js b/frontend/src/lib/api.js
index 06f2390b4..f75738e4e 100644
--- a/frontend/src/lib/api.js
+++ b/frontend/src/lib/api.js
@@ -7,6 +7,11 @@ export const IS_APPLE = /iPhone|iPad|iPod|Macintosh/.test(navigator.userAgent)
export const IS_ANDROID = /Android/.test(navigator.userAgent)
export const BIO = IS_APPLE ? 'Face ID / Touch ID' : IS_ANDROID ? 'fingerprint or face unlock' : 'your fingerprint, face or PIN'
export const VAULT = IS_APPLE ? 'iCloud Keychain' : IS_ANDROID ? 'Google Password Manager' : 'your password manager'
+// The same phrases in the UI language. They go into translated sentences ("confirm with {0}"),
+// so the English constants above left an English phrase in the middle of every other language.
+// Functions, not constants: the pack is loaded after this module is.
+export const bio = () => (IS_APPLE ? t('Face ID / Touch ID') : IS_ANDROID ? t('fingerprint or face unlock') : t('your fingerprint, face or PIN'))
+export const vault = () => (IS_APPLE ? t('iCloud Keychain') : IS_ANDROID ? t('Google Password Manager') : t('your password manager'))
// PublicKeyCredential is the WebAuthn-specific capability signal. Do not also gate the UI on
// navigator.credentials: some browsers expose WebAuthn while that generic Credential Management
// API check produces a false negative (notably Chrome on iOS). The real create/get calls still run
diff --git a/frontend/src/lib/api.test.js b/frontend/src/lib/api.test.js
index e8e33cc7f..02cb9ef74 100644
--- a/frontend/src/lib/api.test.js
+++ b/frontend/src/lib/api.test.js
@@ -1,6 +1,7 @@
// @vitest-environment happy-dom
import { afterEach, describe, expect, it, vi } from 'vitest'
-import { webauthnOK } from './api.js'
+import { webauthnOK, bio, vault, BIO, VAULT } from './api.js'
+import { _setLangState } from './i18n-core.js'
const originalPublicKeyCredential = window.PublicKeyCredential
const originalCredentials = navigator.credentials
@@ -171,3 +172,16 @@ describe('passkeyAssertion', () => {
await expect(p).rejects.toMatchObject({ name: 'AbortError' })
})
})
+
+// QA 1.3.9: "confirm with {0}" was translated and {0} was not — a German sign-in page read
+// "…bestätige mit your fingerprint, face or PIN".
+describe('bio / vault', () => {
+ afterEach(() => _setLangState('en', {}, null, null))
+ it('reads the platform phrase in the UI language', () => {
+ expect(bio()).toBe(BIO)
+ expect(vault()).toBe(VAULT)
+ _setLangState('de', { [BIO]: 'BIO-de', [VAULT]: 'VAULT-de' }, null, null)
+ expect(bio()).toBe('BIO-de')
+ expect(vault()).toBe('VAULT-de')
+ })
+})
diff --git a/frontend/src/locales/ar.js b/frontend/src/locales/ar.js
index d4d1df62f..27a39a626 100644
--- a/frontend/src/locales/ar.js
+++ b/frontend/src/locales/ar.js
@@ -1679,4 +1679,11 @@ export default {
'Use in this workout': 'استخدمه في هذا التمرين',
'Add to this workout': 'أضِف إلى هذا التمرين',
'No weight to enter — just time the hold.': 'لا وزن لإدخاله — فقط احسب مدة الثبات.',
+ // --- how this device confirms a passkey, and where it keeps it ---
+ 'Face ID / Touch ID': 'Face ID / Touch ID',
+ 'fingerprint or face unlock': 'بصمة الإصبع أو فتح القفل بالوجه',
+ 'your fingerprint, face or PIN': 'بصمة إصبعك أو وجهك أو رمز PIN',
+ 'iCloud Keychain': 'سلسلة مفاتيح iCloud',
+ 'Google Password Manager': 'مدير كلمات المرور من Google',
+ 'your password manager': 'مدير كلمات المرور لديك',
}
diff --git a/frontend/src/locales/de.js b/frontend/src/locales/de.js
index 800350a55..425a6b9b5 100644
--- a/frontend/src/locales/de.js
+++ b/frontend/src/locales/de.js
@@ -1646,4 +1646,11 @@ export default {
'Use in this workout': 'In diesem Training verwenden',
'Add to this workout': 'Zu diesem Training hinzufügen',
'No weight to enter — just time the hold.': 'Kein Gewicht einzutragen — nur die Haltezeit.',
+ // --- how this device confirms a passkey, and where it keeps it ---
+ 'Face ID / Touch ID': 'Face ID / Touch ID',
+ 'fingerprint or face unlock': 'Fingerabdruck oder Gesichtsentsperrung',
+ 'your fingerprint, face or PIN': 'Fingerabdruck, Gesicht oder PIN',
+ 'iCloud Keychain': 'iCloud-Schlüsselbund',
+ 'Google Password Manager': 'Google Passwortmanager',
+ 'your password manager': 'Passwortmanager',
}
diff --git a/frontend/src/locales/es.js b/frontend/src/locales/es.js
index f8a6916b0..7e25f1d28 100644
--- a/frontend/src/locales/es.js
+++ b/frontend/src/locales/es.js
@@ -1626,4 +1626,11 @@ export default {
'Use in this workout': 'Usar en este entrenamiento',
'Add to this workout': 'Añadir a este entrenamiento',
'No weight to enter — just time the hold.': 'Sin peso que anotar — solo cronometra la retención.',
+ // --- how this device confirms a passkey, and where it keeps it ---
+ 'Face ID / Touch ID': 'Face ID / Touch ID',
+ 'fingerprint or face unlock': 'huella dactilar o desbloqueo facial',
+ 'your fingerprint, face or PIN': 'tu huella, tu cara o tu PIN',
+ 'iCloud Keychain': 'Llavero de iCloud',
+ 'Google Password Manager': 'Gestor de contraseñas de Google',
+ 'your password manager': 'tu gestor de contraseñas',
}
diff --git a/frontend/src/locales/fr.js b/frontend/src/locales/fr.js
index e7322cd43..71a462a0c 100644
--- a/frontend/src/locales/fr.js
+++ b/frontend/src/locales/fr.js
@@ -1626,4 +1626,11 @@ export default {
'Use in this workout': 'Utiliser dans cette séance',
'Add to this workout': 'Ajouter à cette séance',
'No weight to enter — just time the hold.': 'Aucun poids à saisir — chronomètre simplement le maintien.',
+ // --- how this device confirms a passkey, and where it keeps it ---
+ 'Face ID / Touch ID': 'Face ID / Touch ID',
+ 'fingerprint or face unlock': 'empreinte digitale ou déverrouillage par le visage',
+ 'your fingerprint, face or PIN': 'ton empreinte, ton visage ou ton code PIN',
+ 'iCloud Keychain': 'trousseau iCloud',
+ 'Google Password Manager': 'Gestionnaire de mots de passe de Google',
+ 'your password manager': 'ton gestionnaire de mots de passe',
}
diff --git a/frontend/src/locales/hi.js b/frontend/src/locales/hi.js
index 96ae26610..c2369284d 100644
--- a/frontend/src/locales/hi.js
+++ b/frontend/src/locales/hi.js
@@ -1626,4 +1626,11 @@ export default {
'Use in this workout': 'इस वर्कआउट में इस्तेमाल करें',
'Add to this workout': 'इस वर्कआउट में जोड़ें',
'No weight to enter — just time the hold.': 'कोई वज़न नहीं भरना — बस होल्ड का समय गिनें।',
+ // --- how this device confirms a passkey, and where it keeps it ---
+ 'Face ID / Touch ID': 'Face ID / Touch ID',
+ 'fingerprint or face unlock': 'फ़िंगरप्रिंट या फ़ेस अनलॉक',
+ 'your fingerprint, face or PIN': 'अपने फ़िंगरप्रिंट, चेहरे या PIN',
+ 'iCloud Keychain': 'iCloud कीचेन',
+ 'Google Password Manager': 'Google पासवर्ड मैनेजर',
+ 'your password manager': 'आपका पासवर्ड मैनेजर',
}
diff --git a/frontend/src/locales/hu.js b/frontend/src/locales/hu.js
index d7199853f..592633101 100644
--- a/frontend/src/locales/hu.js
+++ b/frontend/src/locales/hu.js
@@ -1629,4 +1629,11 @@ export default {
'Use in this workout': 'Használat ebben az edzésben',
'Add to this workout': 'Hozzáadás ehhez az edzéshez',
'No weight to enter — just time the hold.': 'Nincs megadandó súly — csak a tartás idejét méred.',
+ // --- how this device confirms a passkey, and where it keeps it ---
+ 'Face ID / Touch ID': 'Face ID / Touch ID',
+ 'fingerprint or face unlock': 'ujjlenyomat vagy arcfelismerés',
+ 'your fingerprint, face or PIN': 'ujjlenyomat, arc vagy PIN-kód',
+ 'iCloud Keychain': 'iCloud-kulcskarika',
+ 'Google Password Manager': 'Google Jelszókezelő',
+ 'your password manager': 'jelszókezelő',
}
diff --git a/frontend/src/locales/it.js b/frontend/src/locales/it.js
index 1810ded73..ccad265f2 100644
--- a/frontend/src/locales/it.js
+++ b/frontend/src/locales/it.js
@@ -1626,4 +1626,11 @@ export default {
'Use in this workout': 'Usa in questo allenamento',
'Add to this workout': 'Aggiungi a questo allenamento',
'No weight to enter — just time the hold.': 'Nessun peso da inserire — cronometra solo la tenuta.',
+ // --- how this device confirms a passkey, and where it keeps it ---
+ 'Face ID / Touch ID': 'Face ID / Touch ID',
+ 'fingerprint or face unlock': 'impronta digitale o sblocco con il volto',
+ 'your fingerprint, face or PIN': 'la tua impronta, il tuo volto o il PIN',
+ 'iCloud Keychain': 'Portachiavi iCloud',
+ 'Google Password Manager': 'Gestore delle password di Google',
+ 'your password manager': 'il tuo gestore di password',
}
diff --git a/frontend/src/locales/ko.js b/frontend/src/locales/ko.js
index cd8fb8482..9e9c40e8e 100644
--- a/frontend/src/locales/ko.js
+++ b/frontend/src/locales/ko.js
@@ -1626,4 +1626,11 @@ export default {
'Use in this workout': '이번 운동에 사용',
'Add to this workout': '이번 운동에 추가',
'No weight to enter — just time the hold.': '입력할 무게 없음 — 버티는 시간만 재세요.',
+ // --- how this device confirms a passkey, and where it keeps it ---
+ 'Face ID / Touch ID': 'Face ID / Touch ID',
+ 'fingerprint or face unlock': '지문 또는 얼굴 인식 잠금 해제',
+ 'your fingerprint, face or PIN': '지문, 얼굴 또는 PIN',
+ 'iCloud Keychain': 'iCloud 키체인',
+ 'Google Password Manager': 'Google 비밀번호 관리자',
+ 'your password manager': '비밀번호 관리자',
}
diff --git a/frontend/src/locales/pl.js b/frontend/src/locales/pl.js
index 629ec78dc..cff7864fc 100644
--- a/frontend/src/locales/pl.js
+++ b/frontend/src/locales/pl.js
@@ -1626,4 +1626,11 @@ export default {
'Use in this workout': 'Użyj w tym treningu',
'Add to this workout': 'Dodaj do tego treningu',
'No weight to enter — just time the hold.': 'Bez ciężaru do wpisania — mierz tylko czas utrzymania.',
+ // --- how this device confirms a passkey, and where it keeps it ---
+ 'Face ID / Touch ID': 'Face ID / Touch ID',
+ 'fingerprint or face unlock': 'odcisk palca lub rozpoznawanie twarzy',
+ 'your fingerprint, face or PIN': 'odcisk palca, twarz lub PIN',
+ 'iCloud Keychain': 'pęk kluczy iCloud',
+ 'Google Password Manager': 'Menedżer haseł Google',
+ 'your password manager': 'Twój menedżer haseł',
}
diff --git a/frontend/src/locales/pt-BR.js b/frontend/src/locales/pt-BR.js
index 79071470c..202d29a31 100644
--- a/frontend/src/locales/pt-BR.js
+++ b/frontend/src/locales/pt-BR.js
@@ -971,6 +971,13 @@ export const PT_BR_OVERRIDES = {
'Use in this workout': 'Usar neste treino',
'Add to this workout': 'Adicionar a este treino',
'No weight to enter — just time the hold.': 'Sem peso para informar — só cronometre a sustentação.',
+ // --- how this device confirms a passkey, and where it keeps it ---
+ 'Face ID / Touch ID': 'Face ID / Touch ID',
+ 'fingerprint or face unlock': 'impressão digital ou desbloqueio facial',
+ 'your fingerprint, face or PIN': 'sua impressão digital, rosto ou PIN',
+ 'iCloud Keychain': 'Chaves do iCloud',
+ 'Google Password Manager': 'Gerenciador de senhas do Google',
+ 'your password manager': 'seu gerenciador de senhas',
}
export default { ...pt, ...PT_BR_OVERRIDES }
diff --git a/frontend/src/locales/pt.js b/frontend/src/locales/pt.js
index 75a6fd50f..b38459cd2 100644
--- a/frontend/src/locales/pt.js
+++ b/frontend/src/locales/pt.js
@@ -1626,4 +1626,11 @@ export default {
'Use in this workout': 'Usar neste treino',
'Add to this workout': 'Adicionar a este treino',
'No weight to enter — just time the hold.': 'Sem peso para indicar — cronometra apenas a sustentação.',
+ // --- how this device confirms a passkey, and where it keeps it ---
+ 'Face ID / Touch ID': 'Face ID / Touch ID',
+ 'fingerprint or face unlock': 'impressão digital ou desbloqueio facial',
+ 'your fingerprint, face or PIN': 'a tua impressão digital, rosto ou PIN',
+ 'iCloud Keychain': 'Porta-chaves iCloud',
+ 'Google Password Manager': 'Gestor de palavras-passe da Google',
+ 'your password manager': 'o teu gestor de palavras-passe',
}
diff --git a/frontend/src/locales/ru.js b/frontend/src/locales/ru.js
index 4a22c16a9..3200e98de 100644
--- a/frontend/src/locales/ru.js
+++ b/frontend/src/locales/ru.js
@@ -1626,4 +1626,11 @@ export default {
'Use in this workout': 'Использовать в этой тренировке',
'Add to this workout': 'Добавить в эту тренировку',
'No weight to enter — just time the hold.': 'Вес вводить не нужно — только засеките время удержания.',
+ // --- how this device confirms a passkey, and where it keeps it ---
+ 'Face ID / Touch ID': 'Face ID / Touch ID',
+ 'fingerprint or face unlock': 'отпечаток пальца или распознавание лица',
+ 'your fingerprint, face or PIN': 'отпечаток пальца, лицо или PIN-код',
+ 'iCloud Keychain': 'связка ключей iCloud',
+ 'Google Password Manager': 'Диспетчер паролей Google',
+ 'your password manager': 'ваш менеджер паролей',
}
diff --git a/frontend/src/locales/th.js b/frontend/src/locales/th.js
index 2fdde4a94..f537a1b22 100644
--- a/frontend/src/locales/th.js
+++ b/frontend/src/locales/th.js
@@ -1637,4 +1637,11 @@ export default {
'Use in this workout': 'ใช้ในการออกกำลังกายครั้งนี้',
'Add to this workout': 'เพิ่มในการออกกำลังกายครั้งนี้',
'No weight to enter — just time the hold.': 'ไม่ต้องใส่น้ำหนัก — แค่จับเวลาการค้างท่า',
+ // --- how this device confirms a passkey, and where it keeps it ---
+ 'Face ID / Touch ID': 'Face ID / Touch ID',
+ 'fingerprint or face unlock': 'ลายนิ้วมือหรือการปลดล็อกด้วยใบหน้า',
+ 'your fingerprint, face or PIN': 'ลายนิ้วมือ ใบหน้า หรือ PIN ของคุณ',
+ 'iCloud Keychain': 'พวงกุญแจ iCloud',
+ 'Google Password Manager': 'เครื่องมือจัดการรหัสผ่านของ Google',
+ 'your password manager': 'ตัวจัดการรหัสผ่านของคุณ',
}
diff --git a/frontend/src/locales/tr.js b/frontend/src/locales/tr.js
index 2ac0399f4..16a127a8c 100644
--- a/frontend/src/locales/tr.js
+++ b/frontend/src/locales/tr.js
@@ -1626,4 +1626,11 @@ export default {
'Use in this workout': 'Bu antrenmanda kullan',
'Add to this workout': 'Bu antrenmana ekle',
'No weight to enter — just time the hold.': 'Girilecek ağırlık yok — sadece tutuşu süreyle ölç.',
+ // --- how this device confirms a passkey, and where it keeps it ---
+ 'Face ID / Touch ID': 'Face ID / Touch ID',
+ 'fingerprint or face unlock': 'parmak izi veya yüz tanıma',
+ 'your fingerprint, face or PIN': 'parmak izi, yüz veya PIN',
+ 'iCloud Keychain': 'iCloud Anahtar Zinciri',
+ 'Google Password Manager': 'Google Şifre Yöneticisi',
+ 'your password manager': 'şifre yöneticin',
}
diff --git a/frontend/src/locales/uk.js b/frontend/src/locales/uk.js
index f35a7b3b8..cfe7694d0 100644
--- a/frontend/src/locales/uk.js
+++ b/frontend/src/locales/uk.js
@@ -1623,4 +1623,11 @@ export default {
'Use in this workout': 'Використати в цьому тренуванні',
'Add to this workout': 'Додати до цього тренування',
'No weight to enter — just time the hold.': 'Вага не потрібна — лише засікайте час утримання.',
+ // --- how this device confirms a passkey, and where it keeps it ---
+ 'Face ID / Touch ID': 'Face ID / Touch ID',
+ 'fingerprint or face unlock': 'відбиток пальця або розблокування обличчям',
+ 'your fingerprint, face or PIN': 'відбиток пальця, обличчя або PIN-код',
+ 'iCloud Keychain': 'Зв’язка ключів iCloud',
+ 'Google Password Manager': 'Менеджер паролів Google',
+ 'your password manager': 'ваш менеджер паролів',
}
diff --git a/frontend/src/locales/zh.js b/frontend/src/locales/zh.js
index 8a9d97144..30dfc40f1 100644
--- a/frontend/src/locales/zh.js
+++ b/frontend/src/locales/zh.js
@@ -1626,4 +1626,11 @@ export default {
'Use in this workout': '用于本次训练',
'Add to this workout': '添加到本次训练',
'No weight to enter — just time the hold.': '无需填写重量 — 只需为保持计时。',
+ // --- how this device confirms a passkey, and where it keeps it ---
+ 'Face ID / Touch ID': '面容 ID / 触控 ID',
+ 'fingerprint or face unlock': '指纹或人脸解锁',
+ 'your fingerprint, face or PIN': '你的指纹、面容或 PIN 码',
+ 'iCloud Keychain': 'iCloud 钥匙串',
+ 'Google Password Manager': 'Google 密码管理工具',
+ 'your password manager': '你的密码管理器',
}
diff --git a/frontend/src/views/Login.device-link.test.jsx b/frontend/src/views/Login.device-link.test.jsx
index 8c202b4df..e9b26fd3f 100644
--- a/frontend/src/views/Login.device-link.test.jsx
+++ b/frontend/src/views/Login.device-link.test.jsx
@@ -30,7 +30,7 @@ vi.mock('../store/useUI.js', () => {
return { useUI }
})
vi.mock('../lib/api.js', () => ({
- webauthnOK: () => mocks.webauthn, passkeyLogin: vi.fn(), passkeyRegister: vi.fn(), BIO: 'your fingerprint',
+ webauthnOK: () => mocks.webauthn, passkeyLogin: vi.fn(), passkeyRegister: vi.fn(), BIO: 'your fingerprint', bio: () => 'your fingerprint',
api: vi.fn(), passkeyAssertion: vi.fn(), passwordLogin: vi.fn(), passwordRegister: vi.fn(), passwordResetRedeem: vi.fn(),
createPasskey: vi.fn(),
}))
diff --git a/frontend/src/views/Login.jsx b/frontend/src/views/Login.jsx
index 39eaa5c0f..ee7905e19 100644
--- a/frontend/src/views/Login.jsx
+++ b/frontend/src/views/Login.jsx
@@ -1,6 +1,6 @@
import { useStore } from '../store/useStore.js'
import { useUI } from '../store/useUI.js'
-import { webauthnOK, passkeyLogin, passkeyRegister, BIO } from '../lib/api.js'
+import { webauthnOK, passkeyLogin, passkeyRegister, bio } from '../lib/api.js'
import { hasData } from '../store/useStore.js'
import { t } from '../lib/i18n.js'
import { DEMO, REPO } from '../lib/demo.js'
@@ -52,7 +52,7 @@ function RegisterSheet({ close }) {
return <>
<h3>{t('Create your profile')}</h3>
{choose}
- <div className="muted small" style={{ marginBottom: 14 }}>{t('Pick a name, then confirm with {0}. The passkey is saved in your device — no password needed.', BIO)}</div>
+ <div className="muted small" style={{ marginBottom: 14 }}>{t('Pick a name, then confirm with {0}. The passkey is saved in your device — no password needed.', bio())}</div>
<input ref={ref} className="input" placeholder={t('Your name')} maxLength={40} value={name} onChange={e => setName(e.target.value)} />
{inviteOnly && <>
<div style={{ height: 10 }} />
@@ -124,7 +124,7 @@ export default function Login() {
// so say that plainly instead of offering a local profile that cannot be created.
: t("This browser doesn't support passkeys, and this instance requires an account. Try a browser or device with passkey support.")}</div>}
{canGuest && <Button variant="ghost" className="dim" onClick={() => setGuest(true)}>{t('Continue without account')}</Button>}
- <div className="dim small" style={{ marginTop: 26, lineHeight: 1.5 }}>{pwOn ? t('Passkeys use {0}. A password works too, where passkeys do not.', BIO) : t('Passkeys use {0} — no passwords.', BIO)}<br />{t('Each profile keeps its own plan, workouts & body weight.')}</div>
+ <div className="dim small" style={{ marginTop: 26, lineHeight: 1.5 }}>{pwOn ? t('Passkeys use {0}. A password works too, where passkeys do not.', bio()) : t('Passkeys use {0} — no passwords.', bio())}<br />{t('Each profile keeps its own plan, workouts & body weight.')}</div>
</div>
)
}
diff --git a/frontend/src/views/Login.password.test.jsx b/frontend/src/views/Login.password.test.jsx
index 2e6ca0b08..4839da644 100644
--- a/frontend/src/views/Login.password.test.jsx
+++ b/frontend/src/views/Login.password.test.jsx
@@ -30,7 +30,7 @@ vi.mock('../store/useUI.js', () => {
return { useUI }
})
vi.mock('../lib/api.js', () => ({
- webauthnOK: () => mocks.webauthn, passkeyLogin: vi.fn(), passkeyRegister: vi.fn(), BIO: 'your fingerprint',
+ webauthnOK: () => mocks.webauthn, passkeyLogin: vi.fn(), passkeyRegister: vi.fn(), BIO: 'your fingerprint', bio: () => 'your fingerprint',
api: vi.fn(), passkeyAssertion: vi.fn(), passwordLogin: vi.fn(), passwordRegister: vi.fn(), passwordResetRedeem: vi.fn(),
}))
vi.mock('../lib/demo.js', () => ({ DEMO: false, REPO: 'https://example.invalid' }))