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.

Follow-up to #296: the rest-over notification reads Rest over — next set!, the same words as the Web Push alert in every language, instead of a new shorter string the Ukrainian and Arabic packs lacked

Duarte Santosc25b66c4a204
diff --git a/frontend/src/lib/rest-alert.js b/frontend/src/lib/rest-alert.js
index b93a49fa9..82fafe3e7 100644
--- a/frontend/src/lib/rest-alert.js
+++ b/frontend/src/lib/rest-alert.js
@@ -29,7 +29,7 @@ export function buildRestAlert({ at, title, countdownTitle, totalSec, accent, so
return {
id: REST_ALERT_ID,
channelId: REST_CHANNEL_ID,
- title: title || t('Rest over'),
+ title: title || t('Rest over — next set!'),
countdownTitle: countdownTitle || t('Rest'),
pause: t('Pause'),
resume: t('Resume'),
diff --git a/frontend/src/lib/rest-alert.native.test.js b/frontend/src/lib/rest-alert.native.test.js
index 9657e7078..9e0830f09 100644
--- a/frontend/src/lib/rest-alert.native.test.js
+++ b/frontend/src/lib/rest-alert.native.test.js
@@ -92,7 +92,7 @@ describe('the rest alert in the Android app', () => {
const at = Date.now() + 90_000
await alert.armRestAlert(at, { totalSec: 90, accent: 'red', sound: false })
expect(schedule).toHaveBeenCalledWith(expect.objectContaining({
- at, totalMs: 90_000, sound: false, pause: 'Pause', resume: 'Resume', skip: 'Skip',
+ at, totalMs: 90_000, sound: false, title: 'Rest over — next set!', pause: 'Pause', resume: 'Resume', skip: 'Skip',
accent: (0xff000000 | 0xff453a) >>> 0, ink: 0xffffffff,
}))
})
diff --git a/frontend/src/locales/de.js b/frontend/src/locales/de.js
index 0554aee52..60a530e9d 100644
--- a/frontend/src/locales/de.js
+++ b/frontend/src/locales/de.js
@@ -222,7 +222,6 @@ export default {
'Superset · do these back-to-back, rest when done': 'Supersatz · direkt nacheinander, Pause erst danach',
'Freestyle workout — add your first exercise.': 'Freies Training — füge deine erste Übung hinzu.',
'Finish workout early · {0} exercises': 'Training vorzeitig beenden · {0} Übungen',
- 'Rest over': 'Pause vorbei',
'Rest over — next set!': 'Pause vorbei — nächster Satz!',
// --- home ---
'Hi {0}': 'Hi {0}',
diff --git a/frontend/src/locales/es.js b/frontend/src/locales/es.js
index 9b3b44f1e..8d37f02cb 100644
--- a/frontend/src/locales/es.js
+++ b/frontend/src/locales/es.js
@@ -214,7 +214,6 @@ export default {
'Superset · do these back-to-back, rest when done': 'Superserie · hazlos seguidos, descansa al final',
'Freestyle workout — add your first exercise.': 'Entrenamiento libre — añade tu primer ejercicio.',
'Finish workout early · {0} exercises': 'Terminar antes · {0} ejercicios',
- 'Rest over': 'Listo',
'Rest over — next set!': '¡Descanso terminado — siguiente serie!',
'Hi {0}': 'Hola {0}',
'This week': 'Esta semana',
diff --git a/frontend/src/locales/fr.js b/frontend/src/locales/fr.js
index 0332908f8..5bedc8291 100644
--- a/frontend/src/locales/fr.js
+++ b/frontend/src/locales/fr.js
@@ -214,7 +214,6 @@ export default {
'Superset · do these back-to-back, rest when done': 'Superset · enchaîne-les, repos à la fin',
'Freestyle workout — add your first exercise.': 'Séance libre — ajoute ton premier exercice.',
'Finish workout early · {0} exercises': 'Terminer plus tôt · {0} exercices',
- 'Rest over': 'Repos fini',
'Rest over — next set!': 'Repos fini — série suivante !',
'Hi {0}': 'Salut {0}',
'This week': 'Cette semaine',
diff --git a/frontend/src/locales/hi.js b/frontend/src/locales/hi.js
index 1bee52b22..8bb3af1e6 100644
--- a/frontend/src/locales/hi.js
+++ b/frontend/src/locales/hi.js
@@ -214,7 +214,6 @@ export default {
'Superset · do these back-to-back, rest when done': 'सुपरसेट · इन्हें लगातार करें, अंत में आराम',
'Freestyle workout — add your first exercise.': 'फ्रीस्टाइल वर्कआउट — पहला व्यायाम जोड़ें।',
'Finish workout early · {0} exercises': 'जल्दी समाप्त करें · {0} व्यायाम',
- 'Rest over': 'आराम खत्म',
'Rest over — next set!': 'आराम खत्म — अगला सेट!',
'Hi {0}': 'नमस्ते {0}',
'This week': 'इस हफ़्ते',
diff --git a/frontend/src/locales/hu.js b/frontend/src/locales/hu.js
index 8aed7d7b5..bfa6c5504 100644
--- a/frontend/src/locales/hu.js
+++ b/frontend/src/locales/hu.js
@@ -213,7 +213,6 @@ export default {
'Superset · do these back-to-back, rest when done': 'Szuperszett · végezd egymás után, pihenj csak utána',
'Freestyle workout — add your first exercise.': 'Szabad edzés — add hozzá az első gyakorlatot.',
'Finish workout early · {0} exercises': 'Edzés korai befejezése · {0} gyakorlat',
- 'Rest over': 'Pihenő vége',
'Rest over — next set!': 'Pihenő vége — jöhet a következő sorozat!',
// --- home ---
'Hi {0}': 'Szia {0}',
diff --git a/frontend/src/locales/it.js b/frontend/src/locales/it.js
index 973ddd3fc..1a0fbfc42 100644
--- a/frontend/src/locales/it.js
+++ b/frontend/src/locales/it.js
@@ -214,7 +214,6 @@ export default {
'Superset · do these back-to-back, rest when done': 'Superset · falli uno dopo l’altro, riposo alla fine',
'Freestyle workout — add your first exercise.': 'Allenamento libero — aggiungi il primo esercizio.',
'Finish workout early · {0} exercises': 'Termina in anticipo · {0} esercizi',
- 'Rest over': 'Riposo finito',
'Rest over — next set!': 'Riposo finito — prossima serie!',
'Hi {0}': 'Ciao {0}',
'This week': 'Questa settimana',
diff --git a/frontend/src/locales/ko.js b/frontend/src/locales/ko.js
index c9b320dc2..42151f52c 100644
--- a/frontend/src/locales/ko.js
+++ b/frontend/src/locales/ko.js
@@ -214,7 +214,6 @@ export default {
'Superset · do these back-to-back, rest when done': '슈퍼세트 · 연달아 수행하고, 전부 끝난 뒤 휴식',
'Freestyle workout — add your first exercise.': '자유 운동 — 첫 운동을 추가하세요.',
'Finish workout early · {0} exercises': '일찍 마치기 · 운동 {0}개',
- 'Rest over': '휴식 끝',
'Rest over — next set!': '휴식 끝 — 다음 세트!',
'Hi {0}': '안녕하세요 {0}',
'This week': '이번 주',
diff --git a/frontend/src/locales/pl.js b/frontend/src/locales/pl.js
index 429dd5698..35dc208a8 100644
--- a/frontend/src/locales/pl.js
+++ b/frontend/src/locales/pl.js
@@ -214,7 +214,6 @@ export default {
'Superset · do these back-to-back, rest when done': 'Superseria · rób jedno po drugim, odpocznij na końcu',
'Freestyle workout — add your first exercise.': 'Trening dowolny — dodaj pierwsze ćwiczenie.',
'Finish workout early · {0} exercises': 'Zakończ wcześniej · {0} ćwiczeń',
- 'Rest over': 'Koniec',
'Rest over — next set!': 'Koniec przerwy — następna seria!',
'Hi {0}': 'Cześć {0}',
'This week': 'Ten tydzień',
diff --git a/frontend/src/locales/pt.js b/frontend/src/locales/pt.js
index 7e8060cb0..dab870a55 100644
--- a/frontend/src/locales/pt.js
+++ b/frontend/src/locales/pt.js
@@ -214,7 +214,6 @@ export default {
'Superset · do these back-to-back, rest when done': 'Supersérie · faz seguidos, descansa no final',
'Freestyle workout — add your first exercise.': 'Treino livre — adiciona o teu primeiro exercício.',
'Finish workout early · {0} exercises': 'Terminar mais cedo · {0} exercícios',
- 'Rest over': 'Acabou',
'Rest over — next set!': 'Descanso terminado — próxima série!',
'Hi {0}': 'Olá {0}',
'This week': 'Esta semana',
diff --git a/frontend/src/locales/ru.js b/frontend/src/locales/ru.js
index 8eee809de..ad3c82ee1 100644
--- a/frontend/src/locales/ru.js
+++ b/frontend/src/locales/ru.js
@@ -214,7 +214,6 @@ export default {
'Superset · do these back-to-back, rest when done': 'Суперсет · выполняй подряд, отдых в конце',
'Freestyle workout — add your first exercise.': 'Свободная тренировка — добавь первое упражнение.',
'Finish workout early · {0} exercises': 'Завершить раньше · упражнений: {0}',
- 'Rest over': 'Готово',
'Rest over — next set!': 'Отдых окончен — следующий подход!',
'Hi {0}': 'Привет, {0}',
'This week': 'Эта неделя',
diff --git a/frontend/src/locales/th.js b/frontend/src/locales/th.js
index 0714affdc..0bf1d9b9e 100644
--- a/frontend/src/locales/th.js
+++ b/frontend/src/locales/th.js
@@ -213,7 +213,6 @@ export default {
'Superset · do these back-to-back, rest when done': 'ซูเปอร์เซ็ต · ทำต่อเนื่องกัน แล้วค่อยพักหลังทำครบทั้งคู่',
'Freestyle workout — add your first exercise.': 'ออกกำลังกายแบบฟรีสไตล์ — เพิ่มท่าแรกของคุณ',
'Finish workout early · {0} exercises': 'จบก่อนกำหนด · {0} ท่า',
- 'Rest over': 'พักครบ',
'Rest over — next set!': 'หมดเวลาพัก — เซ็ตถัดไป!',
// --- home ---
'Hi {0}': 'สวัสดี {0}',
diff --git a/frontend/src/locales/tr.js b/frontend/src/locales/tr.js
index 6460b4117..df8f61920 100644
--- a/frontend/src/locales/tr.js
+++ b/frontend/src/locales/tr.js
@@ -214,7 +214,6 @@ export default {
'Superset · do these back-to-back, rest when done': 'Süperset · art arda yap, sonunda dinlen',
'Freestyle workout — add your first exercise.': 'Serbest antrenman — ilk egzersizini ekle.',
'Finish workout early · {0} exercises': 'Erken bitir · {0} egzersiz',
- 'Rest over': 'Bitti',
'Rest over — next set!': 'Dinlenme bitti — sıradaki set!',
'Hi {0}': 'Selam {0}',
'This week': 'Bu hafta',
diff --git a/frontend/src/locales/zh.js b/frontend/src/locales/zh.js
index ec383537d..02694550c 100644
--- a/frontend/src/locales/zh.js
+++ b/frontend/src/locales/zh.js
@@ -214,7 +214,6 @@ export default {
'Superset · do these back-to-back, rest when done': '超级组 · 连续完成,全部做完再休息',
'Freestyle workout — add your first exercise.': '自由训练——添加你的第一个动作。',
'Finish workout early · {0} exercises': '提前结束 · {0} 个动作',
- 'Rest over': '休息结束',
'Rest over — next set!': '休息结束——下一组!',
'Hi {0}': '你好,{0}',
'This week': '本周',
diff --git a/frontend/src/store/useUI.js b/frontend/src/store/useUI.js
index ccb328508..6de19eb25 100644
--- a/frontend/src/store/useUI.js
+++ b/frontend/src/store/useUI.js
@@ -21,7 +21,7 @@ const cancelPushRestTimer = () => { if (useStore.getState().user) api('/api/push
const bookRestEnd = (endsAt, totalSec) => {
if (!MOBILE) { pushRestTimer(Math.max(1, Math.round((endsAt - Date.now()) / 1000))); return }
const { S } = useStore.getState()
- armRestAlert(endsAt, { title: t('Rest over'), countdownTitle: t('Rest'), totalSec, accent: S.accent, sound: !!S.sound })
+ armRestAlert(endsAt, { title: t('Rest over — next set!'), countdownTitle: t('Rest'), totalSec, accent: S.accent, sound: !!S.sound })
.then(ok => {
// Only for the rest that asked: one skipped or moved since then has booked its own end.
const tm = useUI.getState().timer