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
Import: the summary says how many rows it skipped, and its counts and toasts have a singular (1 workout imported, 1 set brings an RPE)
Duarte Santosf634e74868a3
diff --git a/frontend/src/lib/pt-br-locale.test.js b/frontend/src/lib/pt-br-locale.test.jsindex b48e87d69..c3db54925 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('7809b5a075099cc8bf92d9cfec4199c41365ff30da8e7a326c49a7dccae931a8')+ expect(fingerprint, 'pt-PT inheritance changed; review the inherited pt-BR wording').toBe('481edabb2b3e5e831a17f59c9f5078fd1895ff8901b231faf610c906524f12f3')})test('does not leak European Portuguese UI terms', () => {diff --git a/frontend/src/locales/ar.js b/frontend/src/locales/ar.jsindex 559fd6b98..9a776ce35 100644--- a/frontend/src/locales/ar.js+++ b/frontend/src/locales/ar.js@@ -520,7 +520,14 @@ export default {'{0} days already have data here and will be left alone.': '{0} من الأيام تحتوي بالفعل على بيانات هنا وستُترك كما هي.','Not in the library, so they’re added as your own exercises': 'غير موجودة في المكتبة، لذا أُضيفت كتمارين خاصة بك','Nothing new to import': 'لا يوجد شيء جديد لاستيراده',- '{0} workouts imported': '{0} تمارين مستوردة',+ '{0} workouts imported': 'تم استيراد {0} تمارين',+ '{0} rows skipped (couldn’t read them)': 'تم تخطي {0} صفوف (تعذرت قراءتها)',+ '{0} row skipped (couldn’t read it)': 'تم تخطي {0} صف (تعذرت قراءته)',+ '{0} set brings an {1} with it. Switch on Effort per set in Settings to see it.': '{0} مجموعة تحمل معها {1}. فعّل «الجهد لكل مجموعة» في الإعدادات لعرضها.',+ '{0} set brings an {1} with it.': '{0} مجموعة تحمل معها {1}.',+ '{0} routine imported': 'تم استيراد {0} روتين',+ '{0} weigh-in imported': 'تم استيراد {0} قياس وزن',+ '{0} workout imported': 'تم استيراد {0} تمرين','{0} weigh-ins imported': 'تم استيراد {0} قياس وزن','Could not read that file': 'تعذّرت قراءة هذا الملف','That file is empty': 'هذا الملف فارغ',@@ -612,8 +619,8 @@ export default {'Missed reps last time. Same weight again ({0} of {1} to go).': 'تكرارات ناقصة في المرة السابقة. نفس الوزن مجددًا ({0} من {1} متبقٍ).','Bodyweight: every rep last time, so go for {0} this time.': 'وزن الجسم: كل التكرارات في المرة السابقة، لذا استهدف {0} هذه المرة.','Bodyweight: same target again until every set is clean.': 'وزن الجسم: نفس الهدف مجددًا حتى تكتمل كل المجموعات بنظافة.',- '{0} sets bring an {1} with them. Switch on Effort per set in Settings to see it.': 'مجموعات {0} تحمل معها {1}. فعّل «الجهد لكل مجموعة» في الإعدادات لعرضها.',- '{0} sets bring an {1} with them.': 'مجموعات {0} تحمل معها {1}.',+ '{0} sets bring an {1} with them. Switch on Effort per set in Settings to see it.': '{0} مجموعات تحمل معها {1}. فعّل «الجهد لكل مجموعة» في الإعدادات لعرضها.',+ '{0} sets bring an {1} with them.': '{0} مجموعات تحمل معها {1}.','RIR': 'RIR','RPE': 'RPE','Effort per set': 'الجهد لكل مجموعة',diff --git a/frontend/src/locales/de.js b/frontend/src/locales/de.jsindex 1ccb36827..b2395a563 100644--- a/frontend/src/locales/de.js+++ b/frontend/src/locales/de.js@@ -646,6 +646,13 @@ export default {'Not in the library, so they’re added as your own exercises': 'Nicht in der Bibliothek, daher als eigene Übungen angelegt','Nothing new to import': 'Nichts Neues zu importieren','{0} workouts imported': '{0} Trainings importiert',+ '{0} rows skipped (couldn’t read them)': '{0} Zeilen übersprungen (nicht lesbar)',+ '{0} row skipped (couldn’t read it)': '{0} Zeile übersprungen (nicht lesbar)',+ '{0} set brings an {1} with it. Switch on Effort per set in Settings to see it.': '{0} Satz bringt ein {1} mit. Schalte in den Einstellungen „Anstrengung pro Satz“ ein, um es zu sehen.',+ '{0} set brings an {1} with it.': '{0} Satz bringt ein {1} mit.',+ '{0} routine imported': '{0} Routine importiert',+ '{0} weigh-in imported': '{0} Wiegung importiert',+ '{0} workout imported': '{0} Training importiert','{0} weigh-ins imported': '{0} Wiegungen importiert','Could not read that file': 'Datei konnte nicht gelesen werden','That file is empty': 'Diese Datei ist leer',diff --git a/frontend/src/locales/es.js b/frontend/src/locales/es.jsindex d6d302c41..a9aa8b752 100644--- a/frontend/src/locales/es.js+++ b/frontend/src/locales/es.js@@ -627,6 +627,13 @@ export default {'Not in the library, so they’re added as your own exercises': 'No están en la biblioteca, así que se añaden como ejercicios propios','Nothing new to import': 'Nada nuevo que importar','{0} workouts imported': '{0} entrenamientos importados',+ '{0} rows skipped (couldn’t read them)': '{0} filas omitidas (no se pudieron leer)',+ '{0} row skipped (couldn’t read it)': '{0} fila omitida (no se pudo leer)',+ '{0} set brings an {1} with it. Switch on Effort per set in Settings to see it.': '{0} serie trae un {1}. Activa «Esfuerzo por serie» en Ajustes para verlo.',+ '{0} set brings an {1} with it.': '{0} serie trae un {1}.',+ '{0} routine imported': '{0} rutina importada',+ '{0} weigh-in imported': '{0} pesaje importado',+ '{0} workout imported': '{0} entrenamiento importado','{0} weigh-ins imported': '{0} pesajes importados','Could not read that file': 'No se pudo leer ese archivo','That file is empty': 'Ese archivo está vacío',@@ -765,7 +772,7 @@ export default {'Bodyweight: same target again until every set is clean.': 'Peso corporal: el mismo objetivo hasta que todas las series salgan limpias.',// --- effort per set (RIR / RPE) ---- '{0} sets bring an {1} with them. Switch on Effort per set in Settings to see it.': 'Las series {0} traen un {1}. Activa «Esfuerzo por serie» en Ajustes para verlo.',+ '{0} sets bring an {1} with them. Switch on Effort per set in Settings to see it.': '{0} series traen un {1}. Activa «Esfuerzo por serie» en Ajustes para verlo.','{0} sets bring an {1} with them.': '{0} series traen un {1}.','RIR': 'RIR','RPE': 'RPE',diff --git a/frontend/src/locales/fr.js b/frontend/src/locales/fr.jsindex cab699c5c..10efc7db8 100644--- a/frontend/src/locales/fr.js+++ b/frontend/src/locales/fr.js@@ -627,6 +627,13 @@ export default {'Not in the library, so they’re added as your own exercises': 'Absents de la bibliothèque, donc ajoutés comme vos exercices','Nothing new to import': 'Rien de nouveau à importer','{0} workouts imported': '{0} séances importées',+ '{0} rows skipped (couldn’t read them)': '{0} lignes ignorées (illisibles)',+ '{0} row skipped (couldn’t read it)': '{0} ligne ignorée (illisible)',+ '{0} set brings an {1} with it. Switch on Effort per set in Settings to see it.': '{0} série arrive avec un {1}. Active « Effort par série » dans les réglages pour le voir.',+ '{0} set brings an {1} with it.': '{0} série arrive avec un {1}.',+ '{0} routine imported': '{0} routine importée',+ '{0} weigh-in imported': '{0} pesée importée',+ '{0} workout imported': '{0} séance importée','{0} weigh-ins imported': '{0} pesées importées','Could not read that file': 'Impossible de lire ce fichier','That file is empty': 'Ce fichier est vide',diff --git a/frontend/src/locales/hi.js b/frontend/src/locales/hi.jsindex 50d6c2a13..d14d682b3 100644--- a/frontend/src/locales/hi.js+++ b/frontend/src/locales/hi.js@@ -627,6 +627,13 @@ export default {'Not in the library, so they’re added as your own exercises': 'लाइब्रेरी में नहीं हैं, इसलिए आपके अपने व्यायाम के रूप में जोड़े गए','Nothing new to import': 'आयात करने को कुछ नया नहीं','{0} workouts imported': '{0} वर्कआउट आयात हुए',+ '{0} rows skipped (couldn’t read them)': '{0} पंक्तियाँ छोड़ी गईं (पढ़ी नहीं जा सकीं)',+ '{0} row skipped (couldn’t read it)': '{0} पंक्ति छोड़ी गई (पढ़ी नहीं जा सकी)',+ '{0} set brings an {1} with it. Switch on Effort per set in Settings to see it.': '{0} सेट अपने साथ {1} लाता है। इसे देखने के लिए सेटिंग्स में “प्रति सेट मेहनत” चालू करें।',+ '{0} set brings an {1} with it.': '{0} सेट अपने साथ {1} लाता है।',+ '{0} routine imported': '{0} रूटीन आयात किया गया',+ '{0} weigh-in imported': '{0} वज़न रिकॉर्ड आयात हुआ',+ '{0} workout imported': '{0} वर्कआउट आयात हुआ','{0} weigh-ins imported': '{0} वज़न रिकॉर्ड आयात हुए','Could not read that file': 'वह फ़ाइल पढ़ी नहीं जा सकी','That file is empty': 'वह फ़ाइल खाली है',diff --git a/frontend/src/locales/hu.js b/frontend/src/locales/hu.jsindex 63a01610c..d9f1b99fe 100644--- a/frontend/src/locales/hu.js+++ b/frontend/src/locales/hu.js@@ -631,6 +631,13 @@ export default {'Not in the library, so they’re added as your own exercises': 'Nincsenek a könyvtárban, ezért saját gyakorlatként kerülnek be','Nothing new to import': 'Nincs új importálnivaló','{0} workouts imported': '{0} edzés importálva',+ '{0} rows skipped (couldn’t read them)': '{0} sor kihagyva (nem olvasható)',+ '{0} row skipped (couldn’t read it)': '{0} sor kihagyva (nem olvasható)',+ '{0} set brings an {1} with it. Switch on Effort per set in Settings to see it.': '{0} sorozat {1} hoz magával. Kapcsold be a Megerőltetés sorozatonként opciót a Beállításokban, hogy lásd.',+ '{0} set brings an {1} with it.': '{0} sorozat {1} hoz magával.',+ '{0} routine imported': '{0} edzésterv importálva',+ '{0} weigh-in imported': '{0} mérés importálva',+ '{0} workout imported': '{0} edzés importálva','{0} weigh-ins imported': '{0} mérés importálva','Could not read that file': 'A fájlt nem sikerült beolvasni','That file is empty': 'Ez a fájl üres',diff --git a/frontend/src/locales/it.js b/frontend/src/locales/it.jsindex 1f7952b78..76e716ffb 100644--- a/frontend/src/locales/it.js+++ b/frontend/src/locales/it.js@@ -627,6 +627,13 @@ export default {'Not in the library, so they’re added as your own exercises': 'Non nella libreria, quindi aggiunti come tuoi esercizi','Nothing new to import': 'Niente di nuovo da importare','{0} workouts imported': '{0} allenamenti importati',+ '{0} rows skipped (couldn’t read them)': '{0} righe saltate (illeggibili)',+ '{0} row skipped (couldn’t read it)': '{0} riga saltata (illeggibile)',+ '{0} set brings an {1} with it. Switch on Effort per set in Settings to see it.': '{0} serie porta con sé un {1}. Attiva «Sforzo per serie» nelle impostazioni per vederlo.',+ '{0} set brings an {1} with it.': '{0} serie porta con sé un {1}.',+ '{0} routine imported': '{0} routine importata',+ '{0} weigh-in imported': '{0} pesata importata',+ '{0} workout imported': '{0} allenamento importato','{0} weigh-ins imported': '{0} pesate importate','Could not read that file': 'Impossibile leggere il file','That file is empty': 'Il file è vuoto',diff --git a/frontend/src/locales/ko.js b/frontend/src/locales/ko.jsindex b39aec816..e2e6e94f1 100644--- a/frontend/src/locales/ko.js+++ b/frontend/src/locales/ko.js@@ -627,6 +627,13 @@ export default {'Not in the library, so they’re added as your own exercises': '라이브러리에 없어서 내 운동으로 추가됨','Nothing new to import': '가져올 새 항목이 없습니다','{0} workouts imported': '운동 {0}개를 가져왔습니다',+ '{0} rows skipped (couldn’t read them)': '{0}개 행을 건너뛰었어요 (읽을 수 없음)',+ '{0} row skipped (couldn’t read it)': '{0}개 행을 건너뛰었어요 (읽을 수 없음)',+ '{0} set brings an {1} with it. Switch on Effort per set in Settings to see it.': '{0}개 세트에 {1}이(가) 함께 들어 있습니다. 설정에서 ‘세트당 강도’를 켜면 보여요.',+ '{0} set brings an {1} with it.': '{0}개 세트에 {1}이(가) 함께 들어 있습니다.',+ '{0} routine imported': '루틴 {0}개 가져옴',+ '{0} weigh-in imported': '체중 기록 {0}개를 가져왔습니다',+ '{0} workout imported': '운동 {0}개를 가져왔습니다','{0} weigh-ins imported': '체중 기록 {0}개를 가져왔습니다','Could not read that file': '파일을 읽을 수 없습니다','That file is empty': '파일이 비어 있습니다',diff --git a/frontend/src/locales/pl.js b/frontend/src/locales/pl.jsindex 18f4a3c7d..d4424fe62 100644--- a/frontend/src/locales/pl.js+++ b/frontend/src/locales/pl.js@@ -626,8 +626,15 @@ export default {'{0} days already have data here and will be left alone.': '{0} dni ma już tutaj dane i pozostanie bez zmian.','Not in the library, so they’re added as your own exercises': 'Brak w bibliotece, więc dodane jako własne ćwiczenia','Nothing new to import': 'Brak nowych danych do importu',- '{0} workouts imported': 'Zaimportowano {0} treningów',- '{0} weigh-ins imported': 'Zaimportowano {0} ważeń',+ '{0} workouts imported': { one: 'Zaimportowano {0} trening', few: 'Zaimportowano {0} treningi', many: 'Zaimportowano {0} treningów', other: 'Zaimportowano {0} treningu' },+ '{0} rows skipped (couldn’t read them)': { one: 'Pominięto {0} wiersz (nie dało się go odczytać)', few: 'Pominięto {0} wiersze (nie dało się ich odczytać)', many: 'Pominięto {0} wierszy (nie dało się ich odczytać)', other: 'Pominięto {0} wiersza (nie dało się ich odczytać)' },+ '{0} row skipped (couldn’t read it)': 'Pominięto {0} wiersz (nie dało się go odczytać)',+ '{0} set brings an {1} with it. Switch on Effort per set in Settings to see it.': '{0} seria ma zapisane {1}. Włącz „Wysiłek w serii” w ustawieniach, aby to zobaczyć.',+ '{0} set brings an {1} with it.': '{0} seria ma zapisane {1}.',+ '{0} routine imported': 'Zaimportowano {0} rutynę',+ '{0} weigh-in imported': 'Zaimportowano {0} ważenie',+ '{0} workout imported': 'Zaimportowano {0} trening',+ '{0} weigh-ins imported': { one: 'Zaimportowano {0} ważenie', few: 'Zaimportowano {0} ważenia', many: 'Zaimportowano {0} ważeń', other: 'Zaimportowano {0} ważenia' },'Could not read that file': 'Nie udało się odczytać pliku','That file is empty': 'Ten plik jest pusty','We don\'t recognise that file\'s columns. Check the docs for supported apps.': 'Nie rozpoznajemy kolumn tego pliku. Obsługiwane aplikacje znajdziesz w dokumentacji.',@@ -652,7 +659,7 @@ export default {'Import workouts': 'Importuj treningi','Import routines': 'Importuj rutyny','{0} routines · {1} exercises, added as new plans': '{0} rutyn · {1} ćwiczeń, dodane jako nowe plany',- '{0} routines imported': 'Zaimportowano {0} rutyn',+ '{0} routines imported': { one: 'Zaimportowano {0} rutynę', few: 'Zaimportowano {0} rutyny', many: 'Zaimportowano {0} rutyn', other: 'Zaimportowano {0} rutyny' },'Fetching routines… ({0}/{1})': 'Pobieranie rutyn… ({0}/{1})','Routines': 'Rutyny','Import weigh-ins': 'Importuj ważenia',@@ -765,8 +772,8 @@ export default {'Bodyweight: same target again until every set is clean.': 'Masa własna: ten sam cel, dopóki każda seria nie będzie czysta.',// --- effort per set (RIR / RPE) ---- '{0} sets bring an {1} with them. Switch on Effort per set in Settings to see it.': '{0} serii ma zapisane {1}. Włącz „Wysiłek w serii” w ustawieniach, aby to zobaczyć.',- '{0} sets bring an {1} with them.': '{0} serii ma zapisane {1}.',+ '{0} sets bring an {1} with them. Switch on Effort per set in Settings to see it.': { one: '{0} seria ma zapisane {1}. Włącz „Wysiłek w serii” w ustawieniach, aby to zobaczyć.', few: '{0} serie mają zapisane {1}. Włącz „Wysiłek w serii” w ustawieniach, aby to zobaczyć.', many: '{0} serii ma zapisane {1}. Włącz „Wysiłek w serii” w ustawieniach, aby to zobaczyć.', other: '{0} serii ma zapisane {1}. Włącz „Wysiłek w serii” w ustawieniach, aby to zobaczyć.' },+ '{0} sets bring an {1} with them.': { one: '{0} seria ma zapisane {1}.', few: '{0} serie mają zapisane {1}.', many: '{0} serii ma zapisane {1}.', other: '{0} serii ma zapisane {1}.' },'RIR': 'RIR','RPE': 'RPE','Effort per set': 'Wysiłek na serię',diff --git a/frontend/src/locales/pt-BR.js b/frontend/src/locales/pt-BR.jsindex 8f98dc06f..dd1d99e94 100644--- a/frontend/src/locales/pt-BR.js+++ b/frontend/src/locales/pt-BR.js@@ -4,6 +4,7 @@import pt from './pt.js'export const PT_BR_OVERRIDES = {+ '{0} set brings an {1} with it. Switch on Effort per set in Settings to see it.': '{0} série traz um {1} junto. Ative “Esforço por série” nas Configurações para ver.','Add to this set': 'Adicionar a esta série','Copy this exercise’s warm-up sets, and the rest and note from its Exercise settings, into the routine. A note added for today stays with this workout. Your workout history is kept.': 'Copia para a rotina as séries de aquecimento deste exercício, e o descanso e a anotação das Configurações do exercício dele. Uma anotação adicionada para hoje fica com este treino. Seu histórico de treinos é mantido.','Discard workout': 'Descartar treino',diff --git a/frontend/src/locales/pt.js b/frontend/src/locales/pt.jsindex 8bef994c4..25f12722f 100644--- a/frontend/src/locales/pt.js+++ b/frontend/src/locales/pt.js@@ -627,6 +627,13 @@ export default {'Not in the library, so they’re added as your own exercises': 'Não estão na biblioteca, por isso são adicionados como exercícios teus','Nothing new to import': 'Nada de novo para importar','{0} workouts imported': '{0} treinos importados',+ '{0} rows skipped (couldn’t read them)': '{0} linhas ignoradas (não deu para ler)',+ '{0} row skipped (couldn’t read it)': '{0} linha ignorada (não deu para ler)',+ '{0} set brings an {1} with it. Switch on Effort per set in Settings to see it.': '{0} série traz um {1}. Liga «Esforço por série» nas Definições para o veres.',+ '{0} set brings an {1} with it.': '{0} série traz um {1}.',+ '{0} routine imported': '{0} rotina importada',+ '{0} weigh-in imported': '{0} pesagem importada',+ '{0} workout imported': '{0} treino importado','{0} weigh-ins imported': '{0} pesagens importadas','Could not read that file': 'Não foi possível ler o ficheiro','That file is empty': 'Esse ficheiro está vazio',@@ -765,7 +772,7 @@ export default {'Bodyweight: same target again until every set is clean.': 'Peso do corpo: o mesmo objetivo até todas as séries saírem limpas.',// --- effort per set (RIR / RPE) ---- '{0} sets bring an {1} with them. Switch on Effort per set in Settings to see it.': 'As séries de {0} trazem um {1}. Liga «Esforço por série» nas Definições para o veres.',+ '{0} sets bring an {1} with them. Switch on Effort per set in Settings to see it.': '{0} séries trazem um {1}. Liga «Esforço por série» nas Definições para o veres.','{0} sets bring an {1} with them.': '{0} séries trazem um {1}.','RIR': 'RIR','RPE': 'RPE',diff --git a/frontend/src/locales/ru.js b/frontend/src/locales/ru.jsindex 4a10859d8..3d1be1ab2 100644--- a/frontend/src/locales/ru.js+++ b/frontend/src/locales/ru.js@@ -616,8 +616,15 @@ export default {'{0} days already have data here and will be left alone.': 'В {0} дней уже есть данные, они останутся без изменений.','Not in the library, so they’re added as your own exercises': 'Нет в библиотеке, поэтому добавлены как свои упражнения','Nothing new to import': 'Нечего импортировать',- '{0} workouts imported': 'Импортировано тренировок: {0}',- '{0} weigh-ins imported': 'Импортировано взвешиваний: {0}',+ '{0} workouts imported': { one: 'Импортирована {0} тренировка', few: 'Импортировано {0} тренировки', many: 'Импортировано {0} тренировок', other: 'Импортировано {0} тренировки' },+ '{0} rows skipped (couldn’t read them)': { one: 'Пропущена {0} строка (не удалось прочитать)', few: 'Пропущено {0} строки (не удалось прочитать)', many: 'Пропущено {0} строк (не удалось прочитать)', other: 'Пропущено {0} строки (не удалось прочитать)' },+ '{0} row skipped (couldn’t read it)': 'Пропущена {0} строка (не удалось прочитать)',+ '{0} set brings an {1} with it. Switch on Effort per set in Settings to see it.': 'В {0} подходе есть {1}. Включите «Усилие в подходе» в настройках, чтобы его увидеть.',+ '{0} set brings an {1} with it.': 'В {0} подходе есть {1}.',+ '{0} routine imported': 'Импортирована {0} программа',+ '{0} weigh-in imported': 'Импортировано {0} взвешивание',+ '{0} workout imported': 'Импортирована {0} тренировка',+ '{0} weigh-ins imported': { one: 'Импортировано {0} взвешивание', few: 'Импортировано {0} взвешивания', many: 'Импортировано {0} взвешиваний', other: 'Импортировано {0} взвешивания' },'Could not read that file': 'Не удалось прочитать файл','That file is empty': 'Файл пуст','We don\'t recognise that file\'s columns. Check the docs for supported apps.': 'Мы не узнаём колонки этого файла. Список поддерживаемых приложений есть в документации.',@@ -642,7 +649,7 @@ export default {'Import workouts': 'Импортировать тренировки','Import routines': 'Импортировать программы','{0} routines · {1} exercises, added as new plans': '{0} программ · {1} упражнений, добавляются как новые планы',- '{0} routines imported': 'Импортировано программ: {0}',+ '{0} routines imported': { one: 'Импортирована {0} программа', few: 'Импортировано {0} программы', many: 'Импортировано {0} программ', other: 'Импортировано {0} программы' },'Fetching routines… ({0}/{1})': 'Загрузка программ… ({0}/{1})','Routines': 'Программы','Import weigh-ins': 'Импортировать взвешивания',@@ -747,8 +754,8 @@ export default {'Bodyweight: same target again until every set is clean.': 'Собственный вес: та же цель, пока все подходы не будут чистыми.',// --- effort per set (RIR / RPE) ---- '{0} sets bring an {1} with them. Switch on Effort per set in Settings to see it.': 'У подходов {0} есть {1}. Включите «Усилие в подходе» в настройках, чтобы его увидеть.',- '{0} sets bring an {1} with them.': '{0} подходов несут с собой {1}.',+ '{0} sets bring an {1} with them. Switch on Effort per set in Settings to see it.': { one: 'В {0} подходе есть {1}. Включите «Усилие в подходе» в настройках, чтобы его увидеть.', few: 'В {0} подходах есть {1}. Включите «Усилие в подходе» в настройках, чтобы его увидеть.', many: 'В {0} подходах есть {1}. Включите «Усилие в подходе» в настройках, чтобы его увидеть.', other: 'В {0} подходах есть {1}. Включите «Усилие в подходе» в настройках, чтобы его увидеть.' },+ '{0} sets bring an {1} with them.': { one: 'В {0} подходе есть {1}.', few: 'В {0} подходах есть {1}.', many: 'В {0} подходах есть {1}.', other: 'В {0} подходах есть {1}.' },'RIR': 'RIR','RPE': 'RPE','Effort per set': 'Усилие в подходе',diff --git a/frontend/src/locales/th.js b/frontend/src/locales/th.jsindex 61c05fcf1..d4dac3a78 100644--- a/frontend/src/locales/th.js+++ b/frontend/src/locales/th.js@@ -631,6 +631,13 @@ export default {'Not in the library, so they’re added as your own exercises': 'ไม่มีในคลังท่า จึงเพิ่มเป็นท่าของคุณเอง','Nothing new to import': 'ไม่มีอะไรใหม่ให้นำเข้า','{0} workouts imported': 'นำเข้าการออกกำลังกาย {0} ครั้งแล้ว',+ '{0} rows skipped (couldn’t read them)': 'ข้าม {0} แถว (อ่านไม่ได้)',+ '{0} row skipped (couldn’t read it)': 'ข้าม {0} แถว (อ่านไม่ได้)',+ '{0} set brings an {1} with it. Switch on Effort per set in Settings to see it.': '{0} เซ็ตมาพร้อม {1} เปิด “ความหนักต่อเซ็ต” ในตั้งค่าเพื่อดู',+ '{0} set brings an {1} with it.': '{0} เซ็ตมาพร้อม {1}',+ '{0} routine imported': 'นำเข้า {0} โปรแกรมแล้ว',+ '{0} weigh-in imported': 'นำเข้าบันทึกน้ำหนัก {0} รายการแล้ว',+ '{0} workout imported': 'นำเข้าการออกกำลังกาย {0} ครั้งแล้ว','{0} weigh-ins imported': 'นำเข้าบันทึกน้ำหนัก {0} รายการแล้ว','Could not read that file': 'อ่านไฟล์นั้นไม่ได้','That file is empty': 'ไฟล์นั้นว่างเปล่า',diff --git a/frontend/src/locales/tr.js b/frontend/src/locales/tr.jsindex e2c143f7e..1b6e0401d 100644--- a/frontend/src/locales/tr.js+++ b/frontend/src/locales/tr.js@@ -627,6 +627,13 @@ export default {'Not in the library, so they’re added as your own exercises': 'Kütüphanede yoklar, o yüzden kendi egzersizlerin olarak eklendiler','Nothing new to import': 'İçe aktarılacak yeni bir şey yok','{0} workouts imported': '{0} antrenman içe aktarıldı',+ '{0} rows skipped (couldn’t read them)': '{0} satır atlandı (okunamadı)',+ '{0} row skipped (couldn’t read it)': '{0} satır atlandı (okunamadı)',+ '{0} set brings an {1} with it. Switch on Effort per set in Settings to see it.': '{0} set beraberinde bir {1} getiriyor. Görmek için Ayarlar’da «Set başına efor» seçeneğini aç.',+ '{0} set brings an {1} with it.': '{0} set beraberinde bir {1} getiriyor.',+ '{0} routine imported': '{0} rutin içe aktarıldı',+ '{0} weigh-in imported': '{0} tartım içe aktarıldı',+ '{0} workout imported': '{0} antrenman içe aktarıldı','{0} weigh-ins imported': '{0} tartım içe aktarıldı','Could not read that file': 'Dosya okunamadı','That file is empty': 'Bu dosya boş',@@ -765,7 +772,7 @@ export default {'Bodyweight: same target again until every set is clean.': 'Vücut ağırlığı: her set temiz çıkana kadar aynı hedef.',// --- effort per set (RIR / RPE) ---- '{0} sets bring an {1} with them. Switch on Effort per set in Settings to see it.': '{0} setler yanında bir {1} getirir. Görmek için Ayarlar’da «Set başına efor» seçeneğini aç.',+ '{0} sets bring an {1} with them. Switch on Effort per set in Settings to see it.': '{0} set beraberinde bir {1} getiriyor. Görmek için Ayarlar’da «Set başına efor» seçeneğini aç.','{0} sets bring an {1} with them.': '{0} set beraberinde bir {1} getiriyor.','RIR': 'RIR','RPE': 'RPE',diff --git a/frontend/src/locales/uk.js b/frontend/src/locales/uk.jsindex ad045dd97..081482f5d 100644--- a/frontend/src/locales/uk.js+++ b/frontend/src/locales/uk.js@@ -455,8 +455,15 @@ export default {'{0} days already have data here and will be left alone.': 'У {0} днів уже є дані, їх не буде змінено.','Not in the library, so they’re added as your own exercises': 'Немає в бібліотеці, тож додано як власні вправи','Nothing new to import': 'Нема чого імпортувати',- '{0} workouts imported': 'Імпортовано тренувань: {0}',- '{0} weigh-ins imported': 'Імпортовано зважувань: {0}',+ '{0} workouts imported': { one: 'Імпортовано {0} тренування', few: 'Імпортовано {0} тренування', many: 'Імпортовано {0} тренувань', other: 'Імпортовано {0} тренування' },+ '{0} rows skipped (couldn’t read them)': { one: 'Пропущено {0} рядок (не вдалося прочитати)', few: 'Пропущено {0} рядки (не вдалося прочитати)', many: 'Пропущено {0} рядків (не вдалося прочитати)', other: 'Пропущено {0} рядка (не вдалося прочитати)' },+ '{0} row skipped (couldn’t read it)': 'Пропущено {0} рядок (не вдалося прочитати)',+ '{0} set brings an {1} with it. Switch on Effort per set in Settings to see it.': 'У {0} підході є {1}. Увімкни «Зусилля в підході» в налаштуваннях, щоб побачити.',+ '{0} set brings an {1} with it.': 'У {0} підході є {1}.',+ '{0} routine imported': 'Імпортовано {0} програму',+ '{0} weigh-in imported': 'Імпортовано {0} зважування',+ '{0} workout imported': 'Імпортовано {0} тренування',+ '{0} weigh-ins imported': { one: 'Імпортовано {0} зважування', few: 'Імпортовано {0} зважування', many: 'Імпортовано {0} зважувань', other: 'Імпортовано {0} зважування' },'Could not read that file': 'Не вдалося прочитати файл','That file is empty': 'Файл порожній','We don\'t recognise that file\'s columns. Check the docs for supported apps.': 'Ми не впізнаємо стовпці цього файлу. Перелік підтримуваних застосунків є в документації.',@@ -481,7 +488,7 @@ export default {'Import workouts': 'Імпортувати тренування','Import routines': 'Імпортувати програми','{0} routines · {1} exercises, added as new plans': '{0} програм · {1} вправ, додаються як нові плани',- '{0} routines imported': 'Імпортовано програм: {0}',+ '{0} routines imported': { one: 'Імпортовано {0} програму', few: 'Імпортовано {0} програми', many: 'Імпортовано {0} програм', other: 'Імпортовано {0} програми' },'Fetching routines… ({0}/{1})': 'Завантаження програм… ({0}/{1})','Routines': 'Програми','Import weigh-ins': 'Імпортувати зважування',@@ -581,8 +588,8 @@ export default {'Bodyweight: same target again until every set is clean.': 'Власна вага: та сама ціль, поки всі підходи не будуть чистими.',// --- effort per set (RIR / RPE) ---- '{0} sets bring an {1} with them. Switch on Effort per set in Settings to see it.': '{0} підходів приносять із собою {1}. Увімкни «Зусилля в підході» в налаштуваннях, щоб побачити.',- '{0} sets bring an {1} with them.': '{0} підходів несуть із собою {1}.',+ '{0} sets bring an {1} with them. Switch on Effort per set in Settings to see it.': { one: 'У {0} підході є {1}. Увімкни «Зусилля в підході» в налаштуваннях, щоб побачити.', few: 'У {0} підходах є {1}. Увімкни «Зусилля в підході» в налаштуваннях, щоб побачити.', many: 'У {0} підходах є {1}. Увімкни «Зусилля в підході» в налаштуваннях, щоб побачити.', other: 'У {0} підходах є {1}. Увімкни «Зусилля в підході» в налаштуваннях, щоб побачити.' },+ '{0} sets bring an {1} with them.': { one: 'У {0} підході є {1}.', few: 'У {0} підходах є {1}.', many: 'У {0} підходах є {1}.', other: 'У {0} підходах є {1}.' },'RIR': 'RIR','RPE': 'RPE','Effort per set': 'Зусилля в підході',diff --git a/frontend/src/locales/zh-TW.js b/frontend/src/locales/zh-TW.jsindex c324397bd..29968ae26 100644--- a/frontend/src/locales/zh-TW.js+++ b/frontend/src/locales/zh-TW.js@@ -619,6 +619,13 @@ export default {'Not in the library, so they’re added as your own exercises': '不在動作庫中,所以已新增為你的自訂動作','Nothing new to import': '沒有可匯入的新資料','{0} workouts imported': '已匯入 {0} 次訓練紀錄',+ '{0} rows skipped (couldn’t read them)': '已略過 {0} 列(無法讀取)',+ '{0} row skipped (couldn’t read it)': '已略過 {0} 列(無法讀取)',+ '{0} set brings an {1} with it. Switch on Effort per set in Settings to see it.': '{0} 組自帶 {1}。在設定中開啟「每組自覺強度」就能看到。',+ '{0} set brings an {1} with it.': '{0} 組自帶 {1}。',+ '{0} routine imported': '已成功匯入 {0} 份訓練課表',+ '{0} weigh-in imported': '已匯入 {0} 筆體重紀錄',+ '{0} workout imported': '已匯入 {0} 次訓練紀錄','{0} weigh-ins imported': '已匯入 {0} 筆體重紀錄','Could not read that file': '無法讀取該檔案','That file is empty': '該檔案為空白內容',@@ -758,7 +765,7 @@ export default {// --- effort per set (RIR / RPE) ---'{0} sets bring an {1} with them. Switch on Effort per set in Settings to see it.': '{0} 組自帶 {1}。在設定中開啟「每組自覺強度」就能看到。',- '{0} sets bring an {1} with them.': '{0} 組自帶 {1} 欄位。',+ '{0} sets bring an {1} with them.': '{0} 組自帶 {1}。','RIR': 'RIR (保留次數)','RPE': 'RPE (自覺強度)','Effort per set': '每組自覺強度',diff --git a/frontend/src/locales/zh.js b/frontend/src/locales/zh.jsindex ad594a660..1463c7aca 100644--- a/frontend/src/locales/zh.js+++ b/frontend/src/locales/zh.js@@ -627,6 +627,13 @@ export default {'Not in the library, so they’re added as your own exercises': '不在动作库中,所以已添加为你的自定义动作','Nothing new to import': '没有新内容可导入','{0} workouts imported': '已导入 {0} 次训练',+ '{0} rows skipped (couldn’t read them)': '已跳过 {0} 行(无法读取)',+ '{0} row skipped (couldn’t read it)': '已跳过 {0} 行(无法读取)',+ '{0} set brings an {1} with it. Switch on Effort per set in Settings to see it.': '{0} 组自带 {1}。在设置中打开“每组强度”就能看到。',+ '{0} set brings an {1} with it.': '{0} 组自带 {1}。',+ '{0} routine imported': '已导入 {0} 个训练计划',+ '{0} weigh-in imported': '已导入 {0} 条称重记录',+ '{0} workout imported': '已导入 {0} 次训练','{0} weigh-ins imported': '已导入 {0} 条称重记录','Could not read that file': '无法读取该文件','That file is empty': '该文件是空的',diff --git a/frontend/src/sheets.import-summary.test.jsx b/frontend/src/sheets.import-summary.test.jsxindex ac942ad6c..e940e36ac 100644--- a/frontend/src/sheets.import-summary.test.jsx+++ b/frontend/src/sheets.import-summary.test.jsx@@ -47,3 +47,34 @@ describe('the import summary’s dates', () => {expect(fmtDateRange('2026-03-01', '2026-03-01', false, now)).not.toContain('–')})})++// QA 10-06: the summary never said how many rows it had left out, and every count read "1 workouts+// imported", "1 sets bring an RPE".+describe('the import summary’s counts', () => {+ beforeEach(() => {+ globalThis.IS_REACT_ACT_ENVIRONMENT = true+ useUI.setState({ sheets: [], toasts: [], toastMsg: '' })+ useStore.setState(s => ({ S: { ...s.S, unit: 'kg', workouts: [], bodyweight: [], wc: { ...s.S.wc, effort: 'rpe' } } }))+ })+ afterEach(() => { if (root) act(() => root.unmount()); root = null; document.body.innerHTML = '' })+ const lines = () => [...host.querySelectorAll('.small.dim')].map(d => d.textContent)++ it('says how many rows were skipped, singular and plural, and nothing when none were', async () => {+ await summaryFor([HEAD, '2026-01-02,Bench Press,60,5', 'not a date,Bench Press,60,5'].join('\n'))+ expect(lines()).toContain('1 row skipped (couldn’t read it)')+ act(() => root.unmount()); document.body.innerHTML = ''; useUI.setState({ sheets: [] })+ await summaryFor([HEAD, '2026-01-02,Bench Press,60,5', 'nope,Bench Press,60,5', '2026-01-03,,60,5'].join('\n'))+ expect(lines()).toContain('2 rows skipped (couldn’t read them)')+ act(() => root.unmount()); document.body.innerHTML = ''; useUI.setState({ sheets: [] })+ await summaryFor(csv('2026-01-02'))+ expect(lines().some(l => /skipped/.test(l))).toBe(false)+ })++ it('counts one workout and one rated set in the singular', async () => {+ await summaryFor(['Date,Workout Name,Exercise Name,Set Order,Weight,Reps,Seconds,RPE', '2026-01-02 10:00:00,Push,Bench Press (Barbell),1,60,5,0,8'].join('\n'))+ expect(lines().join(' ')).toMatch(/\b1 set brings an RPE with it\./)+ const importBtn = [...host.querySelectorAll('button')].find(b => b.textContent === 'Import')+ act(() => importBtn.click())+ expect(useUI.getState().toastMsg).toBe('1 workout imported')+ })+})diff --git a/frontend/src/sheets.jsx b/frontend/src/sheets.jsxindex e4a3b4d7d..93aba7cf3 100644--- a/frontend/src/sheets.jsx+++ b/frontend/src/sheets.jsx@@ -373,6 +373,11 @@ function WeighIns() {export const weighInsSheet = () => ui().openSheet(close => <WeighIns close={close} />)/* ============================ import from another app ============================ */+// "12 sets bring an RPE with them": the file rated its sets. The column is off by default, so+// with it off the line says where to switch it on.+const effortLine = (effort, n, scale) => effort === 'none'+ ? tn('{0} set brings an {1} with it. Switch on Effort per set in Settings to see it.', '{0} sets bring an {1} with them. Switch on Effort per set in Settings to see it.', n, scale)+ : tn('{0} set brings an {1} with it.', '{0} sets bring an {1} with them.', n, scale)// Shows what a parsed export would actually do before anything is written. An import is// the one action where "just try it" is expensive — it's someone's entire training// history — so the numbers, the unit conversion and the exercises we couldn't recognise@@ -390,8 +395,8 @@ function ImportSummary({ parsed, close }) {update(s => { res = mergeImport(s, parsed) })close()toast(isBW- ? t('{0} weigh-ins imported', res.added)- : t('{0} workouts imported', res.added))+ ? tn('{0} weigh-in imported', '{0} weigh-ins imported', res.added)+ : tn('{0} workout imported', '{0} workouts imported', res.added))}return <>@@ -426,10 +431,12 @@ function ImportSummary({ parsed, close }) {{/* The file rated its sets. Say so: the column is off by default, so the ratings wouldotherwise arrive invisibly and look like they had been dropped. */}{!isBW && (parsed.rirSets + parsed.rpeSets) > 0 && <div className="small dim" style={{ marginBottom: 10 }}>- {t(effortOf(st) === 'none'- ? '{0} sets bring an {1} with them. Switch on Effort per set in Settings to see it.'- : '{0} sets bring an {1} with them.',- parsed.rirSets || parsed.rpeSets, parsed.rirSets ? 'RIR' : 'RPE')}+ {effortLine(effortOf(st), parsed.rirSets || parsed.rpeSets, parsed.rirSets ? 'RIR' : 'RPE')}+ </div>}+ {/* Rows the parser could not use (no date or name, nothing measured, impossible numbers)+ are left out; say how many, so a short history does not look like a lost one. */}+ {!isBW && parsed.skipped > 0 && <div className="small dim" style={{ marginBottom: 10 }}>+ {tn('{0} row skipped (couldn’t read it)', '{0} rows skipped (couldn’t read them)', parsed.skipped)}</div>}{!isBW && parsed.unmatchedNames.length > 0 && <><h4 className="sec">{t('Not in the library, so they’re added as your own exercises')}</h4>@@ -538,17 +545,17 @@ function HevyImportSheet({ close }) {if (wantWorkouts && payload.workouts.workouts.length) {const res = mergeImport(s, payload.workouts)addedW = res.added- parts.push(t('{0} workouts imported', res.added))+ parts.push(tn('{0} workout imported', '{0} workouts imported', res.added))}if (wantRoutines && payload.routines.routines.length) {const res = mergeHevyRoutines(s, payload.routines)addedR = res.added- parts.push(t('{0} routines imported', res.added))+ parts.push(tn('{0} routine imported', '{0} routines imported', res.added))}if (wantBody && payload.bodyweight.bodyweight.length) {const res = mergeImport(s, payload.bodyweight)addedB = res.added- parts.push(t('{0} weigh-ins imported', res.added))+ parts.push(tn('{0} weigh-in imported', '{0} weigh-ins imported', res.added))}})close()@@ -643,10 +650,7 @@ function HevyImportSheet({ close }) {{t('Hevy stores weights in kg, so they’ll be converted to {0}.', st.unit)}</div>}{wantWorkouts && (w.rirSets + w.rpeSets) > 0 && <div className="small dim" style={{ marginBottom: 10 }}>- {t(effortOf(st) === 'none'- ? '{0} sets bring an {1} with them. Switch on Effort per set in Settings to see it.'- : '{0} sets bring an {1} with them.',- w.rirSets || w.rpeSets, w.rirSets ? 'RIR' : 'RPE')}+ {effortLine(effortOf(st), w.rirSets || w.rpeSets, w.rirSets ? 'RIR' : 'RPE')}</div>}{unmatched.length > 0 && <><h4 className="sec">{t('Not in the library, so they’re added as your own exercises')}</h4>