From c8485fc5c5fcbec39ff9c477066843af6f8a0387 Mon Sep 17 00:00:00 2001 From: Daniel Bejarano <58019353+dbejarano820@users.noreply.github.com> Date: Thu, 26 Nov 2026 18:27:55 -0600 Subject: [PATCH 1/3] iOS: a stopped model download resumes from NSURLSession's resume data (#127) On iOS, expo-file-system resumes only from the base64 resume data NSURLSession produces on a pause, and .part does not exist until the file is complete, so every stopped download started again from zero. - download-resume.ts (pure, tested): which path each platform takes, the record kept next to .part, and when to fall back to a clean restart. - The download screen pauses the running download on iOS when the app goes to the background or the connection drops; the pause saves the resume data in .part.resume, and the next attempt resumes from it. A missing, stale or rejected record means one clean restart. - partialModel and the model update read the saved bytes on iOS. - Android keeps its byte offset path. The SHA-256 check is unchanged. Signed-off-by: Daniel Bejarano --- apps/mobile/src/adapters/device.ts | 109 +++++++++++++++++++---- apps/mobile/src/adapters/index.ts | 4 +- apps/mobile/src/adapters/model-update.ts | 15 ++-- apps/mobile/src/app/download.tsx | 6 +- apps/mobile/src/download-resume.test.ts | 79 ++++++++++++++++ apps/mobile/src/download-resume.ts | 83 +++++++++++++++++ 6 files changed, 272 insertions(+), 24 deletions(-) create mode 100644 apps/mobile/src/download-resume.test.ts create mode 100644 apps/mobile/src/download-resume.ts diff --git a/apps/mobile/src/adapters/device.ts b/apps/mobile/src/adapters/device.ts index 5be9f62..da7960b 100644 --- a/apps/mobile/src/adapters/device.ts +++ b/apps/mobile/src/adapters/device.ts @@ -1,8 +1,9 @@ import { Directory, DownloadTask, File, Paths } from "expo-file-system"; import * as Network from "expo-network"; -import { Linking, Platform } from "react-native"; +import { AppState, Linking, Platform } from "react-native"; import { allowedCpuSet, cpuListText, initialPlan, threadPlan, threadsReload, withThreads, type HardwareFacts, type RuntimePlan, type ThreadPlan } from "@hermit/model"; import { HermitNotifications } from "../../modules/hermit-notifications"; +import { pausesFor, readResumeRecord, resumableBytes, resumePlan, resumeRecordText, type ResumeRecord } from "../download-resume"; import { nightDeviceState, type NightDeviceState } from "../night-device"; import { byteCount, hardwareFactsFor, hardwarePlatform, thermalFromNative, type NativeThermal } from "../platform-facts"; import { observedTokensPerSecond } from "./qvac-engine"; @@ -15,6 +16,27 @@ export function onReconnect(listener: () => void): () => void { return () => sub.remove(); } +/** The model download running now, so it can be paused to keep its iOS resume data. */ +let active: DownloadTask | undefined; + +/** + * iOS (#127): pauses the running model download when the app goes to the background or the connection drops, so + * NSURLSession's resume data is saved next to `.part` and the next attempt picks up from it. expo-file-system hands + * the resume data back only from a pause, never from a failure. Does nothing on Android, which keeps `.part` on disk. + * Returns unsubscribe. + */ +export function pauseDownloadWhenLeaving(): () => void { + const pause = (signal: { appState?: string; connected?: boolean }) => { + if (pausesFor(Platform.OS, signal) && active?.state === "active") void active.pauseAsync().catch(() => {}); + }; + const app = AppState.addEventListener("change", (appState) => pause({ appState })); + const net = Network.addNetworkStateListener((s) => pause({ connected: s.isConnected })); + return () => { + app.remove(); + net.remove(); + }; +} + /** Android's storage page (EC-ONB-03), falling back to the app's own settings page. */ export async function openStorageSettings(): Promise { try { @@ -52,7 +74,7 @@ export function verifiedSha256(name: string): string | undefined { * A model in place without its verification record goes back to `.part` first, so it is hashed again * before it can ever load; it is never trusted as is. */ -export function partialBytes(name: string): number { +export function partialBytes(name: string, url: string): number { const final = modelFile(name); const part = modelFile(`${name}.part`); const sidecar = modelFile(`${name}.sha256`); @@ -60,7 +82,26 @@ export function partialBytes(name: string): number { if (part.exists) part.delete(); final.move(part); } - return part.exists ? byteCount(part.size) : 0; + return resumableBytesOf(name, url); +} + +/** iOS: NSURLSession's resume data for `.part`, saved when the download paused (#127). */ +const resumeFile = (name: string) => modelFile(`${name}.part.resume`); + +/** The saved resume data for this URL, when it is there and well formed; never throws. */ +function savedResume(name: string, url: string, size?: number): ResumeRecord | undefined { + try { + const f = resumeFile(name); + return f.exists ? readResumeRecord(f.textSync(), url, size) : undefined; + } catch { + return undefined; + } +} + +/** Bytes a download of `` can resume from: `.part` on disk, or on iOS the saved resume data. Moves nothing. */ +export function resumableBytesOf(name: string, url: string): number { + const part = modelFile(`${name}.part`); + return resumableBytes(Platform.OS, part.exists ? byteCount(part.size) : 0, savedResume(name, url)); } /** @@ -72,32 +113,68 @@ export function partialBytes(name: string): number { * starts clean (a retry after a failed check, US-ONB-07); more than 0 resumes from that byte with an * HTTP Range request (lost connection, full disk, app killed). A failed attempt keeps `.part` so the * next one can resume; only discard() (after a hash mismatch) deletes it. + * + * iOS (#127) writes `.part` only once the file is complete, and resumes from the resume data NSURLSession + * produced when the task paused, saved in `.part.resume`; see download-resume.ts for which path runs. */ export async function phoneDownload(url: string, name: string, from: number, onProgress: (received: number) => void, expectedSize?: number) { const final = modelFile(name); const part = modelFile(`${name}.part`); const sidecar = modelFile(`${name}.sha256`); + const saved = resumeFile(name); // Whatever sits at the final name is not trusted by a new attempt: back to .part, record removed. if (final.exists) { if (part.exists) part.delete(); final.move(part); } if (sidecar.exists) sidecar.delete(); - const offset = from > 0 && part.exists ? Math.min(from, byteCount(part.size)) : 0; - if (offset === 0 && part.exists) part.delete(); - const onBytes = { onProgress: ({ bytesWritten }: { bytesWritten: number | bigint }) => onProgress(byteCount(bytesWritten)) }; + const record = savedResume(name, url, expectedSize); + // Resume data is used once: a resumed task that pauses again saves a fresh record, so a stale one never lingers. + if (saved.exists) saved.delete(); + const plan = resumePlan(Platform.OS, { from, partBytes: part.exists ? byteCount(part.size) : 0, expectedSize, record }); + if (plan.kind === "clean" && part.exists) part.delete(); + let received = 0; + const onBytes = { + onProgress: ({ bytesWritten }: { bytesWritten: number | bigint }) => { + received = byteCount(bytesWritten); + onProgress(received); + }, + }; + const restored = (resumeData: string) => DownloadTask.fromSavable({ url, fileUri: part.uri, isDirectory: false, resumeData }, onBytes); + let task: DownloadTask | undefined; let file: File | null; - if (offset > 0 && offset === expectedSize) { - // Complete already: go straight to the check, which still runs. - onProgress(offset); - file = part; - } else if (offset > 0) { - // Android resume data is the byte offset; the native task truncates to it and appends (Range). - file = await DownloadTask.fromSavable({ url, fileUri: part.uri, isDirectory: false, resumeData: String(offset) }, onBytes).resumeAsync(); - } else { - file = await File.createDownloadTask(url, part, onBytes).downloadAsync(); + try { + if (plan.kind === "complete") { + // Complete already: go straight to the check, which still runs. + onProgress(byteCount(part.size)); + file = part; + } else if (plan.kind === "range") { + // Android resume data is the byte offset; the native task truncates to it and appends (Range). + file = await (task = active = restored(String(plan.offset))).resumeAsync(); + } else if (plan.kind === "resume_data") { + // iOS: NSURLSession's own resume data from the pause. If it is rejected (stale, or the system cleared the + // bytes it kept), one clean restart from zero instead, so a bad record never blocks the download. + received = plan.offset; + onProgress(plan.offset); + try { + file = await (task = active = restored(plan.resumeData)).resumeAsync(); + } catch { + received = 0; + onProgress(0); + file = await (task = active = File.createDownloadTask(url, part, onBytes)).downloadAsync(); + } + } else { + file = await (task = active = File.createDownloadTask(url, part, onBytes)).downloadAsync(); + } + } finally { + if (active === task) active = undefined; + } + // iOS keeps nothing in .part until the end: a pause saves NSURLSession's resume data next to it instead. + if (!file && task?.state === "paused" && Platform.OS === "ios") { + const text = resumeRecordText(url, task.savable().resumeData, received); + if (text) saved.write(text); } - if (!file) throw new Error("download paused"); // .part stays for the next resume + if (!file) throw new Error("download paused"); // .part (Android) or its resume data (iOS) stays for the next resume return { /** Native streamed SHA-256 (seconds, off the JS thread); the JS chunks() path stays for tests and fallback. */ sha256: () => HermitNotifications.sha256File(file.uri), diff --git a/apps/mobile/src/adapters/index.ts b/apps/mobile/src/adapters/index.ts index 603f658..be56af8 100644 --- a/apps/mobile/src/adapters/index.ts +++ b/apps/mobile/src/adapters/index.ts @@ -286,10 +286,10 @@ export function downloadModel(url: string, from: number, onProgress: (received: /** Bytes of an unverified partial download on disk, for resuming after a kill or a drop (EC-ONB-04). */ export function partialModel(file: { url: string }): number { - return partialBytes(file.url.split("/").pop() ?? "model.gguf"); + return partialBytes(file.url.split("/").pop() ?? "model.gguf", file.url); } -export { onReconnect, openStorageSettings } from "./device"; +export { onReconnect, openStorageSettings, pauseDownloadWhenLeaving } from "./device"; /** True only when the model in place was promoted with exactly the SHA-256 this build pins, or an update made one active. */ export function modelReady(file: { url: string; sha256: string }): boolean { diff --git a/apps/mobile/src/adapters/model-update.ts b/apps/mobile/src/adapters/model-update.ts index 4782b9d..f607a87 100644 --- a/apps/mobile/src/adapters/model-update.ts +++ b/apps/mobile/src/adapters/model-update.ts @@ -24,7 +24,7 @@ import { type UpdateStep, } from "@hermit/model"; import { HermitNotifications } from "../../modules/hermit-notifications"; -import { modelFile, phoneDownload, phoneFacts } from "./device"; +import { modelFile, phoneDownload, phoneFacts, resumableBytesOf } from "./device"; import { countedFetch, countOutbound } from "./net"; import { byteCount } from "../platform-facts"; @@ -118,7 +118,7 @@ async function apply(e: UpdateEffect): Promise { await phoneDownload(e.url, e.fileName, e.from, () => {}, expected); return { type: "downloaded" }; } catch { - return { type: "download_failed", received: modelFile(`${e.fileName}.part`).exists ? byteCount(modelFile(`${e.fileName}.part`).size) : 0 }; + return { type: "download_failed", received: resumableBytesOf(e.fileName, e.url) }; } } case "verify": { @@ -153,7 +153,7 @@ async function apply(e: UpdateEffect): Promise { return { type: "self_test", passed: smokePassed(reply) }; } case "delete_file": { - for (const name of [e.fileName, `${e.fileName}.part`, `${e.fileName}.sha256`]) { + for (const name of [e.fileName, `${e.fileName}.part`, `${e.fileName}.part.resume`, `${e.fileName}.sha256`]) { const f = modelFile(name); if (f.exists) f.delete(); } @@ -214,8 +214,13 @@ export function recoverModelUpdate(): Promise { state = journal; return exclusive(async () => { const pointer = readJson(POINTER); - const staged = journal.phase === "downloading" || journal.phase === "waiting" ? modelFile(`${stagedName(journal)}.part`) : undefined; - await run(recoverUpdate(journal, { pointerSha256: pointer?.sha256, stagedBytes: staged?.exists ? byteCount(staged.size) : undefined })); + let stagedBytes: number | undefined; + if (journal.phase === "downloading" || journal.phase === "waiting") { + const staged = modelFile(`${stagedName(journal)}.part`); + // iOS has no .part mid-download; its saved resume data says how far it got (#127). + stagedBytes = staged.exists ? byteCount(staged.size) : resumableBytesOf(stagedName(journal), journal.manifest.file.url) || undefined; + } + await run(recoverUpdate(journal, { pointerSha256: pointer?.sha256, stagedBytes })); }); } diff --git a/apps/mobile/src/app/download.tsx b/apps/mobile/src/app/download.tsx index 115d705..1401387 100644 --- a/apps/mobile/src/app/download.tsx +++ b/apps/mobile/src/app/download.tsx @@ -6,7 +6,7 @@ import { router, useLocalSearchParams } from "expo-router"; import { useCallback, useEffect, useReducer, useRef, useState } from "react"; import { AppState, View } from "react-native"; import { PROFILES, assertPinnedUrl, classifyInterruption, downloadView, floorCheck, percent, reduceDownload, resumesOnReturn, type DegradedReason, type DownloadAction, type DownloadEvent, type DownloadState } from "@hermit/model"; -import { deviceFacts, downloadModel, floorFacts, modelReady, NotWiredError, onReconnect, openStorageSettings, partialModel } from "../adapters"; +import { deviceFacts, downloadModel, floorFacts, modelReady, NotWiredError, onReconnect, openStorageSettings, partialModel, pauseDownloadWhenLeaving } from "../adapters"; import { currentLocale, t } from "../i18n"; import { Btn, Group, Row, T } from "../components/kit"; import { Onb } from "../components/Onboarding"; @@ -102,6 +102,10 @@ export default function Download() { }; }, [run, allowMobile]); + // iOS (#127): leaving the app or losing the connection pauses the download so it keeps its place; the pause lands + // as an interrupted download above, and coming back or reconnecting resumes it. Nothing on Android. + useEffect(() => pauseDownloadWhenLeaving(), []); + const onAction = (id: DownloadAction) => { switch (id) { case "start": diff --git a/apps/mobile/src/download-resume.test.ts b/apps/mobile/src/download-resume.test.ts new file mode 100644 index 0000000..5209d73 --- /dev/null +++ b/apps/mobile/src/download-resume.test.ts @@ -0,0 +1,79 @@ +/// +// How a stopped model download resumes on each platform (issue #127). Made-up URL, sizes and resume data. +import { test } from "node:test"; +import assert from "node:assert/strict"; +import { pausesFor, readResumeRecord, resumePlan, resumeRecordText, resumableBytes } from "./download-resume.ts"; + +const url = "https://example.com/models/made-up.gguf"; +const size = 1_000_000; +// A stand-in for the base64 blob NSURLSession produces when a task pauses. +const blob = Buffer.from("made-up resume data").toString("base64"); +const record = { url, resumeData: blob, bytes: 400_000 }; + +test("Android resumes from the byte offset of .part, as before", () => { + assert.deepEqual(resumePlan("android", { from: 400_000, partBytes: 400_000, expectedSize: size }), { kind: "range", offset: 400_000 }); + // Never past what is on disk. + assert.deepEqual(resumePlan("android", { from: 500_000, partBytes: 400_000, expectedSize: size }), { kind: "range", offset: 400_000 }); + assert.deepEqual(resumePlan("android", { from: size, partBytes: size, expectedSize: size }), { kind: "complete" }); + assert.deepEqual(resumePlan("android", { from: 400_000, partBytes: 0, expectedSize: size }), { kind: "clean" }); + // A stray iOS record never changes the Android path. + assert.deepEqual(resumePlan("android", { from: 400_000, partBytes: 400_000, expectedSize: size, record }), { kind: "range", offset: 400_000 }); +}); + +test("iOS resumes from the saved NSURLSession resume data, never from a byte offset", () => { + assert.deepEqual(resumePlan("ios", { from: 400_000, partBytes: 0, expectedSize: size, record }), { kind: "resume_data", resumeData: blob, offset: 400_000 }); +}); + +test("iOS starts clean when the resume data is missing, or when asked to start over", () => { + assert.deepEqual(resumePlan("ios", { from: 400_000, partBytes: 0, expectedSize: size }), { kind: "clean" }); + assert.deepEqual(resumePlan("ios", { from: 0, partBytes: 0, expectedSize: size, record }), { kind: "clean" }); + assert.deepEqual(resumePlan("android", { from: 0, partBytes: 400_000, expectedSize: size }), { kind: "clean" }); +}); + +test("iOS goes straight to the check when the whole file already sits in .part", () => { + assert.deepEqual(resumePlan("ios", { from: size, partBytes: size, expectedSize: size }), { kind: "complete" }); + // A .part of the wrong length on iOS is not a byte offset to resume from. + assert.deepEqual(resumePlan("ios", { from: 400_000, partBytes: 300_000, expectedSize: size }), { kind: "clean" }); +}); + +test("what is stored next to .part: the URL, the resume data and how far it got", () => { + const text = resumeRecordText(url, blob, 400_000); + assert.ok(text); + assert.deepEqual(JSON.parse(text), { v: 1, url, resumeData: blob, bytes: 400_000 }); + assert.deepEqual(readResumeRecord(text, url, size), record); +}); + +test("nothing is stored when the pause produced no resume data or no bytes", () => { + assert.equal(resumeRecordText(url, undefined, 400_000), undefined); + assert.equal(resumeRecordText(url, "", 400_000), undefined); + assert.equal(resumeRecordText(url, blob, 0), undefined); +}); + +test("a stale or broken record is ignored, so the download starts clean", () => { + const good = resumeRecordText(url, blob, 400_000)!; + assert.equal(readResumeRecord(undefined, url, size), undefined); + assert.equal(readResumeRecord("not json", url, size), undefined); + assert.equal(readResumeRecord(good, "https://example.com/models/other.gguf", size), undefined, "another file's record"); + assert.equal(readResumeRecord(resumeRecordText(url, blob, size + 1)!, url, size), undefined, "more bytes than the model has"); + assert.equal(readResumeRecord(resumeRecordText(url, "40000", 400_000)!, url, size), undefined, "Android's offset is not iOS resume data"); + assert.equal(readResumeRecord(JSON.stringify({ v: 2, url, resumeData: blob, bytes: 400_000 }), url, size), undefined, "unknown version"); + assert.equal(readResumeRecord(JSON.stringify({ v: 1, url, resumeData: blob, bytes: "400000" }), url, size), undefined); +}); + +test("the bytes reported as kept: .part on Android, the saved record on iOS", () => { + assert.equal(resumableBytes("android", 400_000, record), 400_000); + assert.equal(resumableBytes("android", 0, record), 0); + assert.equal(resumableBytes("ios", 0, record), 400_000); + assert.equal(resumableBytes("ios", 0, undefined), 0); + assert.equal(resumableBytes("ios", size, record), size, "a finished file waiting for its check"); +}); + +test("only iOS pauses the download to keep its resume data, when the app leaves or the connection drops", () => { + assert.equal(pausesFor("ios", { appState: "background" }), true); + assert.equal(pausesFor("ios", { appState: "inactive" }), false, "Control Center or a notification is not leaving"); + assert.equal(pausesFor("ios", { appState: "active" }), false); + assert.equal(pausesFor("ios", { connected: false }), true); + assert.equal(pausesFor("ios", { connected: true }), false); + assert.equal(pausesFor("android", { appState: "background" }), false); + assert.equal(pausesFor("android", { connected: false }), false); +}); diff --git a/apps/mobile/src/download-resume.ts b/apps/mobile/src/download-resume.ts new file mode 100644 index 0000000..8c0ba75 --- /dev/null +++ b/apps/mobile/src/download-resume.ts @@ -0,0 +1,83 @@ +// How a stopped model download resumes on each platform (issue #127). Pure: tested under Node with node --test +// (download-resume.test.ts); the adapter in adapters/device.ts does the file and network work. +// +// Android (expo-file-system) resumes from a byte offset: the native task truncates `.part` to it and appends with an +// HTTP Range request. iOS never writes `.part` until the file is complete; NSURLSession keeps the bytes itself and +// resumes only from the opaque base64 blob it produced when the task was paused, so that blob is what is kept, in a +// small record next to `.part`. A missing, stale or rejected record means a clean restart. The SHA-256 check on the +// finished file runs the same on both paths. + +const isIos = (os: string) => os === "ios"; + +/** What is saved next to `.part` on iOS when a download pauses. */ +export interface ResumeRecord { + url: string; + /** NSURLSession's resume data, base64, as expo-file-system returns it from a pause. */ + resumeData: string; + /** How many bytes had arrived when it paused, for the progress bar and the state machine. */ + bytes: number; +} + +export type ResumePlan = + | { kind: "clean" } + | { kind: "complete" } + | { kind: "range"; offset: number } + | { kind: "resume_data"; resumeData: string; offset: number }; + +const BASE64 = /^[A-Za-z0-9+/]+={0,2}$/; +const isBase64 = (s: string) => s.length % 4 === 0 && BASE64.test(s); +const isBytes = (n: unknown): n is number => typeof n === "number" && Number.isSafeInteger(n) && n > 0; + +/** The record's text, or undefined when the pause left nothing to resume from (no resume data, or no bytes yet). */ +export function resumeRecordText(url: string, resumeData: string | null | undefined, bytes: number): string | undefined { + if (!resumeData || !isBytes(bytes)) return undefined; + return JSON.stringify({ v: 1, url, resumeData, bytes }); +} + +/** The saved record, only when it is for this URL, well formed and no longer than the model; else undefined. */ +export function readResumeRecord(text: string | undefined, url: string, size?: number): ResumeRecord | undefined { + if (!text) return undefined; + let r: unknown; + try { + r = JSON.parse(text); + } catch { + return undefined; + } + if (typeof r !== "object" || r === null) return undefined; + const o = r as Record; + if (o.v !== 1 || o.url !== url || typeof o.resumeData !== "string" || !isBase64(o.resumeData) || !isBytes(o.bytes)) return undefined; + if (size !== undefined && o.bytes > size) return undefined; + return { url, resumeData: o.resumeData, bytes: o.bytes }; +} + +/** + * Which path a download attempt takes. `from` is the state machine's `downloading.from` (0 means start clean), + * `partBytes` the length of `.part` on disk, `record` the saved iOS resume data, already read and checked. + */ +export function resumePlan(os: string, x: { from: number; partBytes: number; expectedSize?: number; record?: ResumeRecord }): ResumePlan { + if (x.from <= 0) return { kind: "clean" }; + if (isIos(os)) { + // A finished file waiting for its check (the app stopped before hashing): straight to the check, which still runs. + if (x.partBytes > 0 && x.partBytes === x.expectedSize) return { kind: "complete" }; + return x.record ? { kind: "resume_data", resumeData: x.record.resumeData, offset: x.record.bytes } : { kind: "clean" }; + } + const offset = Math.min(x.from, x.partBytes); + if (offset <= 0) return { kind: "clean" }; + return offset === x.expectedSize ? { kind: "complete" } : { kind: "range", offset }; +} + +/** The bytes a download can resume from: `.part` on disk, or on iOS before it exists, the saved record. */ +export function resumableBytes(os: string, partBytes: number, record: ResumeRecord | undefined): number { + if (partBytes > 0) return partBytes; + return isIos(os) && record ? record.bytes : 0; +} + +/** + * Whether to pause the running download now so its resume data is kept. Only iOS: expo-file-system hands back the + * resume data from a pause, never from a failure, and an app closed while in the background loses it. Android keeps + * `.part` on disk and needs nothing. + */ +export function pausesFor(os: string, signal: { appState?: string; connected?: boolean }): boolean { + if (!isIos(os)) return false; + return signal.appState === "background" || signal.connected === false; +} From c94288157820fcbaf1825fb56623dfb93d65f3bf Mon Sep 17 00:00:00 2001 From: Daniel Bejarano <58019353+dbejarano820@users.noreply.github.com> Date: Thu, 26 Nov 2026 18:14:04 -0600 Subject: [PATCH 2/3] Device lab: File it on GitHub copies the report first, so it reaches the form (#130) On an iPhone with the GitHub app, the github.com link opens in the app, which drops the query, so the report never reached the form. File it on GitHub now copies the exact report with the plain local copy every time, then lets the system open the link with its default handler (the GitHub app or the browser), on Android and iOS. The screen says the report is copied, to paste it into the Report field if the form opens empty, and to pick Device report if the app shows a list. The too-long path says the same. The decision lives in fileReport() in device-lab-view.ts, tested under node --test. Signed-off-by: Daniel Bejarano --- apps/mobile/src/adapters/device-lab.ts | 2 +- apps/mobile/src/app/device-lab.tsx | 24 ++------- apps/mobile/src/device-lab-view.test.ts | 71 ++++++++++++++++++++++++- apps/mobile/src/device-lab-view.ts | 26 +++++++++ packages/copy/locales/en.json | 7 +-- packages/copy/locales/es-419.json | 7 +-- 6 files changed, 110 insertions(+), 27 deletions(-) diff --git a/apps/mobile/src/adapters/device-lab.ts b/apps/mobile/src/adapters/device-lab.ts index af1d179..cd69cfc 100644 --- a/apps/mobile/src/adapters/device-lab.ts +++ b/apps/mobile/src/adapters/device-lab.ts @@ -128,7 +128,7 @@ export async function shareReport(text: string, subject: string): Promise await Share.share({ message: text, title: subject }); } -/** Opens the GitHub form in the browser. Nothing is filed until the person submits it there. */ +/** Opens the GitHub form with the system's default handler: the GitHub app when installed, else the browser. Nothing is filed until the person submits it there. */ export function openReportForm(url: string): Promise { return Linking.openURL(url); } diff --git a/apps/mobile/src/app/device-lab.tsx b/apps/mobile/src/app/device-lab.tsx index e856b7b..3bed51e 100644 --- a/apps/mobile/src/app/device-lab.tsx +++ b/apps/mobile/src/app/device-lab.tsx @@ -13,7 +13,7 @@ import { modelReady, releaseModel } from "../adapters"; import { appVersion, batterySaverOn, copyReport, keepScreenOn, labPorts, labSetup, openReportForm, shareReport } from "../adapters/device-lab"; import { inTurn } from "../adapters/model-update"; import { Btn, Card, Failed, Field, Label, Meter, Note, Notice, Page, T } from "../components/kit"; -import { clockText, issueLink, REPORT_FORM_ADDRESS, reportGroups, reportText } from "../device-lab-view"; +import { clockText, fileReport, REPORT_FORM_ADDRESS, type FileNotice, reportGroups, reportText } from "../device-lab-view"; import { currentLocale, t } from "../i18n"; import { s } from "../theme"; import { usePalette } from "../use-palette"; @@ -27,7 +27,7 @@ type State = | { kind: "failed"; reason: Failure } | { kind: "done"; report: DeviceReport }; -type Shared = "copied" | "copyFailed" | "longCopied" | "openFailed"; +type Shared = "copied" | FileNotice; export default function DeviceLab() { usePalette(); @@ -190,22 +190,8 @@ function Report({ report, onAgain }: { report: DeviceReport; onAgain(): void }) } }; const file = async () => { - const link = issueLink(report); - if (!link.prefilled) { - try { - await copyReport(text); - setShared("longCopied"); - } catch { - return setShared("copyFailed"); - } - } else { - setShared(undefined); - } - try { - await openReportForm(link.url); - } catch { - setShared("openFailed"); - } + setShared(undefined); + setShared(await fileReport(report, { copy: copyReport, open: openReportForm })); }; const share = async () => { try { @@ -251,7 +237,7 @@ function Report({ report, onAgain }: { report: DeviceReport; onAgain(): void }) void copy()} /> void share()} /> - {notice ? : null} + {notice ? : null} diff --git a/apps/mobile/src/device-lab-view.test.ts b/apps/mobile/src/device-lab-view.test.ts index 8b1d2e5..920645b 100644 --- a/apps/mobile/src/device-lab-view.test.ts +++ b/apps/mobile/src/device-lab-view.test.ts @@ -4,7 +4,7 @@ import { test } from "node:test"; import assert from "node:assert/strict"; import { readFileSync } from "node:fs"; import { createTranslator, type Dictionary } from "@hermit/copy"; -import { clockText, issueLink, MAX_FORM_URL, REPORT_FORM_URL, reportGroups, reportText } from "./device-lab-view.ts"; +import { clockText, fileReport, issueLink, MAX_FORM_URL, REPORT_FORM_URL, reportGroups, reportText } from "./device-lab-view.ts"; const locale = (name: string) => JSON.parse(readFileSync(new URL(`../../../packages/copy/locales/${name}.json`, import.meta.url), "utf8")) as Dictionary; const fixture = (name: string) => JSON.parse(readFileSync(new URL(`../../../scripts/devices/fixtures/${name}`, import.meta.url), "utf8")); @@ -91,6 +91,75 @@ test("a report too long for a link opens the empty form instead", () => { assert.equal(new URL(link.url).searchParams.get("template"), "device_report.yml"); }); +/** A made-up phone for File it on GitHub: what it copied and opened, in order, and which of the two fail. */ +const phoneFor = (fail: { copy?: boolean; open?: boolean } = {}) => { + const calls: string[][] = []; + return { + calls, + io: { + copy: async (text: string) => { + calls.push(["copy", text]); + if (fail.copy) throw new Error("no clipboard"); + }, + open: async (url: string) => { + calls.push(["open", url]); + if (fail.open) throw new Error("no handler"); + }, + }, + }; +}; + +const tooLong = () => { + const long = JSON.parse(JSON.stringify(report)); + long.device.model = "M".repeat(40); + long.speed.sweep = Array.from({ length: 200 }, (_, i) => ({ threads: i + 1, tokensPerSecond: 1, loadMs: 1 })); + return long; +}; + +test("File it on GitHub copies the exact report first, then opens the filled-in form, on every phone", async () => { + for (const r of [report, iphone]) { + const phone = phoneFor(); + const notice = await fileReport(r, phone.io); + assert.deepEqual(phone.calls, [["copy", reportText(r)], ["open", issueLink(r).url]]); + assert.equal(issueLink(r).prefilled, true); + assert.equal(notice, "fileCopied"); + } +}); + +test("a report too long for a link is copied the same way, and the empty form opens", async () => { + const long = tooLong(); + const phone = phoneFor(); + assert.equal(await fileReport(long, phone.io), "longCopied"); + assert.deepEqual(phone.calls, [["copy", reportText(long)], ["open", issueLink(long).url]]); + assert.equal(new URL(phone.calls[1]![1]!).searchParams.get("report"), null); +}); + +test("when the copy fails, a filled-in form still opens, but an empty one doesn't", async () => { + const filled = phoneFor({ copy: true }); + assert.equal(await fileReport(report, filled.io), undefined); + assert.deepEqual(filled.calls.map((c) => c[0]), ["copy", "open"]); + const empty = phoneFor({ copy: true }); + assert.equal(await fileReport(tooLong(), empty.io), "copyFailed"); + assert.deepEqual(empty.calls.map((c) => c[0]), ["copy"]); +}); + +test("when nothing can open the link, the screen says so", async () => { + assert.equal(await fileReport(report, phoneFor({ open: true }).io), "openFailed"); + assert.equal(await fileReport(tooLong(), phoneFor({ open: true }).io), "openFailed"); +}); + +test("what File it on GitHub says: the report is copied, paste it into Report if the form opens empty, or pick Device report", () => { + for (const name of ["en", "es-419"]) { + const d = locale(name); + for (const key of ["HM-SET-10.fileCopied", "HM-SET-10.longCopied"]) { + assert.ok(d[key], `${name}: ${key} is missing`); + assert.ok(d[key]!.includes("Report") && d[key]!.includes("Device report"), `${name}: ${key}`); + assert.ok(!/[\u2013\u2014]/.test(d[key]!), `${name}: ${key} has a dash`); + } + assert.ok(!/Android/.test(d["HM-SET-10.fileCopied"]!), `${name}: fileCopied says Android`); + } +}); + test("the exact text is the report's JSON, and nothing else", () => { assert.deepEqual(JSON.parse(reportText(report)), report); assert.equal(reportText(report), JSON.stringify(report, null, 2)); diff --git a/apps/mobile/src/device-lab-view.ts b/apps/mobile/src/device-lab-view.ts index 74054c3..f2af53c 100644 --- a/apps/mobile/src/device-lab-view.ts +++ b/apps/mobile/src/device-lab-view.ts @@ -36,6 +36,32 @@ export function issueLink(r: DeviceReport): { url: string; prefilled: boolean } return { url: base, prefilled: false }; } +/** What the screen says after File it on GitHub. */ +export type FileNotice = "fileCopied" | "longCopied" | "copyFailed" | "openFailed"; + +/** + * File it on GitHub: the exact report goes to the clipboard first, every time, then the system opens the link with + * whatever handles github.com (the GitHub app when installed, else the browser). The app may drop the link's query, so + * the copy is what lets the report reach the form either way. When the copy fails, a filled-in form still opens; an + * empty one doesn't, since the person would have nothing to paste. + */ +export async function fileReport(r: DeviceReport, io: { copy(text: string): Promise; open(url: string): Promise }): Promise { + const link = issueLink(r); + let copied = true; + try { + await io.copy(reportText(r)); + } catch { + copied = false; + if (!link.prefilled) return "copyFailed"; + } + try { + await io.open(link.url); + } catch { + return "openFailed"; + } + return !copied ? undefined : link.prefilled ? "fileCopied" : "longCopied"; +} + /** Minutes and seconds, for the time so far ("1:05"). */ export function clockText(ms: number): string { const total = Math.max(0, Math.floor(ms / 1000)); diff --git a/packages/copy/locales/en.json b/packages/copy/locales/en.json index c81b0a2..155fa13 100644 --- a/packages/copy/locales/en.json +++ b/packages/copy/locales/en.json @@ -2229,13 +2229,14 @@ "HM-SET-10.hideExact": "Hide the exact text", "HM-SET-10.exactNote": "This is exactly the text that Copy, Share and File it on GitHub use.", "HM-SET-10.shareTitle": "Share it, if you like", - "HM-SET-10.shareBody": "Reports from many phones help tune Hermit's speed and accuracy for each one. File it on GitHub opens the Hermit project's report form in your browser with the report filled in. Nothing is filed until you press Submit there, and you need a GitHub account.", + "HM-SET-10.shareBody": "Reports from many phones help tune Hermit's speed and accuracy for each one. File it on GitHub copies the report, then opens the Hermit project's report form in the GitHub app or your browser, with the report filled in. Nothing is filed until you press Submit there, and you need a GitHub account.", "HM-SET-10.file": "File it on GitHub", "HM-SET-10.copy": "Copy", "HM-SET-10.share": "Share", "HM-SET-10.copied": "Copied.", "HM-SET-10.copyFailed": "Couldn't copy it. Try again.", - "HM-SET-10.longCopied": "The report is too long for a link, so it's copied: paste it into the form's Report field.", - "HM-SET-10.openFailed": "Couldn't open the browser. Copy the report and file it at {address}.", + "HM-SET-10.fileCopied": "The report is copied too. If the form opens empty, paste it into the Report field. If the GitHub app shows a list of forms, pick Device report.", + "HM-SET-10.longCopied": "The report is too long for a link, so it's copied. Paste it into the form's Report field. If the GitHub app shows a list of forms, pick Device report.", + "HM-SET-10.openFailed": "Couldn't open GitHub. Copy the report and file it at {address}.", "HM-SET-10.shareSubject": "Hermit device report" } diff --git a/packages/copy/locales/es-419.json b/packages/copy/locales/es-419.json index a96fe1e..c8d6fcc 100644 --- a/packages/copy/locales/es-419.json +++ b/packages/copy/locales/es-419.json @@ -2229,13 +2229,14 @@ "HM-SET-10.hideExact": "Ocultar el texto exacto", "HM-SET-10.exactNote": "Este es exactamente el texto que usan Copiar, Compartir y Enviarlo a GitHub.", "HM-SET-10.shareTitle": "Compártelo, si quieres", - "HM-SET-10.shareBody": "Los informes de muchos teléfonos ayudan a ajustar la velocidad y la precisión de Hermit para cada uno. Enviarlo a GitHub abre en tu navegador el formulario de informes del proyecto Hermit, con el informe ya puesto. No se publica nada hasta que presiones Submit ahí, y necesitas una cuenta de GitHub.", + "HM-SET-10.shareBody": "Los informes de muchos teléfonos ayudan a ajustar la velocidad y la precisión de Hermit para cada uno. Enviarlo a GitHub copia el informe y luego abre el formulario de informes del proyecto Hermit en la app de GitHub o en tu navegador, con el informe ya puesto. No se publica nada hasta que presiones Submit ahí, y necesitas una cuenta de GitHub.", "HM-SET-10.file": "Enviarlo a GitHub", "HM-SET-10.copy": "Copiar", "HM-SET-10.share": "Compartir", "HM-SET-10.copied": "Copiado.", "HM-SET-10.copyFailed": "No se pudo copiar. Inténtalo de nuevo.", - "HM-SET-10.longCopied": "El informe es demasiado largo para un enlace, así que se copió: pégalo en el campo Report del formulario.", - "HM-SET-10.openFailed": "No se pudo abrir el navegador. Copia el informe y envíalo en {address}.", + "HM-SET-10.fileCopied": "El informe también se copió. Si el formulario se abre vacío, pégalo en el campo Report. Si la app de GitHub muestra una lista de formularios, elige Device report.", + "HM-SET-10.longCopied": "El informe es demasiado largo para un enlace, así que se copió. Pégalo en el campo Report del formulario. Si la app de GitHub muestra una lista de formularios, elige Device report.", + "HM-SET-10.openFailed": "No se pudo abrir GitHub. Copia el informe y envíalo en {address}.", "HM-SET-10.shareSubject": "Informe de dispositivo de Hermit" } From 8ca2b679bb9358cf2f16f97adadebbe2cd7599fa Mon Sep 17 00:00:00 2001 From: Daniel Bejarano <58019353+dbejarano820@users.noreply.github.com> Date: Thu, 26 Nov 2026 18:47:47 -0600 Subject: [PATCH 3/3] iOS: permission prompts in both languages, and copy that says Face ID or Touch ID The iOS permission prompts come from packages/copy (common.ios.*). A config plugin, plugins/with-ios-purpose-strings, writes the English text into Info.plist in place of the defaults expo-secure-store and expo-calendar would write, and sets `locales`, so prebuild writes en.lproj and es.lproj InfoPlist.strings. A missing key fails the prebuild. Strings that named the fingerprint now use {biometric}, {biometricStart} or {aBiometric}. createTranslator takes defaults, and the app fills them from common.biometric.*: fingerprint on Android, Face ID or Touch ID on an iPhone (from supportedAuthenticationTypesAsync), and "Face ID or Touch ID" when the phone reports neither. The few of those strings that said Android retired a key now say the key was retired. A hash's fingerprint and the Device lab copy are unchanged. The restricted-settings steps and the exact-alarm hint are Android's: an iPhone no longer shows them, on the onboarding permissions step or in What Hermit can use. Closes #128 Signed-off-by: Daniel Bejarano --- apps/mobile/app.json | 1 + .../plugins/ios-purpose-strings-core.js | 32 +++ .../plugins/ios-purpose-strings.test.mjs | 55 +++++ .../plugins/with-ios-purpose-strings.js | 22 ++ apps/mobile/src/adapters/fingerprint.ts | 9 + apps/mobile/src/adapters/permissions.ts | 8 +- apps/mobile/src/app/_layout.tsx | 4 + apps/mobile/src/app/permissions.tsx | 6 +- apps/mobile/src/biometric-name.test.ts | 22 ++ apps/mobile/src/biometric-name.ts | 17 ++ apps/mobile/src/i18n.ts | 15 +- apps/mobile/src/mode-view.test.ts | 10 +- packages/copy/locales/en.json | 215 ++++++++++-------- packages/copy/locales/es-419.json | 215 ++++++++++-------- packages/copy/src/index.ts | 32 ++- packages/copy/test/copy.test.ts | 65 +++++- packages/runtime/src/settings-view.ts | 17 +- packages/runtime/test/pay-copy.test.ts | 5 +- packages/runtime/test/settings-view.test.ts | 11 +- packages/runtime/test/w1-replies.test.ts | 4 +- 20 files changed, 540 insertions(+), 225 deletions(-) create mode 100644 apps/mobile/plugins/ios-purpose-strings-core.js create mode 100644 apps/mobile/plugins/ios-purpose-strings.test.mjs create mode 100644 apps/mobile/plugins/with-ios-purpose-strings.js create mode 100644 apps/mobile/src/biometric-name.test.ts create mode 100644 apps/mobile/src/biometric-name.ts diff --git a/apps/mobile/app.json b/apps/mobile/app.json index 83daf57..1b11576 100644 --- a/apps/mobile/app.json +++ b/apps/mobile/app.json @@ -126,6 +126,7 @@ } } ], + "./plugins/with-ios-purpose-strings", "expo-secure-store", [ "expo-local-authentication", diff --git a/apps/mobile/plugins/ios-purpose-strings-core.js b/apps/mobile/plugins/ios-purpose-strings-core.js new file mode 100644 index 0000000..2fee3fb --- /dev/null +++ b/apps/mobile/plugins/ios-purpose-strings-core.js @@ -0,0 +1,32 @@ +// Issue 128: the iOS permission prompts (Info.plist purpose strings), read from packages/copy so they have one source, +// in both locales. Pure: tested by ios-purpose-strings.test.mjs. +"use strict"; + +const fs = require("node:fs"); + +/** Each purpose key the Face ID and calendar plugins write, and the copy key that says it. */ +const PURPOSE_KEYS = { + NSFaceIDUsageDescription: "common.ios.faceIdUsage", + NSCalendarsUsageDescription: "common.ios.calendarsUsage", + NSCalendarsFullAccessUsageDescription: "common.ios.calendarsUsage", + NSRemindersUsageDescription: "common.ios.remindersUsage", + NSRemindersFullAccessUsageDescription: "common.ios.remindersUsage", +}; + +/** The purpose strings for one locale's dictionary. A missing key fails the prebuild instead of shipping Expo's default. */ +function purposeStrings(dict) { + const out = {}; + for (const [plistKey, copyKey] of Object.entries(PURPOSE_KEYS)) { + const text = dict[copyKey]; + if (typeof text !== "string" || !text) throw new Error(`Hermit: packages/copy has no ${copyKey} for ${plistKey}.`); + out[plistKey] = text; + } + return out; +} + +/** packages/copy's locales, as JSON. */ +function readCopy(locale) { + return JSON.parse(fs.readFileSync(require.resolve(`@hermit/copy/locales/${locale}.json`), "utf8")); +} + +module.exports = { PURPOSE_KEYS, purposeStrings, readCopy }; diff --git a/apps/mobile/plugins/ios-purpose-strings.test.mjs b/apps/mobile/plugins/ios-purpose-strings.test.mjs new file mode 100644 index 0000000..71f964a --- /dev/null +++ b/apps/mobile/plugins/ios-purpose-strings.test.mjs @@ -0,0 +1,55 @@ +// Issue 128: the iOS permission prompts come from packages/copy, in English and Spanish, and replace every default the +// Expo plugins would write. Run through Expo's own Info.plist mods, with no prebuild. +import { test } from "node:test"; +import assert from "node:assert/strict"; +import fs from "node:fs"; +import { createRequire } from "node:module"; + +const require = createRequire(import.meta.url); +const withIosPurposeStrings = require("./with-ios-purpose-strings.js"); +const { PURPOSE_KEYS, purposeStrings } = require("./ios-purpose-strings-core.js"); +const plugin = (name) => require(name).default; +const withSecureStore = plugin("expo-secure-store/app.plugin.js"); +const withCalendar = plugin("expo-calendar/app.plugin.js"); +const withLocalAuthentication = plugin("expo-local-authentication/app.plugin.js"); + +const en = JSON.parse(fs.readFileSync(new URL("../../../packages/copy/locales/en.json", import.meta.url), "utf8")); +const es = JSON.parse(fs.readFileSync(new URL("../../../packages/copy/locales/es-419.json", import.meta.url), "utf8")); +const app = JSON.parse(fs.readFileSync(new URL("../app.json", import.meta.url), "utf8")).expo; + +const EXPO_DEFAULT = /Allow \$\(PRODUCT_NAME\)/; + +test("every Info.plist purpose key the calendar and Face ID plugins write has copy in both locales", () => { + for (const plistKey of ["NSFaceIDUsageDescription", "NSCalendarsUsageDescription", "NSCalendarsFullAccessUsageDescription", "NSRemindersUsageDescription", "NSRemindersFullAccessUsageDescription"]) { + const copyKey = PURPOSE_KEYS[plistKey]; + assert.ok(copyKey, plistKey); + assert.ok(en[copyKey], `${copyKey} in en`); + assert.ok(es[copyKey], `${copyKey} in es-419`); + } + assert.deepEqual(Object.keys(purposeStrings(en)).sort(), Object.keys(purposeStrings(es)).sort()); + assert.throws(() => purposeStrings({}), /common\.ios\./); +}); + +test("the plugin writes the English prompts to Info.plist and both languages to InfoPlist.strings", async () => { + // The order app.json uses: ours, then the plugins whose defaults it replaces. + let config = { name: "Hermit", slug: "hermit", ios: {} }; + config = withIosPurposeStrings(config); + config = withSecureStore(config); + config = withLocalAuthentication(config, { faceIDPermission: false }); + config = withCalendar(config); + const result = await config.mods.ios.infoPlist({ ...config, modResults: { ...config.ios.infoPlist }, modRequest: { platform: "ios", modName: "infoPlist", projectRoot: "/app", platformProjectRoot: "/app/ios", introspect: true } }); + const plist = result.modResults; + for (const [plistKey, copyKey] of Object.entries(PURPOSE_KEYS)) { + assert.equal(plist[plistKey], en[copyKey], plistKey); + assert.doesNotMatch(plist[plistKey], EXPO_DEFAULT, plistKey); + assert.equal(config.locales.en[plistKey], en[copyKey]); + assert.equal(config.locales.es[plistKey], es[copyKey]); + } +}); + +test("app.json lists the plugin before the plugins whose defaults it replaces", () => { + const names = app.plugins.map((p) => (Array.isArray(p) ? p[0] : p)); + const ours = names.indexOf("./plugins/with-ios-purpose-strings"); + assert.ok(ours >= 0, "listed"); + for (const other of ["expo-secure-store", "expo-local-authentication", "expo-calendar"]) assert.ok(ours < names.indexOf(other), other); +}); diff --git a/apps/mobile/plugins/with-ios-purpose-strings.js b/apps/mobile/plugins/with-ios-purpose-strings.js new file mode 100644 index 0000000..b5964c6 --- /dev/null +++ b/apps/mobile/plugins/with-ios-purpose-strings.js @@ -0,0 +1,22 @@ +// Issue 128: Expo config plugin that writes the iOS permission prompts from packages/copy. Info.plist gets the English +// text, in place of the defaults expo-secure-store and expo-calendar would write, and `locales` gets English and Spanish, +// so prebuild writes en.lproj and es.lproj InfoPlist.strings. iOS uses es.lproj for any Spanish, as resolveLocale does. +// +// app.json: "./plugins/with-ios-purpose-strings", listed before expo-secure-store, expo-local-authentication and +// expo-calendar. Mods run last-listed first, so this one runs after theirs and its text is what stays. +"use strict"; + +const { withInfoPlist } = require("expo/config-plugins"); +const { purposeStrings, readCopy } = require("./ios-purpose-strings-core.js"); + +function withIosPurposeStrings(config) { + const en = purposeStrings(readCopy("en")); + const es = purposeStrings(readCopy("es-419")); + config.locales = { ...config.locales, en: { ...config.locales?.en, ...en }, es: { ...config.locales?.es, ...es } }; + return withInfoPlist(config, (c) => { + Object.assign(c.modResults, en); + return c; + }); +} + +module.exports = withIosPurposeStrings; diff --git a/apps/mobile/src/adapters/fingerprint.ts b/apps/mobile/src/adapters/fingerprint.ts index 0c7de73..7ddc052 100644 --- a/apps/mobile/src/adapters/fingerprint.ts +++ b/apps/mobile/src/adapters/fingerprint.ts @@ -1,4 +1,7 @@ import * as LocalAuthentication from "expo-local-authentication"; +import { Platform } from "react-native"; +import { biometricKind } from "../biometric-name"; +import { setBiometricKind } from "../i18n"; export type FingerprintCheck = "confirmed" | "not_confirmed" | "unavailable"; @@ -17,3 +20,9 @@ export async function confirmWithFingerprint(prompt: string, cancelLabel: string }); return auth.success ? "confirmed" : "not_confirmed"; } + +/** Issue 128: the copy names this phone's biometric: Face ID or Touch ID on an iPhone, fingerprint on Android. */ +export async function applyBiometricName(): Promise { + const supported = Platform.OS === "ios" ? await LocalAuthentication.supportedAuthenticationTypesAsync().catch(() => undefined) : undefined; + setBiometricKind(biometricKind(Platform.OS, supported)); +} diff --git a/apps/mobile/src/adapters/permissions.ts b/apps/mobile/src/adapters/permissions.ts index 7ccf85f..fd075ae 100644 --- a/apps/mobile/src/adapters/permissions.ts +++ b/apps/mobile/src/adapters/permissions.ts @@ -1,13 +1,14 @@ import * as Calendar from "expo-calendar"; import * as LocalAuthentication from "expo-local-authentication"; import * as Notifications from "expo-notifications"; -import { Linking } from "react-native"; +import { Linking, Platform } from "react-native"; import { permissionRow, remindersRow, type OsReading, type PermissionId, type PermissionRow } from "@hermit/runtime"; import { requestCalendarPermission } from "./calendar"; import { contactsPermission, requestContactsPermission } from "./contacts"; import { notificationAccessEnabled, openNotificationAccessSettings } from "./messages"; import { requestReminderAccess } from "./notifier"; import { autofillSelected, openAutofillSettings } from "./autofill"; +import { hardwarePlatform } from "../platform-facts"; /** HM-SET-01: reads each permission without prompting; the screen re-reads when the user comes back. */ const prompt = async (read: () => Promise<{ status: string; canAskAgain: boolean }>): Promise => { @@ -36,11 +37,12 @@ export async function readPermissions(): Promise { special(async () => (await Notifications.getExactAlarmPermissionsAsync()).granted), special(() => LocalAuthentication.isEnrolledAsync()), ]); + const os = hardwarePlatform(Platform.OS); return [ - permissionRow("notifications", notifications), + permissionRow("notifications", notifications, os), permissionRow("calendar", calendar), permissionRow("contacts", contacts), - remindersRow(notify, exact), + remindersRow(notify, exact, os), permissionRow("fingerprint", fingerprint), // No voice in this build yet: listed so the user sees it, with nothing to grant. permissionRow("microphone", { kind: "not_used" }), diff --git a/apps/mobile/src/app/_layout.tsx b/apps/mobile/src/app/_layout.tsx index 03ee198..47f696a 100644 --- a/apps/mobile/src/app/_layout.tsx +++ b/apps/mobile/src/app/_layout.tsx @@ -1,11 +1,15 @@ import { Stack } from "expo-router"; import { StatusBar } from "expo-status-bar"; +import { applyBiometricName } from "../adapters/fingerprint"; import { AppLockProvider } from "../app-lock"; import { useDisplaySync } from "../display-settings"; import { HermitProvider } from "../hermit-context"; import { t } from "../i18n"; import { usePalette } from "../use-palette"; +// Issue 128: Face ID or Touch ID in the copy on an iPhone, read once before the first screens need it. +void applyBiometricName(); + // HM-ONB-02, HM-SET-05, HM-SET-07: the stored language and scheme, applied once the runtime is ready. function DisplaySync() { useDisplaySync(); diff --git a/apps/mobile/src/app/permissions.tsx b/apps/mobile/src/app/permissions.tsx index 18c3351..cd34b6e 100644 --- a/apps/mobile/src/app/permissions.tsx +++ b/apps/mobile/src/app/permissions.tsx @@ -3,13 +3,15 @@ import { openHermitChat } from "../open-chat"; import { router } from "expo-router"; import { useState } from "react"; -import { View } from "react-native"; +import { Platform, View } from "react-native"; +import { showsRestrictedHelp } from "@hermit/runtime"; import { NotWiredError, requestCalendarAccess, requestContactsPermission, requestNotificationAccess, requestReminderPermission, setUpApprovals } from "../adapters"; import type { IconName } from "../components/Icon"; import { Btn, Group, Row, Status, T } from "../components/kit"; import { Onb } from "../components/Onboarding"; import { useHermit } from "../hermit-context"; import { t } from "../i18n"; +import { hardwarePlatform } from "../platform-facts"; import { s } from "../theme"; type Grant = "unknown" | "granted" | "denied" | "not_wired"; @@ -69,7 +71,7 @@ export default function Permissions() { } > - {row("bell", t("HM-ONB-04.notificationsTitle"), t("HM-ONB-04.notificationsBody"), notif, () => ask(requestNotificationAccess, setNotif), t("HM-ONB-04.restrictedHelp"))} + {row("bell", t("HM-ONB-04.notificationsTitle"), t("HM-ONB-04.notificationsBody"), notif, () => ask(requestNotificationAccess, setNotif), showsRestrictedHelp(hardwarePlatform(Platform.OS)) ? t("HM-ONB-04.restrictedHelp") : undefined)} {row("calendar", t("HM-ONB-04.calendarTitle"), t("HM-ONB-04.calendarBody"), cal, () => ask(requestCalendarAccess, setCal))} {row("contact", t("HM-ONB-04.contactsTitle"), t("HM-ONB-04.contactsBody"), contacts, () => ask(requestContactsPermission, setContacts))} {row("bell-ring", t("HM-ONB-04.remindersTitle"), t("HM-ONB-04.remindersBody"), reminders, () => ask(requestReminderPermission, setReminders))} diff --git a/apps/mobile/src/biometric-name.test.ts b/apps/mobile/src/biometric-name.test.ts new file mode 100644 index 0000000..d6ca701 --- /dev/null +++ b/apps/mobile/src/biometric-name.test.ts @@ -0,0 +1,22 @@ +/// +// Issue 128: which word the copy uses for the biometric, from the OS and expo-local-authentication's supported types +// (FINGERPRINT 1, FACIAL_RECOGNITION 2, IRIS 3). +import { test } from "node:test"; +import assert from "node:assert/strict"; +import { biometricKind } from "./biometric-name.ts"; + +test("Android keeps fingerprint, whatever the phone reports", () => { + assert.equal(biometricKind("android", [1]), "fingerprint"); + assert.equal(biometricKind("android", [2]), "fingerprint"); + assert.equal(biometricKind("android", []), "fingerprint"); +}); + +test("an iPhone says Face ID or Touch ID, from what it supports", () => { + assert.equal(biometricKind("ios", [2]), "faceId"); + assert.equal(biometricKind("ios", [1]), "touchId"); +}); + +test("an iPhone that reports neither, or a failed read, gets the neutral words", () => { + assert.equal(biometricKind("ios", []), "faceOrTouchId"); + assert.equal(biometricKind("ios", undefined), "faceOrTouchId"); +}); diff --git a/apps/mobile/src/biometric-name.ts b/apps/mobile/src/biometric-name.ts new file mode 100644 index 0000000..eee8f72 --- /dev/null +++ b/apps/mobile/src/biometric-name.ts @@ -0,0 +1,17 @@ +// Issue 128: which word the copy uses for the phone's biometric. Pure: tested under Node (biometric-name.test.ts). +import type { BiometricKind } from "@hermit/copy"; + +/** expo-local-authentication's AuthenticationType values. */ +const FINGERPRINT = 1; +const FACIAL_RECOGNITION = 2; + +/** + * Android keeps "fingerprint". An iPhone says Face ID or Touch ID from what it supports + * (supportedAuthenticationTypesAsync), and both names when it reports neither or the read failed. + */ +export function biometricKind(os: string, supported: readonly number[] | undefined): BiometricKind { + if (os !== "ios") return "fingerprint"; + if (supported?.includes(FACIAL_RECOGNITION)) return "faceId"; + if (supported?.includes(FINGERPRINT)) return "touchId"; + return "faceOrTouchId"; +} diff --git a/apps/mobile/src/i18n.ts b/apps/mobile/src/i18n.ts index f2af507..6a593d6 100644 --- a/apps/mobile/src/i18n.ts +++ b/apps/mobile/src/i18n.ts @@ -1,11 +1,22 @@ import { useSyncExternalStore } from "react"; -import { createTranslator, resolveLocale, type Dictionary, type Locale } from "@hermit/copy"; +import { biometricWords, createTranslator, resolveLocale, type BiometricKind, type Dictionary, type Locale } from "@hermit/copy"; import en from "@hermit/copy/locales/en.json"; import es from "@hermit/copy/locales/es-419.json"; // CT-10: every string on screen comes from here, keyed by screen ID. const dictionaries: Record = { en, "es-419": es }; -const translators: Record> = { en: createTranslator(en), "es-419": createTranslator(es) }; +// Issue 128: {biometric} and its forms name this phone's biometric (fingerprint on Android, Face ID or Touch ID on an +// iPhone). Fingerprint until setBiometricKind runs at startup. +const translatorsFor = (kind: BiometricKind): Record> => ({ + en: createTranslator(en, biometricWords(en, kind)), + "es-419": createTranslator(es, biometricWords(es, kind)), +}); +let translators = translatorsFor("fingerprint"); + +/** Names the phone's biometric in every string from now on (adapters/fingerprint.ts reads it from the OS). */ +export function setBiometricKind(kind: BiometricKind): void { + translators = translatorsFor(kind); +} /** The phone's language, resolved to the two Hermit speaks (es-419 for any Spanish, English otherwise). */ export function deviceLocale(): Locale { diff --git a/apps/mobile/src/mode-view.test.ts b/apps/mobile/src/mode-view.test.ts index c75659f..6519c2b 100644 --- a/apps/mobile/src/mode-view.test.ts +++ b/apps/mobile/src/mode-view.test.ts @@ -58,7 +58,7 @@ test("HM-BOT-04: the Auto sheet names what really runs, in both languages (F-M21 "HM-BOT-04.autoSheet.mail": [/confirmar, cancelar suscripción o iniciar sesión.*tu correo y tus mensajes/, /confirm, unsubscribe or sign-in links.*your mail and messages/], "HM-BOT-04.autoSheet.composed": [/enlace que Hermit arma.*sigue pidiendo/, /link Hermit builds itself still asks/], "HM-BOT-04.autoSheet.asks": [/responder.*enviar un correo.*datos de otra persona/, /replying.*sending an email.*someone else's data/], - "HM-BOT-04.autoSheet.money": [/pagos y los inicios de sesión.*huella/, /[Pp]ayments and logins.*fingerprint/], + "HM-BOT-04.autoSheet.money": [/pagos y los inicios de sesión.*\{biometric\}/, /[Pp]ayments and logins.*\{biometric\}/], }; for (const [key, [e, n]] of Object.entries(points)) { assert.match(es[key] ?? "", e, `es ${key}`); @@ -76,10 +76,10 @@ test("HM-BOT-04: the Auto sheet names what really runs, in both languages (F-M21 test("HM-BOT-04: the Don't ask sheet names the connected tools, the money and the proof, in both languages", () => { assert.match(es["HM-BOT-04.dontAskSheet.tools"]!, /herramientas de servicios conectados.*sin preguntar.*no siempre puede.*mueve dinero/); assert.match(en["HM-BOT-04.dontAskSheet.tools"]!, /Tools from connected services run without asking.*can't always tell whether.*moves money/); - assert.match(es["HM-BOT-04.dontAskSheet.money"]!, /pagos y los inicios de sesión.*huella.*todos los modos/); - assert.match(en["HM-BOT-04.dontAskSheet.money"]!, /Payments and logins.*fingerprint.*every mode/); - assert.match(es["HM-BOT-04.dontAskSheet.proof"]!, /huella.*escribir/); - assert.match(en["HM-BOT-04.dontAskSheet.proof"]!, /fingerprint.*type/); + assert.match(es["HM-BOT-04.dontAskSheet.money"]!, /pagos y los inicios de sesión.*\{biometric\}.*todos los modos/); + assert.match(en["HM-BOT-04.dontAskSheet.money"]!, /Payments and logins.*\{biometric\}.*every mode/); + assert.match(es["HM-BOT-04.dontAskSheet.proof"]!, /\{biometric\}.*escribir/); + assert.match(en["HM-BOT-04.dontAskSheet.proof"]!, /\{biometric\}.*type/); for (const k of ["risk", "tools", "money", "proof", "typeWord"]) assert.ok(DONT_ASK_SHEET_KEYS.includes(`HM-BOT-04.dontAskSheet.${k}` as never), k); }); diff --git a/packages/copy/locales/en.json b/packages/copy/locales/en.json index 155fa13..0718fcd 100644 --- a/packages/copy/locales/en.json +++ b/packages/copy/locales/en.json @@ -133,7 +133,7 @@ "HM-APPR-01.taintFrom.web": "Suggested after reading a web page", "HM-APPR-01.taintFrom.file": "Suggested after reading a file", "HM-APPR-01.taintFrom.notification": "Suggested after reading a notification", - "HM-APPR-01.approve": "Approve with fingerprint", + "HM-APPR-01.approve": "Approve with {biometric}", "HM-APPR-01.deny": "Don't send", "HM-APPR-01.denied": "Not sent.", "HM-APPR-01.expired": "The approval expired. Nothing was sent.", @@ -179,13 +179,13 @@ "HM-ACT-01.clearing": "Clearing…", "HM-ACT-01.clearTitle": "Clear the activity log?", "HM-ACT-01.clearBody": "Every entry on this phone is removed and can't be recovered. A new log starts with one signed entry that records the clear and how many entries it removed.", - "HM-ACT-01.clearConfirm": "Clear with fingerprint", + "HM-ACT-01.clearConfirm": "Clear with {biometric}", "HM-ACT-01.clearCancel": "Keep the log", "HM-ACT-01.clearPrompt": "Confirm it's you to clear the activity log", "HM-ACT-01.clearBroken": "Because the chain is broken, the log is kept as evidence and can't be cleared.", "HM-ACT-01.clearNote.done": "Log cleared. The clear itself is the first entry of the new log.", - "HM-ACT-01.clearNote.not_confirmed": "Fingerprint not confirmed. Nothing was cleared.", - "HM-ACT-01.clearNote.unavailable": "Clearing the log needs a fingerprint. Add one in the phone's settings. Nothing was cleared.", + "HM-ACT-01.clearNote.not_confirmed": "Your {biometric} wasn't confirmed. Nothing was cleared.", + "HM-ACT-01.clearNote.unavailable": "Clearing the log needs {aBiometric}. Set it up in the phone's settings. Nothing was cleared.", "HM-ACT-01.clearNote.broken": "The chain broke before the clear, so the log is kept as evidence. Nothing was cleared.", "HM-ACT-01.clearNote.failed": "Something went wrong. Nothing was cleared.", "HM-ACT-01.entries": "{count} entries signed on this phone", @@ -215,8 +215,8 @@ "HM-ONB-04.done": "Start chatting", "HM-CHAT-02.title": "Where Hermit runs", "HM-CHAT-02.noTurns": "No replies yet.", - "HM-ONB-04.fingerprintTitle": "Approve with your fingerprint", - "HM-ONB-04.fingerprintBody": "Your fingerprint before any send; without it, every send is declined.", + "HM-ONB-04.fingerprintTitle": "Approve with your {biometric}", + "HM-ONB-04.fingerprintBody": "Your {biometric} before any send; without it, every send is declined.", "HM-ONB-04.remindersTitle": "Let Hermit remind you on time", "HM-ONB-04.remindersBody": "Asks for notifications and exact alarms so they ring on time, even offline.", "HM-ONB-04.title": "What Hermit can use", @@ -294,7 +294,7 @@ "HM-CHAT-01.can.mail": "• Check your email, and write or send email once you approve", "HM-CHAT-01.can.web": "• Read web pages and search the web", "HM-CHAT-01.can.apps": "• Open WhatsApp, your texts, the dialer, maps and other apps with everything ready", - "HM-CHAT-01.can.pay": "• Send USD₮ payments within your limits, with your fingerprint", + "HM-CHAT-01.can.pay": "• Send USD₮ payments within your limits, with your {biometric}", "HM-CHAT-01.can.connect": "• Connect to other services you ask for", "HM-CHAT-01.can.outro": "It all stays on this phone. Before I send or pay anything, I ask you.", "HM-CHAT-01.can.webRead": "• Read web pages you send me", @@ -364,7 +364,7 @@ "HM-MSG-01.hiddenCode": "One-time code hidden. Hermit doesn't read or store the codes in your messages.", "HM-MSG-01.loading": "Loading messages", "HM-SET-02.oneTimeCodes": "One-time codes", - "HM-SET-02.oneTimeCodesBody": "Android hides one-time codes from apps like Hermit, and Hermit hides any that arrive in your messages: it never stores them. One exception: in a web task, if the site asks you for a code, Hermit shows you the message it came in and you decide whether to use it. It types it after your fingerprint and forgets it.", + "HM-SET-02.oneTimeCodesBody": "Your phone hides one-time codes from apps like Hermit, and Hermit hides any that arrive in your messages: it never stores them. One exception: in a web task, if the site asks you for a code, Hermit shows you the message it came in and you decide whether to use it. It types it after your {biometric} and forgets it.", "HM-CHAT-01.tainted": "This chat read other people's messages. Hermit won't follow their instructions and asks you before sending.", "HM-CHAT-01.emptyTitle": "How can I help?", "HM-CHAT-01.helloTitle": "Hi, I'm Hermit.", @@ -381,7 +381,7 @@ "HM-SET-06.systemMotion": "Your phone's Remove animations setting is on, so motion is off. The crab still shows unless quiet mode is on.", "HM-SET-06.saveFailed": "Couldn't save that. Nothing changed.", "HM-SET-06.preview": "In the chat", - "HM-SET-08.body": "Hermit runs on this phone. It works in airplane mode, and anything that sends, pays or logs in waits for your fingerprint.", + "HM-SET-08.body": "Hermit runs on this phone. It works in airplane mode, and anything that sends, pays or logs in waits for your {biometric}.", "HM-SET-08.licensesTitle": "Open-source licenses", "HM-SET-08.trademarks": "Hermit's code is Apache 2.0 and the crab's art is CC BY 4.0. The Hermit name, logo and wordmark are trademarks and are not covered by those licenses. Hermit is built with:", "HM-SET-08.licenseA11y": "{name}, {license} license", @@ -516,7 +516,7 @@ "HM-MAIL-04.tainted": "Hermit wrote this draft after reading other people's email. Check every line before you send it.", "HM-MAIL-04.toHint": "Addresses separated by commas", "HM-MAIL-04.badAddress": "Check the addresses: each one should look like name@example.com.", - "HM-MAIL-04.sendHint": "Shows you the email and asks for your fingerprint before it's sent.", + "HM-MAIL-04.sendHint": "Shows you the email and asks for your {biometric} before it's sent.", "HM-MAIL-04.sending": "Waiting for your approval", "HM-MAIL-04.sent": "Sent. The draft Hermit saved is still in your Drafts; you can delete it there.", "HM-MAIL-04.declined": "Not sent.", @@ -551,7 +551,7 @@ "HM-SET-03.erase": "Delete everything", "HM-SET-03.fingerprintPrompt": "Confirm to delete everything", "HM-SET-03.authFailed": "Not confirmed. Nothing was deleted.", - "HM-SET-03.noLock": "This phone has no fingerprint or screen lock, so the typed word is the only confirmation.", + "HM-SET-03.noLock": "This phone has no {biometric} or screen lock, so the typed word is the only confirmation.", "HM-SET-03.walletTitle": "Your wallet still has money", "HM-SET-03.walletBody": "It holds {balance}. Deleting everything deletes the wallet too, and that money is lost. Move it out first.", "HM-SET-03.walletContinue": "I understand, continue", @@ -601,35 +601,35 @@ "HM-APPR-01.deniedSearch": "Not searched.", "HM-APPR-01.offlineSearch": "No connection: the search can only run while the phone is online.", "HM-APPR-01.searchNote": "Only these words go to the provider. Nothing else about you or this phone.", - "HM-APPR-01.signedNote": "The fingerprint screen repeats the amount and who it goes to: check they match.", + "HM-APPR-01.signedNote": "The {biometric} screen repeats the amount and who it goes to: check they match.", "HM-APPR-01.signed.approval_key_none": "Payments and passwords need your approval key, and it isn't set up yet. Nothing was done.", - "HM-APPR-01.signed.approval_key_lost": "Your approval key stopped working because the fingerprints on this phone changed. Nothing was done. Set it up again to approve payments and passwords.", - "HM-APPR-01.signed.no_biometric": "Payments and passwords need a fingerprint, and this phone has none set up. Nothing was done.", + "HM-APPR-01.signed.approval_key_lost": "Your approval key stopped working because the {biometric} settings on this phone changed. Nothing was done. Set it up again to approve payments and passwords.", + "HM-APPR-01.signed.no_biometric": "Payments and passwords need {aBiometric}, and it isn't set up on this phone. Nothing was done.", "HM-APPR-01.signed.not_usdt": "Hermit only pays in USD₮, so nothing was paid.", "HM-APPR-01.signed.approval_terms": "Hermit couldn't show exactly what this would approve, so it didn't ask. Nothing was done.", "HM-APPR-01.signed.setUp": "Set up the approval key", "HM-APPR-01.key.title": "Approval key", "HM-APPR-01.key.loading": "Checking the approval key…", "HM-APPR-01.key.error": "Hermit couldn't check the approval key. Nothing changed.", - "HM-APPR-01.key.howItWorks": "The key lives in this phone's security chip and never leaves it, not even for Hermit. Every payment and every password use asks for your fingerprint, and that fingerprint signs only that one action. Your PIN can't approve them.", + "HM-APPR-01.key.howItWorks": "The key lives in this phone's security chip and never leaves it, not even for Hermit. Every payment and every password use asks for your {biometric}, and that check signs only that one action. Your PIN can't approve them.", "HM-APPR-01.key.unavailableTitle": "Not in this build", "HM-APPR-01.key.unavailableBody": "This version of Hermit has no approval key, so payments and passwords stay off.", - "HM-APPR-01.key.no_biometricTitle": "Add a fingerprint first", - "HM-APPR-01.key.no_biometricBody": "Payments and passwords need a fingerprint. Add one in your phone's security settings, then come back.", + "HM-APPR-01.key.no_biometricTitle": "Set up {aBiometric} first", + "HM-APPR-01.key.no_biometricBody": "Payments and passwords need {aBiometric}. Set it up in your phone's security settings, then come back.", "HM-APPR-01.key.not_set_upTitle": "Set up your approval key", - "HM-APPR-01.key.not_set_upBody": "Before Hermit can pay or use a password for you, it needs a key that only your fingerprint can use.", + "HM-APPR-01.key.not_set_upBody": "Before Hermit can pay or use a password for you, it needs a key that only your {biometric} can use.", "HM-APPR-01.key.lostTitle": "Your approval key stopped working", - "HM-APPR-01.key.lostBody": "The fingerprints on this phone changed, so Android retired the key. Payments and passwords are off until you set it up again with your fingerprint.", + "HM-APPR-01.key.lostBody": "The {biometric} settings on this phone changed, so the key was retired. Payments and passwords are off until you set it up again with your {biometric}.", "HM-APPR-01.key.readyTitle": "Your approval key is ready", - "HM-APPR-01.key.readyBody": "Payments and passwords will ask for your fingerprint every time.", + "HM-APPR-01.key.readyBody": "Payments and passwords will ask for your {biometric} every time.", "HM-APPR-01.key.level.strongbox": "Kept in this phone's StrongBox security chip.", "HM-APPR-01.key.level.tee": "Kept in this phone's secure hardware.", - "HM-APPR-01.key.setUp": "Set up with fingerprint", - "HM-APPR-01.key.setUpAgain": "Set up again with fingerprint", + "HM-APPR-01.key.setUp": "Set up with {biometric}", + "HM-APPR-01.key.setUpAgain": "Set up again with {biometric}", "HM-APPR-01.key.note.done": "Done. The approval key is set up.", "HM-APPR-01.key.note.cancelled": "Cancelled. Nothing changed.", "HM-APPR-01.key.note.lockout": "Too many tries. Wait a moment, then try again.", - "HM-APPR-01.key.note.no_biometric": "This phone has no fingerprint set up. Add one in your phone's security settings.", + "HM-APPR-01.key.note.no_biometric": "This phone has no {biometric} set up yet. Set up {aBiometric} in your phone's security settings.", "HM-APPR-01.key.note.no_secure_hardware": "This phone can't keep the key in secure hardware, so payments and passwords stay off.", "HM-APPR-01.key.note.failed": "That didn't work. Payments and passwords stay off. Try again.", "HM-SET-02.search": "Web search", @@ -661,7 +661,7 @@ "HM-SET-01.perm.contactsUse": "Hermit looks up only the name you say. Your contacts never leave the phone.", "HM-SET-01.perm.reminders": "Reminders on time", "HM-SET-01.perm.remindersUse": "Notifications and exact alarms, so reminders ring on time.", - "HM-SET-01.perm.fingerprint": "Fingerprint", + "HM-SET-01.perm.fingerprint": "{biometricStart}", "HM-SET-01.perm.fingerprintUse": "To approve anything Hermit sends, and for the app lock.", "HM-SET-01.perm.microphone": "Microphone", "HM-SET-01.perm.microphoneUse": "For talking to Hermit. Not used in this version.", @@ -683,7 +683,7 @@ "HM-SET-01.loading": "Checking permissions…", "HM-SET-01.lock": "App lock", "HM-SET-01.lockBody": "On open and after a minute away", - "HM-SET-01.lockNoBiometric": "First set up a fingerprint or a screen lock.", + "HM-SET-01.lockNoBiometric": "First set up {aBiometric} or a screen lock.", "HM-SET-01.lockPrompt": "Confirm it's you to change the app lock", "HM-SET-01.lockFailed": "Not confirmed, so the app lock didn't change.", "HM-SET-01.conversation": "Conversation", @@ -692,7 +692,7 @@ "HM-SET-02.promises": "What Hermit promises", "HM-SET-02.promiseLocal": "The model runs on this phone. Your chats, memories and messages stay here, encrypted.", "HM-SET-02.promiseNoTelemetry": "No analytics, no crash reporting and no account. Nothing about you is sent to Dojo Coding or anyone else.", - "HM-SET-02.promiseApproval": "Nothing is sent for you without your fingerprint.", + "HM-SET-02.promiseApproval": "Nothing is sent for you without your {biometric}.", "HM-SET-02.hosts": "Where Hermit connects", "HM-SET-02.hostsIntro": "Counted on this phone, one line per host. Only the host is kept, never what was asked.", "HM-SET-02.purpose.model_download": "Model download", @@ -715,7 +715,7 @@ "HM-SET-01.unlock": "Unlock", "HM-SET-01.unlockPrompt": "Unlock Hermit", "HM-SET-01.unlockFailed": "Not confirmed. Try again.", - "HM-SET-01.unlockNoSecurity": "This phone has no fingerprint or screen lock anymore, so the app lock was turned off.", + "HM-SET-01.unlockNoSecurity": "This phone has no {biometric} or screen lock anymore, so the app lock was turned off.", "HM-SET-01.lockedApproval": "A request is waiting for your approval. It shows after you unlock.", "HM-CHAT-01.clear": "Clear", "HM-CHAT-01.clearA11y": "Clear conversation", @@ -748,6 +748,21 @@ "HM-MEM-02.back": "Back to memories", "common.language.es419": "Español (Latinoamérica)", "common.language.en": "English", + "common.biometric.fingerprint": "fingerprint", + "common.biometric.fingerprint.start": "Fingerprint", + "common.biometric.fingerprint.a": "a fingerprint", + "common.biometric.faceId": "Face ID", + "common.biometric.faceId.start": "Face ID", + "common.biometric.faceId.a": "Face ID", + "common.biometric.touchId": "Touch ID", + "common.biometric.touchId.start": "Touch ID", + "common.biometric.touchId.a": "Touch ID", + "common.biometric.faceOrTouchId": "Face ID or Touch ID", + "common.biometric.faceOrTouchId.start": "Face ID or Touch ID", + "common.biometric.faceOrTouchId.a": "Face ID or Touch ID", + "common.ios.faceIdUsage": "Hermit uses Face ID to approve what it sends or pays for you, to open your vault and wallet, and for the app lock.", + "common.ios.calendarsUsage": "Hermit reads your calendar to answer about your plans, and adds the events you ask for.", + "common.ios.remindersUsage": "Hermit keeps its reminders in the app and doesn't need your Reminders list. You can say no.", "HM-ONB-02.title": "Choose your language", "HM-ONB-02.body": "Hermit starts in your phone's language. You can change it later in Settings.", "HM-ONB-02.continue": "Continue", @@ -912,22 +927,22 @@ "HM-VAULT-01.loading": "Opening the vault", "HM-VAULT-01.error": "The vault couldn't be opened.", "HM-VAULT-01.noneTitle": "Keep your passwords on your phone", - "HM-VAULT-01.noneBody": "The vault is encrypted with a key that only your fingerprint unlocks. Nothing leaves the phone, and Hermit's model never sees what you store here.", + "HM-VAULT-01.noneBody": "The vault is encrypted with a key that only your {biometric} unlocks. Nothing leaves the phone, and Hermit's model never sees what you store here.", "HM-VAULT-01.create": "Create the vault", "HM-VAULT-01.createPrompt": "Create your vault", "HM-VAULT-01.lockedTitle": "The vault is locked", "HM-VAULT-01.lockedBody": "It locks when you leave Hermit, when the app locks and after {minutes} minutes without use.", - "HM-VAULT-01.unlock": "Unlock with fingerprint", + "HM-VAULT-01.unlock": "Unlock with {biometric}", "HM-VAULT-01.unlockPrompt": "Unlock your vault", "HM-VAULT-01.lostTitle": "The vault can't be opened anymore", - "HM-VAULT-01.lostBody": "A fingerprint was added or removed on this phone, so Android retired the vault's key. Your saved logins can't be decrypted by anyone, including you. Start over to create a new, empty vault.", + "HM-VAULT-01.lostBody": "The {biometric} settings on this phone changed, so the vault's key was retired. Your saved logins can't be decrypted by anyone, including you. Start over to create a new, empty vault.", "HM-VAULT-01.reset": "Start over", "HM-VAULT-01.resetTitle": "Start over with an empty vault?", "HM-VAULT-01.resetBody": "Every saved login is deleted. They can't be recovered.", "HM-VAULT-01.resetCancel": "Cancel", "HM-VAULT-01.resetConfirm": "Delete and start over", - "HM-VAULT-01.note.cancelled": "Fingerprint not confirmed. Nothing changed.", - "HM-VAULT-01.note.unavailable": "The vault needs a fingerprint set up on this phone. Add one in the phone's settings, then try again.", + "HM-VAULT-01.note.cancelled": "Your {biometric} wasn't confirmed. Nothing changed.", + "HM-VAULT-01.note.unavailable": "The vault opens with your {biometric}. Set up {aBiometric} in the phone's settings, then try again.", "HM-VAULT-01.note.failed": "That didn't work. Try again.", "HM-VAULT-01.private": "Only names and websites show here. Hermit's model never sees the vault.", "HM-VAULT-01.empty": "No logins yet. Add your first one.", @@ -947,7 +962,7 @@ "HM-VAULT-02.notes": "Notes", "HM-VAULT-02.hidden": "Hidden", "HM-VAULT-02.none": "None", - "HM-VAULT-02.reveal": "Show with fingerprint", + "HM-VAULT-02.reveal": "Show with {biometric}", "HM-VAULT-02.revealPrompt": "Show this login", "HM-VAULT-02.hide": "Hide now", "HM-VAULT-02.hidesIn": "Hides again in {seconds} s", @@ -957,7 +972,7 @@ "HM-VAULT-02.copyNote": "A copied value is hidden from the clipboard preview and cleared after 30 seconds.", "HM-VAULT-02.edit": "Edit", "HM-VAULT-02.editPrompt": "Edit this login", - "HM-VAULT-02.save": "Save with fingerprint", + "HM-VAULT-02.save": "Save with {biometric}", "HM-VAULT-02.savePrompt": "Save this login", "HM-VAULT-02.cancel": "Cancel", "HM-VAULT-02.delete": "Delete login", @@ -983,9 +998,9 @@ "HM-VAULT-02.problem.origin_invalid": "A website isn't a valid address. Write it like https://example.com.", "HM-VAULT-02.problem.origin_not_https": "Only https:// websites can be saved, so a login is never sent over an unencrypted connection.", "HM-VAULT-02.problem.too_long": "Something is too long (4,000 characters per field, 20 websites at most).", - "HM-VAULT-02.note.cancelled": "Fingerprint not confirmed. Nothing was shown or saved.", + "HM-VAULT-02.note.cancelled": "Your {biometric} wasn't confirmed. Nothing was shown or saved.", "HM-VAULT-02.note.not_on_screen": "Hermit must be on screen to show or copy a login.", - "HM-VAULT-02.note.lost": "The vault's key was retired after a fingerprint change. Go back to the vault to start over.", + "HM-VAULT-02.note.lost": "The vault's key was retired after a {biometric} change. Go back to the vault to start over.", "HM-VAULT-02.note.failed": "That didn't work. Try again.", "HM-VAULT-02.note.copied": "Copied. It will be cleared in 30 seconds.", "HM-VAULT-02.note.gone": "This login is no longer in the vault.", @@ -1020,7 +1035,7 @@ "HM-CONN-03.readClaimLabel": "Treat {name} as read only", "HM-CONN-03.risk.network": "Reads from the service", "HM-CONN-03.risk.remote_write": "Can change things on the service", - "HM-CONN-03.risk.send": "Can send things for you (asks with a fingerprint)", + "HM-CONN-03.risk.send": "Can send things for you (asks for your {biometric})", "HM-CONN-03.risk.credential": "Touches passwords or keys (blocked)", "HM-CONN-03.risk.spend": "Can spend money (blocked)", "HM-CONN-03.destructive": "can delete", @@ -1115,7 +1130,7 @@ "HM-CONN-04.blocked.no_key": "Save your key to continue.", "HM-CONN-04.blocked.not_tested": "Run the test call to continue.", "HM-CONN-04.blocked.test_failed": "The test call has to work before you install.", - "HM-CONN-04.install": "Install with fingerprint", + "HM-CONN-04.install": "Install with {biometric}", "HM-CONN-04.installPrompt": "Install this connector", "HM-CONN-04.removeTitle": "Remove {name}?", "HM-CONN-04.removeBody": "It leaves Hermit and its key is deleted from this phone.", @@ -1140,7 +1155,7 @@ "HM-CONN-04.error.no_key": "Save your key first.", "HM-CONN-04.error.not_tested": "Run the test call first.", "HM-CONN-04.error.skill_id_clash": "One of its actions has the same name as something Hermit already has, so it can't be installed. Nothing was saved.", - "HM-CONN-04.error.not_confirmed": "The fingerprint wasn't confirmed. Nothing was installed.", + "HM-CONN-04.error.not_confirmed": "Your {biometric} wasn't confirmed. Nothing was installed.", "HM-CONN-04.error.sign_in_not_in_doc": "That name or prefix isn't in the docs, so Hermit won't use it.", "HM-CONN-04.error.not_changeable": "This connector's sign-in can't be changed.", "HM-CONN-04.error.bad_key": "That key can't be used. Check it and try again.", @@ -1154,7 +1169,7 @@ "HM-VAULT-03.choose": "Choose a CSV file", "HM-VAULT-03.lockedTitle": "Unlock the vault to continue", "HM-VAULT-03.lockedBody": "The vault locked, and anything read from the file was cleared. Unlock it to read the file again.", - "HM-VAULT-03.unlock": "Unlock with fingerprint", + "HM-VAULT-03.unlock": "Unlock with {biometric}", "HM-VAULT-03.unlockPrompt": "Unlock your vault", "HM-VAULT-03.reading": "Reading the file", "HM-VAULT-03.refusedTitle": "This file can't be imported", @@ -1196,7 +1211,7 @@ "HM-VAULT-03.problem.not_login": "not a login", "HM-VAULT-03.problem.bad_row": "its columns don't line up", "HM-VAULT-03.problem.duplicate_in_file": "same as an earlier row", - "HM-VAULT-03.import": "Import {count} with fingerprint", + "HM-VAULT-03.import": "Import {count} with {biometric}", "HM-VAULT-03.importNone": "Nothing to import", "HM-VAULT-03.importPrompt": "Import into your vault", "HM-VAULT-03.cancel": "Cancel", @@ -1212,7 +1227,7 @@ "HM-VAULT-03.deleteUnsupported": "Hermit can't delete the file where it is. Delete it in your Files app.", "HM-VAULT-03.fileFallback": "The file", "HM-VAULT-03.done": "Done", - "HM-VAULT-03.note.cancelled": "Fingerprint not confirmed. Nothing was imported.", + "HM-VAULT-03.note.cancelled": "Your {biometric} wasn't confirmed. Nothing was imported.", "HM-VAULT-03.note.failed": "That didn't work. Nothing was imported.", "HM-VAULT-03.note.expired": "The file was cleared from memory. Choose it again.", "HM-VAULT-03.note.deleted": "The file was deleted.", @@ -1224,8 +1239,8 @@ "HM-FORM-02.error": "Your profile couldn't be opened.", "HM-FORM-02.empty": "Nothing saved yet. Add the details you type most often.", "HM-FORM-02.notSet": "Not saved", - "HM-FORM-02.protected": "Saved and protected. It fills only after your fingerprint.", - "HM-FORM-02.sensitive": "Sensitive: needs your fingerprint to fill", + "HM-FORM-02.protected": "Saved and protected. It fills only after your {biometric}.", + "HM-FORM-02.sensitive": "Sensitive: needs your {biometric} to fill", "HM-FORM-02.sensitiveHint": "Sensitive details are sealed with the vault's key and never fill into a page that isn't secure.", "HM-FORM-02.alwaysSensitive": "ID numbers are always sensitive.", "HM-FORM-02.add": "Add", @@ -1233,7 +1248,7 @@ "HM-FORM-02.editTitle": "{field}", "HM-FORM-02.replaceHint": "Type the new value. The saved one isn't shown.", "HM-FORM-02.save": "Save", - "HM-FORM-02.saveFingerprint": "Save with fingerprint", + "HM-FORM-02.saveFingerprint": "Save with {biometric}", "HM-FORM-02.savePrompt": "Confirm it's you to protect this detail", "HM-FORM-02.cancel": "Cancel", "HM-FORM-02.delete": "Delete", @@ -1247,8 +1262,8 @@ "HM-FORM-02.problem.control_chars": "Use one line, with no special characters.", "HM-FORM-02.note.saved": "Saved.", "HM-FORM-02.note.no_vault": "Sensitive details are sealed with the vault's key. Create the vault first, then save this again.", - "HM-FORM-02.note.lost": "The vault's key was retired after a fingerprint change, so sensitive details can't be saved. Start the vault over first.", - "HM-FORM-02.note.cancelled": "Fingerprint not confirmed. Nothing was saved.", + "HM-FORM-02.note.lost": "The vault's key was retired after a {biometric} change, so sensitive details can't be saved. Start the vault over first.", + "HM-FORM-02.note.cancelled": "Your {biometric} wasn't confirmed. Nothing was saved.", "HM-FORM-02.note.failed": "Something went wrong. Nothing was saved.", "HM-FORM-02.openVault": "Open the vault", "HM-FORM-02.autofillOff": "Hermit isn't the autofill service yet, so other apps won't offer these details. Turn it on in Settings.", @@ -1265,10 +1280,10 @@ "HM-FORM-01.fields": "What fills", "HM-FORM-01.masked": "Protected: shown only in the form", "HM-FORM-01.heldBack": "Not filled: {field}, because the page isn't secure", - "HM-FORM-01.fingerprintNote": "Some of these are sensitive, so filling asks for your fingerprint.", + "HM-FORM-01.fingerprintNote": "Some of these are sensitive, so filling asks for your {biometric}.", "HM-FORM-01.submitNote": "Hermit only fills the fields. Sending the form stays your own tap.", "HM-FORM-01.approve": "Fill", - "HM-FORM-01.approveFingerprint": "Fill with fingerprint", + "HM-FORM-01.approveFingerprint": "Fill with {biometric}", "HM-FORM-01.deny": "Don't fill", "HM-FORM-01.prompt": "Confirm it's you to fill this form", "HM-FORM-01.close": "Back to the form", @@ -1287,10 +1302,10 @@ "HM-FORM-01.refused.no_module": "This build can't fill forms in other apps.", "HM-FORM-01.refused.not_ready": "Hermit is still starting. Tap the suggestion in the form again.", "HM-FORM-01.done.filled": "Filled. Check the form before you send it.", - "HM-FORM-01.done.cancelled": "Fingerprint not confirmed. Nothing was filled.", + "HM-FORM-01.done.cancelled": "Your {biometric} wasn't confirmed. Nothing was filled.", "HM-FORM-01.done.expired": "This request timed out. Nothing was filled.", "HM-FORM-01.done.changed": "Your profile changed since this preview. Nothing was filled; tap the suggestion again.", - "HM-FORM-01.done.lost": "The vault's key was retired after a fingerprint change, so sensitive details can't be opened. Nothing was filled.", + "HM-FORM-01.done.lost": "The vault's key was retired after a {biometric} change, so sensitive details can't be opened. Nothing was filled.", "HM-FORM-01.done.not_on_screen": "Hermit must be on screen to fill a form. Nothing was filled.", "HM-FORM-01.done.gone": "This request already ended. Nothing more was filled.", "HM-FORM-01.done.denied": "Nothing was filled.", @@ -1298,27 +1313,27 @@ "HM-FORM-01.refused.no_login": "Hermit has no saved login for exactly this site or app, so nothing was filled.", "HM-FORM-01.refused.no_vault": "Your vault isn't set up, so there's no login to fill.", "HM-FORM-01.refused.key_none": "Logging in needs your approval key, and it isn't set up yet. Nothing was filled.", - "HM-FORM-01.refused.key_lost": "Your approval key stopped working because the fingerprints on this phone changed. Nothing was filled. Set it up again to use your logins.", - "HM-FORM-01.refused.no_biometric": "Logging in needs a fingerprint, and this phone has none set up. Nothing was filled.", + "HM-FORM-01.refused.key_lost": "Your approval key stopped working because the {biometric} settings on this phone changed. Nothing was filled. Set it up again to use your logins.", + "HM-FORM-01.refused.no_biometric": "Logging in needs {aBiometric}, and it isn't set up on this phone. Nothing was filled.", "HM-APPR-01.login.title": "Log in with Hermit?", "HM-APPR-01.login.item": "Login", "HM-APPR-01.login.username": "Username", "HM-APPR-01.login.password": "Password", "HM-APPR-01.login.hidden": "Not shown here. It goes straight into the form.", - "HM-APPR-01.login.signedNote": "The fingerprint screen repeats the site (or the app): check it matches.", - "HM-APPR-01.login.vaultNote": "Then your vault asks for another fingerprint to open this login.", + "HM-APPR-01.login.signedNote": "The {biometric} screen repeats the site (or the app): check it matches.", + "HM-APPR-01.login.vaultNote": "Then your vault asks for your {biometric} again to open this login.", "HM-APPR-01.login.submitNote": "Hermit only fills the fields. Logging in stays your own tap.", - "HM-APPR-01.login.approve": "Approve with fingerprint", + "HM-APPR-01.login.approve": "Approve with {biometric}", "HM-APPR-01.login.deny": "Don't log in", "HM-APPR-01.login.vaultPrompt": "Confirm it's you to open this login", - "HM-APPR-01.login.note.cancelled": "Fingerprint not confirmed. Nothing was filled. You can try again.", + "HM-APPR-01.login.note.cancelled": "Your {biometric} wasn't confirmed. Nothing was filled. You can try again.", "HM-APPR-01.login.note.lockout": "Too many tries. Wait a moment, then try again.", "HM-APPR-01.login.done.filled": "Filled. Check the page, then tap log in yourself.", "HM-APPR-01.login.done.changed": "This login changed since you opened it here. Nothing was filled; tap the suggestion again.", - "HM-APPR-01.login.done.lost": "The vault's key was retired after a fingerprint change, so this login can't be opened. Nothing was filled.", + "HM-APPR-01.login.done.lost": "The vault's key was retired after a {biometric} change, so this login can't be opened. Nothing was filled.", "HM-APPR-01.login.done.not_signed": "Hermit couldn't check the approval, so nothing was filled.", - "HM-APPR-01.login.done.key_lost": "Your approval key stopped working because the fingerprints on this phone changed. Nothing was filled.", - "HM-APPR-01.login.done.no_biometric": "Logging in needs a fingerprint, and this phone has none set up. Nothing was filled.", + "HM-APPR-01.login.done.key_lost": "Your approval key stopped working because the {biometric} settings on this phone changed. Nothing was filled.", + "HM-APPR-01.login.done.no_biometric": "Logging in needs {aBiometric}, and it isn't set up on this phone. Nothing was filled.", "HM-FORM-02.kind.given_name": "First name", "HM-FORM-02.kind.family_name": "Last name", "HM-FORM-02.kind.full_name": "Full name", @@ -1375,14 +1390,14 @@ "HM-BOT-04.autoSheet.composed": "A link Hermit builds itself still asks.", "HM-BOT-04.autoSheet.asks": "It still asks before replying to a message, sending an email or changing someone else's data.", "HM-BOT-04.autoSheet.alone": "When it works alone, it can't read your private data and use the web in the same task.", - "HM-BOT-04.autoSheet.money": "Payments and logins always need your fingerprint.", + "HM-BOT-04.autoSheet.money": "Payments and logins always need your {biometric}.", "HM-BOT-04.autoSheet.confirm": "Use Auto", "HM-BOT-04.dontAskSheet.title": "Don't ask is dangerous", "HM-BOT-04.dontAskSheet.intro": "Hermit will do almost everything without asking you. These are the risks.", "HM-BOT-04.dontAskSheet.risk": "A web page could make Hermit send messages or emails in your name, delete things or share your data.", "HM-BOT-04.dontAskSheet.tools": "Tools from connected services run without asking too, and Hermit can't always tell whether one of them moves money.", - "HM-BOT-04.dontAskSheet.money": "Payments and logins still need your fingerprint in every mode.", - "HM-BOT-04.dontAskSheet.proof": "To turn it on you need your fingerprint and to type the word.", + "HM-BOT-04.dontAskSheet.money": "Payments and logins still need your {biometric} in every mode.", + "HM-BOT-04.dontAskSheet.proof": "To turn it on you need your {biometric} and to type the word.", "HM-BOT-04.dontAskSheet.typeWord": "Type I understand to continue", "HM-BOT-04.dontAskSheet.confirm": "Turn on Don't ask", "HM-SET-01.botModes": "Bot permissions", @@ -1446,7 +1461,7 @@ "HM-BOT-03.color.ink": "Ink", "HM-BOT-03.permissions": "What it can do", "HM-BOT-03.permissionsHint": "It only uses what you turn on here. You can change it any time.", - "HM-BOT-03.needsFingerprint": "Needs your fingerprint", + "HM-BOT-03.needsFingerprint": "Needs your {biometric}", "HM-BOT-03.sources": "Sources", "HM-BOT-03.sourcesHint": "The sites and connectors it works from. In Ask mode it reads only from here when nobody is present.", "HM-BOT-03.sites": "Websites", @@ -1464,7 +1479,7 @@ "HM-BOT-03.modeDontAskSub": "Does everything without asking, except payments and logins. It is dangerous.", "HM-BOT-03.modePick": "Choose how it acts", "HM-BOT-03.routinesLater": "Routines are added later, from the bot's settings.", - "HM-BOT-03.fingerprintNote": "Creating this bot asks for your fingerprint.", + "HM-BOT-03.fingerprintNote": "Creating this bot asks for your {biometric}.", "HM-BOT-03.create": "Create bot", "HM-BOT-03.creating": "Creating the bot", "HM-BOT-03.taintedProposal": "Hermit drafted this proposal after reading other people's text. Check every field before you create the bot.", @@ -1522,7 +1537,7 @@ "HM-BOT-04.refused.name_too_long": "The name is over 40 characters.", "HM-BOT-04.refused.role_too_long": "The role is over 800 characters.", "HM-BOT-04.refused.bad_site": "Write sites like wikivoyage.org, not numeric addresses.", - "HM-BOT-04.refused.fingerprint_declined": "Your fingerprint wasn't confirmed, so nothing changed.", + "HM-BOT-04.refused.fingerprint_declined": "Your {biometric} wasn't confirmed, so nothing changed.", "HM-BOT-04.refused.word_mismatch": "You didn't type the word asked for, so nothing changed.", "HM-BOT-04.refused.offer_gone": "That proposal is gone.", "HM-BOT-04.refused.needs_review": "Review the proposal before you create it.", @@ -1537,7 +1552,7 @@ "HM-CHAT-01.proposal.modeDontAsk": "This bot will run in Don't ask: it does everything without asking, except payments and logins.", "HM-CHAT-01.proposal.create": "Create", "HM-CHAT-01.proposal.review": "Review", - "HM-CHAT-01.proposal.fingerprint": "Creating asks for your fingerprint.", + "HM-CHAT-01.proposal.fingerprint": "Creating asks for your {biometric}.", "HM-CHAT-01.proposal.tainted": "Hermit read other people's text before drafting this proposal. Review it before you create the bot.", "HM-CHAT-01.proposal.created": "Bot created.", "HM-CHAT-01.proposal.open": "Open the chat", @@ -1593,9 +1608,9 @@ "HM-PAY-01.testnetShort": "Test dollars on Stable testnet", "HM-PAY-01.info.open": "About this wallet", "HM-PAY-01.info.title": "About this wallet", - "HM-PAY-01.info.key": "Its key is made and kept on this phone, locked by your fingerprint. Nobody else holds it, and Hermit's model never sees it.", + "HM-PAY-01.info.key": "Its key is made and kept on this phone, locked by your {biometric}. Nobody else holds it, and Hermit's model never sees it.", "HM-PAY-01.noneTitle": "A wallet only you control", - "HM-PAY-01.noneBody": "Hermit keeps a USD₮ wallet on this phone. Its key is made and kept on the phone, locked by your fingerprint. Nobody else holds it, not even Dojo Coding, and Hermit's model never sees it.", + "HM-PAY-01.noneBody": "Hermit keeps a USD₮ wallet on this phone. Its key is made and kept on the phone, locked by your {biometric}. Nobody else holds it, not even Dojo Coding, and Hermit's model never sees it.", "HM-PAY-01.create": "Create a wallet", "HM-PAY-01.createPrompt": "Create your wallet", "HM-PAY-01.restore": "Restore from recovery words", @@ -1612,14 +1627,14 @@ "HM-PAY-01.backedUpShort": "Backed up", "HM-PAY-01.backupShort": "Not backed up", "HM-PAY-01.lostTitle": "This wallet's key is gone", - "HM-PAY-01.lostBody": "A fingerprint was added or removed on this phone, so Android retired the wallet's key. The money is still on the network: restore the wallet from your recovery words.", + "HM-PAY-01.lostBody": "The {biometric} settings on this phone changed, so the wallet's key was retired. The money is still on the network: restore the wallet from your recovery words.", "HM-PAY-01.startOver": "Start over", "HM-PAY-01.startOverTitle": "Delete this wallet from the phone?", "HM-PAY-01.startOverBody": "Without your recovery words, any money in it is lost for good. Nobody can recover it.", "HM-PAY-01.startOverCancel": "Cancel", "HM-PAY-01.startOverConfirm": "Delete the wallet", - "HM-PAY-01.note.cancelled": "Fingerprint not confirmed. Nothing changed.", - "HM-PAY-01.note.unavailable": "The wallet needs a fingerprint set up on this phone. Add one in the phone's settings, then try again.", + "HM-PAY-01.note.cancelled": "Your {biometric} wasn't confirmed. Nothing changed.", + "HM-PAY-01.note.unavailable": "The wallet opens with your {biometric}. Set up {aBiometric} in the phone's settings, then try again.", "HM-PAY-01.note.failed": "That didn't work. Nothing changed. Try again.", "HM-PAY-01.note.not_on_screen": "Hermit must be on screen to do that.", "HM-PAY-01.receive": "Receive", @@ -1643,7 +1658,7 @@ "HM-PAY-03.olderFailed": "Hermit couldn't read older transactions. Check your connection and try again.", "HM-PAY-03.floor": "Older transfers aren't shown here: Hermit reads about the last week of Stable testnet.", "HM-PAY-03.onlyUsdt": "Only USD₮ is shown. Other tokens sent to this address are ignored.", - "HM-PAY-03.source": "Read from Stable testnet's public RPC with your wallet's address only. No fingerprint needed.", + "HM-PAY-03.source": "Read from Stable testnet's public RPC with your wallet's address only. No {biometric} needed.", "HM-PAY-03.rowLabel": "{title}, {amount}, {who}, {when}", "HM-PAY-03.byHermit": "Made by Hermit · see in Activity", "HM-PAY-03.unknownShort": "Unknown sender", @@ -1700,8 +1715,8 @@ "HM-PAY-02.restoredTitle": "Wallet restored", "HM-PAY-02.restoredBody": "Your wallet is on this phone again. Keep your paper safe.", "HM-PAY-02.exists": "This phone already has a wallet. Hermit keeps one wallet per phone.", - "HM-PAY-02.note.cancelled": "Fingerprint not confirmed. Nothing was shown or saved.", - "HM-PAY-02.note.unavailable": "The wallet needs a fingerprint set up on this phone. Add one in the phone's settings, then try again.", + "HM-PAY-02.note.cancelled": "Your {biometric} wasn't confirmed. Nothing was shown or saved.", + "HM-PAY-02.note.unavailable": "The wallet opens with your {biometric}. Set up {aBiometric} in the phone's settings, then try again.", "HM-PAY-02.note.failed": "That didn't work. Nothing was shown or saved. Try again.", "HM-PAY-02.note.not_on_screen": "Hermit must be on screen to show or save the words.", "HM-PAY-02.note.lost": "The wallet's key is gone. Restore the wallet from your recovery words.", @@ -1753,7 +1768,7 @@ "HM-WEB-02.step.signin": "Sign in with {name} (asks you first)", "HM-WEB-02.step.wait": "Wait for {name}", "HM-WEB-02.step.read": "Read the answer: {question}", - "HM-WEB-02.step.login": "Log in to {site} with your saved login (asks for your fingerprint)", + "HM-WEB-02.step.login": "Log in to {site} with your saved login (asks for your {biometric})", "HM-WEB-02.live.step": "Step {n} of {total}: {doing}", "HM-WEB-02.live.takeOver": "Take over", "HM-WEB-02.live.resume": "Resume", @@ -1821,7 +1836,7 @@ "HM-WEB-02.save.step.signin": "Tap {role} “{name}” (signs in, asks you first)", "HM-WEB-02.save.step.pay": "Tap {role} “{name}” (pays, so you always do it yourself)", "HM-WEB-02.save.step.fill": "Type “{value}” into {role} “{name}”", - "HM-WEB-02.save.step.secret": "Your login in {role} “{name}” (not saved: your saved login is used, with your fingerprint)", + "HM-WEB-02.save.step.secret": "Your login in {role} “{name}” (not saved: your saved login is used, with your {biometric})", "HM-WEB-02.save.step.select": "Pick “{value}” in {role} “{name}”", "HM-WEB-02.save.step.check": "Tick {role} “{name}”", "HM-WEB-02.save.step.uncheck": "Untick {role} “{name}”", @@ -1861,10 +1876,10 @@ "HM-WEB-02.sheet.message": "The message (only you see it)", "HM-APPR-01.titleCode": "Type this code?", "HM-APPR-01.denyCode": "Don't type it", - "HM-APPR-01.signedNoteCode": "Check the code matches the message and the site is the one you're signing in to. The fingerprint screen repeats the site.", + "HM-APPR-01.signedNoteCode": "Check the code matches the message and the site is the one you're signing in to. The {biometric} screen repeats the site.", "HM-APPR-01.needsOk": "Needs your OK", "HM-APPR-01.signedFoot": "Shown by Hermit, not the model.", - "HM-APPR-01.shownFoot": "Shown by Hermit, not the model. It's sent only with your fingerprint.", + "HM-APPR-01.shownFoot": "Shown by Hermit, not the model. It's sent only with your {biometric}.", "HM-APPR-01.login.approveVerb": "Use this login", "HM-APPR-01.sendVerb": "Send", "HM-APPR-01.argsHash": "This action's fingerprint (hash)", @@ -1878,10 +1893,10 @@ "HM-APPR-01.saidLess": "Show less", "HM-APPR-01.info.open": "How this approval works", "HM-APPR-01.info.title": "How this approval works", - "HM-APPR-01.info.drawn": "Hermit draws this sheet, not the model: it shows exactly what the code will do, and nothing leaves the phone without your fingerprint.", - "HM-APPR-01.info.signed": "Your phone's security chip signs this approval with a key that never leaves it, and its fingerprint screen shows what matters again, read from what is signed. Check it matches this sheet.", - "HM-APPR-01.info.fingerprint": "If you cancel the fingerprint or say no, nothing happens.", - "HM-APPR-01.sendVerbSpoken": "Send with fingerprint", + "HM-APPR-01.info.drawn": "Hermit draws this sheet, not the model: it shows exactly what the code will do, and nothing leaves the phone without your {biometric}.", + "HM-APPR-01.info.signed": "Your phone's security chip signs this approval with a key that never leaves it, and its {biometric} screen shows what matters again, read from what is signed. Check it matches this sheet.", + "HM-APPR-01.info.fingerprint": "If you cancel the {biometric} check or say no, nothing happens.", + "HM-APPR-01.sendVerbSpoken": "Send with {biometric}", "HM-APPR-01.titleMailRead": "Read your email?", "HM-APPR-01.titleMailSend": "Send this email?", "HM-APPR-01.titleMailDraft": "Save this draft?", @@ -1891,10 +1906,10 @@ "HM-APPR-01.denyChange": "Don't change", "HM-APPR-01.draftNote": "It's saved in your Drafts. Nothing is sent.", "HM-APPR-01.saveVerb": "Save", - "HM-APPR-01.saveVerbSpoken": "Save with fingerprint", - "HM-APPR-01.shownFootRead": "Shown by Hermit, not the model. It's read only with your fingerprint.", - "HM-APPR-01.shownFootAct": "Shown by Hermit, not the model. It happens only with your fingerprint.", - "HM-APPR-01.login.approveVerbSpoken": "Use this login with fingerprint", + "HM-APPR-01.saveVerbSpoken": "Save with {biometric}", + "HM-APPR-01.shownFootRead": "Shown by Hermit, not the model. It's read only with your {biometric}.", + "HM-APPR-01.shownFootAct": "Shown by Hermit, not the model. It happens only with your {biometric}.", + "HM-APPR-01.login.approveVerbSpoken": "Use this login with {biometric}", "HM-WEB-02.sharedProfile": "This phone's browser can't keep sites apart, so Hermit clears all site data after every task and can't keep you signed in.", "HM-WEB-02.gone": "This plan is no longer here. Ask again in the chat.", "HM-WEB-02.unavailable": "The in-app browser isn't in this version of the app.", @@ -1917,7 +1932,7 @@ "HM-CHAT-01.pay.which": "More than one saved payee matches {name}: {list}. Say the full name of the one you mean. Nothing was sent.", "HM-CHAT-01.pay.not_said": "I can only pay an address you typed in this message, or a saved payee you named. Nothing was sent.", "HM-CHAT-01.pay.no_wallet": "You don't have a wallet yet. Create one under Wallet first. Nothing was sent.", - "HM-CHAT-01.pay.wallet_lost": "Your wallet's key stopped working after a fingerprint change. Restore the wallet from your recovery words under Wallet. Nothing was sent.", + "HM-CHAT-01.pay.wallet_lost": "Your wallet's key stopped working after a {biometric} change. Restore the wallet from your recovery words under Wallet. Nothing was sent.", "HM-CHAT-01.pay.self": "That's your own wallet's address. Nothing was sent.", "HM-CHAT-01.pay.over_per_payment": "That's over your cap of {cap} for one payment, so I can't send it. Nothing was sent. Raising the cap won't send it later; ask again after.", "HM-CHAT-01.pay.over_per_day": "That would pass your daily cap of {cap}; {left} is left for the last 24 hours. Nothing was sent. Raising the cap won't send it later; ask again after.", @@ -1963,8 +1978,8 @@ "HM-APPR-02.network": "Network", "HM-APPR-02.fee": "Network fee (estimate)", "HM-APPR-02.capLeft": "Left today after this", - "HM-APPR-02.signedNote": "The fingerprint screen repeats the amount and who it goes to: check they match.", - "HM-APPR-02.unlockNote": "Then a second fingerprint signs it.", + "HM-APPR-02.signedNote": "The {biometric} screen repeats the amount and who it goes to: check they match.", + "HM-APPR-02.unlockNote": "Then your {biometric} signs it a second time.", "HM-APPR-02.deny": "Don't pay", "HM-APPR-02.unlock": "Unlock your wallet to send {amount} to {to}", "HM-APPR-02.titleMerchant": "Pay this site?", @@ -1972,20 +1987,20 @@ "HM-APPR-02.page": "Page", "HM-APPR-02.valid": "Can be collected for", "HM-APPR-02.validFor": "{minutes} minutes after you sign", - "HM-APPR-02.signedNoteMerchant": "The fingerprint screen repeats the amount and the site: check they match. Only this payment leaves your wallet.", + "HM-APPR-02.signedNoteMerchant": "The {biometric} screen repeats the amount and the site: check they match. Only this payment leaves your wallet.", "HM-APPR-02.unlockMerchant": "Unlock your wallet to pay {amount} to {site}", "HM-APPR-02.blockedLabel": "Blocked by your cap", "HM-APPR-02.seeCaps": "See my caps", "HM-APPR-02.titleTo": "Send to {to}?", "HM-APPR-02.titleToAddress": "Send to this address?", "HM-APPR-02.approveVerb": "Pay {amount}", - "HM-APPR-02.approveVerbA11y": "Pay {amount} to {to} with fingerprint", + "HM-APPR-02.approveVerbA11y": "Pay {amount} to {to} with {biometric}", "HM-APPR-02.feeOnTop": "plus {fee} network fee (estimate)", "HM-APPR-02.capOf": "{left} of {cap}", "HM-APPR-02.info.title": "How a payment is signed", - "HM-APPR-02.info.signs": "Your phone's security chip signs this payment with a key that never leaves it. Hermit can't sign it without your fingerprint.", - "HM-APPR-02.info.repeats": "The phone's fingerprint screen shows the amount, who it goes to and the network again, read from what is being signed. Check they match this sheet.", - "HM-APPR-02.info.second": "Then your wallet asks for your fingerprint once more to sign the transaction. Cancel either one and nothing is sent.", + "HM-APPR-02.info.signs": "Your phone's security chip signs this payment with a key that never leaves it. Hermit can't sign it without your {biometric}.", + "HM-APPR-02.info.repeats": "The phone's {biometric} screen shows the amount, who it goes to and the network again, read from what is being signed. Check they match this sheet.", + "HM-APPR-02.info.second": "Then your wallet asks for your {biometric} once more to sign the transaction. Cancel either one and nothing is sent.", "HM-PAY-01.caps": "Spending caps and payees", "HM-PAY-01.capToday": "Used today", "HM-PAY-01.capUsed": "{used} of {cap}", @@ -1998,13 +2013,13 @@ "HM-PAY-05.loading": "Reading your caps…", "HM-PAY-05.error": "Hermit couldn't read your caps. Nothing changed.", "HM-PAY-05.notInBuild": "Paying by asking needs the wallet and the approval key. One of them isn't in this build, so payments stay off.", - "HM-PAY-05.intro": "Every payment needs your fingerprint. Caps are a ceiling, even on a payment you approve by mistake.", + "HM-PAY-05.intro": "Every payment needs your {biometric}. Caps are a ceiling, even on a payment you approve by mistake.", "HM-PAY-05.capsTitle": "Spending caps", "HM-PAY-05.perPayment": "Most for one payment", "HM-PAY-05.perDay": "Most in any 24 hours", "HM-PAY-05.defaults": "These are Hermit's defaults until you change them.", "HM-PAY-05.spentToday": "Used in the last 24 hours: {amount}", - "HM-PAY-05.saveCaps": "Save caps with fingerprint", + "HM-PAY-05.saveCaps": "Save caps with {biometric}", "HM-PAY-05.capsPrompt": "Confirm it's you to change your spending caps", "HM-PAY-05.cancel": "Cancel", "HM-PAY-05.noRetry": "A payment refused by a cap is never sent later. Raising a cap doesn't retry it.", @@ -2014,14 +2029,14 @@ "HM-PAY-05.problem.too_high": "Caps go up to 10,000 USD₮ a day.", "HM-PAY-05.problem.not_usdt": "Caps are in USD₮ only.", "HM-PAY-05.note.capsSaved": "Saved. Payments over a cap are refused.", - "HM-PAY-05.note.cancelled": "Fingerprint not confirmed. Nothing changed.", + "HM-PAY-05.note.cancelled": "Your {biometric} wasn't confirmed. Nothing changed.", "HM-PAY-05.note.failed": "That didn't work. Nothing changed. Try again.", "HM-PAY-05.payeesTitle": "Saved payees", "HM-PAY-05.payeesIntro": "When you say a name, Hermit pays only a payee saved here. It never takes an address from a message, an email or a page.", "HM-PAY-05.noPayees": "No saved payees yet.", "HM-PAY-05.name": "Name", "HM-PAY-05.address": "Address on Stable testnet (0x…)", - "HM-PAY-05.savePayee": "Save payee with fingerprint", + "HM-PAY-05.savePayee": "Save payee with {biometric}", "HM-PAY-05.payeePrompt": "Confirm it's you to save {name} as a payee", "HM-PAY-05.remove": "Remove", "HM-PAY-05.removeLabel": "Remove {name}", @@ -2103,7 +2118,7 @@ "HM-SET-09.emailSub": "Sending, replying, forwarding, archiving and saving drafts always ask you. So does reading your email.", "HM-SET-09.rowSub": "Permissions, what always asks, sites and connections", "HM-SET-09.alwaysAsks": "Always asks", - "HM-SET-09.siteNote": "Always: the site stays signed in after each task. Ask: Hermit clears its cookies and signs in again. Filling a saved login always asks for your fingerprint.", + "HM-SET-09.siteNote": "Always: the site stays signed in after each task. Ask: Hermit clears its cookies and signs in again. Filling a saved login always asks for your {biometric}.", "HM-SET-09.noSites": "No web task sites yet.", "HM-SET-09.connections": "Connections", "HM-BOT-01.you": "You: {text}", diff --git a/packages/copy/locales/es-419.json b/packages/copy/locales/es-419.json index c8d6fcc..a7e09bb 100644 --- a/packages/copy/locales/es-419.json +++ b/packages/copy/locales/es-419.json @@ -133,7 +133,7 @@ "HM-APPR-01.taintFrom.web": "Sugerido después de leer una página web", "HM-APPR-01.taintFrom.file": "Sugerido después de leer un archivo", "HM-APPR-01.taintFrom.notification": "Sugerido después de leer una notificación", - "HM-APPR-01.approve": "Aprobar con huella", + "HM-APPR-01.approve": "Aprobar con {biometric}", "HM-APPR-01.deny": "No enviar", "HM-APPR-01.denied": "No se envió.", "HM-APPR-01.expired": "La aprobación expiró. No se envió nada.", @@ -179,13 +179,13 @@ "HM-ACT-01.clearing": "Borrando…", "HM-ACT-01.clearTitle": "¿Borrar el registro de actividad?", "HM-ACT-01.clearBody": "Se eliminan todas las entradas de este teléfono y no se pueden recuperar. Empieza un registro nuevo con una entrada firmada que deja constancia del borrado y de cuántas entradas eliminó.", - "HM-ACT-01.clearConfirm": "Borrar con huella", + "HM-ACT-01.clearConfirm": "Borrar con {biometric}", "HM-ACT-01.clearCancel": "Conservar el registro", "HM-ACT-01.clearPrompt": "Confirma que eres tú para borrar el registro de actividad", "HM-ACT-01.clearBroken": "Como la cadena está rota, el registro se conserva como evidencia y no se puede borrar.", "HM-ACT-01.clearNote.done": "Registro borrado. El borrado es la primera entrada del registro nuevo.", - "HM-ACT-01.clearNote.not_confirmed": "No se confirmó la huella. No se borró nada.", - "HM-ACT-01.clearNote.unavailable": "Para borrar el registro se necesita una huella. Agrega una en los ajustes del teléfono. No se borró nada.", + "HM-ACT-01.clearNote.not_confirmed": "No se confirmó tu {biometric}. No se borró nada.", + "HM-ACT-01.clearNote.unavailable": "Para borrar el registro, configura {aBiometric} en los ajustes del teléfono. No se borró nada.", "HM-ACT-01.clearNote.broken": "La cadena se rompió antes del borrado, así que el registro se conserva como evidencia. No se borró nada.", "HM-ACT-01.clearNote.failed": "Algo salió mal. No se borró nada.", "HM-ACT-01.entries": "{count} entradas firmadas en este teléfono", @@ -215,8 +215,8 @@ "HM-ONB-04.done": "Empezar a conversar", "HM-CHAT-02.title": "Dónde funciona Hermit", "HM-CHAT-02.noTurns": "Todavía no hay respuestas.", - "HM-ONB-04.fingerprintTitle": "Aprueba con tu huella", - "HM-ONB-04.fingerprintBody": "Pide tu huella antes de enviar algo; sin ella, cada envío se rechaza.", + "HM-ONB-04.fingerprintTitle": "Aprueba con tu {biometric}", + "HM-ONB-04.fingerprintBody": "Pide tu {biometric} antes de enviar algo; si no, cada envío se rechaza.", "HM-ONB-04.remindersTitle": "Deja que Hermit te avise a tiempo", "HM-ONB-04.remindersBody": "Pide notificaciones y alarmas exactas para sonar a tiempo, incluso sin conexión.", "HM-ONB-04.title": "Lo que Hermit puede usar", @@ -294,7 +294,7 @@ "HM-CHAT-01.can.mail": "• Revisar tu correo, y escribir o enviar correos cuando lo apruebes", "HM-CHAT-01.can.web": "• Leer páginas web y buscar en internet", "HM-CHAT-01.can.apps": "• Abrir WhatsApp, tus mensajes, el teléfono, el mapa y otras apps con todo listo", - "HM-CHAT-01.can.pay": "• Enviar pagos en USD₮ dentro de tus límites, con tu huella", + "HM-CHAT-01.can.pay": "• Enviar pagos en USD₮ dentro de tus límites, con tu {biometric}", "HM-CHAT-01.can.connect": "• Conectarme a otros servicios que me pidas", "HM-CHAT-01.can.outro": "Todo pasa en este teléfono. Antes de enviar o pagar algo, te pregunto.", "HM-CHAT-01.can.webRead": "• Leer páginas web que me pases", @@ -364,7 +364,7 @@ "HM-MSG-01.hiddenCode": "Código de un solo uso oculto. Hermit no lee ni guarda los códigos de tus mensajes.", "HM-MSG-01.loading": "Cargando mensajes", "HM-SET-02.oneTimeCodes": "Códigos de un solo uso", - "HM-SET-02.oneTimeCodesBody": "Android oculta los códigos de un solo uso a apps como Hermit, y Hermit oculta los que llegan en tus mensajes: nunca los guarda. Única excepción: en una tarea web, si el sitio te pide un código, Hermit te muestra el mensaje que lo trae y tú decides si lo usa. Lo escribe tras tu huella y lo olvida.", + "HM-SET-02.oneTimeCodesBody": "Tu teléfono oculta los códigos de un solo uso a apps como Hermit, y Hermit oculta los que llegan en tus mensajes: nunca los guarda. Única excepción: en una tarea web, si el sitio te pide un código, Hermit te muestra el mensaje que lo trae y tú decides si lo usa. Lo escribe tras tu {biometric} y lo olvida.", "HM-CHAT-01.tainted": "Este chat leyó mensajes de otros. Hermit no sigue sus instrucciones y te pregunta antes de enviar.", "HM-CHAT-01.emptyTitle": "¿En qué te ayudo?", "HM-CHAT-01.helloTitle": "Hola, soy Hermit.", @@ -381,7 +381,7 @@ "HM-SET-06.systemMotion": "La opción Quitar animaciones de tu teléfono está activada, así que el movimiento está apagado. El cangrejo se sigue viendo, salvo con el modo discreto.", "HM-SET-06.saveFailed": "No se pudo guardar. No cambió nada.", "HM-SET-06.preview": "En el chat", - "HM-SET-08.body": "Hermit vive en este teléfono. Funciona en modo avión, y todo lo que envía, paga o inicia sesión espera tu huella.", + "HM-SET-08.body": "Hermit vive en este teléfono. Funciona en modo avión, y todo lo que envía, paga o inicia sesión espera tu {biometric}.", "HM-SET-08.licensesTitle": "Licencias de código abierto", "HM-SET-08.trademarks": "El código de Hermit es Apache 2.0 y el arte del cangrejo es CC BY 4.0. El nombre Hermit, su símbolo y su logotipo son marcas y no están cubiertos por esas licencias. Hermit está hecho con:", "HM-SET-08.licenseA11y": "{name}, licencia {license}", @@ -516,7 +516,7 @@ "HM-MAIL-04.tainted": "Hermit escribió este borrador después de leer correo de otras personas. Revisa cada línea antes de enviarlo.", "HM-MAIL-04.toHint": "Direcciones separadas por comas", "HM-MAIL-04.badAddress": "Revisa las direcciones: cada una debe ser como nombre@ejemplo.com.", - "HM-MAIL-04.sendHint": "Te muestra el correo y te pide tu huella antes de enviarlo.", + "HM-MAIL-04.sendHint": "Te muestra el correo y te pide tu {biometric} antes de enviarlo.", "HM-MAIL-04.sending": "Esperando tu aprobación", "HM-MAIL-04.sent": "Enviado. El borrador que guardó Hermit sigue en tus borradores; puedes borrarlo ahí.", "HM-MAIL-04.declined": "No se envió.", @@ -551,7 +551,7 @@ "HM-SET-03.erase": "Borrar todo", "HM-SET-03.fingerprintPrompt": "Confirma para borrar todo", "HM-SET-03.authFailed": "No se confirmó. No se borró nada.", - "HM-SET-03.noLock": "Este teléfono no tiene huella ni bloqueo de pantalla, así que la palabra escrita es la única confirmación.", + "HM-SET-03.noLock": "Este teléfono no tiene {biometric} ni bloqueo de pantalla, así que la palabra escrita es la única confirmación.", "HM-SET-03.walletTitle": "Tu billetera todavía tiene fondos", "HM-SET-03.walletBody": "Tiene {balance}. Borrar todo también borra la billetera, y ese dinero se pierde. Muévelo antes.", "HM-SET-03.walletContinue": "Entiendo, continuar", @@ -601,35 +601,35 @@ "HM-APPR-01.deniedSearch": "No se buscó.", "HM-APPR-01.offlineSearch": "Sin conexión: la búsqueda solo funciona cuando el teléfono tenga internet.", "HM-APPR-01.searchNote": "Solo estas palabras van al buscador. Nada más sobre ti ni sobre este teléfono.", - "HM-APPR-01.signedNote": "La pantalla de huella repite el monto y a quién va: revisa que coincidan.", + "HM-APPR-01.signedNote": "La pantalla de {biometric} repite el monto y a quién va: revisa que coincidan.", "HM-APPR-01.signed.approval_key_none": "Los pagos y las contraseñas necesitan tu clave de aprobación, y aún no está configurada. No se hizo nada.", - "HM-APPR-01.signed.approval_key_lost": "Tu clave de aprobación dejó de funcionar porque cambiaron las huellas de este teléfono. No se hizo nada. Configúrala de nuevo para aprobar pagos y contraseñas.", - "HM-APPR-01.signed.no_biometric": "Los pagos y las contraseñas necesitan una huella, y este teléfono no tiene ninguna. No se hizo nada.", + "HM-APPR-01.signed.approval_key_lost": "Tu clave de aprobación dejó de funcionar porque cambió la configuración de {biometric} de este teléfono. No se hizo nada. Configúrala de nuevo para aprobar pagos y contraseñas.", + "HM-APPR-01.signed.no_biometric": "Los pagos y las contraseñas necesitan {aBiometric}, y falta en este teléfono. No se hizo nada.", "HM-APPR-01.signed.not_usdt": "Hermit solo paga en USD₮, así que no se pagó nada.", "HM-APPR-01.signed.approval_terms": "Hermit no pudo mostrar exactamente qué se aprobaría, así que no preguntó. No se hizo nada.", "HM-APPR-01.signed.setUp": "Configurar la clave de aprobación", "HM-APPR-01.key.title": "Clave de aprobación", "HM-APPR-01.key.loading": "Revisando la clave de aprobación…", "HM-APPR-01.key.error": "Hermit no pudo revisar la clave de aprobación. No cambió nada.", - "HM-APPR-01.key.howItWorks": "La clave vive en el chip de seguridad de este teléfono y nunca sale de ahí, ni siquiera para Hermit. Cada pago y cada uso de una contraseña pide tu huella, y esa huella firma solo esa acción. Tu PIN no puede aprobarlos.", + "HM-APPR-01.key.howItWorks": "La clave vive en el chip de seguridad de este teléfono y nunca sale de ahí, ni siquiera para Hermit. Cada pago y cada uso de una contraseña pide tu {biometric}, y esa revisión firma solo esa acción. Tu PIN no puede aprobarlos.", "HM-APPR-01.key.unavailableTitle": "No está en esta versión", "HM-APPR-01.key.unavailableBody": "Esta versión de Hermit no tiene clave de aprobación, así que los pagos y las contraseñas siguen apagados.", - "HM-APPR-01.key.no_biometricTitle": "Primero agrega una huella", - "HM-APPR-01.key.no_biometricBody": "Los pagos y las contraseñas necesitan una huella. Agrega una en los ajustes de seguridad del teléfono y vuelve.", + "HM-APPR-01.key.no_biometricTitle": "Primero configura {aBiometric}", + "HM-APPR-01.key.no_biometricBody": "Para pagos y contraseñas, configura {aBiometric} en los ajustes de seguridad del teléfono y vuelve.", "HM-APPR-01.key.not_set_upTitle": "Configura tu clave de aprobación", - "HM-APPR-01.key.not_set_upBody": "Antes de que Hermit pueda pagar o usar una contraseña por ti, necesita una clave que solo tu huella puede usar.", + "HM-APPR-01.key.not_set_upBody": "Antes de que Hermit pueda pagar o usar una contraseña por ti, necesita una clave que solo tu {biometric} puede usar.", "HM-APPR-01.key.lostTitle": "Tu clave de aprobación dejó de funcionar", - "HM-APPR-01.key.lostBody": "Cambiaron las huellas de este teléfono, así que Android retiró la clave. Los pagos y las contraseñas están apagados hasta que la configures de nuevo con tu huella.", + "HM-APPR-01.key.lostBody": "Cambió la configuración de {biometric} en este teléfono, así que se retiró la clave. Los pagos y las contraseñas están apagados hasta que la configures de nuevo con tu {biometric}.", "HM-APPR-01.key.readyTitle": "Tu clave de aprobación está lista", - "HM-APPR-01.key.readyBody": "Los pagos y las contraseñas pedirán tu huella cada vez.", + "HM-APPR-01.key.readyBody": "Los pagos y las contraseñas pedirán tu {biometric} cada vez.", "HM-APPR-01.key.level.strongbox": "Guardada en el chip de seguridad StrongBox de este teléfono.", "HM-APPR-01.key.level.tee": "Guardada en el hardware seguro de este teléfono.", - "HM-APPR-01.key.setUp": "Configurar con huella", - "HM-APPR-01.key.setUpAgain": "Configurar de nuevo con huella", + "HM-APPR-01.key.setUp": "Configurar con {biometric}", + "HM-APPR-01.key.setUpAgain": "Configurar de nuevo con {biometric}", "HM-APPR-01.key.note.done": "Listo. La clave de aprobación está configurada.", "HM-APPR-01.key.note.cancelled": "Cancelado. No cambió nada.", "HM-APPR-01.key.note.lockout": "Demasiados intentos. Espera un momento y vuelve a intentar.", - "HM-APPR-01.key.note.no_biometric": "Este teléfono no tiene huellas configuradas. Agrega una en los ajustes de seguridad del teléfono.", + "HM-APPR-01.key.note.no_biometric": "Este teléfono no tiene {biometric} todavía. Configura {aBiometric} en los ajustes de seguridad del teléfono.", "HM-APPR-01.key.note.no_secure_hardware": "Este teléfono no puede guardar la clave en hardware seguro, así que los pagos y las contraseñas siguen apagados.", "HM-APPR-01.key.note.failed": "No funcionó. Los pagos y las contraseñas siguen apagados. Vuelve a intentar.", "HM-SET-02.search": "Búsqueda en internet", @@ -661,7 +661,7 @@ "HM-SET-01.perm.contactsUse": "Busca solo el nombre que dices. Tus contactos no salen del teléfono.", "HM-SET-01.perm.reminders": "Recordatorios a tiempo", "HM-SET-01.perm.remindersUse": "Notificaciones y alarmas exactas, para que suenen a tiempo.", - "HM-SET-01.perm.fingerprint": "Huella", + "HM-SET-01.perm.fingerprint": "{biometricStart}", "HM-SET-01.perm.fingerprintUse": "Para aprobar todo lo que Hermit envía y para el bloqueo de la app.", "HM-SET-01.perm.microphone": "Micrófono", "HM-SET-01.perm.microphoneUse": "Para hablarle a Hermit. Esta versión no lo usa.", @@ -683,7 +683,7 @@ "HM-SET-01.loading": "Revisando permisos…", "HM-SET-01.lock": "Bloqueo de la app", "HM-SET-01.lockBody": "Al abrir y tras un minuto fuera", - "HM-SET-01.lockNoBiometric": "Primero configura una huella o un bloqueo de pantalla.", + "HM-SET-01.lockNoBiometric": "Primero configura {aBiometric} o un bloqueo de pantalla.", "HM-SET-01.lockPrompt": "Confirma que eres tú para cambiar el bloqueo de la app", "HM-SET-01.lockFailed": "No se confirmó, así que el bloqueo de la app no cambió.", "HM-SET-01.conversation": "Conversación", @@ -692,7 +692,7 @@ "HM-SET-02.promises": "Lo que Hermit promete", "HM-SET-02.promiseLocal": "El modelo funciona en este teléfono. Tus chats, recuerdos y mensajes se quedan aquí, cifrados.", "HM-SET-02.promiseNoTelemetry": "Sin analítica, sin reportes de fallas y sin cuenta. No se envía nada sobre ti a Dojo Coding ni a nadie más.", - "HM-SET-02.promiseApproval": "No se envía nada en tu nombre sin tu huella.", + "HM-SET-02.promiseApproval": "No se envía nada en tu nombre sin tu {biometric}.", "HM-SET-02.hosts": "Adónde se conecta Hermit", "HM-SET-02.hostsIntro": "Se cuentan en este teléfono, una línea por servidor. Solo se guarda el servidor, nunca lo que se pidió.", "HM-SET-02.purpose.model_download": "Descarga del modelo", @@ -715,7 +715,7 @@ "HM-SET-01.unlock": "Desbloquear", "HM-SET-01.unlockPrompt": "Desbloquear Hermit", "HM-SET-01.unlockFailed": "No se confirmó. Intenta de nuevo.", - "HM-SET-01.unlockNoSecurity": "Este teléfono ya no tiene huella ni bloqueo de pantalla, así que el bloqueo de la app se desactivó.", + "HM-SET-01.unlockNoSecurity": "Este teléfono ya no tiene {biometric} ni bloqueo de pantalla, así que el bloqueo de la app se desactivó.", "HM-SET-01.lockedApproval": "Hay una solicitud esperando tu aprobación. Aparece después de desbloquear.", "HM-CHAT-01.clear": "Borrar", "HM-CHAT-01.clearA11y": "Borrar conversación", @@ -748,6 +748,21 @@ "HM-MEM-02.back": "Volver a recuerdos", "common.language.es419": "Español (Latinoamérica)", "common.language.en": "English", + "common.biometric.fingerprint": "huella", + "common.biometric.fingerprint.start": "Huella", + "common.biometric.fingerprint.a": "una huella", + "common.biometric.faceId": "Face ID", + "common.biometric.faceId.start": "Face ID", + "common.biometric.faceId.a": "Face ID", + "common.biometric.touchId": "Touch ID", + "common.biometric.touchId.start": "Touch ID", + "common.biometric.touchId.a": "Touch ID", + "common.biometric.faceOrTouchId": "Face ID o Touch ID", + "common.biometric.faceOrTouchId.start": "Face ID o Touch ID", + "common.biometric.faceOrTouchId.a": "Face ID o Touch ID", + "common.ios.faceIdUsage": "Hermit usa Face ID para aprobar lo que envía o paga por ti, para abrir tu bóveda y tu billetera, y para el bloqueo de la app.", + "common.ios.calendarsUsage": "Hermit lee tu calendario para responder sobre tus planes, y agrega los eventos que le pides.", + "common.ios.remindersUsage": "Hermit guarda sus recordatorios en la app y no necesita tu lista de Recordatorios. Puedes decir que no.", "HM-ONB-02.title": "Elige tu idioma", "HM-ONB-02.body": "Hermit empieza en el idioma de tu teléfono. Puedes cambiarlo después en Ajustes.", "HM-ONB-02.continue": "Continuar", @@ -912,22 +927,22 @@ "HM-VAULT-01.loading": "Abriendo la bóveda", "HM-VAULT-01.error": "No se pudo abrir la bóveda.", "HM-VAULT-01.noneTitle": "Guarda tus contraseñas en tu teléfono", - "HM-VAULT-01.noneBody": "La bóveda está cifrada con una llave que solo tu huella abre. Nada sale del teléfono, y el modelo de Hermit nunca ve lo que guardas aquí.", + "HM-VAULT-01.noneBody": "La bóveda está cifrada con una llave que solo tu {biometric} abre. Nada sale del teléfono, y el modelo de Hermit nunca ve lo que guardas aquí.", "HM-VAULT-01.create": "Crear la bóveda", "HM-VAULT-01.createPrompt": "Crea tu bóveda", "HM-VAULT-01.lockedTitle": "La bóveda está bloqueada", "HM-VAULT-01.lockedBody": "Se bloquea cuando sales de Hermit, cuando la app se bloquea y tras {minutes} minutos sin uso.", - "HM-VAULT-01.unlock": "Desbloquear con huella", + "HM-VAULT-01.unlock": "Desbloquear con {biometric}", "HM-VAULT-01.unlockPrompt": "Desbloquea tu bóveda", "HM-VAULT-01.lostTitle": "La bóveda ya no se puede abrir", - "HM-VAULT-01.lostBody": "Se agregó o quitó una huella en este teléfono, así que Android retiró la llave de la bóveda. Nadie puede descifrar tus accesos guardados, ni siquiera tú. Empieza de nuevo para crear una bóveda nueva y vacía.", + "HM-VAULT-01.lostBody": "Cambió la configuración de {biometric} en este teléfono, así que se retiró la llave de la bóveda. Nadie puede descifrar tus accesos guardados, ni siquiera tú. Empieza de nuevo para crear una bóveda nueva y vacía.", "HM-VAULT-01.reset": "Empezar de nuevo", "HM-VAULT-01.resetTitle": "¿Empezar de nuevo con una bóveda vacía?", "HM-VAULT-01.resetBody": "Se borran todos los accesos guardados. No se pueden recuperar.", "HM-VAULT-01.resetCancel": "Cancelar", "HM-VAULT-01.resetConfirm": "Borrar y empezar de nuevo", - "HM-VAULT-01.note.cancelled": "No se confirmó la huella. No cambió nada.", - "HM-VAULT-01.note.unavailable": "La bóveda necesita una huella configurada en este teléfono. Agrégala en los ajustes del teléfono y vuelve a intentarlo.", + "HM-VAULT-01.note.cancelled": "No se confirmó tu {biometric}. No cambió nada.", + "HM-VAULT-01.note.unavailable": "La bóveda se abre con tu {biometric}. Configura {aBiometric} en los ajustes del teléfono y vuelve a intentarlo.", "HM-VAULT-01.note.failed": "No funcionó. Inténtalo de nuevo.", "HM-VAULT-01.private": "Aquí solo se ven nombres y sitios web. El modelo de Hermit nunca ve la bóveda.", "HM-VAULT-01.empty": "Todavía no hay accesos. Agrega el primero.", @@ -947,7 +962,7 @@ "HM-VAULT-02.notes": "Notas", "HM-VAULT-02.hidden": "Oculto", "HM-VAULT-02.none": "Ninguno", - "HM-VAULT-02.reveal": "Mostrar con huella", + "HM-VAULT-02.reveal": "Mostrar con {biometric}", "HM-VAULT-02.revealPrompt": "Mostrar este acceso", "HM-VAULT-02.hide": "Ocultar ahora", "HM-VAULT-02.hidesIn": "Se oculta de nuevo en {seconds} s", @@ -957,7 +972,7 @@ "HM-VAULT-02.copyNote": "Lo que copias no aparece en la vista previa del portapapeles y se borra después de 30 segundos.", "HM-VAULT-02.edit": "Editar", "HM-VAULT-02.editPrompt": "Editar este acceso", - "HM-VAULT-02.save": "Guardar con huella", + "HM-VAULT-02.save": "Guardar con {biometric}", "HM-VAULT-02.savePrompt": "Guardar este acceso", "HM-VAULT-02.cancel": "Cancelar", "HM-VAULT-02.delete": "Borrar acceso", @@ -983,9 +998,9 @@ "HM-VAULT-02.problem.origin_invalid": "Un sitio web no es una dirección válida. Escríbelo así: https://ejemplo.com.", "HM-VAULT-02.problem.origin_not_https": "Solo se pueden guardar sitios https://, para que un acceso nunca viaje por una conexión sin cifrar.", "HM-VAULT-02.problem.too_long": "Algo es muy largo (máximo 4.000 caracteres por campo y 20 sitios web).", - "HM-VAULT-02.note.cancelled": "No se confirmó la huella. No se mostró ni guardó nada.", + "HM-VAULT-02.note.cancelled": "No se confirmó tu {biometric}. No se mostró ni guardó nada.", "HM-VAULT-02.note.not_on_screen": "Hermit debe estar en pantalla para mostrar o copiar un acceso.", - "HM-VAULT-02.note.lost": "La llave de la bóveda se retiró tras un cambio de huellas. Vuelve a la bóveda para empezar de nuevo.", + "HM-VAULT-02.note.lost": "La llave de la bóveda se retiró tras un cambio de {biometric}. Vuelve a la bóveda para empezar de nuevo.", "HM-VAULT-02.note.failed": "No funcionó. Inténtalo de nuevo.", "HM-VAULT-02.note.copied": "Copiado. Se borrará en 30 segundos.", "HM-VAULT-02.note.gone": "Este acceso ya no está en la bóveda.", @@ -1020,7 +1035,7 @@ "HM-CONN-03.readClaimLabel": "Tratar {name} como solo lectura", "HM-CONN-03.risk.network": "Lee del servicio", "HM-CONN-03.risk.remote_write": "Puede cambiar cosas en el servicio", - "HM-CONN-03.risk.send": "Puede enviar cosas por ti (pide tu huella)", + "HM-CONN-03.risk.send": "Puede enviar cosas por ti (pide tu {biometric})", "HM-CONN-03.risk.credential": "Toca contraseñas o claves (bloqueada)", "HM-CONN-03.risk.spend": "Puede gastar dinero (bloqueada)", "HM-CONN-03.destructive": "puede borrar", @@ -1115,7 +1130,7 @@ "HM-CONN-04.blocked.no_key": "Guarda tu llave para continuar.", "HM-CONN-04.blocked.not_tested": "Haz la llamada de prueba para continuar.", "HM-CONN-04.blocked.test_failed": "La llamada de prueba tiene que funcionar antes de instalar.", - "HM-CONN-04.install": "Instalar con huella", + "HM-CONN-04.install": "Instalar con {biometric}", "HM-CONN-04.installPrompt": "Instalar este conector", "HM-CONN-04.removeTitle": "¿Quitar {name}?", "HM-CONN-04.removeBody": "Deja Hermit y su llave se borra de este teléfono.", @@ -1140,7 +1155,7 @@ "HM-CONN-04.error.no_key": "Primero guarda tu llave.", "HM-CONN-04.error.not_tested": "Primero haz la llamada de prueba.", "HM-CONN-04.error.skill_id_clash": "Una de sus acciones tiene el mismo nombre que algo que Hermit ya tiene, así que no se puede instalar. No se guardó nada.", - "HM-CONN-04.error.not_confirmed": "No se confirmó la huella. No se instaló nada.", + "HM-CONN-04.error.not_confirmed": "No se confirmó tu {biometric}. No se instaló nada.", "HM-CONN-04.error.sign_in_not_in_doc": "Ese nombre o prefijo no aparece en la documentación, así que Hermit no lo usará.", "HM-CONN-04.error.not_changeable": "El inicio de sesión de este conector no se puede cambiar.", "HM-CONN-04.error.bad_key": "Esa llave no se puede usar. Revísala e inténtalo de nuevo.", @@ -1154,7 +1169,7 @@ "HM-VAULT-03.choose": "Elegir un archivo CSV", "HM-VAULT-03.lockedTitle": "Desbloquea la bóveda para continuar", "HM-VAULT-03.lockedBody": "La bóveda se bloqueó y se borró lo que se había leído del archivo. Desbloquéala para leer el archivo otra vez.", - "HM-VAULT-03.unlock": "Desbloquear con huella", + "HM-VAULT-03.unlock": "Desbloquear con {biometric}", "HM-VAULT-03.unlockPrompt": "Desbloquea tu bóveda", "HM-VAULT-03.reading": "Leyendo el archivo", "HM-VAULT-03.refusedTitle": "Este archivo no se puede importar", @@ -1196,7 +1211,7 @@ "HM-VAULT-03.problem.not_login": "no es un acceso", "HM-VAULT-03.problem.bad_row": "sus columnas no coinciden", "HM-VAULT-03.problem.duplicate_in_file": "igual a una fila anterior", - "HM-VAULT-03.import": "Importar {count} con huella", + "HM-VAULT-03.import": "Importar {count} con {biometric}", "HM-VAULT-03.importNone": "No hay nada para importar", "HM-VAULT-03.importPrompt": "Importar a tu bóveda", "HM-VAULT-03.cancel": "Cancelar", @@ -1212,7 +1227,7 @@ "HM-VAULT-03.deleteUnsupported": "Hermit no puede borrar el archivo donde está. Bórralo en tu app de Archivos.", "HM-VAULT-03.fileFallback": "El archivo", "HM-VAULT-03.done": "Listo", - "HM-VAULT-03.note.cancelled": "Huella no confirmada. No se importó nada.", + "HM-VAULT-03.note.cancelled": "No se confirmó tu {biometric}. No se importó nada.", "HM-VAULT-03.note.failed": "No funcionó. No se importó nada.", "HM-VAULT-03.note.expired": "El archivo se borró de la memoria. Elígelo otra vez.", "HM-VAULT-03.note.deleted": "Se borró el archivo.", @@ -1224,8 +1239,8 @@ "HM-FORM-02.error": "No se pudo abrir tu perfil.", "HM-FORM-02.empty": "Todavía no hay nada guardado. Agrega los datos que más escribes.", "HM-FORM-02.notSet": "Sin guardar", - "HM-FORM-02.protected": "Guardado y protegido. Solo se llena después de tu huella.", - "HM-FORM-02.sensitive": "Sensible: necesita tu huella para llenarse", + "HM-FORM-02.protected": "Guardado y protegido. Solo se llena después de tu {biometric}.", + "HM-FORM-02.sensitive": "Sensible: necesita tu {biometric} para llenarse", "HM-FORM-02.sensitiveHint": "Los datos sensibles se sellan con la llave de la bóveda y nunca se llenan en una página que no es segura.", "HM-FORM-02.alwaysSensitive": "Los números de identificación siempre son sensibles.", "HM-FORM-02.add": "Agregar", @@ -1233,7 +1248,7 @@ "HM-FORM-02.editTitle": "{field}", "HM-FORM-02.replaceHint": "Escribe el valor nuevo. El guardado no se muestra.", "HM-FORM-02.save": "Guardar", - "HM-FORM-02.saveFingerprint": "Guardar con huella", + "HM-FORM-02.saveFingerprint": "Guardar con {biometric}", "HM-FORM-02.savePrompt": "Confirma que eres tú para proteger este dato", "HM-FORM-02.cancel": "Cancelar", "HM-FORM-02.delete": "Eliminar", @@ -1247,8 +1262,8 @@ "HM-FORM-02.problem.control_chars": "Usa una sola línea, sin caracteres especiales.", "HM-FORM-02.note.saved": "Guardado.", "HM-FORM-02.note.no_vault": "Los datos sensibles se sellan con la llave de la bóveda. Crea la bóveda primero y luego guarda esto de nuevo.", - "HM-FORM-02.note.lost": "La llave de la bóveda se retiró después de un cambio de huellas, así que no se pueden guardar datos sensibles. Empieza la bóveda de nuevo primero.", - "HM-FORM-02.note.cancelled": "No se confirmó la huella. No se guardó nada.", + "HM-FORM-02.note.lost": "La llave de la bóveda se retiró después de un cambio de {biometric}, así que no se pueden guardar datos sensibles. Empieza la bóveda de nuevo primero.", + "HM-FORM-02.note.cancelled": "No se confirmó tu {biometric}. No se guardó nada.", "HM-FORM-02.note.failed": "Algo salió mal. No se guardó nada.", "HM-FORM-02.openVault": "Abrir la bóveda", "HM-FORM-02.autofillOff": "Hermit todavía no es el servicio de autocompletar, así que otras apps no ofrecerán estos datos. Actívalo en Ajustes.", @@ -1265,10 +1280,10 @@ "HM-FORM-01.fields": "Lo que se llena", "HM-FORM-01.masked": "Protegido: solo se muestra en el formulario", "HM-FORM-01.heldBack": "No se llena: {field}, porque la página no es segura", - "HM-FORM-01.fingerprintNote": "Algunos de estos datos son sensibles, así que llenar pide tu huella.", + "HM-FORM-01.fingerprintNote": "Algunos de estos datos son sensibles, así que llenar pide tu {biometric}.", "HM-FORM-01.submitNote": "Hermit solo llena los campos. Enviar el formulario sigue siendo tu propio toque.", "HM-FORM-01.approve": "Llenar", - "HM-FORM-01.approveFingerprint": "Llenar con huella", + "HM-FORM-01.approveFingerprint": "Llenar con {biometric}", "HM-FORM-01.deny": "No llenar", "HM-FORM-01.prompt": "Confirma que eres tú para llenar este formulario", "HM-FORM-01.close": "Volver al formulario", @@ -1287,10 +1302,10 @@ "HM-FORM-01.refused.no_module": "Esta versión no puede llenar formularios en otras apps.", "HM-FORM-01.refused.not_ready": "Hermit todavía está iniciando. Toca de nuevo la sugerencia en el formulario.", "HM-FORM-01.done.filled": "Listo. Revisa el formulario antes de enviarlo.", - "HM-FORM-01.done.cancelled": "No se confirmó la huella. No se llenó nada.", + "HM-FORM-01.done.cancelled": "No se confirmó tu {biometric}. No se llenó nada.", "HM-FORM-01.done.expired": "Se agotó el tiempo de esta solicitud. No se llenó nada.", "HM-FORM-01.done.changed": "Tu perfil cambió desde esta vista previa. No se llenó nada; toca la sugerencia de nuevo.", - "HM-FORM-01.done.lost": "La llave de la bóveda se retiró después de un cambio de huellas, así que los datos sensibles no se pueden abrir. No se llenó nada.", + "HM-FORM-01.done.lost": "La llave de la bóveda se retiró después de un cambio de {biometric}, así que los datos sensibles no se pueden abrir. No se llenó nada.", "HM-FORM-01.done.not_on_screen": "Hermit debe estar en pantalla para llenar un formulario. No se llenó nada.", "HM-FORM-01.done.gone": "Esta solicitud ya terminó. No se llenó nada más.", "HM-FORM-01.done.denied": "No se llenó nada.", @@ -1298,27 +1313,27 @@ "HM-FORM-01.refused.no_login": "Hermit no tiene un inicio de sesión guardado para exactamente este sitio o app, así que no se llenó nada.", "HM-FORM-01.refused.no_vault": "Tu bóveda no está configurada, así que no hay inicio de sesión para llenar.", "HM-FORM-01.refused.key_none": "Para iniciar sesión se necesita tu clave de aprobación, y aún no está configurada. No se llenó nada.", - "HM-FORM-01.refused.key_lost": "Tu clave de aprobación dejó de funcionar porque cambiaron las huellas de este teléfono. No se llenó nada. Configúrala de nuevo para usar tus inicios de sesión.", - "HM-FORM-01.refused.no_biometric": "Para iniciar sesión se necesita una huella, y este teléfono no tiene ninguna configurada. No se llenó nada.", + "HM-FORM-01.refused.key_lost": "Tu clave de aprobación dejó de funcionar porque cambió la configuración de {biometric} de este teléfono. No se llenó nada. Configúrala de nuevo para usar tus inicios de sesión.", + "HM-FORM-01.refused.no_biometric": "Para iniciar sesión se necesita {aBiometric}, y falta en este teléfono. No se llenó nada.", "HM-APPR-01.login.title": "¿Iniciar sesión con Hermit?", "HM-APPR-01.login.item": "Inicio de sesión", "HM-APPR-01.login.username": "Usuario", "HM-APPR-01.login.password": "Contraseña", "HM-APPR-01.login.hidden": "No se muestra aquí. Va directo al formulario.", - "HM-APPR-01.login.signedNote": "La pantalla de huella repite el sitio (o la app): revisa que coincida.", - "HM-APPR-01.login.vaultNote": "Luego, tu bóveda pide otra huella para abrir este acceso.", + "HM-APPR-01.login.signedNote": "La pantalla de {biometric} repite el sitio (o la app): revisa que coincida.", + "HM-APPR-01.login.vaultNote": "Luego, tu bóveda pide tu {biometric} otra vez para abrir este acceso.", "HM-APPR-01.login.submitNote": "Hermit solo llena los campos. Iniciar sesión sigue siendo tu toque.", - "HM-APPR-01.login.approve": "Aprobar con huella", + "HM-APPR-01.login.approve": "Aprobar con {biometric}", "HM-APPR-01.login.deny": "No iniciar sesión", "HM-APPR-01.login.vaultPrompt": "Confirma que eres tú para abrir este inicio de sesión", - "HM-APPR-01.login.note.cancelled": "Huella no confirmada. No se llenó nada. Puedes intentarlo de nuevo.", + "HM-APPR-01.login.note.cancelled": "No se confirmó tu {biometric}. No se llenó nada. Puedes intentarlo de nuevo.", "HM-APPR-01.login.note.lockout": "Demasiados intentos. Espera un momento y vuelve a intentarlo.", "HM-APPR-01.login.done.filled": "Listo. Revisa la página y luego toca iniciar sesión.", "HM-APPR-01.login.done.changed": "Este inicio de sesión cambió desde que lo abriste aquí. No se llenó nada; toca la sugerencia de nuevo.", - "HM-APPR-01.login.done.lost": "La clave de la bóveda se retiró tras un cambio de huellas, así que este inicio de sesión no se puede abrir. No se llenó nada.", + "HM-APPR-01.login.done.lost": "La clave de la bóveda se retiró tras un cambio de {biometric}, así que este inicio de sesión no se puede abrir. No se llenó nada.", "HM-APPR-01.login.done.not_signed": "Hermit no pudo comprobar la aprobación, así que no se llenó nada.", - "HM-APPR-01.login.done.key_lost": "Tu clave de aprobación dejó de funcionar porque cambiaron las huellas de este teléfono. No se llenó nada.", - "HM-APPR-01.login.done.no_biometric": "Para iniciar sesión se necesita una huella, y este teléfono no tiene ninguna configurada. No se llenó nada.", + "HM-APPR-01.login.done.key_lost": "Tu clave de aprobación dejó de funcionar porque cambió la configuración de {biometric} de este teléfono. No se llenó nada.", + "HM-APPR-01.login.done.no_biometric": "Para iniciar sesión se necesita {aBiometric}, y falta en este teléfono. No se llenó nada.", "HM-FORM-02.kind.given_name": "Nombre", "HM-FORM-02.kind.family_name": "Apellidos", "HM-FORM-02.kind.full_name": "Nombre completo", @@ -1375,14 +1390,14 @@ "HM-BOT-04.autoSheet.composed": "Un enlace que Hermit arma por su cuenta sigue pidiendo permiso.", "HM-BOT-04.autoSheet.asks": "Sigue preguntando antes de responder un mensaje, enviar un correo o cambiar datos de otra persona.", "HM-BOT-04.autoSheet.alone": "Cuando trabaja sin ti, no puede leer tus datos privados y usar la web en la misma tarea.", - "HM-BOT-04.autoSheet.money": "Los pagos y los inicios de sesión siempre piden tu huella.", + "HM-BOT-04.autoSheet.money": "Los pagos y los inicios de sesión siempre piden tu {biometric}.", "HM-BOT-04.autoSheet.confirm": "Usar Auto", "HM-BOT-04.dontAskSheet.title": "Sin preguntar es peligroso", "HM-BOT-04.dontAskSheet.intro": "Hermit hará casi todo sin preguntarte. Estos son los riesgos.", "HM-BOT-04.dontAskSheet.risk": "Una página web podría hacer que Hermit envíe mensajes o correos en tu nombre, borre cosas o comparta tus datos.", "HM-BOT-04.dontAskSheet.tools": "Las herramientas de servicios conectados también se ejecutan sin preguntar, y Hermit no siempre puede saber si una de ellas mueve dinero.", - "HM-BOT-04.dontAskSheet.money": "Los pagos y los inicios de sesión siguen pidiendo tu huella en todos los modos.", - "HM-BOT-04.dontAskSheet.proof": "Para activarlo necesitas tu huella y escribir la palabra.", + "HM-BOT-04.dontAskSheet.money": "Los pagos y los inicios de sesión siguen pidiendo tu {biometric} en todos los modos.", + "HM-BOT-04.dontAskSheet.proof": "Para activarlo necesitas tu {biometric} y escribir la palabra.", "HM-BOT-04.dontAskSheet.typeWord": "Escribe entiendo para seguir", "HM-BOT-04.dontAskSheet.confirm": "Activar Sin preguntar", "HM-SET-01.botModes": "Permisos de los bots", @@ -1446,7 +1461,7 @@ "HM-BOT-03.color.ink": "Tinta", "HM-BOT-03.permissions": "Qué puede hacer", "HM-BOT-03.permissionsHint": "Solo usa lo que actives aquí. Lo cambias cuando quieras.", - "HM-BOT-03.needsFingerprint": "Pide tu huella", + "HM-BOT-03.needsFingerprint": "Pide tu {biometric}", "HM-BOT-03.sources": "Fuentes", "HM-BOT-03.sourcesHint": "Los sitios y conectores de donde trabaja. En modo Preguntar, solo lee de aquí cuando nadie está presente.", "HM-BOT-03.sites": "Sitios web", @@ -1464,7 +1479,7 @@ "HM-BOT-03.modeDontAskSub": "Hace todo sin preguntar, menos pagos e inicios de sesión. Es peligroso.", "HM-BOT-03.modePick": "Elige cómo actúa", "HM-BOT-03.routinesLater": "Las rutinas se agregan después, desde los ajustes del bot.", - "HM-BOT-03.fingerprintNote": "Para crear este bot te pediremos tu huella.", + "HM-BOT-03.fingerprintNote": "Para crear este bot te pediremos tu {biometric}.", "HM-BOT-03.create": "Crear bot", "HM-BOT-03.creating": "Creando el bot", "HM-BOT-03.taintedProposal": "Hermit armó esta propuesta después de leer texto de otras personas. Revisa cada campo antes de crear el bot.", @@ -1522,7 +1537,7 @@ "HM-BOT-04.refused.name_too_long": "El nombre pasa de 40 caracteres.", "HM-BOT-04.refused.role_too_long": "El rol pasa de 800 caracteres.", "HM-BOT-04.refused.bad_site": "Escribe sitios como wikivoyage.org, no direcciones numéricas.", - "HM-BOT-04.refused.fingerprint_declined": "No se confirmó tu huella, así que no cambió nada.", + "HM-BOT-04.refused.fingerprint_declined": "No se confirmó tu {biometric}, así que no cambió nada.", "HM-BOT-04.refused.word_mismatch": "No escribiste la palabra pedida, así que no cambió nada.", "HM-BOT-04.refused.offer_gone": "Esa propuesta ya no está.", "HM-BOT-04.refused.needs_review": "Revisa la propuesta antes de crearla.", @@ -1537,7 +1552,7 @@ "HM-CHAT-01.proposal.modeDontAsk": "Este bot funcionará en Sin preguntar: hace todo sin preguntarte, salvo pagos e inicios de sesión.", "HM-CHAT-01.proposal.create": "Crear", "HM-CHAT-01.proposal.review": "Revisar", - "HM-CHAT-01.proposal.fingerprint": "Crear pide tu huella.", + "HM-CHAT-01.proposal.fingerprint": "Crear pide tu {biometric}.", "HM-CHAT-01.proposal.tainted": "Hermit leyó texto de otras personas antes de armar esta propuesta. Revísala antes de crear el bot.", "HM-CHAT-01.proposal.created": "Bot creado.", "HM-CHAT-01.proposal.open": "Abrir el chat", @@ -1593,9 +1608,9 @@ "HM-PAY-01.testnetShort": "Dólares de prueba en Stable testnet", "HM-PAY-01.info.open": "Sobre esta billetera", "HM-PAY-01.info.title": "Sobre esta billetera", - "HM-PAY-01.info.key": "Su llave se crea y se guarda en este teléfono, protegida con tu huella. Nadie más la tiene, y el modelo de Hermit nunca la ve.", + "HM-PAY-01.info.key": "Su llave se crea y se guarda en este teléfono, protegida con tu {biometric}. Nadie más la tiene, y el modelo de Hermit nunca la ve.", "HM-PAY-01.noneTitle": "Una billetera que solo tú controlas", - "HM-PAY-01.noneBody": "Hermit guarda una billetera de USD₮ en este teléfono. Su llave se crea y se guarda en el teléfono, protegida con tu huella. Nadie más la tiene, ni siquiera Dojo Coding, y el modelo de Hermit nunca la ve.", + "HM-PAY-01.noneBody": "Hermit guarda una billetera de USD₮ en este teléfono. Su llave se crea y se guarda en el teléfono, protegida con tu {biometric}. Nadie más la tiene, ni siquiera Dojo Coding, y el modelo de Hermit nunca la ve.", "HM-PAY-01.create": "Crear una billetera", "HM-PAY-01.createPrompt": "Crea tu billetera", "HM-PAY-01.restore": "Restaurar con palabras de recuperación", @@ -1612,14 +1627,14 @@ "HM-PAY-01.backedUpShort": "Respaldadas", "HM-PAY-01.backupShort": "Sin respaldo", "HM-PAY-01.lostTitle": "La llave de esta billetera ya no está", - "HM-PAY-01.lostBody": "Se agregó o quitó una huella en este teléfono, así que Android retiró la llave de la billetera. El dinero sigue en la red: restaura la billetera con tus palabras de recuperación.", + "HM-PAY-01.lostBody": "Cambió la configuración de {biometric} en este teléfono, así que se retiró la llave de la billetera. El dinero sigue en la red: restaura la billetera con tus palabras de recuperación.", "HM-PAY-01.startOver": "Empezar de nuevo", "HM-PAY-01.startOverTitle": "¿Borrar esta billetera del teléfono?", "HM-PAY-01.startOverBody": "Sin tus palabras de recuperación, el dinero que tenga se pierde para siempre. Nadie lo puede recuperar.", "HM-PAY-01.startOverCancel": "Cancelar", "HM-PAY-01.startOverConfirm": "Borrar la billetera", - "HM-PAY-01.note.cancelled": "No se confirmó la huella. No cambió nada.", - "HM-PAY-01.note.unavailable": "La billetera necesita una huella configurada en este teléfono. Agrégala en los ajustes del teléfono y vuelve a intentarlo.", + "HM-PAY-01.note.cancelled": "No se confirmó tu {biometric}. No cambió nada.", + "HM-PAY-01.note.unavailable": "La billetera se abre con tu {biometric}. Configura {aBiometric} en los ajustes del teléfono y vuelve a intentarlo.", "HM-PAY-01.note.failed": "No funcionó. No cambió nada. Inténtalo de nuevo.", "HM-PAY-01.note.not_on_screen": "Hermit tiene que estar en pantalla para hacer eso.", "HM-PAY-01.receive": "Recibir", @@ -1643,7 +1658,7 @@ "HM-PAY-03.olderFailed": "Hermit no pudo leer los movimientos anteriores. Revisa tu conexión e inténtalo de nuevo.", "HM-PAY-03.floor": "Las transferencias más antiguas no se muestran aquí: Hermit lee aproximadamente la última semana de Stable testnet.", "HM-PAY-03.onlyUsdt": "Solo se muestra USD₮. Los otros tokens enviados a esta dirección se ignoran.", - "HM-PAY-03.source": "Se lee del RPC público de Stable testnet solo con la dirección de tu billetera. No hace falta la huella.", + "HM-PAY-03.source": "Se lee del RPC público de Stable testnet solo con la dirección de tu billetera. No hace falta tu {biometric}.", "HM-PAY-03.rowLabel": "{title}, {amount}, {who}, {when}", "HM-PAY-03.byHermit": "Lo hizo Hermit · ver en Actividad", "HM-PAY-03.unknownShort": "Remitente desconocido", @@ -1700,8 +1715,8 @@ "HM-PAY-02.restoredTitle": "Billetera restaurada", "HM-PAY-02.restoredBody": "Tu billetera está otra vez en este teléfono. Guarda bien tu papel.", "HM-PAY-02.exists": "Este teléfono ya tiene una billetera. Hermit guarda una billetera por teléfono.", - "HM-PAY-02.note.cancelled": "No se confirmó la huella. No se mostró ni se guardó nada.", - "HM-PAY-02.note.unavailable": "La billetera necesita una huella configurada en este teléfono. Agrégala en los ajustes del teléfono y vuelve a intentarlo.", + "HM-PAY-02.note.cancelled": "No se confirmó tu {biometric}. No se mostró ni se guardó nada.", + "HM-PAY-02.note.unavailable": "La billetera se abre con tu {biometric}. Configura {aBiometric} en los ajustes del teléfono y vuelve a intentarlo.", "HM-PAY-02.note.failed": "No funcionó. No se mostró ni se guardó nada. Inténtalo de nuevo.", "HM-PAY-02.note.not_on_screen": "Hermit tiene que estar en pantalla para mostrar o guardar las palabras.", "HM-PAY-02.note.lost": "La llave de la billetera ya no está. Restaura la billetera con tus palabras de recuperación.", @@ -1753,7 +1768,7 @@ "HM-WEB-02.step.signin": "Iniciar sesión con {name} (te pregunta antes)", "HM-WEB-02.step.wait": "Esperar {name}", "HM-WEB-02.step.read": "Leer la respuesta: {question}", - "HM-WEB-02.step.login": "Iniciar sesión en {site} con tu acceso guardado (pide tu huella)", + "HM-WEB-02.step.login": "Iniciar sesión en {site} con tu acceso guardado (pide tu {biometric})", "HM-WEB-02.live.step": "Paso {n} de {total}: {doing}", "HM-WEB-02.live.takeOver": "Tomar el control", "HM-WEB-02.live.resume": "Seguir", @@ -1821,7 +1836,7 @@ "HM-WEB-02.save.step.signin": "Tocar {role} “{name}” (inicia sesión, te pregunta antes)", "HM-WEB-02.save.step.pay": "Tocar {role} “{name}” (paga, así que siempre lo haces tú)", "HM-WEB-02.save.step.fill": "Escribir “{value}” en {role} “{name}”", - "HM-WEB-02.save.step.secret": "Tu acceso en {role} “{name}” (no se guarda: se usa tu acceso guardado, con tu huella)", + "HM-WEB-02.save.step.secret": "Tu acceso en {role} “{name}” (no se guarda: se usa tu acceso guardado, con tu {biometric})", "HM-WEB-02.save.step.select": "Elegir “{value}” en {role} “{name}”", "HM-WEB-02.save.step.check": "Marcar {role} “{name}”", "HM-WEB-02.save.step.uncheck": "Desmarcar {role} “{name}”", @@ -1861,10 +1876,10 @@ "HM-WEB-02.sheet.message": "El mensaje (solo tú lo ves)", "HM-APPR-01.titleCode": "¿Escribir este código?", "HM-APPR-01.denyCode": "No escribirlo", - "HM-APPR-01.signedNoteCode": "Revisa que el código coincida con el mensaje y que el sitio sea donde estás iniciando sesión. La pantalla de huella repite el sitio.", + "HM-APPR-01.signedNoteCode": "Revisa que el código coincida con el mensaje y que el sitio sea donde estás iniciando sesión. La pantalla de {biometric} repite el sitio.", "HM-APPR-01.needsOk": "Necesita tu OK", "HM-APPR-01.signedFoot": "Lo muestra Hermit, no el modelo.", - "HM-APPR-01.shownFoot": "Lo muestra Hermit, no el modelo. Se envía solo con tu huella.", + "HM-APPR-01.shownFoot": "Lo muestra Hermit, no el modelo. Se envía solo con tu {biometric}.", "HM-APPR-01.login.approveVerb": "Usar este acceso", "HM-APPR-01.sendVerb": "Enviar", "HM-APPR-01.argsHash": "Huella de esta acción (hash)", @@ -1878,10 +1893,10 @@ "HM-APPR-01.saidLess": "Ver menos", "HM-APPR-01.info.open": "Cómo funciona esta aprobación", "HM-APPR-01.info.title": "Cómo funciona esta aprobación", - "HM-APPR-01.info.drawn": "Esta hoja la dibuja Hermit, no el modelo: muestra exactamente lo que el código va a hacer, y nada sale del teléfono sin tu huella.", - "HM-APPR-01.info.signed": "El chip de seguridad de tu teléfono firma esta aprobación con una llave que nunca sale de él, y su pantalla de huella vuelve a mostrar lo que importa, leído de lo que se firma. Revisa que coincida con esta hoja.", - "HM-APPR-01.info.fingerprint": "Si cancelas la huella o dices que no, no se hace nada.", - "HM-APPR-01.sendVerbSpoken": "Enviar con huella", + "HM-APPR-01.info.drawn": "Esta hoja la dibuja Hermit, no el modelo: muestra exactamente lo que el código va a hacer, y nada sale del teléfono sin tu {biometric}.", + "HM-APPR-01.info.signed": "El chip de seguridad de tu teléfono firma esta aprobación con una llave que nunca sale de él, y su pantalla de {biometric} vuelve a mostrar lo que importa, leído de lo que se firma. Revisa que coincida con esta hoja.", + "HM-APPR-01.info.fingerprint": "Si cancelas la revisión de {biometric} o dices que no, no se hace nada.", + "HM-APPR-01.sendVerbSpoken": "Enviar con {biometric}", "HM-APPR-01.titleMailRead": "¿Leer tu correo?", "HM-APPR-01.titleMailSend": "¿Enviar este correo?", "HM-APPR-01.titleMailDraft": "¿Guardar este borrador?", @@ -1891,10 +1906,10 @@ "HM-APPR-01.denyChange": "No cambiar", "HM-APPR-01.draftNote": "Se guarda en tus borradores. No se envía nada.", "HM-APPR-01.saveVerb": "Guardar", - "HM-APPR-01.saveVerbSpoken": "Guardar con huella", - "HM-APPR-01.shownFootRead": "Lo muestra Hermit, no el modelo. Solo se lee con tu huella.", - "HM-APPR-01.shownFootAct": "Lo muestra Hermit, no el modelo. Solo pasa con tu huella.", - "HM-APPR-01.login.approveVerbSpoken": "Usar este acceso con huella", + "HM-APPR-01.saveVerbSpoken": "Guardar con {biometric}", + "HM-APPR-01.shownFootRead": "Lo muestra Hermit, no el modelo. Solo se lee con tu {biometric}.", + "HM-APPR-01.shownFootAct": "Lo muestra Hermit, no el modelo. Solo pasa con tu {biometric}.", + "HM-APPR-01.login.approveVerbSpoken": "Usar este acceso con {biometric}", "HM-WEB-02.sharedProfile": "El navegador de este teléfono no puede separar los sitios, así que Hermit borra los datos de todos los sitios después de cada tarea y no puede mantener tu sesión iniciada.", "HM-WEB-02.gone": "Este plan ya no está. Vuelve a pedirlo en el chat.", "HM-WEB-02.unavailable": "El navegador de Hermit no viene en esta versión de la app.", @@ -1917,7 +1932,7 @@ "HM-CHAT-01.pay.which": "Más de un destinatario guardado coincide con {name}: {list}. Di el nombre completo del que quieres. No se envió nada.", "HM-CHAT-01.pay.not_said": "Solo puedo pagar a una dirección que escribiste en este mensaje o a un destinatario guardado que nombraste. No se envió nada.", "HM-CHAT-01.pay.no_wallet": "Todavía no tienes billetera. Crea una primero en Billetera. No se envió nada.", - "HM-CHAT-01.pay.wallet_lost": "La llave de tu billetera dejó de funcionar tras un cambio de huellas. Restaura la billetera con tus palabras de recuperación en Billetera. No se envió nada.", + "HM-CHAT-01.pay.wallet_lost": "La llave de tu billetera dejó de funcionar tras un cambio de {biometric}. Restaura la billetera con tus palabras de recuperación en Billetera. No se envió nada.", "HM-CHAT-01.pay.self": "Esa es la dirección de tu propia billetera. No se envió nada.", "HM-CHAT-01.pay.over_per_payment": "Eso pasa tu límite de {cap} por pago, así que no puedo enviarlo. No se envió nada. Subir el límite no lo envía después; vuelve a pedirlo.", "HM-CHAT-01.pay.over_per_day": "Eso pasaría tu límite diario de {cap}; quedan {left} para las últimas 24 horas. No se envió nada. Subir el límite no lo envía después; vuelve a pedirlo.", @@ -1963,8 +1978,8 @@ "HM-APPR-02.network": "Red", "HM-APPR-02.fee": "Comisión de red (estimada)", "HM-APPR-02.capLeft": "Te queda hoy después de esto", - "HM-APPR-02.signedNote": "La pantalla de huella repite el monto y a quién va: revisa que coincidan.", - "HM-APPR-02.unlockNote": "Luego, otra huella firma el pago.", + "HM-APPR-02.signedNote": "La pantalla de {biometric} repite el monto y a quién va: revisa que coincidan.", + "HM-APPR-02.unlockNote": "Luego, tu {biometric} firma el pago otra vez.", "HM-APPR-02.deny": "No pagar", "HM-APPR-02.unlock": "Desbloquea tu billetera para enviar {amount} a {to}", "HM-APPR-02.titleMerchant": "¿Pagarle a este sitio?", @@ -1972,20 +1987,20 @@ "HM-APPR-02.page": "Página", "HM-APPR-02.valid": "Se puede cobrar durante", "HM-APPR-02.validFor": "{minutes} minutos después de que firmes", - "HM-APPR-02.signedNoteMerchant": "La pantalla de huella repite el monto y el sitio: revisa que coincidan. Solo este pago sale de tu billetera.", + "HM-APPR-02.signedNoteMerchant": "La pantalla de {biometric} repite el monto y el sitio: revisa que coincidan. Solo este pago sale de tu billetera.", "HM-APPR-02.unlockMerchant": "Desbloquea tu billetera para pagar {amount} a {site}", "HM-APPR-02.blockedLabel": "Bloqueado por tu límite", "HM-APPR-02.seeCaps": "Ver mis límites", "HM-APPR-02.titleTo": "¿Enviar a {to}?", "HM-APPR-02.titleToAddress": "¿Enviar a esta dirección?", "HM-APPR-02.approveVerb": "Pagar {amount}", - "HM-APPR-02.approveVerbA11y": "Pagar {amount} a {to} con huella", + "HM-APPR-02.approveVerbA11y": "Pagar {amount} a {to} con {biometric}", "HM-APPR-02.feeOnTop": "más {fee} de comisión de red (estimada)", "HM-APPR-02.capOf": "{left} de {cap}", "HM-APPR-02.info.title": "Cómo se firma un pago", - "HM-APPR-02.info.signs": "El chip de seguridad de tu teléfono firma este pago con una llave que nunca sale de él. Hermit no puede firmarlo sin tu huella.", - "HM-APPR-02.info.repeats": "La pantalla de huella del teléfono vuelve a mostrar el monto, a quién va y la red, leídos de lo que se firma. Revisa que coincidan con esta hoja.", - "HM-APPR-02.info.second": "Después, tu billetera te pide la huella una vez más para firmar la transacción. Si cancelas cualquiera de las dos, no se envía nada.", + "HM-APPR-02.info.signs": "El chip de seguridad de tu teléfono firma este pago con una llave que nunca sale de él. Hermit no puede firmarlo sin tu {biometric}.", + "HM-APPR-02.info.repeats": "La pantalla de {biometric} del teléfono vuelve a mostrar el monto, a quién va y la red, leídos de lo que se firma. Revisa que coincidan con esta hoja.", + "HM-APPR-02.info.second": "Después, tu billetera te pide tu {biometric} una vez más para firmar la transacción. Si cancelas cualquiera de las dos, no se envía nada.", "HM-PAY-01.caps": "Límites y destinatarios", "HM-PAY-01.capToday": "Usado hoy", "HM-PAY-01.capUsed": "{used} de {cap}", @@ -1998,13 +2013,13 @@ "HM-PAY-05.loading": "Leyendo tus límites…", "HM-PAY-05.error": "Hermit no pudo leer tus límites. No cambió nada.", "HM-PAY-05.notInBuild": "Pagar pidiéndolo necesita la billetera y la clave de aprobación. Una de las dos no está en esta versión, así que los pagos siguen apagados.", - "HM-PAY-05.intro": "Cada pago pide tu huella. Los límites son un tope, incluso para un pago que apruebes por error.", + "HM-PAY-05.intro": "Cada pago pide tu {biometric}. Los límites son un tope, incluso para un pago que apruebes por error.", "HM-PAY-05.capsTitle": "Límites de gasto", "HM-PAY-05.perPayment": "Máximo por pago", "HM-PAY-05.perDay": "Máximo en 24 horas", "HM-PAY-05.defaults": "Estos son los límites de Hermit hasta que los cambies.", "HM-PAY-05.spentToday": "Usado en las últimas 24 horas: {amount}", - "HM-PAY-05.saveCaps": "Guardar límites con huella", + "HM-PAY-05.saveCaps": "Guardar límites con {biometric}", "HM-PAY-05.capsPrompt": "Confirma que eres tú para cambiar tus límites de gasto", "HM-PAY-05.cancel": "Cancelar", "HM-PAY-05.noRetry": "Un pago rechazado por un límite nunca se envía después. Subir un límite no lo reintenta.", @@ -2014,14 +2029,14 @@ "HM-PAY-05.problem.too_high": "Los límites llegan hasta 10,000 USD₮ al día.", "HM-PAY-05.problem.not_usdt": "Los límites son solo en USD₮.", "HM-PAY-05.note.capsSaved": "Guardado. Los pagos que pasen un límite se rechazan.", - "HM-PAY-05.note.cancelled": "Huella no confirmada. No cambió nada.", + "HM-PAY-05.note.cancelled": "No se confirmó tu {biometric}. No cambió nada.", "HM-PAY-05.note.failed": "Eso no funcionó. No cambió nada. Inténtalo de nuevo.", "HM-PAY-05.payeesTitle": "Destinatarios guardados", "HM-PAY-05.payeesIntro": "Cuando dices un nombre, Hermit solo le paga a un destinatario guardado aquí. Nunca toma una dirección de un mensaje, un correo o una página.", "HM-PAY-05.noPayees": "Todavía no hay destinatarios guardados.", "HM-PAY-05.name": "Nombre", "HM-PAY-05.address": "Dirección en Stable testnet (0x…)", - "HM-PAY-05.savePayee": "Guardar destinatario con huella", + "HM-PAY-05.savePayee": "Guardar destinatario con {biometric}", "HM-PAY-05.payeePrompt": "Confirma que eres tú para guardar a {name} como destinatario", "HM-PAY-05.remove": "Quitar", "HM-PAY-05.removeLabel": "Quitar a {name}", @@ -2103,7 +2118,7 @@ "HM-SET-09.emailSub": "Enviar, responder, reenviar, archivar y guardar borradores siempre te pregunta. Leer tu correo también.", "HM-SET-09.rowSub": "Permisos, lo que siempre pregunta, sitios y conexiones", "HM-SET-09.alwaysAsks": "Siempre pregunta", - "HM-SET-09.siteNote": "Siempre: el sitio sigue con la sesión iniciada después de cada tarea. Preguntar: Hermit borra sus cookies y vuelve a iniciar sesión. Llenar un inicio de sesión guardado siempre pide tu huella.", + "HM-SET-09.siteNote": "Siempre: el sitio sigue con la sesión iniciada después de cada tarea. Preguntar: Hermit borra sus cookies y vuelve a iniciar sesión. Llenar un inicio de sesión guardado siempre pide tu {biometric}.", "HM-SET-09.noSites": "Todavía no hay sitios de tareas web.", "HM-SET-09.connections": "Conexiones", "HM-BOT-01.you": "Tú: {text}", diff --git a/packages/copy/src/index.ts b/packages/copy/src/index.ts index d8a545f..ab93657 100644 --- a/packages/copy/src/index.ts +++ b/packages/copy/src/index.ts @@ -24,10 +24,12 @@ export class CopyError extends Error { /** * Looks a key up and fills `{name}` placeholders. A missing key throws in tests and dev, - * so a screen can't ship with a hard-coded or forgotten string. + * so a screen can't ship with a hard-coded or forgotten string. `defaults` fill what a call doesn't pass, such as the + * biometric's name for this phone (`biometricWords`). */ -export function createTranslator(dict: Dictionary) { - return function t(key: string, vars: Record = {}): string { +export function createTranslator(dict: Dictionary, defaults: Record = {}) { + return function t(key: string, given: Record = {}): string { + const vars: Record = { ...defaults, ...given }; const text = dict[key]; if (text === undefined) throw new CopyError(`Missing copy key ${key}.`); return text.replace(/\{(\w+)\}/g, (_, name: string) => { @@ -37,6 +39,30 @@ export function createTranslator(dict: Dictionary) { }; } +/** Issue 128: the iOS permission prompts, written into the app's Info.plist by apps/mobile/plugins/with-ios-purpose-strings. */ +export const IOS_PURPOSE_KEYS = ["common.ios.faceIdUsage", "common.ios.calendarsUsage", "common.ios.remindersUsage"] as const; + +/** + * Issue 128: what the phone calls its biometric. Android says fingerprint; an iPhone says Face ID or Touch ID, or both + * when it can't tell which it has. + */ +export const BIOMETRIC_KINDS = ["fingerprint", "faceId", "touchId", "faceOrTouchId"] as const; +export type BiometricKind = (typeof BIOMETRIC_KINDS)[number]; + +/** + * The `{biometric}`, `{biometricStart}` (at the start of a sentence) and `{aBiometric}` (with "a" where the word takes + * one) placeholders for one kind, from `common.biometric.*`. The app passes them to `createTranslator` as defaults. + */ +export function biometricWords(dict: Dictionary, kind: BiometricKind): Record<"biometric" | "biometricStart" | "aBiometric", string> { + const word = (form: string) => { + const key = `common.biometric.${kind}${form}`; + const text = dict[key]; + if (text === undefined) throw new CopyError(`Missing copy key ${key}.`); + return text; + }; + return { biometric: word(""), biometricStart: word(".start"), aBiometric: word(".a") }; +} + /** The placeholders a string uses, so both locales can be checked to agree. */ export function placeholders(text: string): string[] { return [...text.matchAll(/\{(\w+)\}/g)].map((m) => m[1]!).sort(); diff --git a/packages/copy/test/copy.test.ts b/packages/copy/test/copy.test.ts index bb7a940..4a9c55f 100644 --- a/packages/copy/test/copy.test.ts +++ b/packages/copy/test/copy.test.ts @@ -1,7 +1,7 @@ import { describe, expect, test } from "vitest"; import { readFileSync } from "node:fs"; import { OUTCOMES, outcomeCopyKey } from "@hermit/core"; -import { createTranslator, CopyError, KEY_PATTERN, placeholders, resolveLocale, type Dictionary } from "../src/index.ts"; +import { BIOMETRIC_KINDS, biometricWords, createTranslator, CopyError, IOS_PURPOSE_KEYS, KEY_PATTERN, placeholders, resolveLocale, type Dictionary } from "../src/index.ts"; const load = (name: string): Dictionary => JSON.parse(readFileSync(new URL(`../locales/${name}.json`, import.meta.url), "utf8")); const en = load("en"); @@ -93,3 +93,66 @@ describe("resolveLocale (ADR-013)", () => { expect(resolveLocale("pt-BR", "es-419")).toBe("es-419"); }); }); + +describe("iOS purpose strings (issue 128)", () => { + test("every system prompt Hermit can show on an iPhone has copy in both locales, with no placeholders", () => { + expect(IOS_PURPOSE_KEYS.length).toBeGreaterThan(0); + for (const k of IOS_PURPOSE_KEYS) { + expect(en[k], k).toBeTruthy(); + expect(es[k], k).toBeTruthy(); + expect(placeholders(en[k]!), k).toEqual([]); + expect(es[k], k).not.toEqual(en[k]); + } + }); +}); + +describe("the biometric's name by platform (issue 128)", () => { + const BIOMETRIC = ["aBiometric", "biometric", "biometricStart"]; + const usesBiometric = (k: string) => placeholders(en[k]!).some((p) => BIOMETRIC.includes(p)); + + test("each kind has every form in both locales", () => { + for (const dict of [en, es]) { + for (const kind of BIOMETRIC_KINDS) { + const words = biometricWords(dict, kind); + expect(Object.keys(words).sort()).toEqual(BIOMETRIC); + for (const w of Object.values(words)) expect(w, kind).toBeTruthy(); + } + } + }); + + test("Android says fingerprint, an iPhone says Face ID or Touch ID", () => { + const t = (dict: Dictionary, kind: (typeof BIOMETRIC_KINDS)[number]) => createTranslator(dict, biometricWords(dict, kind)); + expect(t(en, "fingerprint")("HM-APPR-01.approve")).toBe("Approve with fingerprint"); + expect(t(en, "faceId")("HM-APPR-01.approve")).toBe("Approve with Face ID"); + expect(t(en, "touchId")("HM-APPR-01.approve")).toBe("Approve with Touch ID"); + expect(t(es, "fingerprint")("HM-APPR-01.approve")).toBe("Aprobar con huella"); + expect(t(es, "faceId")("HM-APPR-01.approve")).toBe("Aprobar con Face ID"); + expect(t(en, "faceId")("HM-SET-01.perm.fingerprint")).toBe("Face ID"); + expect(t(en, "fingerprint")("HM-SET-01.perm.fingerprint")).toBe("Fingerprint"); + }); + + test("a call's own value still wins over the defaults", () => { + expect(createTranslator({ "common.x": "{a}" }, { a: "default" })("common.x", { a: "given" })).toBe("given"); + }); + + test("every string that names the biometric renders for every kind, with no leftover fingerprint or Android", () => { + const keys = Object.keys(en).filter(usesBiometric); + expect(keys.length).toBeGreaterThan(50); + for (const [dict, word] of [[en, /fingerprint|Android/i], [es, /huella|Android/i]] as const) { + for (const kind of BIOMETRIC_KINDS.filter((k) => k !== "fingerprint")) { + const t = createTranslator(dict, biometricWords(dict, kind)); + for (const k of keys) expect(t(k, Object.fromEntries(placeholders(dict[k]!).map((p) => [p, "1"]))), `${kind} ${k}`).not.toMatch(word); + } + } + }); + + test("no copy outside the Device lab names the fingerprint directly, except a hash's fingerprint", () => { + const HASH = new Set(["HM-ONB-03.checkedSub", "HM-APPR-01.argsHash", "HM-CONN-05.clientHelp.google"]); + for (const [dict, word] of [[en, /fingerprint/i], [es, /huella/i]] as const) { + for (const [k, v] of Object.entries(dict)) { + if (HASH.has(k) || k.startsWith("HM-SET-10.") || k.startsWith("common.biometric.") || k.startsWith("common.ios.")) continue; + expect(v, k).not.toMatch(word); + } + } + }); +}); diff --git a/packages/runtime/src/settings-view.ts b/packages/runtime/src/settings-view.ts index d3e18b4..7fe9915 100644 --- a/packages/runtime/src/settings-view.ts +++ b/packages/runtime/src/settings-view.ts @@ -33,7 +33,12 @@ export interface PermissionRow { help?: "restricted" | "exact_alarm" | "autofill"; } -export function permissionRow(id: PermissionId, r: OsReading): PermissionRow { +/** Issue 128: restricted settings and exact alarms are Android's, so an iPhone never shows their steps. */ +export function showsRestrictedHelp(platform: "android" | "ios"): boolean { + return platform === "android"; +} + +export function permissionRow(id: PermissionId, r: OsReading, platform: "android" | "ios" = "android"): PermissionRow { switch (r.kind) { case "not_used": return { id, state: "not_used", action: "none" }; @@ -43,7 +48,7 @@ export function permissionRow(id: PermissionId, r: OsReading): PermissionRow { // SL-35: whether Hermit is the selected autofill service. Chrome needs its own switch either way, so the help stays. if (id === "autofill") return r.enabled ? { id, state: "granted", action: "manage", help: "autofill" } : { id, state: "denied", action: "open_settings", help: "autofill" }; if (r.enabled) return { id, state: "granted", action: "manage" }; - return { id, state: "denied", action: "open_settings", ...(id === "notifications" ? { help: "restricted" as const } : {}) }; + return { id, state: "denied", action: "open_settings", ...(id === "notifications" && showsRestrictedHelp(platform) ? { help: "restricted" as const } : {}) }; case "prompt": if (r.status === "granted") return { id, state: "granted", action: "manage" }; if (r.status === "undetermined") return { id, state: "not_asked", action: "allow" }; @@ -52,10 +57,10 @@ export function permissionRow(id: PermissionId, r: OsReading): PermissionRow { } } -/** Reminders need notifications and exact alarms (Android 14+ denies exact alarms by default). */ -export function remindersRow(notifications: OsReading, exactAlarm: OsReading): PermissionRow { - const n = permissionRow("reminders", notifications); - if (n.state !== "granted") return n; +/** Reminders need notifications and exact alarms (Android 14+ denies exact alarms by default; an iPhone has none). */ +export function remindersRow(notifications: OsReading, exactAlarm: OsReading, platform: "android" | "ios" = "android"): PermissionRow { + const n = permissionRow("reminders", notifications, platform); + if (n.state !== "granted" || platform === "ios") return n; const exact = permissionRow("reminders", exactAlarm); if (exact.state === "granted" || exact.state === "unknown") return exact; return { id: "reminders", state: "limited", action: "open_settings", help: "exact_alarm" }; diff --git a/packages/runtime/test/pay-copy.test.ts b/packages/runtime/test/pay-copy.test.ts index f7ebd98..36b4cae 100644 --- a/packages/runtime/test/pay-copy.test.ts +++ b/packages/runtime/test/pay-copy.test.ts @@ -64,6 +64,8 @@ const used = new Set([ ...[...source.matchAll(/"(HM-APPR-02\.[a-zA-Z]+)"/g)].map((m) => m[1]!), ]); +const TRANSLATOR_FILLS = ["biometric", "biometricStart", "aBiometric"]; + describe("SL-40: the payment copy", () => { test("the list here is exactly the keys the service says", () => { expect([...used].sort()).toEqual(Object.keys(VARS).sort()); @@ -73,7 +75,8 @@ describe("SL-40: the payment copy", () => { for (const dict of Object.values(locales)) { const text = dict[key]; expect(text, key).toBeTypeOf("string"); - for (const [, name] of text!.matchAll(/\{(\w+)\}/g)) expect(vars, `${key} uses {${name}}`).toContain(name); + // The app's translator fills the biometric's name for this phone (issue 128); the service passes the rest. + for (const [, name] of text!.matchAll(/\{(\w+)\}/g)) expect([...vars, ...TRANSLATOR_FILLS], `${key} uses {${name}}`).toContain(name); } }); }); diff --git a/packages/runtime/test/settings-view.test.ts b/packages/runtime/test/settings-view.test.ts index 66dbb7b..cfbf3c0 100644 --- a/packages/runtime/test/settings-view.test.ts +++ b/packages/runtime/test/settings-view.test.ts @@ -1,6 +1,6 @@ import { describe, expect, test } from "vitest"; import { PROFILES } from "@hermit/model"; -import { permissionRow, privacyHosts, remindersRow } from "../src/settings-view.ts"; +import { permissionRow, privacyHosts, remindersRow, showsRestrictedHelp } from "../src/settings-view.ts"; describe("permission rows (HM-SET-01, US-SET-01, US-ONB-08)", () => { test("a runtime permission maps to its state and the one action that changes it", () => { @@ -22,6 +22,15 @@ describe("permission rows (HM-SET-01, US-SET-01, US-ONB-08)", () => { expect(permissionRow("notifications", { kind: "special", enabled: true })).toEqual({ id: "notifications", state: "granted", action: "manage" }); }); + test("an iPhone has no restricted settings or exact alarms, so it never shows Android's steps for them (issue 128)", () => { + expect(showsRestrictedHelp("android")).toBe(true); + expect(showsRestrictedHelp("ios")).toBe(false); + expect(permissionRow("notifications", { kind: "special", enabled: false }, "ios")).toEqual({ id: "notifications", state: "denied", action: "open_settings" }); + const on = { kind: "prompt", status: "granted", canAskAgain: true } as const; + expect(remindersRow(on, { kind: "special", enabled: false }, "ios")).toEqual({ id: "reminders", state: "granted", action: "manage" }); + expect(remindersRow(on, { kind: "special", enabled: false }, "android")).toMatchObject({ state: "limited", help: "exact_alarm" }); + }); + test("a fingerprint that is not set up on the phone points to the phone's security settings", () => { expect(permissionRow("fingerprint", { kind: "special", enabled: false })).toEqual({ id: "fingerprint", state: "denied", action: "open_settings" }); }); diff --git a/packages/runtime/test/w1-replies.test.ts b/packages/runtime/test/w1-replies.test.ts index d65fbfc..b1e2a23 100644 --- a/packages/runtime/test/w1-replies.test.ts +++ b/packages/runtime/test/w1-replies.test.ts @@ -14,9 +14,11 @@ import { capabilityAnswer } from "../src/capabilities.ts"; const load = (name: string): Record => JSON.parse(readFileSync(new URL(`../../copy/locales/${name}.json`, import.meta.url), "utf8")); const DICTS = { "es-419": load("es-419"), en: load("en") }; -const copy: NonNullable = (language, key, vars = {}) => { +// Like the app's translator, which fills the biometric's name for this phone (issue 128): an Android phone here. +const copy: NonNullable = (language, key, given = {}) => { const text = DICTS[language][key]; if (text === undefined) throw new Error(`Missing copy key ${key}.`); + const vars: Record = { biometric: DICTS[language]["common.biometric.fingerprint"]!, ...given }; return text.replace(/\{(\w+)\}/g, (_, name: string) => vars[name] ?? `{${name}}`); };