diff --git a/frontend/src/components/RestTimer.dock.test.jsx b/frontend/src/components/RestTimer.dock.test.jsx index 2660813117..987262031a 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)) @@ -54,7 +54,7 @@ describe('the docked rest bar', () => { .toEqual(['Less time, 15 seconds', 'More time, 15 seconds', 'Pause', 'Skip']) // What is drawn stays the short "15s" on both: only the spoken name tells them apart. expect([...bar.querySelectorAll('.acts > button.adj')].map(b => b.textContent.trim())).toEqual(['15s', '15s']) - 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 @@ -112,7 +112,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') @@ -139,7 +139,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() }) @@ -148,7 +148,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()) @@ -158,7 +158,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 cd8fb220cd..245701e8da 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 e58948aa2b..bdca617990 100644 --- a/frontend/src/index.css +++ b/frontend/src/index.css @@ -2252,6 +2252,33 @@ body.no-tabbar #timer.countin{box-shadow:inset 0 var(--hair) 0 var(--acc),0 -10p #timer.countin .t{font-size:2.125rem} } +/* 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} diff --git a/frontend/src/locales/ar.js b/frontend/src/locales/ar.js index b4723f4f01..5d9a343020 100644 --- a/frontend/src/locales/ar.js +++ b/frontend/src/locales/ar.js @@ -780,6 +780,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 f9f09b0b9b..a1a73e09c4 100644 --- a/frontend/src/locales/bn.js +++ b/frontend/src/locales/bn.js @@ -962,6 +962,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/cs.js b/frontend/src/locales/cs.js index a51681251e..218487cf94 100644 --- a/frontend/src/locales/cs.js +++ b/frontend/src/locales/cs.js @@ -585,6 +585,8 @@ export default { 'Recent workouts': 'Poslední tréninky', 'Less time': 'Méně času', 'More time': 'Více času', + "Remove 15 seconds": "Odebrat 15 sekund", + "Add 15 seconds": "Přidat 15 sekund", 'Less volume': 'Menší objem', 'More volume': 'Větší objem', 'No data yet': 'Zatím žádná data', diff --git a/frontend/src/locales/da.js b/frontend/src/locales/da.js index f07211263c..bbaf7c164f 100644 --- a/frontend/src/locales/da.js +++ b/frontend/src/locales/da.js @@ -600,6 +600,8 @@ export default { "Recent workouts": "Seneste pas", "Less time": "Mindre tid", "More time": "Mere tid", + "Remove 15 seconds": "Fjern 15 sekunder", + "Add 15 seconds": "Tilføj 15 sekunder", "Less volume": "Mindre volumen", "More volume": "Mere volumen", "No data yet": "Ingen data endnu", diff --git a/frontend/src/locales/de.js b/frontend/src/locales/de.js index 9ede82c26e..e5121cc223 100644 --- a/frontend/src/locales/de.js +++ b/frontend/src/locales/de.js @@ -895,6 +895,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 b1ae8fe564..021c981fa2 100644 --- a/frontend/src/locales/es.js +++ b/frontend/src/locales/es.js @@ -876,6 +876,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/fa.js b/frontend/src/locales/fa.js index a1750079ad..443b4ff89f 100644 --- a/frontend/src/locales/fa.js +++ b/frontend/src/locales/fa.js @@ -541,6 +541,8 @@ export default { "Recent workouts": "تمرینات اخیر", "Less time": "زمان کمتر", "More time": "زمان بیشتر", + "Remove 15 seconds": "کم کردن ۱۵ ثانیه", + "Add 15 seconds": "افزودن ۱۵ ثانیه", "No data yet": "هنوز هیچ داده‌ای وجود ندارد", "Your weekly routine": "روتین هفتگی شما", "Week schedule": "برنامه هفته", diff --git a/frontend/src/locales/fr.js b/frontend/src/locales/fr.js index 22eed9cb21..04eb4d66c6 100644 --- a/frontend/src/locales/fr.js +++ b/frontend/src/locales/fr.js @@ -876,6 +876,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 245b6bf6ce..31d589a2b2 100644 --- a/frontend/src/locales/hi.js +++ b/frontend/src/locales/hi.js @@ -876,6 +876,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 dc664c1ffb..2a8f9e2230 100644 --- a/frontend/src/locales/hu.js +++ b/frontend/src/locales/hu.js @@ -879,6 +879,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/id.js b/frontend/src/locales/id.js index 280e042a79..5b1976e65c 100644 --- a/frontend/src/locales/id.js +++ b/frontend/src/locales/id.js @@ -604,6 +604,8 @@ export default { "Recent workouts": "Sesi latihan terbaru", "Less time": "Durasi lebih singkat", "More time": "Durasi lebih lama", + "Remove 15 seconds": "Kurangi 15 detik", + "Add 15 seconds": "Tambah 15 detik", "Less volume": "Volume lebih sedikit", "More volume": "Volume lebih banyak", "No data yet": "Belum ada datanya", diff --git a/frontend/src/locales/it.js b/frontend/src/locales/it.js index f58fef21be..d4ba141987 100644 --- a/frontend/src/locales/it.js +++ b/frontend/src/locales/it.js @@ -880,6 +880,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 d48ef2e370..1694a3b4b9 100644 --- a/frontend/src/locales/ko.js +++ b/frontend/src/locales/ko.js @@ -876,6 +876,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/lt.js b/frontend/src/locales/lt.js index cb4bf013b1..37b5eba065 100644 --- a/frontend/src/locales/lt.js +++ b/frontend/src/locales/lt.js @@ -585,6 +585,8 @@ export default { "Recent workouts": "Naujausios treniruotės", "Less time": "Mažiau laiko", "More time": "Daugiau laiko", + "Remove 15 seconds": "Pašalinti 15 sekundžių", + "Add 15 seconds": "Pridėti 15 sekundžių", "Less volume": "Mažiau tūrio", "More volume": "Daugiau tūrio", "No data yet": "Duomenų dar nėra", diff --git a/frontend/src/locales/pl.js b/frontend/src/locales/pl.js index e6426e0621..dafe07cba9 100644 --- a/frontend/src/locales/pl.js +++ b/frontend/src/locales/pl.js @@ -876,6 +876,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-BR.js b/frontend/src/locales/pt-BR.js index 0a4b0e5c0a..8d68797666 100644 --- a/frontend/src/locales/pt-BR.js +++ b/frontend/src/locales/pt-BR.js @@ -3325,6 +3325,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', 'Lengths in': 'Comprimentos em', 'Removes the field and every reading logged in it. The other measurements stay.': 'Remove o campo e todos os valores registrados nele. As outras medidas ficam.', "Screen orientation": "Orientação da tela", diff --git a/frontend/src/locales/pt.js b/frontend/src/locales/pt.js index 409c2dcf8a..efc9d361bc 100644 --- a/frontend/src/locales/pt.js +++ b/frontend/src/locales/pt.js @@ -876,6 +876,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 3e5fe03e71..7b507d2d5e 100644 --- a/frontend/src/locales/ru.js +++ b/frontend/src/locales/ru.js @@ -866,6 +866,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 6b620f5f17..0498aa5747 100644 --- a/frontend/src/locales/sv.js +++ b/frontend/src/locales/sv.js @@ -896,6 +896,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 170547f2c6..4d2b4fbd01 100644 --- a/frontend/src/locales/th.js +++ b/frontend/src/locales/th.js @@ -879,6 +879,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 ed8a04b1ce..1e11bc1ea8 100644 --- a/frontend/src/locales/tr.js +++ b/frontend/src/locales/tr.js @@ -876,6 +876,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 ae9e4b93d4..4644d982e9 100644 --- a/frontend/src/locales/uk.js +++ b/frontend/src/locales/uk.js @@ -710,6 +710,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/vi.js b/frontend/src/locales/vi.js index 6c8ea26670..f04737cf69 100644 --- a/frontend/src/locales/vi.js +++ b/frontend/src/locales/vi.js @@ -585,6 +585,8 @@ export default { 'Recent workouts': 'Các buổi tập gần đây', 'Less time': 'Ít thời gian hơn', 'More time': 'Nhiều thời gian hơn', + "Remove 15 seconds": "Bớt 15 giây", + "Add 15 seconds": "Thêm 15 giây", 'Less volume': 'Khối lượng tập ít hơn', 'More volume': 'Khối lượng tập nhiều hơn', 'No data yet': 'Chưa có dữ liệu', diff --git a/frontend/src/locales/zh-TW.js b/frontend/src/locales/zh-TW.js index 4384729fde..8e7c6654ce 100644 --- a/frontend/src/locales/zh-TW.js +++ b/frontend/src/locales/zh-TW.js @@ -871,6 +871,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 edc417371e..b508f2f383 100644 --- a/frontend/src/locales/zh.js +++ b/frontend/src/locales/zh.js @@ -876,6 +876,8 @@ export default { 'Replace exercise': '替换动作', 'Replaced with “{0}”': '已替换为“{0}”', 'Minimize': '缩小', + 'Remove 15 seconds': '减少 15 秒', + 'Add 15 seconds': '增加 15 秒', 'Expand': '放大', 'Exercise animations': '动作动画', 'Workout options': '训练选项',