Skip to content

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

Rest bar: one row docked to the bottom on the workout screen, tap the clock to set the time left on the wheel

Duarte Santos619be29c0573
diff --git a/frontend/src/components/RestTimer.dock.test.jsx b/frontend/src/components/RestTimer.dock.test.jsx
new file mode 100644
index 000000000..a59990c51
--- /dev/null
+++ b/frontend/src/components/RestTimer.dock.test.jsx
@@ -0,0 +1,98 @@
+// @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, { applyRestLeft } 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, 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)
+})
+
+afterEach(() => {
+ act(() => root.render(null))
+ useUI.getState().stopRest()
+ useUI.getState().stopWork()
+ useUI.setState({ sheets: [] })
+ useStore.setState({ S: originalS })
+ host.remove()
+ vi.useRealTimers()
+})
+
+const mount = () => act(() => root.render(<RestTimer />))
+const sheetHost = () => {
+ const el = document.createElement('div')
+ document.body.appendChild(el)
+ const r = createRoot(el)
+ const sheet = useUI.getState().sheets.at(-1)
+ act(() => r.render(sheet.render(() => useUI.getState().closeSheet(sheet.id))))
+ return { el, r }
+}
+
+// v1.3.11: one docked row; the clock is a button that opens the wheel at the time left.
+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))
+ mount()
+ const bar = host.querySelector('#timer.rest')
+ expect(bar.querySelector('button.tclock .t').textContent).toBe('1:30')
+ expect(bar.querySelector('.tclock .lbl').textContent).toBe('Rest')
+ expect([...bar.querySelectorAll('.acts > button')].map(b => b.getAttribute('aria-label') || b.textContent.trim()))
+ .toEqual(['15s', '15s', 'Pause', 'Skip'])
+ expect(bar.querySelector('.tclock').getAttribute('aria-label')).toBe('1:30. Change the time left')
+ })
+
+ it('says Paused under the clock while the rest is held', () => {
+ act(() => useUI.getState().startRest(90, 0))
+ mount()
+ act(() => host.querySelector('#timer .pause').click())
+ expect(host.querySelector('#timer .tclock .lbl').textContent).toBe('Paused')
+ })
+
+ it('opens the wheel at the time left, and Done sets the rest to what was picked', () => {
+ act(() => useUI.getState().startRest(90, 3))
+ mount()
+ act(() => vi.advanceTimersByTime(10_000))
+ act(() => host.querySelector('#timer .tclock').click())
+ const { el, r } = sheetHost()
+ expect(el.querySelector('h3').textContent).toBe('Time left')
+ expect(el.querySelector('.dw-read').textContent).toBe('1:20')
+ act(() => r.unmount()); el.remove()
+ act(() => applyRestLeft(120))
+ expect(useUI.getState().timer).toMatchObject({ left: 120, forIdx: 3 })
+ expect(host.querySelector('#timer .t').textContent).toBe('2:00')
+ })
+
+ it('ends the rest at 0:00, and starts a fresh one when the old one had run out', () => {
+ act(() => useUI.getState().startRest(30, 1))
+ act(() => applyRestLeft(0))
+ expect(useUI.getState().timer).toBeNull()
+
+ act(() => useUI.getState().startRest(1, 2))
+ act(() => vi.advanceTimersByTime(1000))
+ expect(useUI.getState().timer.ready).toBe(true)
+ act(() => applyRestLeft(45))
+ expect(useUI.getState().timer).toMatchObject({ left: 45, total: 45, forIdx: 2 })
+ expect(useUI.getState().timer.ready).toBeUndefined()
+ })
+
+ it('keeps a paused rest paused at the new time', () => {
+ act(() => useUI.getState().startRest(90, 0))
+ act(() => useUI.getState().pauseRest())
+ act(() => applyRestLeft(60))
+ expect(useUI.getState().timer).toMatchObject({ left: 60, paused: true })
+ })
+})
diff --git a/frontend/src/components/RestTimer.jsx b/frontend/src/components/RestTimer.jsx
index df700b29f..6137dfeb8 100644
--- a/frontend/src/components/RestTimer.jsx
+++ b/frontend/src/components/RestTimer.jsx
@@ -1,21 +1,53 @@
import { useEffect } from 'react'
import { useUI } from '../store/useUI.js'
import { t } from '../lib/i18n.js'
+import { REST_MAX } from '../lib/duration.js'
+import { durationSheet } from './DurationWheel.jsx'
import { Button } from './ui.jsx'
+import Icon from './Icon.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
+// 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.
+export function adjustRestSheet() {
+ const tm = useUI.getState().timer
+ if (!tm) return
+ durationSheet({
+ title: t('Time left'), value: tm.ready ? 0 : tm.left, max: REST_MAX, off: t('Skip'),
+ footer: t('Scroll to 0:00 to end the rest now.'),
+ onDone: v => applyRestLeft(v),
+ })
+}
+
+// What the wheel's Done does to the rest as it is by then: a new time left, the rest ended at
+// 0:00, or a fresh rest when the old one has run out (Ready) or was skipped meanwhile.
+export function applyRestLeft(v) {
+ const ui = useUI.getState()
+ const now = ui.timer
+ if (!now) { if (v > 0) ui.startRest(v); return }
+ if (v <= 0) { ui.stopRest(); return }
+ if (now.ready) { ui.startRest(v, now.forIdx); return }
+ if (v !== now.left) ui.addRest(v - now.left)
+}
+
// 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
// plus a "Done" that logs the time actually held.
+//
+// v1.3.11: on the workout screen (which has no tab bar, see App.jsx) the bar is docked at the
+// bottom edge instead of floating as a card over the next set's row, and it is one row: the
+// clock (tap to set it), then −15 s, +15 s, pause and Skip. The progress runs along its top edge,
+// so it takes no width from the buttons. Elsewhere it sits on top of the tab bar.
export default function RestTimer() {
const timer = useUI(s => s.timer)
const work = useUI(s => s.work)
const { addRest, stopRest, pauseRest, resumeRest, finishWorkEarly, stopWork } = useUI()
const on = work || timer
- // The bar is fixed above the tab bar and floats over whatever is beneath it — during a
- // rest that was the next set's row. Extra bottom padding lets the page scroll clear.
+ // The page keeps room at its bottom for the bar (index.css body.resting), so the last set and
+ // the Finish button can scroll clear of it.
useEffect(() => {
document.body.classList.toggle('resting', !!on)
return () => document.body.classList.remove('resting')
@@ -25,34 +57,33 @@ export default function RestTimer() {
if (work) return (
<div id="timer" className="working">
- <div className="t">{work.left <= 0 && work.overtime ? '+' + clock(-work.left) : clock(work.left)}</div>
- <div className="grow">
- {work.label && <div className="lbl">{work.label}</div>}
- <div className="bar"><i style={{ width: pct + '%' }} /></div>
+ <div className="bar" aria-hidden="true"><i style={{ width: pct + '%' }} /></div>
+ <div className="tclock">
+ <span className="t">{work.left <= 0 && work.overtime ? '+' + clock(-work.left) : clock(work.left)}</span>
+ {work.label && <span className="lbl">{work.label}</span>}
+ </div>
+ <div className="acts">
+ <Button size="sm" onClick={stopWork}>{t('Cancel')}</Button>
+ <Button size="sm" variant="primary" icon="check" onClick={finishWorkEarly}>{t('Done')}</Button>
</div>
- <Button size="sm" onClick={stopWork}>{t('Cancel')}</Button>
- <Button size="sm" variant="primary" icon="check" onClick={finishWorkEarly}>{t('Done')}</Button>
</div>
)
- // Three controls plus the clock don't fit one line on a phone — at 360px the bar is left
- // with about 30px and stops saying anything. So the rest variant stacks: clock and bar
- // read at a glance, controls get their own row. −15 and +15 sit together in number-line
- // order; Skip is pushed to the far edge, away from the button you tap to buy more time.
- // Pause sits between them as an icon (#193): it holds the time, it neither adds nor ends it.
- // A rest that is over has nothing left to hold, so Ready offers no pause.
+ // −15 and +15 sit together in number-line order; Skip is pushed to the far edge, away from the
+ // button you tap to buy more time. Pause sits between them as an icon (#193): it holds the
+ // time, it neither adds nor ends it. A rest that is over has nothing left to hold, so Ready
+ // offers no pause.
+ const label = timer.kind === 'switch' ? t('Switch sides') : timer.paused ? t('Paused') : t('Rest')
return (
- <div id="timer" className={'rest' + (timer.paused ? ' paused' : '') + (timer.kind === 'switch' ? ' switch' : '')}>
- <div className="head">
- <div className="t" role={timer.ready ? 'status' : undefined}>{timer.ready ? t('Ready') : clock(timer.left)}</div>
- {/* The short pause between the two sides of a timed set says what it is for. */}
- {timer.kind === 'switch' ? <div className="grow">
- <div className="lbl">{t('Switch sides')}</div>
- <div className="bar"><i style={{ width: pct + '%' }} /></div>
- </div> : <div className="bar"><i style={{ width: pct + '%' }} /></div>}
- </div>
+ <div id="timer" className={'rest' + (timer.paused ? ' paused' : '') + (timer.kind === 'switch' ? ' switch' : '') + (timer.ready ? ' ready' : '')}>
+ <div className="bar" aria-hidden="true"><i style={{ width: pct + '%' }} /></div>
+ <button type="button" className="tclock" onClick={adjustRestSheet}
+ aria-label={(timer.ready ? t('Ready') : clock(timer.left)) + '. ' + t('Change the time left')}>
+ <span className="t" role={timer.ready ? 'status' : undefined}>{timer.ready ? t('Ready') : clock(timer.left)}</span>
+ <span className="lbl">{label}<Icon name="chevronDown" /></span>
+ </button>
<div className="acts">
- <Button size="sm" icon="minus" onClick={() => addRest(-15)}>15s</Button>
- <Button size="sm" icon="plus" onClick={() => addRest(15)}>15s</Button>
+ <Button size="sm" className="adj" icon="minus" onClick={() => addRest(-15)}>15s</Button>
+ <Button size="sm" className="adj" icon="plus" onClick={() => addRest(15)}>15s</Button>
{!timer.ready && <Button size="sm" className="pause" icon={timer.paused ? 'play' : 'pause'}
aria-label={t(timer.paused ? 'Resume' : 'Pause')} aria-pressed={!!timer.paused}
onClick={timer.paused ? resumeRest : pauseRest} />}
diff --git a/frontend/src/index.css b/frontend/src/index.css
index 05ba2bbc5..644b9510f 100644
--- a/frontend/src/index.css
+++ b/frontend/src/index.css
@@ -170,10 +170,13 @@ button,.chip,.tile,.item,.wday,.cal-d,.swatch,.hm-c,.lrow,.seg button,.stp butto
}
/* Android 15 with the keyboard up: room to scroll the last field on a page above the keys.
The tab bar stays where it is, under the keyboard, rather than riding up on it. */
-:root[data-native-kb] #app,:root[data-native-kb] body.resting #app{padding-bottom:calc(88px + var(--native-kb))}
+:root[data-native-kb] #app,:root[data-native-kb] body.resting #app,:root[data-native-kb] body.no-tabbar.resting #app{padding-bottom:calc(88px + var(--native-kb))}
/* Keep the last workout controls clear of the mobile overlays without adding a second
screenful of blank scroll space. The stacked rest timer needs the larger reserve. */
-body.resting #app{padding-bottom:calc(206px + var(--sab))}
+body.resting #app{padding-bottom:calc(166px + var(--sab))}
+/* The workout screen has no tab bar (App.jsx): only the docked rest bar, when it is there. */
+body.no-tabbar #app{padding-bottom:calc(24px + var(--sab))}
+body.no-tabbar.resting #app{padding-bottom:calc(96px + var(--sab))}
.workout-end-spacer{height:0}
@keyframes viewfade{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}
#app.vfade{animation:viewfade var(--med) var(--ease)}
@@ -1257,44 +1260,57 @@ body.chips-dragging *{cursor:inherit}
}
/* --- rest timer --- */
+/* One row: the clock (a button, tap to set the time left), then the controls; the progress is a
+ thin line along the top edge, so it takes no width from them. On the workout screen, which has
+ no tab bar (body.no-tabbar, App.jsx), the bar is docked to the bottom edge; anywhere else it
+ sits just above the tab bar. */
#timer{
position:fixed;inset-inline-start:12px;inset-inline-end:12px;bottom:calc(88px + var(--sab));z-index:60;
/* nearly opaque: the set rows underneath were reading through the old 82% and made the
clock hard to pick out mid-set. The blur stays, so it still sits above the page. */
background:color-mix(in srgb,var(--surface) 97%,transparent);
-webkit-backdrop-filter:saturate(180%) blur(10px);backdrop-filter:saturate(180%) blur(10px);
- border-radius:var(--r-lg);padding:12px 14px;
- display:flex;align-items:center;gap:12px;
+ border-radius:var(--r-lg);padding:12px 12px 10px;overflow:hidden;
+ display:flex;align-items:center;gap:10px;
box-shadow:0 12px 34px -8px rgba(0,0,0,.55);
animation:slideup var(--med) var(--ease);
}
@keyframes slideup{from{transform:translateY(16px);opacity:0}to{transform:none;opacity:1}}
-#timer .t{font-size:26px;font-weight:600;letter-spacing:-.026em;font-variant-numeric:tabular-nums;min-width:66px}
-#timer .bar{flex:1;height:4px;background:var(--surface-3);border-radius:99px;overflow:hidden}
+#timer .bar{position:absolute;top:0;inset-inline-start:0;inset-inline-end:0;height:3px;background:var(--surface-3)}
#timer .bar i{display:block;height:100%;background:var(--acc);transition:width 1s linear}
-/* rest variant: −15/+15/Skip and the clock won't share one line on a phone, so the clock and
- bar take the top row and the controls take their own. The work timer keeps a single row —
- it only ever has two buttons. */
-#timer.rest{flex-direction:column;align-items:stretch;gap:10px}
-#timer.rest .head{display:flex;align-items:center;gap:12px}
-#timer.rest .acts{display:flex;align-items:center;gap:8px}
-#timer.rest .acts .btn{padding-top:11px;padding-bottom:11px} /* sweaty hands, mid-set */
-#timer.rest .acts .skip{margin-inline-start:auto;min-width:84px}
+#timer .tclock{flex:1;min-width:0;display:flex;flex-direction:column;align-items:flex-start;text-align:start;padding:2px 0}
+#timer .t{font-size:28px;font-weight:600;line-height:1.1;letter-spacing:-.026em;font-variant-numeric:tabular-nums;white-space:nowrap}
+#timer .lbl{
+ font-size:12px;color:var(--label-2);max-width:100%;margin-top:1px;
+ display:inline-flex;align-items:center;gap:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
+}
+#timer .lbl .icn{font-size:10px;flex:none;opacity:.8}
+#timer .acts{display:flex;align-items:center;gap:6px;flex:none}
+#timer .acts .btn{padding-top:11px;padding-bottom:11px} /* sweaty hands, mid-set */
+#timer .acts .adj{padding-inline:9px;gap:2px}
+#timer .acts .btn.plain{background:var(--surface-2);color:var(--label)}
+#timer .acts .btn.plain:active{background:var(--surface-3)}
+#timer .acts .skip{min-width:70px}
/* A paused rest reads as held: the clock and the bar step back until it runs again. */
#timer.rest.paused .t,#timer.rest.paused .bar{opacity:.5}
-/* Switch sides: the short pause inside one timed per-side set, named above its bar. */
-#timer.rest.switch .grow{flex:1;min-width:0}
-#timer.rest.switch .lbl{font-size:12px;color:var(--label-2);margin-bottom:5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* work timer (issue #16): the same bar doing the opposite job — outlined and tinted so a
glance tells "you are holding this" apart from "you are recovering". */
-#timer.working{border:var(--hair) solid var(--acc)}
+#timer.working{box-shadow:inset 0 0 0 var(--hair) var(--acc),0 12px 34px -8px rgba(0,0,0,.55)}
#timer.working .t{color:var(--acc)}
-#timer.working .grow{flex:1;min-width:0}
/* The label is the exercise name, handed in already cased (exerciseNameText): a capitalize here
would title-case German's own casing too. */
-#timer.working .lbl{
- font-size:12px;color:var(--label-2);margin-bottom:5px;
- white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
+#timer.working .lbl{display:block}
+/* Docked on the workout screen: edge to edge, flush with the bottom, the home indicator's inset
+ inside it. */
+body.no-tabbar #timer{
+ inset-inline-start:0;inset-inline-end:0;bottom:0;
+ border-radius:var(--r-xl) var(--r-xl) 0 0;padding:14px 14px calc(10px + var(--sab));
+ box-shadow:0 -10px 30px -14px rgba(0,0,0,.55);
+}
+body.no-tabbar #timer.working{box-shadow:inset 0 var(--hair) 0 var(--acc),0 -10px 30px -14px rgba(0,0,0,.55)}
+@media (max-width:359px){
+ #timer .acts .adj{padding-inline:7px}
+ #timer .acts .skip{min-width:0}
}
/* ---------------------------------------------------------------- modal -- */
@@ -1529,6 +1545,8 @@ body.chips-dragging *{cursor:inherit}
width:max-content;max-width:88vw;text-align:center;
}
#toast.show{opacity:1;transform:translateX(-50%) translateY(0)}
+body.no-tabbar #toast{bottom:calc(24px + var(--sab))}
+body.no-tabbar.resting #toast{bottom:calc(100px + var(--sab))}
/* ---------------------------------------------------------------- misc --- */
.empty{text-align:center;color:var(--label-2);padding:44px 20px;font-size:15px;line-height:1.45}
@@ -1664,7 +1682,9 @@ body.chips-dragging *{cursor:inherit}
@media (min-width:1000px){
#app{max-width:1080px;padding-top:calc(var(--conn) + 32px);padding-bottom:calc(128px + var(--sab))}
.conn-row{max-width:640px} /* the width of the .narrow pages below it */
- body.resting #app{padding-bottom:calc(250px + var(--sab))}
+ body.resting #app{padding-bottom:calc(220px + var(--sab))}
+ body.no-tabbar #app{padding-bottom:calc(40px + var(--sab))}
+ body.no-tabbar.resting #app{padding-bottom:calc(130px + var(--sab))}
.workout-end-spacer{height:40px}
.cols{display:grid;grid-template-columns:1fr 1fr;gap:14px;align-items:start}
.cols>*{min-width:0}
@@ -1687,9 +1707,7 @@ body.chips-dragging *{cursor:inherit}
.sheet{left:50%;right:auto;margin-left:-320px;width:640px;border-radius:var(--r-xl) var(--r-xl) 0 0}
.center{width:340px}
#timer{left:50%;right:auto;margin-left:-260px;width:520px;bottom:112px}
- /* 520px fits the clock, the bar and all three controls on one line again */
- #timer.rest{flex-direction:row;align-items:center;gap:14px}
- #timer.rest .head{flex:1;min-width:0}
+ body.no-tabbar #timer{left:50%;right:auto;bottom:16px;border-radius:var(--r-xl);padding-bottom:10px;box-shadow:0 12px 40px -10px rgba(0,0,0,.5)}
.exmedia img,.exmedia video{height:380px}
.hm-wrap{display:flex;flex-direction:column;align-items:center}
}
diff --git a/frontend/src/locales/ar.js b/frontend/src/locales/ar.js
index 691c00174..37c8d2d07 100644
--- a/frontend/src/locales/ar.js
+++ b/frontend/src/locales/ar.js
@@ -1918,4 +1918,8 @@ export default {
'Enter the code your other device shows under Settings → Account → Add another device. This device then gets a passkey of its own.': 'أدخل الرمز الذي يعرضه جهازك الآخر في الإعدادات ← الحساب ← إضافة جهاز آخر. سيحصل هذا الجهاز بعدها على مفتاح مرور خاص به.',
'Open Settings → Account → “Pair the mobile app” on the openGym site you’re already signed into, then enter its address and the code shown there.': 'افتح الإعدادات ← الحساب ← «إقران تطبيق الجوال» في موقع openGym الذي سجلت دخولك إليه، ثم أدخل عنوانه والرمز المعروض هناك.',
'Open Settings → Account → “Pair the mobile app” on your openGym site in a browser and enter the new code shown there. What this phone kept is merged into your account.': 'افتح الإعدادات ← الحساب ← «إقران تطبيق الجوال» في موقع openGym الخاص بك من متصفح وأدخل الرمز الجديد الظاهر هناك. ما احتفظ به هذا الهاتف يُدمج في حسابك.',
+ 'Change the time left': 'غيّر الوقت المتبقي',
+ 'Paused': 'متوقف مؤقتًا',
+ 'Scroll to 0:00 to end the rest now.': 'مرّر إلى 0:00 لإنهاء الراحة الآن.',
+ 'Time left': 'الوقت المتبقي',
}
diff --git a/frontend/src/locales/de.js b/frontend/src/locales/de.js
index 743e562c5..2770ee1a6 100644
--- a/frontend/src/locales/de.js
+++ b/frontend/src/locales/de.js
@@ -1885,4 +1885,8 @@ export default {
'Enter the code your other device shows under Settings → Account → Add another device. This device then gets a passkey of its own.': 'Gib den Code ein, den dein anderes Gerät unter Einstellungen → Konto → Weiteres Gerät hinzufügen zeigt. Dieses Gerät bekommt dann einen eigenen Passkey.',
'Open Settings → Account → “Pair the mobile app” on the openGym site you’re already signed into, then enter its address and the code shown there.': 'Öffne auf der openGym-Seite, bei der du bereits angemeldet bist, Einstellungen → Konto → „Mobile App koppeln“, und gib dann deren Adresse und den dort angezeigten Code ein.',
'Open Settings → Account → “Pair the mobile app” on your openGym site in a browser and enter the new code shown there. What this phone kept is merged into your account.': 'Öffne auf deiner openGym-Seite im Browser Einstellungen → Konto → „Mobile App koppeln“ und gib den neuen Code ein, der dort angezeigt wird. Was dieses Handy aufbewahrt hat, wird in dein Konto übernommen.',
+ 'Change the time left': 'Restzeit ändern',
+ 'Paused': 'Pausiert',
+ 'Scroll to 0:00 to end the rest now.': 'Auf 0:00 drehen beendet die Pause sofort.',
+ 'Time left': 'Restzeit',
}
diff --git a/frontend/src/locales/es.js b/frontend/src/locales/es.js
index 6efdd8df0..1e589aa00 100644
--- a/frontend/src/locales/es.js
+++ b/frontend/src/locales/es.js
@@ -1865,4 +1865,8 @@ export default {
'Enter the code your other device shows under Settings → Account → Add another device. This device then gets a passkey of its own.': 'Introduce el código que muestra tu otro dispositivo en Ajustes → Cuenta → Añadir otro dispositivo. Este dispositivo tendrá entonces su propia passkey.',
'Open Settings → Account → “Pair the mobile app” on the openGym site you’re already signed into, then enter its address and the code shown there.': 'Abre Ajustes → Cuenta → «Emparejar la app móvil» en el sitio de openGym en el que ya has iniciado sesión y luego introduce su dirección y el código que aparece ahí.',
'Open Settings → Account → “Pair the mobile app” on your openGym site in a browser and enter the new code shown there. What this phone kept is merged into your account.': 'Abre Ajustes → Cuenta → «Emparejar la app móvil» en tu sitio de openGym en un navegador e introduce el nuevo código que aparece ahí. Lo que este teléfono guardó se fusiona con tu cuenta.',
+ 'Change the time left': 'Cambiar el tiempo restante',
+ 'Paused': 'En pausa',
+ 'Scroll to 0:00 to end the rest now.': 'Gira hasta 0:00 para terminar el descanso ya.',
+ 'Time left': 'Tiempo restante',
}
diff --git a/frontend/src/locales/fr.js b/frontend/src/locales/fr.js
index a5df7d20e..c75625598 100644
--- a/frontend/src/locales/fr.js
+++ b/frontend/src/locales/fr.js
@@ -1865,4 +1865,8 @@ export default {
'Enter the code your other device shows under Settings → Account → Add another device. This device then gets a passkey of its own.': 'Saisis le code que ton autre appareil affiche dans Réglages → Compte → Ajouter un autre appareil. Cet appareil reçoit alors sa propre passkey.',
'Open Settings → Account → “Pair the mobile app” on the openGym site you’re already signed into, then enter its address and the code shown there.': 'Ouvre Réglages → Compte → « Associer l’application mobile » sur le site openGym où tu es déjà connecté, puis saisis son adresse et le code qui s’y affiche.',
'Open Settings → Account → “Pair the mobile app” on your openGym site in a browser and enter the new code shown there. What this phone kept is merged into your account.': 'Ouvre Réglages → Compte → « Associer l’application mobile » sur ton site openGym dans un navigateur et saisis le nouveau code qui s’y affiche. Ce que ce téléphone a gardé est fusionné avec ton compte.',
+ 'Change the time left': 'Changer le temps restant',
+ 'Paused': 'En pause',
+ 'Scroll to 0:00 to end the rest now.': 'Fais défiler jusqu’à 0:00 pour finir le repos tout de suite.',
+ 'Time left': 'Temps restant',
}
diff --git a/frontend/src/locales/hi.js b/frontend/src/locales/hi.js
index 63420b56f..2aebf0f9d 100644
--- a/frontend/src/locales/hi.js
+++ b/frontend/src/locales/hi.js
@@ -1865,4 +1865,8 @@ export default {
'Enter the code your other device shows under Settings → Account → Add another device. This device then gets a passkey of its own.': 'वह कोड दर्ज करें जो आपका दूसरा डिवाइस सेटिंग्स → खाता → दूसरा डिवाइस जोड़ें में दिखाता है। फिर इस डिवाइस को अपनी पासकी मिल जाएगी।',
'Open Settings → Account → “Pair the mobile app” on the openGym site you’re already signed into, then enter its address and the code shown there.': 'जिस openGym साइट में आप पहले से साइन इन हैं, वहाँ सेटिंग्स → खाता → "मोबाइल ऐप पेयर करें" खोलें, फिर उसका पता और वहाँ दिखा कोड डालें।',
'Open Settings → Account → “Pair the mobile app” on your openGym site in a browser and enter the new code shown there. What this phone kept is merged into your account.': 'ब्राउज़र में अपनी openGym साइट पर सेटिंग्स → खाता → "मोबाइल ऐप पेयर करें" खोलें और वहाँ दिखा नया कोड डालें। इस फ़ोन ने जो रखा है, वह आपके खाते में जोड़ दिया जाएगा।',
+ 'Change the time left': 'बचा समय बदलें',
+ 'Paused': 'रुका हुआ',
+ 'Scroll to 0:00 to end the rest now.': 'आराम अभी खत्म करने के लिए 0:00 तक स्क्रॉल करें।',
+ 'Time left': 'बचा समय',
}
diff --git a/frontend/src/locales/hu.js b/frontend/src/locales/hu.js
index 4cd52f190..8ef238ae2 100644
--- a/frontend/src/locales/hu.js
+++ b/frontend/src/locales/hu.js
@@ -1868,4 +1868,8 @@ export default {
'Enter the code your other device shows under Settings → Account → Add another device. This device then gets a passkey of its own.': 'Add meg a kódot, amelyet a másik eszközöd a Beállítások → Fiók → Másik eszköz hozzáadása alatt mutat. Ez az eszköz ezután saját jelszókulcsot kap.',
'Open Settings → Account → “Pair the mobile app” on the openGym site you’re already signed into, then enter its address and the code shown there.': 'Nyisd meg a Beállítások → Fiók → „Mobilalkalmazás párosítása” menüpontot azon az openGym oldalon, ahová már be vagy jelentkezve, majd add meg az ott látható címet és kódot.',
'Open Settings → Account → “Pair the mobile app” on your openGym site in a browser and enter the new code shown there. What this phone kept is merged into your account.': 'Nyisd meg a Beállítások → Fiók → „Mobilalkalmazás párosítása” menüpontot az openGym oldaladon egy böngészőben, és add meg az ott látható új kódot. Amit ez a telefon megőrzött, a fiókodba kerül.',
+ 'Change the time left': 'Hátralévő idő módosítása',
+ 'Paused': 'Szüneteltetve',
+ 'Scroll to 0:00 to end the rest now.': 'Görgesd 0:00-ra, és a pihenő azonnal véget ér.',
+ 'Time left': 'Hátralévő idő',
}
diff --git a/frontend/src/locales/it.js b/frontend/src/locales/it.js
index 07432831b..aff09f0d6 100644
--- a/frontend/src/locales/it.js
+++ b/frontend/src/locales/it.js
@@ -1865,4 +1865,8 @@ export default {
'Enter the code your other device shows under Settings → Account → Add another device. This device then gets a passkey of its own.': 'Inserisci il codice che il tuo altro dispositivo mostra in Impostazioni → Account → Aggiungi un altro dispositivo. Questo dispositivo avrà poi una passkey tutta sua.',
'Open Settings → Account → “Pair the mobile app” on the openGym site you’re already signed into, then enter its address and the code shown there.': 'Apri Impostazioni → Account → «Abbina l’app mobile» sul sito openGym in cui hai già effettuato l’accesso, poi inserisci il suo indirizzo e il codice mostrato lì.',
'Open Settings → Account → “Pair the mobile app” on your openGym site in a browser and enter the new code shown there. What this phone kept is merged into your account.': 'Apri Impostazioni → Account → «Abbina l’app mobile» sul tuo sito openGym in un browser e inserisci il nuovo codice mostrato lì. Ciò che questo telefono ha conservato viene unito al tuo account.',
+ 'Change the time left': 'Cambia il tempo rimasto',
+ 'Paused': 'In pausa',
+ 'Scroll to 0:00 to end the rest now.': 'Scorri fino a 0:00 per chiudere subito il recupero.',
+ 'Time left': 'Tempo rimasto',
}
diff --git a/frontend/src/locales/ko.js b/frontend/src/locales/ko.js
index b06265f3e..117e9b79c 100644
--- a/frontend/src/locales/ko.js
+++ b/frontend/src/locales/ko.js
@@ -1865,4 +1865,8 @@ export default {
'Enter the code your other device shows under Settings → Account → Add another device. This device then gets a passkey of its own.': '다른 기기의 설정 → 계정 → 다른 기기 추가에 표시되는 코드를 입력하세요. 그러면 이 기기에도 자체 패스키가 생깁니다.',
'Open Settings → Account → “Pair the mobile app” on the openGym site you’re already signed into, then enter its address and the code shown there.': '이미 로그인된 openGym 사이트에서 설정 → 계정 → "모바일 앱 페어링"을 열고, 주소와 거기에 표시된 코드를 입력하세요.',
'Open Settings → Account → “Pair the mobile app” on your openGym site in a browser and enter the new code shown there. What this phone kept is merged into your account.': '브라우저에서 openGym 사이트의 설정 → 계정 → "모바일 앱 페어링"을 열고 거기에 표시된 새 코드를 입력하세요. 이 휴대폰에 보관된 내용은 계정에 병합됩니다.',
+ 'Change the time left': '남은 시간 변경',
+ 'Paused': '일시정지됨',
+ 'Scroll to 0:00 to end the rest now.': '0:00으로 돌리면 휴식이 바로 끝나요.',
+ 'Time left': '남은 시간',
}
diff --git a/frontend/src/locales/pl.js b/frontend/src/locales/pl.js
index a24ebe666..c2039f7b1 100644
--- a/frontend/src/locales/pl.js
+++ b/frontend/src/locales/pl.js
@@ -1865,4 +1865,8 @@ export default {
'Enter the code your other device shows under Settings → Account → Add another device. This device then gets a passkey of its own.': 'Wpisz kod, który twoje drugie urządzenie pokazuje w Ustawienia → Konto → Dodaj kolejne urządzenie. To urządzenie dostanie wtedy własny passkey.',
'Open Settings → Account → “Pair the mobile app” on the openGym site you’re already signed into, then enter its address and the code shown there.': 'Otwórz Ustawienia → Konto → „Sparuj aplikację mobilną” na stronie openGym, na której jesteś już zalogowany, a potem wpisz jej adres i wyświetlony tam kod.',
'Open Settings → Account → “Pair the mobile app” on your openGym site in a browser and enter the new code shown there. What this phone kept is merged into your account.': 'Otwórz Ustawienia → Konto → „Sparuj aplikację mobilną” na swojej stronie openGym w przeglądarce i wpisz nowy kod, który się tam pojawi. To, co zachował ten telefon, zostanie scalone z twoim kontem.',
+ 'Change the time left': 'Zmień pozostały czas',
+ 'Paused': 'Wstrzymano',
+ 'Scroll to 0:00 to end the rest now.': 'Przewiń do 0:00, by od razu skończyć przerwę.',
+ 'Time left': 'Pozostały czas',
}
diff --git a/frontend/src/locales/pt-BR.js b/frontend/src/locales/pt-BR.js
index 167014d20..a9f3db931 100644
--- a/frontend/src/locales/pt-BR.js
+++ b/frontend/src/locales/pt-BR.js
@@ -4,6 +4,10 @@
import pt from './pt.js'
export const PT_BR_OVERRIDES = {
+ 'Change the time left': 'Mudar o tempo que falta',
+ 'Paused': 'Pausado',
+ 'Scroll to 0:00 to end the rest now.': 'Role até 0:00 para encerrar o descanso agora.',
+ 'Time left': 'Tempo restante',
'{0} workouts and {1} weigh-ins were logged on this device while signed out. Add them to your profile, or keep the profile exactly as it is on the server.': '{0} treinos e {1} pesagens foram registrados neste dispositivo sem login. Adicione-os ao seu perfil ou mantenha o perfil exatamente como está no servidor.',
'{0} workout and {1} weigh-in were logged on this device while signed out. Add them to your profile, or keep the profile exactly as it is on the server.': '{0} treino e {1} pesagem foram registrados neste dispositivo sem login. Adicione-os ao seu perfil ou mantenha o perfil exatamente como está no servidor.',
'{0} workout and {1} weigh-ins were logged on this device while signed out. Add them to your profile, or keep the profile exactly as it is on the server.': '{0} treino e {1} pesagens foram registrados neste dispositivo sem login. Adicione-os ao seu perfil ou mantenha o perfil exatamente como está no servidor.',
diff --git a/frontend/src/locales/pt.js b/frontend/src/locales/pt.js
index faaa37135..434321cb7 100644
--- a/frontend/src/locales/pt.js
+++ b/frontend/src/locales/pt.js
@@ -1865,4 +1865,8 @@ export default {
'Enter the code your other device shows under Settings → Account → Add another device. This device then gets a passkey of its own.': 'Introduz o código que o teu outro dispositivo mostra em Definições → Conta → Adicionar outro dispositivo. Este dispositivo fica então com uma passkey própria.',
'Open Settings → Account → “Pair the mobile app” on the openGym site you’re already signed into, then enter its address and the code shown there.': 'Abre Definições → Conta → «Emparelhar a app móvel» no site openGym em que já tens sessão iniciada e introduz depois o endereço e o código apresentado aí.',
'Open Settings → Account → “Pair the mobile app” on your openGym site in a browser and enter the new code shown there. What this phone kept is merged into your account.': 'Abre Definições → Conta → «Emparelhar a app móvel» no teu site openGym num navegador e introduz o novo código apresentado aí. O que este telemóvel guardou é integrado na tua conta.',
+ 'Change the time left': 'Alterar o tempo que falta',
+ 'Paused': 'Em pausa',
+ 'Scroll to 0:00 to end the rest now.': 'Roda até 0:00 para acabar já o descanso.',
+ 'Time left': 'Tempo que falta',
}
diff --git a/frontend/src/locales/ru.js b/frontend/src/locales/ru.js
index f2497bd16..527584af7 100644
--- a/frontend/src/locales/ru.js
+++ b/frontend/src/locales/ru.js
@@ -1869,4 +1869,8 @@ export default {
'Enter the code your other device shows under Settings → Account → Add another device. This device then gets a passkey of its own.': 'Введи код, который другое устройство показывает в разделе Настройки → Аккаунт → Добавить другое устройство. Тогда у этого устройства будет свой ключ доступа.',
'Open Settings → Account → “Pair the mobile app” on the openGym site you’re already signed into, then enter its address and the code shown there.': 'Открой Настройки → Аккаунт → «Сопряжение мобильного приложения» на сайте openGym, где ты уже вошёл, и введи его адрес и показанный там код.',
'Open Settings → Account → “Pair the mobile app” on your openGym site in a browser and enter the new code shown there. What this phone kept is merged into your account.': 'Открой Настройки → Аккаунт → «Сопряжение мобильного приложения» на своём сайте openGym в браузере и введи показанный там новый код. То, что сохранил этот телефон, будет объединено с твоим аккаунтом.',
+ 'Change the time left': 'Изменить оставшееся время',
+ 'Paused': 'На паузе',
+ 'Scroll to 0:00 to end the rest now.': 'Прокрутите до 0:00, чтобы сразу закончить отдых.',
+ 'Time left': 'Осталось',
}
diff --git a/frontend/src/locales/th.js b/frontend/src/locales/th.js
index cf397ed20..999731eaf 100644
--- a/frontend/src/locales/th.js
+++ b/frontend/src/locales/th.js
@@ -1876,4 +1876,8 @@ export default {
'Enter the code your other device shows under Settings → Account → Add another device. This device then gets a passkey of its own.': 'กรอกรหัสที่อุปกรณ์อีกเครื่องแสดงใน ตั้งค่า → บัญชี → เพิ่มอุปกรณ์อื่น แล้วอุปกรณ์นี้จะได้พาสคีย์ของตัวเอง',
'Open Settings → Account → “Pair the mobile app” on the openGym site you’re already signed into, then enter its address and the code shown there.': 'เปิด ตั้งค่า → บัญชี → “จับคู่แอปมือถือ” บนเว็บไซต์ openGym ที่คุณเข้าสู่ระบบอยู่แล้ว จากนั้นป้อนที่อยู่และรหัสที่แสดงไว้ที่นั่น',
'Open Settings → Account → “Pair the mobile app” on your openGym site in a browser and enter the new code shown there. What this phone kept is merged into your account.': 'เปิด ตั้งค่า → บัญชี → “จับคู่แอปมือถือ” บนเว็บไซต์ openGym ของคุณในเบราว์เซอร์ แล้วป้อนรหัสใหม่ที่แสดงไว้ที่นั่น สิ่งที่โทรศัพท์เครื่องนี้เก็บไว้จะรวมเข้ากับบัญชีของคุณ',
+ 'Change the time left': 'เปลี่ยนเวลาที่เหลือ',
+ 'Paused': 'หยุดชั่วคราว',
+ 'Scroll to 0:00 to end the rest now.': 'เลื่อนไปที่ 0:00 เพื่อจบการพักทันที',
+ 'Time left': 'เวลาที่เหลือ',
}
diff --git a/frontend/src/locales/tr.js b/frontend/src/locales/tr.js
index 78839775a..b91d891ca 100644
--- a/frontend/src/locales/tr.js
+++ b/frontend/src/locales/tr.js
@@ -1865,4 +1865,8 @@ export default {
'Enter the code your other device shows under Settings → Account → Add another device. This device then gets a passkey of its own.': 'Diğer cihazının Ayarlar → Hesap → Başka bir cihaz ekle bölümünde gösterdiği kodu gir. Böylece bu cihazın da kendi geçiş anahtarı olur.',
'Open Settings → Account → “Pair the mobile app” on the openGym site you’re already signed into, then enter its address and the code shown there.': 'Zaten oturum açtığın openGym sitesinde Ayarlar → Hesap → “Mobil uygulamayı eşleştir”i aç, ardından adresini ve orada gösterilen kodu gir.',
'Open Settings → Account → “Pair the mobile app” on your openGym site in a browser and enter the new code shown there. What this phone kept is merged into your account.': 'Bir tarayıcıda openGym sitende Ayarlar → Hesap → “Mobil uygulamayı eşleştir”i aç ve orada gösterilen yeni kodu gir. Bu telefonun sakladıkları hesabınla birleştirilir.',
+ 'Change the time left': 'Kalan süreyi değiştir',
+ 'Paused': 'Duraklatıldı',
+ 'Scroll to 0:00 to end the rest now.': 'Dinlenmeyi hemen bitirmek için 0:00\'a kaydır.',
+ 'Time left': 'Kalan süre',
}
diff --git a/frontend/src/locales/uk.js b/frontend/src/locales/uk.js
index b026c0de8..54eb3c24b 100644
--- a/frontend/src/locales/uk.js
+++ b/frontend/src/locales/uk.js
@@ -1862,4 +1862,8 @@ export default {
'Enter the code your other device shows under Settings → Account → Add another device. This device then gets a passkey of its own.': 'Введи код, який інший пристрій показує в розділі Налаштування → Акаунт → Додати інший пристрій. Тоді цей пристрій отримає власний ключ доступу.',
'Open Settings → Account → “Pair the mobile app” on the openGym site you’re already signed into, then enter its address and the code shown there.': 'Відкрий Налаштування → Акаунт → «Спарувати мобільний застосунок» на сайті openGym, куди ти вже увійшов, і введи його адресу та показаний там код.',
'Open Settings → Account → “Pair the mobile app” on your openGym site in a browser and enter the new code shown there. What this phone kept is merged into your account.': 'Відкрий Налаштування → Акаунт → «Спарувати мобільний застосунок» на своєму сайті openGym у браузері й введи показаний там новий код. Те, що зберіг цей телефон, буде об’єднано з твоїм акаунтом.',
+ 'Change the time left': 'Змінити залишок часу',
+ 'Paused': 'На паузі',
+ 'Scroll to 0:00 to end the rest now.': 'Прокрутіть до 0:00, щоб одразу завершити відпочинок.',
+ 'Time left': 'Залишилось',
}
diff --git a/frontend/src/locales/zh-TW.js b/frontend/src/locales/zh-TW.js
index caee22875..a30224510 100644
--- a/frontend/src/locales/zh-TW.js
+++ b/frontend/src/locales/zh-TW.js
@@ -1858,4 +1858,8 @@ export default {
'Enter the code your other device shows under Settings → Account → Add another device. This device then gets a passkey of its own.': '請輸入另一台裝置在「設定 → 帳號 → 新增其他裝置」中顯示的代碼,此裝置隨後即可獲取專屬通行密鑰。',
'Open Settings → Account → “Pair the mobile app” on the openGym site you’re already signed into, then enter its address and the code shown there.': '在已登入的 openGym 網頁端開啟「設定 → 帳號 → 配對手機 App」,並輸入畫面顯示的位址與配對代碼。',
'Open Settings → Account → “Pair the mobile app” on your openGym site in a browser and enter the new code shown there. What this phone kept is merged into your account.': '在瀏覽器中開啟 openGym 網站的「設定 → 帳號 → 配對手機 App」,並輸入畫面上的新代碼。手機上暫存的變更將全數整併至帳號中。',
+ 'Change the time left': '調整剩餘時間',
+ 'Paused': '已暫停',
+ 'Scroll to 0:00 to end the rest now.': '捲到 0:00 可立即結束休息。',
+ 'Time left': '剩餘時間',
}
diff --git a/frontend/src/locales/zh.js b/frontend/src/locales/zh.js
index b4fdc9ace..1f0cc87e5 100644
--- a/frontend/src/locales/zh.js
+++ b/frontend/src/locales/zh.js
@@ -1865,4 +1865,8 @@ export default {
'Enter the code your other device shows under Settings → Account → Add another device. This device then gets a passkey of its own.': '输入你另一台设备在“设置 → 账号 → 添加其他设备”中显示的代码。之后此设备会有自己的通行密钥。',
'Open Settings → Account → “Pair the mobile app” on the openGym site you’re already signed into, then enter its address and the code shown there.': '在你已登录的 openGym 网站上,打开 设置 → 账号 →“配对手机应用”,然后输入其地址和那里显示的配对码。',
'Open Settings → Account → “Pair the mobile app” on your openGym site in a browser and enter the new code shown there. What this phone kept is merged into your account.': '在浏览器中打开你的 openGym 网站的 设置 → 账号 →“配对手机应用”,然后输入那里显示的新配对码。这部手机保留的内容会合并到你的账号。',
+ 'Change the time left': '调整剩余时间',
+ 'Paused': '已暂停',
+ 'Scroll to 0:00 to end the rest now.': '滚到 0:00 可立即结束休息。',
+ 'Time left': '剩余时间',
}