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.
JavaScript apple-watchbodyweightdockerfitnessfitness-trackergymhealthiosmcpnodejspasskeysprogressive-web-applicationspwareactself-hostedself-hostingvitewebauthnweightliftingworkout-tracker
Settings: "Swipe on sets" becomes "Swipe actions" and covers Plan's lists too (same stored key); new strings in all 17 languages
Duarte Santos7a9dcfda9977
diff --git a/frontend/src/components/WorkoutSettingsSheet.jsx b/frontend/src/components/WorkoutSettingsSheet.jsxindex d8d2a1a68..1e095bf84 100644--- a/frontend/src/components/WorkoutSettingsSheet.jsx+++ b/frontend/src/components/WorkoutSettingsSheet.jsx@@ -66,8 +66,8 @@ export function WorkoutSettings({ close }) {options={[{ value: 'none', label: t('Off') }, { value: 'rir', label: t('RIR') }, { value: 'rpe', label: t('RPE') }]}value={effortOf(S)} onChange={v => update(s => { s.effort = v; delete s.showRir })} /></Row>- <Row icon="swap" iconTint="var(--indigo)" title={t('Swipe on sets')} subtitle={t('Left deletes, right copies')}>- <Switch aria-label={t('Swipe on sets')} checked={workoutControls(S).swipeSets}+ <Row icon="swap" iconTint="var(--indigo)" title={t('Swipe actions')} subtitle={t('Sets, routines and the loop: left removes, right copies')}>+ <Switch aria-label={t('Swipe actions')} checked={workoutControls(S).swipeSets}onChange={v => update(s => { s.wc = { ...workoutControls(s), swipeSets: v } })} /></Row><Row icon="image" iconTint="var(--teal)" title={t('Exercise animations')}>diff --git a/frontend/src/components/WorkoutSettingsSheet.test.jsx b/frontend/src/components/WorkoutSettingsSheet.test.jsxindex c35caa634..fe1e5dd68 100644--- a/frontend/src/components/WorkoutSettingsSheet.test.jsx+++ b/frontend/src/components/WorkoutSettingsSheet.test.jsx@@ -54,7 +54,7 @@ describe('the in-workout settings sheet', () => {it('has the rows people change at the gym, then All settings', () => {expect([...host.querySelectorAll('.lrow-t')].map(e => e.textContent)).toEqual(['Rest timer', 'Play a sound', 'Vibrate', 'Flash the screen', 'Keep screen awake',- 'Layout', 'Effort per set', 'Swipe on sets', 'Exercise animations', 'All settings',+ 'Layout', 'Effort per set', 'Swipe actions', 'Exercise animations', 'All settings',])expect(row('Rest timer').querySelector('.lrow-v').textContent).toBe('1:30')expect(row('Keep screen awake').querySelector('.lrow-s').textContent).toMatch(/^The screen stays on/)diff --git a/frontend/src/lib/pt-br-locale.test.js b/frontend/src/lib/pt-br-locale.test.jsindex 1388ffeea..5899e02e3 100644--- a/frontend/src/lib/pt-br-locale.test.js+++ b/frontend/src/lib/pt-br-locale.test.js@@ -41,7 +41,7 @@ describe('Brazilian Portuguese locale', () => {// has to be taught is a number nobody reads. What the numbers stood for is asserted above.// If the hash fails, review the changed keys and wording before accepting a new one. From// frontend/: node scripts/pt-br-inheritance-fingerprint.mjs --list- expect(fingerprint, 'pt-PT inheritance changed; review the inherited pt-BR wording').toBe('9158547c74fd92bfe714f164605189a4679cd95c8d34724b4daa09cb36779659')+ expect(fingerprint, 'pt-PT inheritance changed; review the inherited pt-BR wording').toBe('b964d1203ec8e193a57271572dce072496598bb71929870afeafac4969e63dc3')})test('does not leak European Portuguese UI terms', () => {diff --git a/frontend/src/lib/workout-controls.js b/frontend/src/lib/workout-controls.jsindex 489e58649..6f63dbef8 100644--- a/frontend/src/lib/workout-controls.js+++ b/frontend/src/lib/workout-controls.js@@ -8,7 +8,8 @@ export const WC_DEFAULT = Object.freeze({setShortcuts: false, // "+ Drop" / "+ Burst" chips on every set and the warm-up/remove/add rowpairButtons: false, // "Make superset with previous/next" in the exercise headerexerciseButtons: false, // Move up/down, Swap, Remove exercise below the exercise- swipeSets: true, // swipe a set row: toward the start deletes (with Undo), toward the end copies+ swipeSets: true, // swipe actions: a set row (start deletes with Undo, end copies) and, despite the+ // name, Plan's routines, loop and routine exercises too (Settings: "Swipe actions")})export function workoutControls(S) {diff --git a/frontend/src/locales/ar.js b/frontend/src/locales/ar.jsindex 59de5e58c..c2a3b0171 100644--- a/frontend/src/locales/ar.js+++ b/frontend/src/locales/ar.js@@ -1976,8 +1976,13 @@ export default {'Copied. One more like that one.': 'تم النسخ. واحدة أخرى مثلها.','Keep at least one set, champ': 'أبقِ مجموعة واحدة على الأقل يا بطل','Too late, that one’s gone': 'فات الأوان، لقد ذهبت',+ 'Duplicate': 'تكرار',+ 'Copied as “{0}”.': 'نُسخ باسم «{0}».',+ '“{0}” gone.': 'ذهب «{0}».',+ '“{0}” is out of the loop.': 'خرج «{0}» من الدورة.',+ '“{0}” left the routine.': 'غادر «{0}» الروتين.',+ 'Swipe actions': 'إجراءات السحب',+ 'Sets, routines and the loop: left removes, right copies': 'المجموعات والروتينات والدورة: لليمين إزالة، لليسار نسخ','Psst: swipe a set. Left deletes, right copies.': 'نصيحة: اسحب مجموعة. لليمين حذف، لليسار نسخ.',- 'Swipe on sets': 'السحب على المجموعات',- 'Left deletes, right copies': 'لليمين حذف، لليسار نسخ','Options: copy, remove': 'خيارات: نسخ، إزالة',}diff --git a/frontend/src/locales/de.js b/frontend/src/locales/de.jsindex 227e69cbc..7b4625984 100644--- a/frontend/src/locales/de.js+++ b/frontend/src/locales/de.js@@ -1943,8 +1943,13 @@ export default {'Copied. One more like that one.': 'Kopiert. Noch einer wie der.','Keep at least one set, champ': 'Ein Satz bleibt mindestens, Champ','Too late, that one’s gone': 'Zu spät, der ist weg',+ 'Duplicate': 'Duplizieren',+ 'Copied as “{0}”.': 'Kopiert als „{0}“.',+ '“{0}” gone.': '„{0}“ ist weg.',+ '“{0}” is out of the loop.': '„{0}“ ist raus aus dem Kreislauf.',+ '“{0}” left the routine.': '„{0}“ hat die Routine verlassen.',+ 'Swipe actions': 'Wischaktionen',+ 'Sets, routines and the loop: left removes, right copies': 'Sätze, Routinen und der Kreislauf: links entfernt, rechts kopiert','Psst: swipe a set. Left deletes, right copies.': 'Psst: Wisch über einen Satz. Links löscht, rechts kopiert.',- 'Swipe on sets': 'Wischen auf Sätzen',- 'Left deletes, right copies': 'Links löscht, rechts kopiert','Options: copy, remove': 'Optionen: kopieren, entfernen',}diff --git a/frontend/src/locales/es.js b/frontend/src/locales/es.jsindex d8d72ee20..eb6b328c7 100644--- a/frontend/src/locales/es.js+++ b/frontend/src/locales/es.js@@ -1923,8 +1923,13 @@ export default {'Copied. One more like that one.': 'Copiada. Otra igual a esa.','Keep at least one set, champ': 'Deja al menos una serie, campeón','Too late, that one’s gone': 'Demasiado tarde, ya no está',+ 'Duplicate': 'Duplicar',+ 'Copied as “{0}”.': 'Copiada como «{0}».',+ '“{0}” gone.': '«{0}» ya no está.',+ '“{0}” is out of the loop.': '«{0}» sale del bucle.',+ '“{0}” left the routine.': '«{0}» dejó la rutina.',+ 'Swipe actions': 'Acciones al deslizar',+ 'Sets, routines and the loop: left removes, right copies': 'Series, rutinas y el bucle: izquierda quita, derecha copia','Psst: swipe a set. Left deletes, right copies.': 'Psst: desliza una serie. Izquierda borra, derecha copia.',- 'Swipe on sets': 'Deslizar en las series',- 'Left deletes, right copies': 'Izquierda borra, derecha copia','Options: copy, remove': 'Opciones: copiar, quitar',}diff --git a/frontend/src/locales/fr.js b/frontend/src/locales/fr.jsindex 6056afdd3..780fc8c07 100644--- a/frontend/src/locales/fr.js+++ b/frontend/src/locales/fr.js@@ -1923,8 +1923,13 @@ export default {'Copied. One more like that one.': 'Copiée. Encore une comme celle-là.','Keep at least one set, champ': 'Garde au moins une série, champion','Too late, that one’s gone': 'Trop tard, elle est partie',+ 'Duplicate': 'Dupliquer',+ 'Copied as “{0}”.': 'Copiée sous « {0} ».',+ '“{0}” gone.': '« {0} » est partie.',+ '“{0}” is out of the loop.': '« {0} » sort de la boucle.',+ '“{0}” left the routine.': '« {0} » a quitté la routine.',+ 'Swipe actions': 'Actions de glissement',+ 'Sets, routines and the loop: left removes, right copies': 'Séries, routines et boucle : à gauche on retire, à droite on copie','Psst: swipe a set. Left deletes, right copies.': 'Psst : glisse une série. Gauche supprime, droite copie.',- 'Swipe on sets': 'Glisser sur les séries',- 'Left deletes, right copies': 'Gauche supprime, droite copie','Options: copy, remove': 'Options : copier, supprimer',}diff --git a/frontend/src/locales/hi.js b/frontend/src/locales/hi.jsindex 762287183..ac305f42f 100644--- a/frontend/src/locales/hi.js+++ b/frontend/src/locales/hi.js@@ -1923,8 +1923,13 @@ export default {'Copied. One more like that one.': 'कॉपी हो गया। एक और बिल्कुल वैसा ही।','Keep at least one set, champ': 'कम से कम एक सेट रहने दें, चैंपियन','Too late, that one’s gone': 'बहुत देर हो गई, वो जा चुका',+ 'Duplicate': 'डुप्लिकेट',+ 'Copied as “{0}”.': '"{0}" नाम से कॉपी हुआ।',+ '“{0}” gone.': '"{0}" चला गया।',+ '“{0}” is out of the loop.': '"{0}" चक्र से बाहर।',+ '“{0}” left the routine.': '"{0}" ने रूटीन छोड़ दिया।',+ 'Swipe actions': 'स्वाइप ऐक्शन',+ 'Sets, routines and the loop: left removes, right copies': 'सेट, रूटीन और चक्र: बाएँ हटाता है, दाएँ कॉपी करता है','Psst: swipe a set. Left deletes, right copies.': 'सुनिए: किसी सेट को स्वाइप करें। बाएँ हटाता है, दाएँ कॉपी करता है।',- 'Swipe on sets': 'सेट पर स्वाइप',- 'Left deletes, right copies': 'बाएँ हटाता है, दाएँ कॉपी करता है','Options: copy, remove': 'विकल्प: कॉपी, हटाएँ',}diff --git a/frontend/src/locales/hu.js b/frontend/src/locales/hu.jsindex 35060e21e..fb8860346 100644--- a/frontend/src/locales/hu.js+++ b/frontend/src/locales/hu.js@@ -1926,8 +1926,13 @@ export default {'Copied. One more like that one.': 'Kimásolva. Még egy ugyanilyen.','Keep at least one set, champ': 'Legalább egy sorozat maradjon, bajnok','Too late, that one’s gone': 'Késő, az már nincs meg',+ 'Duplicate': 'Duplikálás',+ 'Copied as “{0}”.': 'Másolva ezen a néven: „{0}”.',+ '“{0}” gone.': '„{0}” eltűnt.',+ '“{0}” is out of the loop.': '„{0}” kikerült a körből.',+ '“{0}” left the routine.': '„{0}” kilépett a rutinból.',+ 'Swipe actions': 'Húzásos műveletek',+ 'Sets, routines and the loop: left removes, right copies': 'Sorozatok, rutinok és a kör: balra eltávolít, jobbra másol','Psst: swipe a set. Left deletes, right copies.': 'Pszt: húzz el egy sorozatot. Balra töröl, jobbra másol.',- 'Swipe on sets': 'Húzás a sorozatokon',- 'Left deletes, right copies': 'Balra töröl, jobbra másol','Options: copy, remove': 'Lehetőségek: másolás, eltávolítás',}diff --git a/frontend/src/locales/it.js b/frontend/src/locales/it.jsindex 79e9a9368..675a12265 100644--- a/frontend/src/locales/it.js+++ b/frontend/src/locales/it.js@@ -1923,8 +1923,13 @@ export default {'Copied. One more like that one.': 'Copiata. Un’altra uguale.','Keep at least one set, champ': 'Tieni almeno una serie, campione','Too late, that one’s gone': 'Troppo tardi, è andata',+ 'Duplicate': 'Duplica',+ 'Copied as “{0}”.': 'Copiata come «{0}».',+ '“{0}” gone.': '«{0}» è andata.',+ '“{0}” is out of the loop.': '«{0}» esce dal ciclo.',+ '“{0}” left the routine.': '«{0}» ha lasciato la routine.',+ 'Swipe actions': 'Azioni con scorrimento',+ 'Sets, routines and the loop: left removes, right copies': 'Serie, routine e ciclo: a sinistra togli, a destra copi','Psst: swipe a set. Left deletes, right copies.': 'Psst: scorri una serie. Sinistra elimina, destra copia.',- 'Swipe on sets': 'Scorri sulle serie',- 'Left deletes, right copies': 'Sinistra elimina, destra copia','Options: copy, remove': 'Opzioni: copia, rimuovi',}diff --git a/frontend/src/locales/ko.js b/frontend/src/locales/ko.jsindex 9f6b1e563..d94469e3f 100644--- a/frontend/src/locales/ko.js+++ b/frontend/src/locales/ko.js@@ -1923,8 +1923,13 @@ export default {'Copied. One more like that one.': '복사됨. 같은 걸로 하나 더.','Keep at least one set, champ': '세트는 하나는 남겨야죠, 챔피언','Too late, that one’s gone': '너무 늦었어요, 이미 사라졌어요',+ 'Duplicate': '복제',+ 'Copied as “{0}”.': '"{0}"(으)로 복사했어요.',+ '“{0}” gone.': '"{0}" 삭제됨.',+ '“{0}” is out of the loop.': '"{0}"이(가) 순환에서 빠졌어요.',+ '“{0}” left the routine.': '"{0}"이(가) 루틴에서 빠졌어요.',+ 'Swipe actions': '스와이프 동작',+ 'Sets, routines and the loop: left removes, right copies': '세트, 루틴, 순환: 왼쪽은 제거, 오른쪽은 복사','Psst: swipe a set. Left deletes, right copies.': '쉿: 세트를 밀어 보세요. 왼쪽은 삭제, 오른쪽은 복사.',- 'Swipe on sets': '세트 스와이프',- 'Left deletes, right copies': '왼쪽은 삭제, 오른쪽은 복사','Options: copy, remove': '옵션: 복사, 삭제',}diff --git a/frontend/src/locales/pl.js b/frontend/src/locales/pl.jsindex 349cc75e1..b7b7080e5 100644--- a/frontend/src/locales/pl.js+++ b/frontend/src/locales/pl.js@@ -1923,8 +1923,13 @@ export default {'Copied. One more like that one.': 'Skopiowano. Jeszcze jedna taka sama.','Keep at least one set, champ': 'Zostaw choć jedną serię, mistrzu','Too late, that one’s gone': 'Za późno, już jej nie ma',+ 'Duplicate': 'Duplikuj',+ 'Copied as “{0}”.': 'Skopiowano jako „{0}”.',+ '“{0}” gone.': '„{0}” zniknęła.',+ '“{0}” is out of the loop.': '„{0}” wypada z pętli.',+ '“{0}” left the routine.': '„{0}” opuszcza rutynę.',+ 'Swipe actions': 'Akcje przesuwania',+ 'Sets, routines and the loop: left removes, right copies': 'Serie, rutyny i pętla: w lewo usuwa, w prawo kopiuje','Psst: swipe a set. Left deletes, right copies.': 'Psst: przesuń serię. W lewo usuwa, w prawo kopiuje.',- 'Swipe on sets': 'Przesuwanie serii',- 'Left deletes, right copies': 'W lewo usuwa, w prawo kopiuje','Options: copy, remove': 'Opcje: kopiuj, usuń',}diff --git a/frontend/src/locales/pt-BR.js b/frontend/src/locales/pt-BR.jsindex dd1d99e94..8f9aeafd8 100644--- a/frontend/src/locales/pt-BR.js+++ b/frontend/src/locales/pt-BR.js@@ -1190,8 +1190,13 @@ export const PT_BR_OVERRIDES = {'Warm-up gone.': 'Aquecimento já era.','Keep at least one set, champ': 'Deixe pelo menos uma série, campeão','Too late, that one’s gone': 'Tarde demais, já era',+ 'Copied as “{0}”.': 'Copiada como “{0}”.',+ '“{0}” gone.': '“{0}” já era.',+ '“{0}” is out of the loop.': '“{0}” saiu do ciclo.',+ '“{0}” left the routine.': '“{0}” saiu da rotina.',+ 'Swipe actions': 'Ações de deslizar',+ 'Sets, routines and the loop: left removes, right copies': 'Séries, rotinas e o ciclo: esquerda remove, direita copia','Psst: swipe a set. Left deletes, right copies.': 'Psiu: deslize uma série. Esquerda exclui, direita copia.',- 'Left deletes, right copies': 'Esquerda exclui, direita copia',}export default { ...pt, ...PT_BR_OVERRIDES }diff --git a/frontend/src/locales/pt.js b/frontend/src/locales/pt.jsindex 4ed2329eb..d26ae7a1a 100644--- a/frontend/src/locales/pt.js+++ b/frontend/src/locales/pt.js@@ -1923,8 +1923,13 @@ export default {'Copied. One more like that one.': 'Copiada. Mais uma igual.','Keep at least one set, champ': 'Fica pelo menos uma série, campeão','Too late, that one’s gone': 'Tarde demais, já foi',+ 'Duplicate': 'Duplicar',+ 'Copied as “{0}”.': 'Copiada como «{0}».',+ '“{0}” gone.': '«{0}» já foi.',+ '“{0}” is out of the loop.': '«{0}» saiu do ciclo.',+ '“{0}” left the routine.': '«{0}» saiu da rotina.',+ 'Swipe actions': 'Ações ao deslizar',+ 'Sets, routines and the loop: left removes, right copies': 'Séries, rotinas e o ciclo: esquerda remove, direita copia','Psst: swipe a set. Left deletes, right copies.': 'Psst: desliza uma série. Esquerda elimina, direita copia.',- 'Swipe on sets': 'Deslizar nas séries',- 'Left deletes, right copies': 'Esquerda elimina, direita copia','Options: copy, remove': 'Opções: copiar, remover',}diff --git a/frontend/src/locales/ru.js b/frontend/src/locales/ru.jsindex b404d5704..b5f879e66 100644--- a/frontend/src/locales/ru.js+++ b/frontend/src/locales/ru.js@@ -1927,8 +1927,13 @@ export default {'Copied. One more like that one.': 'Скопировано. Ещё один такой же.','Keep at least one set, champ': 'Хотя бы один подход оставь, чемпион','Too late, that one’s gone': 'Поздно, его уже нет',+ 'Duplicate': 'Дублировать',+ 'Copied as “{0}”.': 'Скопировано как «{0}».',+ '“{0}” gone.': '«{0}» больше нет.',+ '“{0}” is out of the loop.': '«{0}» выбывает из круга.',+ '“{0}” left the routine.': '«{0}» покидает тренировку.',+ 'Swipe actions': 'Действия свайпом',+ 'Sets, routines and the loop: left removes, right copies': 'Подходы, тренировки и круг: влево убирает, вправо копирует','Psst: swipe a set. Left deletes, right copies.': 'Псс: смахни подход. Влево удаляет, вправо копирует.',- 'Swipe on sets': 'Свайп по подходам',- 'Left deletes, right copies': 'Влево удаляет, вправо копирует','Options: copy, remove': 'Действия: копировать, удалить',}diff --git a/frontend/src/locales/th.js b/frontend/src/locales/th.jsindex f74488274..f946eb8c7 100644--- a/frontend/src/locales/th.js+++ b/frontend/src/locales/th.js@@ -1934,8 +1934,13 @@ export default {'Copied. One more like that one.': 'คัดลอกแล้ว อีกเซ็ตแบบเดิมเป๊ะ','Keep at least one set, champ': 'เก็บไว้อย่างน้อยหนึ่งเซ็ตนะแชมป์','Too late, that one’s gone': 'สายไปแล้ว เซ็ตนั้นไปแล้ว',+ 'Duplicate': 'ทำสำเนา',+ 'Copied as “{0}”.': 'คัดลอกเป็น “{0}” แล้ว',+ '“{0}” gone.': '“{0}” ไปแล้ว',+ '“{0}” is out of the loop.': '“{0}” ออกจากการวนรอบแล้ว',+ '“{0}” left the routine.': '“{0}” ออกจากรูทีนแล้ว',+ 'Swipe actions': 'การปัดเพื่อสั่งงาน',+ 'Sets, routines and the loop: left removes, right copies': 'เซ็ต รูทีน และการวนรอบ: ปัดซ้ายลบ ปัดขวาคัดลอก','Psst: swipe a set. Left deletes, right copies.': 'ชู่: ปัดเซ็ตได้นะ ซ้ายลบ ขวาคัดลอก',- 'Swipe on sets': 'ปัดบนเซ็ต',- 'Left deletes, right copies': 'ซ้ายลบ ขวาคัดลอก','Options: copy, remove': 'ตัวเลือก: คัดลอก, ลบ',}diff --git a/frontend/src/locales/tr.js b/frontend/src/locales/tr.jsindex 3b4ba9f80..bd425c1af 100644--- a/frontend/src/locales/tr.js+++ b/frontend/src/locales/tr.js@@ -1923,8 +1923,13 @@ export default {'Copied. One more like that one.': 'Kopyalandı. Aynısından bir tane daha.','Keep at least one set, champ': 'En az bir set kalsın, şampiyon','Too late, that one’s gone': 'Çok geç, o gitti',+ 'Duplicate': 'Çoğalt',+ 'Copied as “{0}”.': '“{0}” olarak kopyalandı.',+ '“{0}” gone.': '“{0}” gitti.',+ '“{0}” is out of the loop.': '“{0}” döngüden çıktı.',+ '“{0}” left the routine.': '“{0}” rutinden ayrıldı.',+ 'Swipe actions': 'Kaydırma eylemleri',+ 'Sets, routines and the loop: left removes, right copies': 'Setler, rutinler ve döngü: sola kaldırır, sağa kopyalar','Psst: swipe a set. Left deletes, right copies.': 'Psst: bir seti kaydır. Sola silir, sağa kopyalar.',- 'Swipe on sets': 'Setlerde kaydırma',- 'Left deletes, right copies': 'Sola silir, sağa kopyalar','Options: copy, remove': 'Seçenekler: kopyala, kaldır',}diff --git a/frontend/src/locales/uk.js b/frontend/src/locales/uk.jsindex 733a4e63f..d28d75d5a 100644--- a/frontend/src/locales/uk.js+++ b/frontend/src/locales/uk.js@@ -1920,8 +1920,13 @@ export default {'Copied. One more like that one.': 'Скопійовано. Ще один такий самий.','Keep at least one set, champ': 'Залиш хоча б один підхід, чемпіоне','Too late, that one’s gone': 'Запізно, його вже нема',+ 'Duplicate': 'Дублювати',+ 'Copied as “{0}”.': 'Скопійовано як «{0}».',+ '“{0}” gone.': '«{0}» більше нема.',+ '“{0}” is out of the loop.': '«{0}» вибуває з кола.',+ '“{0}” left the routine.': '«{0}» покидає тренування.',+ 'Swipe actions': 'Дії свайпом',+ 'Sets, routines and the loop: left removes, right copies': 'Підходи, тренування і коло: ліворуч прибирає, праворуч копіює','Psst: swipe a set. Left deletes, right copies.': 'Пс: змахни підхід. Ліворуч видаляє, праворуч копіює.',- 'Swipe on sets': 'Свайп по підходах',- 'Left deletes, right copies': 'Ліворуч видаляє, праворуч копіює','Options: copy, remove': 'Дії: копіювати, видалити',}diff --git a/frontend/src/locales/zh-TW.js b/frontend/src/locales/zh-TW.jsindex 4bed58755..f58f15510 100644--- a/frontend/src/locales/zh-TW.js+++ b/frontend/src/locales/zh-TW.js@@ -1916,8 +1916,13 @@ export default {'Copied. One more like that one.': '已複製。再來一組一樣的。','Keep at least one set, champ': '至少留一組吧,冠軍','Too late, that one’s gone': '太晚了,那組已經沒了',+ 'Duplicate': '複製一份',+ 'Copied as “{0}”.': '已複製為「{0}」。',+ '“{0}” gone.': '「{0}」沒了。',+ '“{0}” is out of the loop.': '「{0}」已移出循環。',+ '“{0}” left the routine.': '「{0}」已離開課表。',+ 'Swipe actions': '滑動操作',+ 'Sets, routines and the loop: left removes, right copies': '組、課表和循環:左滑移除,右滑複製','Psst: swipe a set. Left deletes, right copies.': '偷偷告訴你:滑動一組。左滑刪除,右滑複製。',- 'Swipe on sets': '在組上滑動',- 'Left deletes, right copies': '左滑刪除,右滑複製','Options: copy, remove': '選項:複製、刪除',}diff --git a/frontend/src/locales/zh.js b/frontend/src/locales/zh.jsindex 2b391cfc7..59493796a 100644--- a/frontend/src/locales/zh.js+++ b/frontend/src/locales/zh.js@@ -1923,8 +1923,13 @@ export default {'Copied. One more like that one.': '已复制。再来一组一样的。','Keep at least one set, champ': '至少留一组吧,冠军','Too late, that one’s gone': '太晚了,那组已经没了',+ 'Duplicate': '复制一份',+ 'Copied as “{0}”.': '已复制为“{0}”。',+ '“{0}” gone.': '“{0}”没了。',+ '“{0}” is out of the loop.': '“{0}”已移出循环。',+ '“{0}” left the routine.': '“{0}”已离开计划。',+ 'Swipe actions': '滑动操作',+ 'Sets, routines and the loop: left removes, right copies': '组、计划和循环:左滑移除,右滑复制','Psst: swipe a set. Left deletes, right copies.': '悄悄告诉你:滑动一组。左滑删除,右滑复制。',- 'Swipe on sets': '在组上滑动',- 'Left deletes, right copies': '左滑删除,右滑复制','Options: copy, remove': '选项:复制、删除',}diff --git a/frontend/src/views/Settings.jsx b/frontend/src/views/Settings.jsxindex d30a8e36c..45b503cea 100644--- a/frontend/src/views/Settings.jsx+++ b/frontend/src/views/Settings.jsx@@ -536,9 +536,10 @@ export default function Settings({ page = null, find = null, via = null }) {<Row icon="bolt" iconTint="var(--orange)" title={t('Drop and burst shortcuts on every set')}><Switch checked={wc.setShortcuts} onChange={v => setWc('setShortcuts', v)} /></Row>- {/* Swipe on sets (v1.3.11): not a button, but the same question of what a set row does. */}- <Row icon="swap" iconTint="var(--indigo)" title={t('Swipe on sets')} subtitle={t('Left deletes, right copies')}>- <Switch aria-label={t('Swipe on sets')} checked={wc.swipeSets} onChange={v => setWc('swipeSets', v)} />+ {/* Swipe actions (v1.3.11): not a button, but the same question of what a set row does. The+ one switch covers Plan's lists too; the stored key keeps its old name, swipeSets. */}+ <Row icon="swap" iconTint="var(--indigo)" title={t('Swipe actions')} subtitle={t('Sets, routines and the loop: left removes, right copies')}>+ <Switch aria-label={t('Swipe actions')} checked={wc.swipeSets} onChange={v => setWc('swipeSets', v)} /></Row><Row icon="link" iconTint="var(--blue)" title={t('Superset buttons in the exercise header')}><Switch checked={wc.pairButtons} onChange={v => setWc('pairButtons', v)} />diff --git a/frontend/src/views/settings-pages.js b/frontend/src/views/settings-pages.jsindex 4dca7cb49..dc51bfea3 100644--- a/frontend/src/views/settings-pages.js+++ b/frontend/src/views/settings-pages.js@@ -65,7 +65,7 @@ export const SEARCH = [{ page: 'advanced', title: 'Keep timing after target', icon: 'stopwatch', tint: 'var(--orange)', kw: 'timed set overtime hold duration' },{ page: 'advanced', title: 'Weight and reps buttons', icon: 'plusCircle', tint: 'var(--green)', kw: 'steppers plus minus buttons workout controls' },{ page: 'advanced', title: 'Drop and burst shortcuts on every set', icon: 'bolt', tint: 'var(--orange)', kw: 'drop set burst shortcuts workout controls' },- { page: 'advanced', title: 'Swipe on sets', icon: 'swap', tint: 'var(--indigo)', kw: 'swipe gesture slide delete remove copy duplicate set workout controls', tkw: () => t('swipe gesture') },+ { page: 'advanced', title: 'Swipe actions', icon: 'swap', tint: 'var(--indigo)', kw: 'swipe gesture slide delete remove copy duplicate set routine loop plan workout controls', tkw: () => t('swipe gesture') },{ page: 'advanced', title: 'Superset buttons in the exercise header', icon: 'link', tint: 'var(--blue)', kw: 'superset pair workout controls' },{ page: 'advanced', title: 'Move, swap and remove buttons below the exercise', icon: 'swap', tint: 'var(--teal)', kw: 'move swap remove replace workout controls' },// Timer alertsdiff --git a/frontend/src/views/settings-pages.test.jsx b/frontend/src/views/settings-pages.test.jsxindex 6bd68c65f..2a3ebf7f8 100644--- a/frontend/src/views/settings-pages.test.jsx+++ b/frontend/src/views/settings-pages.test.jsx@@ -204,8 +204,8 @@ describe('the search lands on a row', () => {expect(searchSettings('server', web, tr).map(h => h.title)).toContain('Sync now')expect(searchSettings('sync', web, tr).map(h => h.title)).toContain('Sync now')expect(searchSettings('loop', web, tr).map(h => h.title)).toContain('How you train')- expect(searchSettings('swipe', web, tr)[0].title).toBe('Swipe on sets')- expect(searchSettings('gesture', web, tr).map(h => h.title)).toEqual(['Swipe on sets'])+ expect(searchSettings('swipe', web, tr)[0].title).toBe('Swipe actions')+ expect(searchSettings('gesture', web, tr).map(h => h.title)).toEqual(['Swipe actions'])expect(searchSettings('home screen', web, tr).map(h => h.title)).toEqual(['In Safari: Share → Add to Home Screen'])expect(searchSettings('install', { ...web, androidWeb: true }, tr).map(h => h.title)).toEqual(['In Chrome: ⋮ menu → Add to Home screen'])expect(searchSettings('backup folder', { ...guestWeb, mobile: true, android: true, autoBackup: true }, tr).map(h => h.title)).toEqual(['Backup folder'])@@ -283,7 +283,7 @@ describe('the pages', () => {expect([...host.querySelectorAll('.sect-f')].some(f => /screen stays on/.test(f.textContent))).toBe(false)mount('advanced')expect(titles()).toEqual(['Planned sessions start from', 'Keep timing after target', 'Weight and reps buttons',- 'Drop and burst shortcuts on every set', 'Swipe on sets', 'Superset buttons in the exercise header', 'Move, swap and remove buttons below the exercise'])+ 'Drop and burst shortcuts on every set', 'Swipe actions', 'Superset buttons in the exercise header', 'Move, swap and remove buttons below the exercise'])})it('the Fine-tuning switches write S.wc as the old Workout controls sheet did', () => {@@ -400,8 +400,8 @@ describe('searchSettings', () => {expect(first('Feste Woche')).toBe('How you train')expect(first('Wochenstart')).toBe('Week starts on')expect(first('kompakt')).toBe('Layout')- expect(first('wischen')).toBe('Swipe on sets')- expect(first('Geste')).toBe('Swipe on sets')+ expect(first('wischen')).toBe('Swipe actions')+ expect(first('Geste')).toBe('Swipe actions')await setLang('ar')expect(searchSettings('تناوب', guestWeb, t).map(h => h.title)).toContain('How you train')} finally { await setLang('en') }