From f9656f9bd6b6c6957883b4d6bdab616b18ea243e Mon Sep 17 00:00:00 2001 From: Samuele Priami Date: Thu, 12 Nov 2026 20:15:26 +0100 Subject: [PATCH 1/3] Rest timer: tap the clock for a full-screen view The bar's clock now opens the rest full screen: a big clock in a ring that empties as the rest runs out, with -15 s, pause, +15 s and Skip under it, sized for a thumb between sets. The wheel that sets the time left moved to the big clock. A viewer sheet, so Android back closes it, and it closes by itself once the rest is over (Skip, 0:00 on the wheel, a timed set starting). No new strings: Expand, Minimize and Change the time left are already in every locale. Co-Authored-By: Claude Opus 5.5 --- .../src/components/RestTimer.dock.test.jsx | 14 +-- .../src/components/RestTimer.full.test.jsx | 116 ++++++++++++++++++ frontend/src/components/RestTimer.jsx | 57 ++++++++- frontend/src/index.css | 27 ++++ 4 files changed, 204 insertions(+), 10 deletions(-) create mode 100644 frontend/src/components/RestTimer.full.test.jsx diff --git a/frontend/src/components/RestTimer.dock.test.jsx b/frontend/src/components/RestTimer.dock.test.jsx index ce5e71ea62..155d1ea292 100644 --- a/frontend/src/components/RestTimer.dock.test.jsx +++ b/frontend/src/components/RestTimer.dock.test.jsx @@ -2,7 +2,7 @@ import React, { act } from 'react' import { createRoot } from 'react-dom/client' import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest' -import RestTimer, { applyRestLeft } from './RestTimer.jsx' +import RestTimer, { adjustRestSheet, applyRestLeft } from './RestTimer.jsx' import { useUI } from '../store/useUI.js' import { useStore } from '../store/useStore.js' @@ -42,7 +42,7 @@ const sheetHost = () => { return { el, r } } -// v1.3.11: one docked row; the clock is a button that opens the wheel at the time left. +// v1.3.11: one docked row; the clock is a button (it opens the rest full screen, RestTimer.full.test.jsx). describe('the docked rest bar', () => { it('is one row: the clock with its label, then −15, +15, pause and Skip', () => { act(() => useUI.getState().startRest(90, 0)) @@ -52,7 +52,7 @@ describe('the docked rest bar', () => { expect(bar.querySelector('.tclock .lbl').textContent).toBe('Rest') expect([...bar.querySelectorAll('.acts > button')].map(b => b.getAttribute('aria-label') || (b.querySelector('.on') || b).textContent.trim())) .toEqual(['15s', '15s', 'Pause', 'Skip']) - expect(bar.querySelector('.tclock').getAttribute('aria-label')).toBe('1:30. Change the time left') + expect(bar.querySelector('.tclock').getAttribute('aria-label')).toBe('1:30. Expand') }) // QA 10-05: Ready used to drop the pause button and reflow the row, so the spot +15 had been @@ -110,7 +110,7 @@ describe('the docked rest bar', () => { act(() => useUI.getState().startRest(90, 3)) mount() act(() => vi.advanceTimersByTime(10_000)) - act(() => host.querySelector('#timer .tclock').click()) + act(() => adjustRestSheet()) const { el, r } = sheetHost() expect(el.querySelector('h3').textContent).toBe('Time left') expect(el.querySelector('.dw-read').textContent).toBe('1:20') @@ -137,7 +137,7 @@ describe('the docked rest bar', () => { // still counting: the seconds that passed while the wheel was open are not given back act(() => useUI.getState().startRest(60, 0)) mount() - act(() => host.querySelector('#timer .tclock').click()) + act(() => adjustRestSheet()) act(() => vi.advanceTimersByTime(10_000)) let { el, r } = sheetHost() act(() => { [...el.querySelectorAll('button')].find(b => b.textContent === 'Done').click() }) @@ -146,7 +146,7 @@ describe('the docked rest bar', () => { // ran out meanwhile: no fresh rest nobody asked for act(() => useUI.getState().startRest(5, 2)) - act(() => host.querySelector('#timer .tclock').click()) + act(() => adjustRestSheet()) act(() => vi.advanceTimersByTime(5000)) expect(useUI.getState().timer.ready).toBe(true); ({ el, r } = sheetHost()) @@ -156,7 +156,7 @@ describe('the docked rest bar', () => { // a switch-sides pause that ended does not turn into a plain rest act(() => useUI.getState().startRest(5, 1, { kind: 'switch' })) - act(() => host.querySelector('#timer .tclock').click()) + act(() => adjustRestSheet()) act(() => vi.advanceTimersByTime(5000)) expect(useUI.getState().timer).toBeNull(); ({ el, r } = sheetHost()) diff --git a/frontend/src/components/RestTimer.full.test.jsx b/frontend/src/components/RestTimer.full.test.jsx new file mode 100644 index 0000000000..4c7c5478db --- /dev/null +++ b/frontend/src/components/RestTimer.full.test.jsx @@ -0,0 +1,116 @@ +// @vitest-environment happy-dom +import React, { act } from 'react' +import { createRoot } from 'react-dom/client' +import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest' +import RestTimer from './RestTimer.jsx' +import { useUI } from '../store/useUI.js' +import { useStore } from '../store/useStore.js' + +globalThis.IS_REACT_ACT_ENVIRONMENT = true + +vi.mock('../lib/sound.js', () => ({ beep: vi.fn(), chime: vi.fn(), vibrate: vi.fn(), alertBuzz: vi.fn() })) + +let host, root, sheetEl, sheetRoot, originalS + +beforeEach(() => { + vi.useFakeTimers() + originalS = useStore.getState().S + useStore.setState({ S: { ...originalS, sound: false } }) + useUI.setState({ timer: null, work: null, timerFlashId: 0, sheets: [] }) + host = document.createElement('div') + document.body.appendChild(host) + root = createRoot(host) + sheetEl = document.createElement('div') + document.body.appendChild(sheetEl) + sheetRoot = createRoot(sheetEl) +}) + +afterEach(() => { + act(() => { root.render(null); sheetRoot.render(null) }) + useUI.getState().stopRest() + useUI.getState().stopWork() + useUI.setState({ sheets: [] }) + useStore.setState({ S: originalS }) + host.remove(); sheetEl.remove() + vi.useRealTimers() +}) + +// The open sheets, rendered the way Modals.jsx renders them, so a sheet that closes itself leaves. +function Sheets() { + const sheets = useUI(s => s.sheets) + return sheets.map(s =>
{s.render(() => useUI.getState().closeSheet(s.id))}
) +} +const mount = () => act(() => { root.render(); sheetRoot.render() }) +const full = () => sheetEl.querySelector('.restfull') +const tapClock = () => act(() => host.querySelector('#timer .tclock').click()) + +describe('the rest, full screen', () => { + it('opens from the bar\'s clock as a viewer, and counts down with the bar', () => { + act(() => useUI.getState().startRest(90, 0)) + mount() + tapClock() + expect(useUI.getState().sheets.map(s => s.kind)).toEqual(['viewer']) + expect(full().querySelector('.restfull-clock .t').textContent).toBe('1:30') + expect(full().querySelector('.restfull-clock').getAttribute('aria-label')).toBe('1:30. Change the time left') + act(() => vi.advanceTimersByTime(10_000)) + expect(full().querySelector('.restfull-clock .t').textContent).toBe('1:20') + expect(host.querySelector('#timer .t').textContent).toBe('1:20') + }) + + it('its buttons work the rest: −15, pause, +15', () => { + act(() => useUI.getState().startRest(90, 0)) + mount() + tapClock() + const btn = sel => full().querySelector(sel) + act(() => btn('.adj').click()) + expect(useUI.getState().timer.left).toBe(75) + act(() => btn('.pause').click()) + expect(useUI.getState().timer.paused).toBe(true) + expect(full().classList.contains('paused')).toBe(true) + act(() => btn('.pause').click()) + expect(useUI.getState().timer.paused).toBeFalsy() + act(() => full().querySelectorAll('.adj')[1].click()) + expect(useUI.getState().timer.left).toBe(90) + }) + + it('the big clock opens the wheel on top of it', () => { + act(() => useUI.getState().startRest(90, 0)) + mount() + tapClock() + act(() => full().querySelector('.restfull-clock').click()) + expect(useUI.getState().sheets.map(s => s.kind)).toEqual(['viewer', 'sheet']) + expect(sheetEl.querySelector('[data-kind="sheet"] h3').textContent).toBe('Time left') + }) + + it('Skip ends the rest and closes the view', () => { + act(() => useUI.getState().startRest(90, 0)) + mount() + tapClock() + act(() => full().querySelector('.restfull-skip .btn').click()) + expect(useUI.getState().timer).toBeNull() + expect(useUI.getState().sheets).toEqual([]) + expect(full()).toBeNull() + }) + + it('stays open at Ready, with Dismiss and no pause', () => { + act(() => useUI.getState().startRest(2, 0)) + mount() + tapClock() + act(() => vi.advanceTimersByTime(2000)) + expect(useUI.getState().timer.ready).toBe(true) + expect(full().classList.contains('ready')).toBe(true) + expect(full().querySelector('.restfull-clock .t').textContent).toBe('Ready') + expect(full().querySelector('.pause')).toBeNull() + expect(full().querySelector('.restfull-skip .btn').textContent).toBe('Dismiss') + }) + + it('Minimize goes back to the bar, the rest still running', () => { + act(() => useUI.getState().startRest(90, 0)) + mount() + tapClock() + act(() => full().querySelector('.restfull-bar .iconbtn').click()) + expect(useUI.getState().sheets).toEqual([]) + expect(useUI.getState().timer.left).toBe(90) + expect(host.querySelector('#timer.rest')).not.toBeNull() + }) +}) diff --git a/frontend/src/components/RestTimer.jsx b/frontend/src/components/RestTimer.jsx index 260af02c6a..7bb7ffc6df 100644 --- a/frontend/src/components/RestTimer.jsx +++ b/frontend/src/components/RestTimer.jsx @@ -9,7 +9,8 @@ import { SeasonDeco } from './Seasonal.jsx' const clock = sec => Math.floor(sec / 60) + ':' + String(sec % 60).padStart(2, '0') -// The clock is a button: a tap opens the wheel at the time that is left, for a rest that wants +// The full-screen clock is a button (the bar's own clock opens full screen, openRestFull below): +// a tap opens the wheel at the time that is left, for a rest that wants // to be a round 2:00 rather than eight taps of +15. 0:00 ends the rest, like Skip. What is left // is read again at Done, since the rest kept counting while the wheel was open. Done on a wheel // nobody turned changes nothing: the rest keeps the seconds it counted down meanwhile, and one @@ -37,6 +38,56 @@ export function applyRestLeft(v, opened) { if (v !== now.left) ui.addRest(v - now.left) } +// The rest, full screen: the bar's clock opens it, for a rest read from across the room or with +// the phone propped on a bench. A viewer sheet (Modals.jsx), so Android back closes it like any +// sheet. The big clock is where the wheel moved to, the same buttons sit under it, and it closes +// itself once there is no rest left to show (Skip, 0:00 on the wheel, a timed set starting). +export function openRestFull() { + if (!useUI.getState().timer) return + useUI.getState().openSheet(close => , { kind: 'viewer' }) +} + +const RING = 2 * Math.PI * 46 + +function RestTimerFull({ close }) { + const timer = useUI(s => s.timer) + const work = useUI(s => s.work) + const { addRest, skipRest, pauseRest, resumeRest } = useUI.getState() + const gone = !timer || !!work + useEffect(() => { if (gone) close() }, [gone]) + if (gone) return null + const pct = Math.max(0, Math.min(1, (timer.left ?? timer.total) / timer.total)) + const label = timer.kind === 'switch' ? t('Switch sides') : timer.paused ? t('Paused') : t('Rest') + return ( +
+
+ +
+
+ +
+
+ + {!timer.ready && +
+
+ +
+
+ ) +} + // One bar, two meanings: the rest countdown between sets, and the work countdown during a // timed set (issue #16). They are mutually exclusive by construction — startWork() stops any // running rest — so the bar can never have to show both, and a work set gets its own colour @@ -164,8 +215,8 @@ export default function RestTimer() {
- diff --git a/frontend/src/index.css b/frontend/src/index.css index a1f9c61a92..d76b57864f 100644 --- a/frontend/src/index.css +++ b/frontend/src/index.css @@ -1931,6 +1931,33 @@ body.no-tabbar #timer.countin{box-shadow:inset 0 var(--hair) 0 var(--acc),0 -10p #timer.countin .t{font-size:34px} } +/* The rest, full screen (RestTimer.jsx openRestFull): a viewer sheet, so it covers the page and + the bar. The clock sits in a ring that empties as the rest runs out, sized off the shorter side + so it fits a phone held either way; the buttons are big, for a thumb between sets. */ +.restfull{ + position:absolute;inset:0;background:var(--bg);color:var(--label);display:flex;flex-direction:column; + padding:var(--sat) 16px calc(16px + var(--sab));animation:pop-fade .2s var(--ease); +} +.restfull-bar{display:flex;justify-content:flex-start;padding:6px 0;flex:none} +.restfull-stage{flex:1;min-height:0;display:flex;align-items:center;justify-content:center} +.restfull-clock{ + position:relative;width:min(78vw,52vh,420px);aspect-ratio:1;border-radius:50%; + display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;color:inherit; +} +.restfull-clock svg{position:absolute;inset:0;width:100%;height:100%;transform:rotate(-90deg)} +.restfull-clock circle{fill:none;stroke-width:4} +.restfull-clock .track{stroke:var(--surface-3)} +.restfull-clock .prog{stroke:var(--acc);stroke-linecap:round;transition:stroke-dashoffset 1s linear} +.restfull-clock .t{position:relative;font-size:min(20vw,13vh,104px);font-weight:600;line-height:1;letter-spacing:-.03em;font-variant-numeric:tabular-nums;white-space:nowrap} +.restfull-clock .lbl{position:relative;font-size:17px;color:var(--label-2)} +.restfull.ready .t{color:var(--acc-ink);font-size:min(14vw,9vh,72px)} +.restfull.paused .t,.restfull.paused .prog{opacity:.5} +.restfull-acts{display:flex;justify-content:center;gap:12px;flex:none;padding-bottom:12px} +.restfull-acts .btn{min-height:56px;min-width:72px;padding-inline:18px} +.restfull-skip{display:flex;flex:none} +.restfull-skip .btn{flex:1;min-height:56px} +@media (min-width:600px){.restfull-skip{justify-content:center}.restfull-skip .btn{flex:0 1 360px}} + /* ---------------------------------------------------------------- modal -- */ #modal-root{position:fixed;inset:0;z-index:100;display:none} #modal-root.open{display:block} From 03c3a20ac386f42d282a153dfd6ca17b98b3ebe9 Mon Sep 17 00:00:00 2001 From: Samuele Priami Date: Thu, 12 Nov 2026 23:21:28 +0100 Subject: [PATCH 2/3] Rest timer full screen: name the minus and plus 15 s buttons for screen readers Co-Authored-By: Claude Sonnet 5.5 --- frontend/src/components/RestTimer.jsx | 4 ++-- frontend/src/locales/ar.js | 2 ++ frontend/src/locales/bn.js | 2 ++ frontend/src/locales/de.js | 2 ++ frontend/src/locales/es.js | 2 ++ frontend/src/locales/fr.js | 2 ++ frontend/src/locales/hi.js | 2 ++ frontend/src/locales/hu.js | 2 ++ frontend/src/locales/it.js | 2 ++ frontend/src/locales/ko.js | 2 ++ frontend/src/locales/pl.js | 2 ++ frontend/src/locales/pt.js | 2 ++ frontend/src/locales/ru.js | 2 ++ frontend/src/locales/sv.js | 2 ++ frontend/src/locales/th.js | 2 ++ frontend/src/locales/tr.js | 2 ++ frontend/src/locales/uk.js | 2 ++ frontend/src/locales/zh-TW.js | 2 ++ frontend/src/locales/zh.js | 2 ++ 19 files changed, 38 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/RestTimer.jsx b/frontend/src/components/RestTimer.jsx index 7bb7ffc6df..59966782cf 100644 --- a/frontend/src/components/RestTimer.jsx +++ b/frontend/src/components/RestTimer.jsx @@ -75,11 +75,11 @@ function RestTimerFull({ close }) {
- + {!timer.ready && +
diff --git a/frontend/src/locales/ar.js b/frontend/src/locales/ar.js index 19a780a03b..e443003674 100644 --- a/frontend/src/locales/ar.js +++ b/frontend/src/locales/ar.js @@ -472,6 +472,8 @@ export default { 'Edit or delete this exercise': 'تعديل أو حذف هذا التمرين', 'Remove from routine': 'إزالة من الروتين', 'Minimize': 'تصغير', + 'Remove 15 seconds': 'إزالة 15 ثانية', + 'Add 15 seconds': 'إضافة 15 ثانية', 'Expand': 'توسيع', 'Invite code': 'رمز الدعوة', 'This app is invite-only. Enter the code you were given.': 'هذا التطبيق بدعوة فقط. أدخل الرمز الذي حصلت عليه.', diff --git a/frontend/src/locales/bn.js b/frontend/src/locales/bn.js index 346b9f53b6..703c40efb3 100644 --- a/frontend/src/locales/bn.js +++ b/frontend/src/locales/bn.js @@ -654,6 +654,8 @@ export default { 'Replace exercise': 'ব্যায়াম প্রতিস্থাপন করুন', 'Replaced with “{0}”': '“{0}” দিয়ে প্রতিস্থাপিত', 'Minimize': 'ছোট করুন', + 'Remove 15 seconds': '১৫ সেকেন্ড কমান', + 'Add 15 seconds': '১৫ সেকেন্ড যোগ করুন', 'Expand': 'বড় করুন', 'Exercise animations': 'ব্যায়ামের অ্যানিমেশন', 'Workout options': 'ওয়ার্কআউটের বিকল্প', diff --git a/frontend/src/locales/de.js b/frontend/src/locales/de.js index a9da65eaf0..be4b0859bc 100644 --- a/frontend/src/locales/de.js +++ b/frontend/src/locales/de.js @@ -587,6 +587,8 @@ export default { 'Replace exercise': 'Übung ersetzen', 'Replaced with “{0}”': 'Ersetzt durch „{0}“', 'Minimize': 'Verkleinern', + 'Remove 15 seconds': '15 Sekunden abziehen', + 'Add 15 seconds': '15 Sekunden hinzufügen', 'Expand': 'Vergrößern', 'Exercise animations': 'Übungs-Animationen', 'Workout options': 'Workout-Optionen', diff --git a/frontend/src/locales/es.js b/frontend/src/locales/es.js index 98552abb49..54b7c1f3e1 100644 --- a/frontend/src/locales/es.js +++ b/frontend/src/locales/es.js @@ -568,6 +568,8 @@ export default { 'Replace exercise': 'Reemplazar ejercicio', 'Replaced with “{0}”': 'Reemplazado por «{0}»', 'Minimize': 'Minimizar', + 'Remove 15 seconds': 'Quitar 15 segundos', + 'Add 15 seconds': 'Añadir 15 segundos', 'Expand': 'Ampliar', 'Exercise animations': 'Animaciones de los ejercicios', 'Workout options': 'Opciones del entrenamiento', diff --git a/frontend/src/locales/fr.js b/frontend/src/locales/fr.js index 04554328ca..1917933527 100644 --- a/frontend/src/locales/fr.js +++ b/frontend/src/locales/fr.js @@ -568,6 +568,8 @@ export default { 'Replace exercise': 'Remplacer l’exercice', 'Replaced with “{0}”': 'Remplacé par « {0} »', 'Minimize': 'Réduire', + 'Remove 15 seconds': 'Retirer 15 secondes', + 'Add 15 seconds': 'Ajouter 15 secondes', 'Expand': 'Agrandir', 'Exercise animations': 'Animations des exercices', 'Workout options': 'Options de la séance', diff --git a/frontend/src/locales/hi.js b/frontend/src/locales/hi.js index 5b8a677174..a5b15a0627 100644 --- a/frontend/src/locales/hi.js +++ b/frontend/src/locales/hi.js @@ -568,6 +568,8 @@ export default { 'Replace exercise': 'व्यायाम बदलें', 'Replaced with “{0}”': '"{0}" से बदला गया', 'Minimize': 'छोटा करें', + 'Remove 15 seconds': '15 सेकंड घटाएँ', + 'Add 15 seconds': '15 सेकंड जोड़ें', 'Expand': 'बड़ा करें', 'Exercise animations': 'व्यायाम एनिमेशन', 'Workout options': 'वर्कआउट विकल्प', diff --git a/frontend/src/locales/hu.js b/frontend/src/locales/hu.js index b24928dac3..0d5eab101b 100644 --- a/frontend/src/locales/hu.js +++ b/frontend/src/locales/hu.js @@ -571,6 +571,8 @@ export default { 'Replace exercise': 'Gyakorlat lecserélése', 'Replaced with “{0}”': 'Lecserélve erre: „{0}”', 'Minimize': 'Kicsinyítés', + 'Remove 15 seconds': '15 másodperc levonása', + 'Add 15 seconds': '15 másodperc hozzáadása', 'Expand': 'Kibontás', 'Exercise animations': 'Gyakorlat-animációk', 'Workout options': 'Edzés beállításai', diff --git a/frontend/src/locales/it.js b/frontend/src/locales/it.js index 60ada9b0bc..45998b22e2 100644 --- a/frontend/src/locales/it.js +++ b/frontend/src/locales/it.js @@ -568,6 +568,8 @@ export default { 'Replace exercise': 'Sostituisci esercizio', 'Replaced with “{0}”': 'Sostituito con «{0}»', 'Minimize': 'Riduci', + 'Remove 15 seconds': 'Togli 15 secondi', + 'Add 15 seconds': 'Aggiungi 15 secondi', 'Expand': 'Ingrandisci', 'Exercise animations': 'Animazioni degli esercizi', 'Workout options': 'Opzioni dell\'allenamento', diff --git a/frontend/src/locales/ko.js b/frontend/src/locales/ko.js index 2fdc452e68..95280a3e33 100644 --- a/frontend/src/locales/ko.js +++ b/frontend/src/locales/ko.js @@ -568,6 +568,8 @@ export default { 'Replace exercise': '운동 교체', 'Replaced with “{0}”': '"{0}"(으)로 교체됨', 'Minimize': '축소', + 'Remove 15 seconds': '15초 줄이기', + 'Add 15 seconds': '15초 늘리기', 'Expand': '확대', 'Exercise animations': '운동 애니메이션', 'Workout options': '운동 옵션', diff --git a/frontend/src/locales/pl.js b/frontend/src/locales/pl.js index f2adbfa45d..6738418529 100644 --- a/frontend/src/locales/pl.js +++ b/frontend/src/locales/pl.js @@ -568,6 +568,8 @@ export default { 'Replace exercise': 'Zastąp ćwiczenie', 'Replaced with “{0}”': 'Zastąpiono przez „{0}”', 'Minimize': 'Zmniejsz', + 'Remove 15 seconds': 'Odejmij 15 sekund', + 'Add 15 seconds': 'Dodaj 15 sekund', 'Expand': 'Powiększ', 'Exercise animations': 'Animacje ćwiczeń', 'Workout options': 'Opcje treningu', diff --git a/frontend/src/locales/pt.js b/frontend/src/locales/pt.js index 1cf77bf2a4..06b4ce02aa 100644 --- a/frontend/src/locales/pt.js +++ b/frontend/src/locales/pt.js @@ -568,6 +568,8 @@ export default { 'Replace exercise': 'Substituir exercício', 'Replaced with “{0}”': 'Substituído por «{0}»', 'Minimize': 'Minimizar', + 'Remove 15 seconds': 'Remover 15 segundos', + 'Add 15 seconds': 'Adicionar 15 segundos', 'Expand': 'Ampliar', 'Exercise animations': 'Animações dos exercícios', 'Workout options': 'Opções do treino', diff --git a/frontend/src/locales/ru.js b/frontend/src/locales/ru.js index 79d37c81df..e8f474e99a 100644 --- a/frontend/src/locales/ru.js +++ b/frontend/src/locales/ru.js @@ -558,6 +558,8 @@ export default { 'Replace exercise': 'Заменить упражнение', 'Replaced with “{0}”': 'Заменено на «{0}»', 'Minimize': 'Свернуть', + 'Remove 15 seconds': 'Убавить 15 секунд', + 'Add 15 seconds': 'Добавить 15 секунд', 'Expand': 'Развернуть', 'Exercise animations': 'Анимации упражнений', 'Workout options': 'Параметры тренировки', diff --git a/frontend/src/locales/sv.js b/frontend/src/locales/sv.js index ac87dfdb87..6b975aeecb 100644 --- a/frontend/src/locales/sv.js +++ b/frontend/src/locales/sv.js @@ -588,6 +588,8 @@ export default { 'Replace exercise': 'Ersätt övning', 'Replaced with “{0}”': 'Ersatt med ”{0}”', 'Minimize': 'Minimera', + 'Remove 15 seconds': 'Ta bort 15 sekunder', + 'Add 15 seconds': 'Lägg till 15 sekunder', 'Expand': 'Expandera', 'Exercise animations': 'Övningsanimationer', 'Workout options': 'Passalternativ', diff --git a/frontend/src/locales/th.js b/frontend/src/locales/th.js index ec65afe486..dda0f9f7dd 100644 --- a/frontend/src/locales/th.js +++ b/frontend/src/locales/th.js @@ -571,6 +571,8 @@ export default { 'Replace exercise': 'แทนที่ท่าออกกำลังกาย', 'Replaced with “{0}”': 'แทนที่ด้วย “{0}” แล้ว', 'Minimize': 'ย่อ', + 'Remove 15 seconds': 'ลด 15 วินาที', + 'Add 15 seconds': 'เพิ่ม 15 วินาที', 'Expand': 'ขยาย', 'Exercise animations': 'ภาพเคลื่อนไหวท่าออกกำลังกาย', 'Workout options': 'ตัวเลือกการเทรน', diff --git a/frontend/src/locales/tr.js b/frontend/src/locales/tr.js index e524384f4a..9d2dfbd3f3 100644 --- a/frontend/src/locales/tr.js +++ b/frontend/src/locales/tr.js @@ -568,6 +568,8 @@ export default { 'Replace exercise': 'Egzersizi değiştir', 'Replaced with “{0}”': '“{0}” ile değiştirildi', 'Minimize': 'Küçült', + 'Remove 15 seconds': '15 saniye çıkar', + 'Add 15 seconds': '15 saniye ekle', 'Expand': 'Büyüt', 'Exercise animations': 'Egzersiz animasyonları', 'Workout options': 'Antrenman seçenekleri', diff --git a/frontend/src/locales/uk.js b/frontend/src/locales/uk.js index 1411211cd1..2ac9254b7d 100644 --- a/frontend/src/locales/uk.js +++ b/frontend/src/locales/uk.js @@ -402,6 +402,8 @@ export default { 'Edit or delete this exercise': 'Змінити або видалити цю вправу', 'Remove from routine': 'Прибрати з програми', 'Minimize': 'Згорнути', + 'Remove 15 seconds': 'Відняти 15 секунд', + 'Add 15 seconds': 'Додати 15 секунд', 'Expand': 'Розгорнути', 'Exercise animations': 'Анімації вправ', 'Workout options': 'Параметри тренування', diff --git a/frontend/src/locales/zh-TW.js b/frontend/src/locales/zh-TW.js index fa43fbbdb5..c84130336c 100644 --- a/frontend/src/locales/zh-TW.js +++ b/frontend/src/locales/zh-TW.js @@ -563,6 +563,8 @@ export default { 'Replace exercise': '替換動作', 'Replaced with “{0}”': '已替換為「{0}」', 'Minimize': '縮小', + 'Remove 15 seconds': '減少 15 秒', + 'Add 15 seconds': '增加 15 秒', 'Expand': '展開', 'Exercise animations': '動作示範動畫', 'Cards': '卡片模式', diff --git a/frontend/src/locales/zh.js b/frontend/src/locales/zh.js index 036a6451bb..dcc2e38b8e 100644 --- a/frontend/src/locales/zh.js +++ b/frontend/src/locales/zh.js @@ -568,6 +568,8 @@ export default { 'Replace exercise': '替换动作', 'Replaced with “{0}”': '已替换为“{0}”', 'Minimize': '缩小', + 'Remove 15 seconds': '减少 15 秒', + 'Add 15 seconds': '增加 15 秒', 'Expand': '放大', 'Exercise animations': '动作动画', 'Workout options': '训练选项', From 57d7dc6208c48164c8929e08dd8bfdab9d1c6235 Mon Sep 17 00:00:00 2001 From: Samuele Priami Date: Thu, 12 Nov 2026 23:30:38 +0100 Subject: [PATCH 3/3] pt-BR: override the two new rest timer strings so the inherited fingerprint holds Co-Authored-By: Claude Sonnet 5.5 --- frontend/src/locales/pt-BR.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/frontend/src/locales/pt-BR.js b/frontend/src/locales/pt-BR.js index 0c6c275d6b..f7bf207061 100644 --- a/frontend/src/locales/pt-BR.js +++ b/frontend/src/locales/pt-BR.js @@ -2441,6 +2441,8 @@ export const PT_BR_OVERRIDES = { "Your watch stops getting workouts while Watch is off. It stays paired.": "Seu relógio para de receber treinos enquanto “Relógio” estiver desligado. Continua pareado.", "Your webhooks stop sending while Integrations is off. They stay set up.": "Seus webhooks param de enviar enquanto “Integrações” estiver desligado. Continuam configurados.", "{0} stops syncing while Health is off. Nothing is disconnected, and it catches up once Health is back.": "{0} para de sincronizar enquanto “Saúde” estiver desligado. Nada fica desconectado, e ele se atualiza quando “Saúde” voltar.", + 'Remove 15 seconds': 'Remover 15 segundos', + 'Add 15 seconds': 'Adicionar 15 segundos', } export default { ...pt, ...PT_BR_OVERRIDES }