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.

fix(coach): the consent screen's data categories in the app's language

Boris 'B' Kurktchieva0682f758938
diff --git a/frontend/src/lib/coach.js b/frontend/src/lib/coach.js
index cfcf01d62..cecb865f2 100644
--- a/frontend/src/lib/coach.js
+++ b/frontend/src/lib/coach.js
@@ -64,12 +64,15 @@ export const coachAvailable = (config, user, { demo, mobile, coachMode } = {}) =
// What each data category means, in the user's words. Rendered from the same list the payload
// builder uses (api/coach/core/categories.js), so the screen cannot promise less than leaves.
+// Each entry returns [title, detail] in the current language, through literal t() calls so
+// check-source-strings sees every key. When the screens passed these to t() as variables the
+// checker could not see them, and eight of the ten had no translation in any pack.
export const CATEGORY_TEXT = {
- plan: ['Your plan', 'Routines, exercises, sets and reps, your weekly schedule and progression settings.'],
- training: ['Your logged training', 'Sets you logged in the review window: weights, reps, times, effort ratings, how long sessions took, and your session notes.'],
- bodyweight: ['Body weight', 'Weigh-ins from the same window, and your goal weight if you set one.'],
- profile: ['What you tell the Coach', 'Your intake answers, including any limitations or injuries you describe.'],
- prefs: ['A few preferences', 'Your unit, your language and which effort scale you log.']
+ plan: () => [t('Your plan'), t('Routines, exercises, sets and reps, your weekly schedule and progression settings.')],
+ training: () => [t('Your logged training'), t('Sets you logged in the review window: weights, reps, times, effort ratings, how long sessions took, and your session notes.')],
+ bodyweight: () => [t('Body weight'), t('Weigh-ins from the same window, and your goal weight if you set one.')],
+ profile: () => [t('What you tell the Coach'), t('Your intake answers, including any limitations or injuries you describe.')],
+ prefs: () => [t('A few preferences'), t('Your unit, your language and which effort scale you log.')]
}
export const hasConsent = S => !!S?.coach?.consent?.agreedAt && S.coach.consent.version === CONSENT_VERSION
diff --git a/frontend/src/locales/ar.js b/frontend/src/locales/ar.js
index b92f6745e..f05ee7410 100644
--- a/frontend/src/locales/ar.js
+++ b/frontend/src/locales/ar.js
@@ -974,6 +974,14 @@ export default {
'Imported! {0} routines are in your plan and your week is set. See you at the next session.': 'تم الاستيراد! {0} روتينات في خطتك وأسبوعك مضبوط. أراك في الجلسة القادمة.',
'Imported! {0} routines are in your plan. Your week is unchanged; schedule them whenever you like.': 'تم الاستيراد! {0} روتينات في خطتك. أسبوعك لم يتغير؛ جدولها متى شئت.',
'It designs your plan from a few answers and adjusts it from what you actually log. It never changes anything without your say-so, and you can undo every change.': 'يصمم خطتك من بضعة إجابات ويعدّلها بناءً على ما تسجله فعلًا. لا يغيّر شيئًا دون موافقتك، ويمكنك التراجع عن كل تغيير.',
+ 'Routines, exercises, sets and reps, your weekly schedule and progression settings.': 'الروتينات والتمارين والمجموعات والتكرارات، وجدولك الأسبوعي وإعدادات التقدم.',
+ 'Your logged training': 'تدريبك المسجل',
+ 'Sets you logged in the review window: weights, reps, times, effort ratings, how long sessions took, and your session notes.': 'المجموعات التي سجلتها خلال فترة المراجعة: الأوزان والتكرارات والأوقات وتقييمات الجهد ومدة الجلسات، وملاحظات جلساتك.',
+ 'Weigh-ins from the same window, and your goal weight if you set one.': 'قياسات الوزن من الفترة نفسها، ووزنك المستهدف إن كنت قد حددته.',
+ 'What you tell the Coach': 'ما تخبر به المدرب',
+ 'Your intake answers, including any limitations or injuries you describe.': 'إجاباتك على أسئلة البداية، بما في ذلك أي قيود أو إصابات تصفها.',
+ 'A few preferences': 'بعض التفضيلات',
+ 'Your unit, your language and which effort scale you log.': 'وحدتك ولغتك ومقياس الجهد الذي تسجل به.',
'Likes: {0}': 'المفضلات: {0}',
'Limits': 'القيود',
'Limits: {0}': 'القيود: {0}',
diff --git a/frontend/src/locales/de.js b/frontend/src/locales/de.js
index 7fdb20e04..9180b0da9 100644
--- a/frontend/src/locales/de.js
+++ b/frontend/src/locales/de.js
@@ -1120,6 +1120,14 @@ export default {
'Imported! {0} routines are in your plan and your week is set. See you at the next session.': 'Übernommen! {0} Routinen sind in deinem Plan und deine Woche steht. Bis zur nächsten Einheit.',
'Imported! {0} routines are in your plan. Your week is unchanged; schedule them whenever you like.': 'Übernommen! {0} Routinen sind in deinem Plan. Deine Woche bleibt unverändert; plane sie ein, wann du willst.',
'It designs your plan from a few answers and adjusts it from what you actually log. It never changes anything without your say-so, and you can undo every change.': 'Er entwirft deinen Plan aus ein paar Antworten und passt ihn an das an, was du wirklich einträgst. Er ändert nie etwas ohne dein Okay, und jede Änderung lässt sich rückgängig machen.',
+ 'Routines, exercises, sets and reps, your weekly schedule and progression settings.': 'Routinen, Übungen, Sätze und Wiederholungen, dein Wochenplan und die Progressions-Einstellungen.',
+ 'Your logged training': 'Dein eingetragenes Training',
+ 'Sets you logged in the review window: weights, reps, times, effort ratings, how long sessions took, and your session notes.': 'Sätze, die du im Auswertungszeitraum eingetragen hast: Gewichte, Wiederholungen, Zeiten, Anstrengungs-Bewertungen, wie lange die Einheiten gedauert haben, und deine Notizen zum Training.',
+ 'Weigh-ins from the same window, and your goal weight if you set one.': 'Wiegungen aus demselben Zeitraum und dein Zielgewicht, falls du eins festgelegt hast.',
+ 'What you tell the Coach': 'Was du dem Coach sagst',
+ 'Your intake answers, including any limitations or injuries you describe.': 'Deine Antworten aus dem Fragebogen, einschließlich Einschränkungen oder Verletzungen, die du beschreibst.',
+ 'A few preferences': 'Ein paar Einstellungen',
+ 'Your unit, your language and which effort scale you log.': 'Deine Gewichtseinheit, deine Sprache und die Skala, mit der du die Anstrengung einträgst.',
'Likes: {0}': 'Mag: {0}',
'Limits': 'Einschränkungen',
'Limits: {0}': 'Einschränkungen: {0}',
diff --git a/frontend/src/locales/es.js b/frontend/src/locales/es.js
index 592a333e1..5a68e3645 100644
--- a/frontend/src/locales/es.js
+++ b/frontend/src/locales/es.js
@@ -1102,6 +1102,14 @@ export default {
'Imported! {0} routines are in your plan and your week is set. See you at the next session.': '¡Importado! {0} rutinas están en tu plan y tu semana ya está configurada. Nos vemos en la próxima sesión.',
'Imported! {0} routines are in your plan. Your week is unchanged; schedule them whenever you like.': '¡Importado! {0} rutinas están en tu plan. Tu semana no cambia; prográmalas cuando quieras.',
'It designs your plan from a few answers and adjusts it from what you actually log. It never changes anything without your say-so, and you can undo every change.': 'Diseña tu plan a partir de unas pocas respuestas y lo ajusta según lo que realmente registras. Nunca cambia nada sin tu permiso, y puedes deshacer cada cambio.',
+ 'Routines, exercises, sets and reps, your weekly schedule and progression settings.': 'Rutinas, ejercicios, series y repeticiones, tu horario semanal y los ajustes de progresión.',
+ 'Your logged training': 'Tu entrenamiento registrado',
+ 'Sets you logged in the review window: weights, reps, times, effort ratings, how long sessions took, and your session notes.': 'Las series que registraste en el periodo de revisión: pesos, repeticiones, tiempos, valoraciones de esfuerzo, cuánto duraron las sesiones y tus notas de las sesiones.',
+ 'Weigh-ins from the same window, and your goal weight if you set one.': 'Los pesajes del mismo periodo y tu peso objetivo, si has fijado uno.',
+ 'What you tell the Coach': 'Lo que le cuentas al Entrenador',
+ 'Your intake answers, including any limitations or injuries you describe.': 'Tus respuestas del cuestionario inicial, incluidas las limitaciones o lesiones que describas.',
+ 'A few preferences': 'Algunas preferencias',
+ 'Your unit, your language and which effort scale you log.': 'Tu unidad, tu idioma y la escala con la que registras el esfuerzo.',
'Likes: {0}': 'Le gusta: {0}',
'Limits': 'Límites',
'Limits: {0}': 'Límites: {0}',
diff --git a/frontend/src/locales/fr.js b/frontend/src/locales/fr.js
index a6c2a3d84..86315fe02 100644
--- a/frontend/src/locales/fr.js
+++ b/frontend/src/locales/fr.js
@@ -1102,6 +1102,14 @@ export default {
'Imported! {0} routines are in your plan and your week is set. See you at the next session.': 'Importé ! {0} routines sont dans ton plan et ta semaine est réglée. À la prochaine séance.',
'Imported! {0} routines are in your plan. Your week is unchanged; schedule them whenever you like.': 'Importé ! {0} routines sont dans ton plan. Ta semaine ne change pas ; planifie-les quand tu veux.',
'It designs your plan from a few answers and adjusts it from what you actually log. It never changes anything without your say-so, and you can undo every change.': 'Il conçoit ton plan à partir de quelques réponses et l’ajuste d’après ce que tu enregistres vraiment. Il ne change jamais rien sans ton accord, et chaque modification peut être annulée.',
+ 'Routines, exercises, sets and reps, your weekly schedule and progression settings.': 'Routines, exercices, séries et répétitions, votre planning hebdomadaire et vos réglages de progression.',
+ 'Your logged training': 'Votre entraînement enregistré',
+ 'Sets you logged in the review window: weights, reps, times, effort ratings, how long sessions took, and your session notes.': 'Les séries que vous avez enregistrées sur la période du bilan : poids, répétitions, temps, notes d’effort, durée des séances et vos notes de séance.',
+ 'Weigh-ins from the same window, and your goal weight if you set one.': 'Les pesées de la même période, et votre poids cible si vous en avez défini un.',
+ 'What you tell the Coach': 'Ce que vous dites au Coach',
+ 'Your intake answers, including any limitations or injuries you describe.': 'Vos réponses au questionnaire, y compris les limitations ou blessures que vous décrivez.',
+ 'A few preferences': 'Quelques préférences',
+ 'Your unit, your language and which effort scale you log.': 'Votre unité, votre langue et l’échelle avec laquelle vous notez l’effort.',
'Likes: {0}': 'Aime : {0}',
'Limits': 'Limites',
'Limits: {0}': 'Limites : {0}',
diff --git a/frontend/src/locales/hi.js b/frontend/src/locales/hi.js
index 8c05a4933..71bdbf9e8 100644
--- a/frontend/src/locales/hi.js
+++ b/frontend/src/locales/hi.js
@@ -1102,6 +1102,14 @@ export default {
'Imported! {0} routines are in your plan and your week is set. See you at the next session.': 'आयात हो गया! {0} रूटीन आपकी योजना में हैं और आपका सप्ताह सेट है। अगले सत्र में मिलते हैं।',
'Imported! {0} routines are in your plan. Your week is unchanged; schedule them whenever you like.': 'आयात हो गया! {0} रूटीन आपकी योजना में हैं। आपका सप्ताह वैसा ही है; जब चाहें उन्हें शेड्यूल करें।',
'It designs your plan from a few answers and adjusts it from what you actually log. It never changes anything without your say-so, and you can undo every change.': 'यह कुछ उत्तरों से आपकी योजना बनाता है और आपके वास्तविक रिकॉर्ड के आधार पर उसे समायोजित करता है। आपकी अनुमति के बिना कुछ नहीं बदलता, और हर बदलाव को पूर्ववत किया जा सकता है।',
+ 'Routines, exercises, sets and reps, your weekly schedule and progression settings.': 'रूटीन, व्यायाम, सेट और रेप्स, आपका साप्ताहिक कार्यक्रम और प्रगति सेटिंग।',
+ 'Your logged training': 'आपकी दर्ज ट्रेनिंग',
+ 'Sets you logged in the review window: weights, reps, times, effort ratings, how long sessions took, and your session notes.': 'समीक्षा अवधि में आपके दर्ज किए सेट: वज़न, रेप्स, समय, मेहनत की रेटिंग, सेशन कितनी देर चले, और आपके सेशन के नोट।',
+ 'Weigh-ins from the same window, and your goal weight if you set one.': 'उसी अवधि के वज़न मापन, और आपका लक्ष्य वज़न, अगर आपने तय किया है।',
+ 'What you tell the Coach': 'आप कोच को क्या बताते हैं',
+ 'Your intake answers, including any limitations or injuries you describe.': 'शुरुआती सवालों के आपके उत्तर, जिनमें आपकी बताई गई सीमाएँ या चोटें भी शामिल हैं।',
+ 'A few preferences': 'कुछ प्राथमिकताएँ',
+ 'Your unit, your language and which effort scale you log.': 'आपकी इकाई, आपकी भाषा और वह पैमाना जिस पर आप मेहनत दर्ज करते हैं।',
'Likes: {0}': 'पसंद: {0}',
'Limits': 'सीमाएँ',
'Limits: {0}': 'सीमाएँ: {0}',
diff --git a/frontend/src/locales/hu.js b/frontend/src/locales/hu.js
index 3b8a3698f..3b10dcc21 100644
--- a/frontend/src/locales/hu.js
+++ b/frontend/src/locales/hu.js
@@ -1185,6 +1185,14 @@ export default {
'Imported! {0} routines are in your plan and your week is set. See you at the next session.': 'Importálva! {0} rutin került a tervedbe, és a heted be van állítva. Találkozunk a következő edzésen.',
'Imported! {0} routines are in your plan. Your week is unchanged; schedule them whenever you like.': 'Importálva! {0} rutin került a tervedbe. A heted változatlan; ütemezd be őket, amikor szeretnéd.',
'It designs your plan from a few answers and adjusts it from what you actually log. It never changes anything without your say-so, and you can undo every change.': 'Néhány válaszból megtervezi a programodat, és ahhoz igazítja, amit valóban rögzítesz. A beleegyezésed nélkül semmit sem változtat, és minden módosítást visszavonhatsz.',
+ 'Routines, exercises, sets and reps, your weekly schedule and progression settings.': 'Rutinok, gyakorlatok, sorozatok és ismétlések, a heti beosztásod és a progresszió beállításai.',
+ 'Your logged training': 'A rögzített edzéseid',
+ 'Sets you logged in the review window: weights, reps, times, effort ratings, how long sessions took, and your session notes.': 'Az áttekintési időszakban rögzített sorozataid: súlyok, ismétlések, idők, erőfeszítés-értékelések, az edzések hossza és az edzésjegyzeteid.',
+ 'Weigh-ins from the same window, and your goal weight if you set one.': 'Az ugyanebből az időszakból származó mérések és a célsúlyod, ha megadtál ilyet.',
+ 'What you tell the Coach': 'Amit elmondasz az Edzőnek',
+ 'Your intake answers, including any limitations or injuries you describe.': 'A kérdőívre adott válaszaid, az általad leírt korlátokkal vagy sérülésekkel együtt.',
+ 'A few preferences': 'Néhány beállítás',
+ 'Your unit, your language and which effort scale you log.': 'A mértékegységed, a nyelved, és hogy melyik skálán rögzíted a megerőltetést.',
'Likes: {0}': 'Kedveli: {0}',
'Limits': 'Korlátok',
'Limits: {0}': 'Korlátok: {0}',
diff --git a/frontend/src/locales/it.js b/frontend/src/locales/it.js
index 81f392217..2134f9532 100644
--- a/frontend/src/locales/it.js
+++ b/frontend/src/locales/it.js
@@ -1102,6 +1102,14 @@ export default {
'Imported! {0} routines are in your plan and your week is set. See you at the next session.': 'Importato! {0} routine sono nel tuo piano e la settimana è impostata. Ci vediamo alla prossima sessione.',
'Imported! {0} routines are in your plan. Your week is unchanged; schedule them whenever you like.': 'Importato! {0} routine sono nel tuo piano. La settimana resta com’è; pianificale quando vuoi.',
'It designs your plan from a few answers and adjusts it from what you actually log. It never changes anything without your say-so, and you can undo every change.': 'Progetta il tuo piano da poche risposte e lo adatta in base a ciò che registri davvero. Non cambia mai nulla senza il tuo consenso, e puoi annullare ogni modifica.',
+ 'Routines, exercises, sets and reps, your weekly schedule and progression settings.': 'Routine, esercizi, serie e ripetizioni, il tuo programma settimanale e le impostazioni di progressione.',
+ 'Your logged training': 'Il tuo allenamento registrato',
+ 'Sets you logged in the review window: weights, reps, times, effort ratings, how long sessions took, and your session notes.': 'Le serie che hai registrato nel periodo di revisione: pesi, ripetizioni, tempi, valutazioni dello sforzo, durata delle sessioni e le tue note delle sessioni.',
+ 'Weigh-ins from the same window, and your goal weight if you set one.': 'Le pesate dello stesso periodo e il tuo peso obiettivo, se ne hai impostato uno.',
+ 'What you tell the Coach': 'Quello che dici al Coach',
+ 'Your intake answers, including any limitations or injuries you describe.': 'Le tue risposte al questionario iniziale, comprese eventuali limitazioni o infortuni che descrivi.',
+ 'A few preferences': 'Alcune preferenze',
+ 'Your unit, your language and which effort scale you log.': 'La tua unità, la tua lingua e la scala con cui registri lo sforzo.',
'Likes: {0}': 'Piace: {0}',
'Limits': 'Limiti',
'Limits: {0}': 'Limiti: {0}',
diff --git a/frontend/src/locales/ko.js b/frontend/src/locales/ko.js
index fc4f356c8..ce681eafa 100644
--- a/frontend/src/locales/ko.js
+++ b/frontend/src/locales/ko.js
@@ -1102,6 +1102,14 @@ export default {
'Imported! {0} routines are in your plan and your week is set. See you at the next session.': '가져왔어요! 루틴 {0}개가 계획에 들어갔고 주간 일정도 잡혔어요. 다음 세션에서 봐요.',
'Imported! {0} routines are in your plan. Your week is unchanged; schedule them whenever you like.': '가져왔어요! 루틴 {0}개가 계획에 들어갔어요. 주간 일정은 그대로이니 원할 때 배정하세요.',
'It designs your plan from a few answers and adjusts it from what you actually log. It never changes anything without your say-so, and you can undo every change.': '몇 가지 답변으로 계획을 설계하고 실제 기록에 따라 조정합니다. 동의 없이는 아무것도 바꾸지 않으며, 모든 변경을 되돌릴 수 있습니다.',
+ 'Routines, exercises, sets and reps, your weekly schedule and progression settings.': '루틴, 운동, 세트와 횟수, 주간 일정과 점진적 증가 설정.',
+ 'Your logged training': '내 운동 기록',
+ 'Sets you logged in the review window: weights, reps, times, effort ratings, how long sessions took, and your session notes.': '검토 기간에 기록한 세트: 무게, 횟수, 시간, 강도 평가, 세션 소요 시간, 그리고 운동 메모.',
+ 'Weigh-ins from the same window, and your goal weight if you set one.': '같은 기간의 체중 기록, 그리고 설정했다면 목표 체중.',
+ 'What you tell the Coach': '코치에게 알려 준 내용',
+ 'Your intake answers, including any limitations or injuries you describe.': '시작 질문에 대한 답변. 설명한 제약 사항이나 부상도 포함됩니다.',
+ 'A few preferences': '몇 가지 설정',
+ 'Your unit, your language and which effort scale you log.': '단위, 언어, 그리고 강도를 기록하는 척도.',
'Likes: {0}': '좋아함: {0}',
'Limits': '제한',
'Limits: {0}': '제한: {0}',
diff --git a/frontend/src/locales/pl.js b/frontend/src/locales/pl.js
index 92579d18f..cd22ce911 100644
--- a/frontend/src/locales/pl.js
+++ b/frontend/src/locales/pl.js
@@ -1102,6 +1102,14 @@ export default {
'Imported! {0} routines are in your plan and your week is set. See you at the next session.': 'Zaimportowano! {0} rutyn jest w Twoim planie, a tydzień ustawiony. Do zobaczenia na następnym treningu.',
'Imported! {0} routines are in your plan. Your week is unchanged; schedule them whenever you like.': 'Zaimportowano! {0} rutyn jest w Twoim planie. Tydzień bez zmian; zaplanuj je, kiedy chcesz.',
'It designs your plan from a few answers and adjusts it from what you actually log. It never changes anything without your say-so, and you can undo every change.': 'Projektuje plan z kilku odpowiedzi i dostosowuje go do tego, co naprawdę zapisujesz. Nigdy nic nie zmienia bez Twojej zgody, a każdą zmianę możesz cofnąć.',
+ 'Routines, exercises, sets and reps, your weekly schedule and progression settings.': 'Rutyny, ćwiczenia, serie i powtórzenia, Twój harmonogram tygodnia i ustawienia progresji.',
+ 'Your logged training': 'Twój zapisany trening',
+ 'Sets you logged in the review window: weights, reps, times, effort ratings, how long sessions took, and your session notes.': 'Serie zapisane w okresie przeglądu: ciężary, powtórzenia, czasy, oceny wysiłku, długość sesji i Twoje notatki do sesji.',
+ 'Weigh-ins from the same window, and your goal weight if you set one.': 'Ważenia z tego samego okresu i Twoja docelowa waga, jeśli jest ustawiona.',
+ 'What you tell the Coach': 'Co mówisz Trenerowi',
+ 'Your intake answers, including any limitations or injuries you describe.': 'Twoje odpowiedzi z ankiety, w tym ograniczenia lub kontuzje, które opisujesz.',
+ 'A few preferences': 'Kilka ustawień',
+ 'Your unit, your language and which effort scale you log.': 'Twoja jednostka, Twój język i skala, w której oceniasz wysiłek.',
'Likes: {0}': 'Lubi: {0}',
'Limits': 'Ograniczenia',
'Limits: {0}': 'Ograniczenia: {0}',
diff --git a/frontend/src/locales/pt-BR.js b/frontend/src/locales/pt-BR.js
index c2c52d5f7..c2ee62f89 100644
--- a/frontend/src/locales/pt-BR.js
+++ b/frontend/src/locales/pt-BR.js
@@ -598,6 +598,14 @@ export const PT_BR_OVERRIDES = {
'Imported! {0} routines are in your plan and your week is set. See you at the next session.': 'Importado! {0} rotinas estão no seu plano e sua semana está montada. Até o próximo treino.',
'Imported! {0} routines are in your plan. Your week is unchanged; schedule them whenever you like.': 'Importado! {0} rotinas estão no seu plano. Sua semana não muda; agende quando quiser.',
'It designs your plan from a few answers and adjusts it from what you actually log. It never changes anything without your say-so, and you can undo every change.': 'Ele cria seu plano a partir de algumas respostas e o ajusta com base no que você registra. Nunca muda nada sem a sua autorização, e você pode desfazer cada alteração.',
+ 'Routines, exercises, sets and reps, your weekly schedule and progression settings.': 'Rotinas, exercícios, séries e repetições, seu horário semanal e as configurações de progressão.',
+ 'Your logged training': 'Seu treino registrado',
+ 'Sets you logged in the review window: weights, reps, times, effort ratings, how long sessions took, and your session notes.': 'As séries que você registrou no período de revisão: pesos, repetições, tempos, avaliações de esforço, quanto tempo duraram as sessões e suas notas das sessões.',
+ 'Weigh-ins from the same window, and your goal weight if you set one.': 'As pesagens do mesmo período e seu peso alvo, se você definiu um.',
+ 'What you tell the Coach': 'O que você diz ao Treinador',
+ 'Your intake answers, including any limitations or injuries you describe.': 'Suas respostas ao questionário inicial, incluindo as limitações ou lesões que você descreve.',
+ 'A few preferences': 'Algumas preferências',
+ 'Your unit, your language and which effort scale you log.': 'Sua unidade, seu idioma e a escala com que você registra o esforço.',
'Not quite right? Say what to change below and I will revise the whole plan.': 'Não ficou bom? Diga abaixo o que mudar e eu reviso o plano inteiro.',
'Pick one to continue.': 'Escolha uma para continuar.',
'Pick what you will actually keep, not the best week you can imagine.': 'Escolha o que você vai realmente cumprir, não a melhor semana que consegue imaginar.',
diff --git a/frontend/src/locales/pt.js b/frontend/src/locales/pt.js
index ad06595ac..9b70926d4 100644
--- a/frontend/src/locales/pt.js
+++ b/frontend/src/locales/pt.js
@@ -1102,6 +1102,14 @@ export default {
'Imported! {0} routines are in your plan and your week is set. See you at the next session.': 'Importado! {0} rotinas estão no teu plano e a tua semana está definida. Até à próxima sessão.',
'Imported! {0} routines are in your plan. Your week is unchanged; schedule them whenever you like.': 'Importado! {0} rotinas estão no teu plano. A tua semana não muda; agenda-as quando quiseres.',
'It designs your plan from a few answers and adjusts it from what you actually log. It never changes anything without your say-so, and you can undo every change.': 'Cria o teu plano a partir de algumas respostas e ajusta-o com base no que registas. Nunca muda nada sem a tua autorização, e podes anular cada alteração.',
+ 'Routines, exercises, sets and reps, your weekly schedule and progression settings.': 'Rotinas, exercícios, séries e repetições, o teu horário semanal e as definições de progressão.',
+ 'Your logged training': 'O teu treino registado',
+ 'Sets you logged in the review window: weights, reps, times, effort ratings, how long sessions took, and your session notes.': 'As séries que registaste no período de revisão: pesos, repetições, tempos, avaliações de esforço, quanto tempo duraram as sessões e as tuas notas das sessões.',
+ 'Weigh-ins from the same window, and your goal weight if you set one.': 'As pesagens do mesmo período e o teu peso alvo, se o definiste.',
+ 'What you tell the Coach': 'O que dizes ao Treinador',
+ 'Your intake answers, including any limitations or injuries you describe.': 'As tuas respostas ao questionário inicial, incluindo as limitações ou lesões que descreves.',
+ 'A few preferences': 'Algumas preferências',
+ 'Your unit, your language and which effort scale you log.': 'A tua unidade, o teu idioma e a escala com que registas o esforço.',
'Likes: {0}': 'Gosta: {0}',
'Limits': 'Limitações',
'Limits: {0}': 'Limitações: {0}',
diff --git a/frontend/src/locales/ru.js b/frontend/src/locales/ru.js
index 576e5cbe6..c01731c59 100644
--- a/frontend/src/locales/ru.js
+++ b/frontend/src/locales/ru.js
@@ -1082,6 +1082,14 @@ export default {
'Imported! {0} routines are in your plan and your week is set. See you at the next session.': 'Импортировано! {0} рутин в вашем плане, неделя настроена. До встречи на следующей тренировке.',
'Imported! {0} routines are in your plan. Your week is unchanged; schedule them whenever you like.': 'Импортировано! {0} рутин в вашем плане. Неделя не изменилась; распланируйте их, когда захотите.',
'It designs your plan from a few answers and adjusts it from what you actually log. It never changes anything without your say-so, and you can undo every change.': 'Он составляет план из нескольких ответов и корректирует его по тому, что вы реально записываете. Он ничего не меняет без вашего согласия, и любое изменение можно отменить.',
+ 'Routines, exercises, sets and reps, your weekly schedule and progression settings.': 'Программы, упражнения, подходы и повторения, ваше расписание недели и настройки прогрессии.',
+ 'Your logged training': 'Ваши записанные тренировки',
+ 'Sets you logged in the review window: weights, reps, times, effort ratings, how long sessions took, and your session notes.': 'Подходы, которые вы записали за период разбора: веса, повторения, время, оценки усилия, длительность тренировок и ваши заметки о тренировках.',
+ 'Weigh-ins from the same window, and your goal weight if you set one.': 'Взвешивания за тот же период и ваш целевой вес, если вы его задали.',
+ 'What you tell the Coach': 'Что вы рассказываете Тренеру',
+ 'Your intake answers, including any limitations or injuries you describe.': 'Ваши ответы в анкете, включая ограничения и травмы, которые вы описываете.',
+ 'A few preferences': 'Несколько настроек',
+ 'Your unit, your language and which effort scale you log.': 'Ваша единица измерения, язык и шкала, по которой вы оцениваете усилие.',
'Likes: {0}': 'Нравится: {0}',
'Limits': 'Ограничения',
'Limits: {0}': 'Ограничения: {0}',
diff --git a/frontend/src/locales/th.js b/frontend/src/locales/th.js
index 1031f9448..c2b6bd405 100644
--- a/frontend/src/locales/th.js
+++ b/frontend/src/locales/th.js
@@ -1193,6 +1193,14 @@ export default {
'Imported! {0} routines are in your plan and your week is set. See you at the next session.': 'นำเข้าแล้ว! {0} รูทีนอยู่ในแผนของคุณ และจัดสัปดาห์ให้เรียบร้อยแล้ว เจอกันเซสชันหน้า',
'Imported! {0} routines are in your plan. Your week is unchanged; schedule them whenever you like.': 'นำเข้าแล้ว! {0} รูทีนอยู่ในแผนของคุณ สัปดาห์ของคุณยังเหมือนเดิม จัดตารางได้ตามสะดวก',
'It designs your plan from a few answers and adjusts it from what you actually log. It never changes anything without your say-so, and you can undo every change.': 'มันออกแบบแผนของคุณจากคำตอบไม่กี่ข้อและปรับตามสิ่งที่คุณบันทึกจริง ไม่เปลี่ยนแปลงอะไรโดยไม่ได้รับความยินยอม และคุณเลิกทำทุกการเปลี่ยนแปลงได้',
+ 'Routines, exercises, sets and reps, your weekly schedule and progression settings.': 'รูทีน ท่าออกกำลังกาย เซ็ตและจำนวนครั้ง ตารางรายสัปดาห์ของคุณ และการตั้งค่าการเพิ่มระดับ',
+ 'Your logged training': 'การฝึกที่คุณบันทึก',
+ 'Sets you logged in the review window: weights, reps, times, effort ratings, how long sessions took, and your session notes.': 'เซ็ตที่คุณบันทึกในช่วงรีวิว: น้ำหนัก จำนวนครั้ง เวลา คะแนนความหนัก ระยะเวลาของแต่ละเซสชัน และบันทึกประจำรอบของคุณ',
+ 'Weigh-ins from the same window, and your goal weight if you set one.': 'บันทึกน้ำหนักจากช่วงเดียวกัน และน้ำหนักเป้าหมายของคุณ หากตั้งไว้',
+ 'What you tell the Coach': 'สิ่งที่คุณบอกโค้ช',
+ 'Your intake answers, including any limitations or injuries you describe.': 'คำตอบของคุณในแบบสอบถามเริ่มต้น รวมถึงข้อจำกัดหรืออาการบาดเจ็บที่คุณอธิบาย',
+ 'A few preferences': 'การตั้งค่าบางอย่าง',
+ 'Your unit, your language and which effort scale you log.': 'หน่วย ภาษา และมาตรวัดความหนักที่คุณใช้บันทึก',
'Likes: {0}': 'ชอบ: {0}',
'Limits': 'ข้อจำกัด',
'Limits: {0}': 'ข้อจำกัด: {0}',
diff --git a/frontend/src/locales/tr.js b/frontend/src/locales/tr.js
index d6fa067cf..e19e6a900 100644
--- a/frontend/src/locales/tr.js
+++ b/frontend/src/locales/tr.js
@@ -1102,6 +1102,14 @@ export default {
'Imported! {0} routines are in your plan and your week is set. See you at the next session.': 'İçe aktarıldı! {0} rutin planında ve haftan ayarlandı. Bir sonraki antrenmanda görüşürüz.',
'Imported! {0} routines are in your plan. Your week is unchanged; schedule them whenever you like.': 'İçe aktarıldı! {0} rutin planında. Haftan değişmedi; istediğin zaman programla.',
'It designs your plan from a few answers and adjusts it from what you actually log. It never changes anything without your say-so, and you can undo every change.': 'Planını birkaç cevaptan tasarlar ve gerçekten kaydettiklerine göre ayarlar. Onayın olmadan hiçbir şeyi değiştirmez ve her değişikliği geri alabilirsin.',
+ 'Routines, exercises, sets and reps, your weekly schedule and progression settings.': 'Rutinler, egzersizler, setler ve tekrarlar, haftalık programın ve ilerleme ayarların.',
+ 'Your logged training': 'Kaydettiğin antrenmanlar',
+ 'Sets you logged in the review window: weights, reps, times, effort ratings, how long sessions took, and your session notes.': 'Değerlendirme döneminde kaydettiğin setler: ağırlıklar, tekrarlar, süreler, zorluk puanları, antrenmanların ne kadar sürdüğü ve antrenman notların.',
+ 'Weigh-ins from the same window, and your goal weight if you set one.': 'Aynı dönemdeki tartımlar ve belirlediysen hedef kilon.',
+ 'What you tell the Coach': 'Koç’a anlattıkların',
+ 'Your intake answers, including any limitations or injuries you describe.': 'Başlangıç sorularına verdiğin yanıtlar; anlattığın kısıtlar ve sakatlıklar da dâhil.',
+ 'A few preferences': 'Birkaç tercih',
+ 'Your unit, your language and which effort scale you log.': 'Birimin, dilin ve zorluğu hangi ölçekle kaydettiğin.',
'Likes: {0}': 'Sevdikleri: {0}',
'Limits': 'Sınırlar',
'Limits: {0}': 'Sınırlar: {0}',
diff --git a/frontend/src/locales/uk.js b/frontend/src/locales/uk.js
index a4a775ede..30854a11d 100644
--- a/frontend/src/locales/uk.js
+++ b/frontend/src/locales/uk.js
@@ -906,6 +906,14 @@ export default {
'Imported! {0} routines are in your plan and your week is set. See you at the next session.': 'Імпортовано! {0} програм у твоєму плані, тиждень налаштовано. До зустрічі на наступному тренуванні.',
'Imported! {0} routines are in your plan. Your week is unchanged; schedule them whenever you like.': 'Імпортовано! {0} програм у твоєму плані. Тиждень не змінився; заплануй їх, коли захочеш.',
'It designs your plan from a few answers and adjusts it from what you actually log. It never changes anything without your say-so, and you can undo every change.': 'Він складає план із кількох відповідей і коригує його за тим, що ти реально записуєш. Він нічого не змінює без твоєї згоди, і будь-яку зміну можна скасувати.',
+ 'Routines, exercises, sets and reps, your weekly schedule and progression settings.': 'Програми, вправи, підходи й повторення, твій розклад тижня і налаштування прогресії.',
+ 'Your logged training': 'Твої записані тренування',
+ 'Sets you logged in the review window: weights, reps, times, effort ratings, how long sessions took, and your session notes.': 'Підходи, записані за період розбору: ваги, повторення, час, оцінки зусилля, тривалість тренувань і твої нотатки про тренування.',
+ 'Weigh-ins from the same window, and your goal weight if you set one.': 'Зважування за той самий період і твоя цільова вага, якщо її задано.',
+ 'What you tell the Coach': 'Що ти розповідаєш Тренеру',
+ 'Your intake answers, including any limitations or injuries you describe.': 'Твої відповіді в анкеті, включно з обмеженнями чи травмами, які ти описуєш.',
+ 'A few preferences': 'Кілька налаштувань',
+ 'Your unit, your language and which effort scale you log.': 'Твоя одиниця виміру, мова і шкала, за якою ти оцінюєш зусилля.',
'Likes: {0}': 'Подобається: {0}',
'Limits': 'Обмеження',
'Limits: {0}': 'Обмеження: {0}',
@@ -1618,8 +1626,8 @@ export default {
'The server has {0} workouts that are not in this backup, logged since it was made or on another device. Replacing deletes them.': 'На сервері є тренування, яких немає в цій копії ({0}): записані пізніше або на іншому пристрої. Заміна їх видалить.',
'Replace anyway': 'Однаково замінити',
'Merge them in': 'Об’єднати',
- 'Waiting for your answer about this device’s workouts': 'Чекаємо на вашу відповідь щодо тренувань із цього пристрою',
- 'Nothing syncs until you say whether this device’s workouts go into your profile. Tap to answer.': 'Нічого не синхронізується, доки ви не вирішите, чи додавати тренування з цього пристрою до профілю. Торкніться, щоб відповісти.',
+ 'Waiting for your answer about this device’s workouts': 'Чекаємо на твою відповідь щодо тренувань із цього пристрою',
+ 'Nothing syncs until you say whether this device’s workouts go into your profile. Tap to answer.': 'Нічого не синхронізується, доки ти не вирішиш, чи додавати тренування з цього пристрою до профілю. Натисни, щоб відповісти.',
// --- a swap or an add during a workout changes only this session ---
'Use in this workout': 'Використати в цьому тренуванні',
'Add to this workout': 'Додати до цього тренування',
diff --git a/frontend/src/locales/zh-TW.js b/frontend/src/locales/zh-TW.js
index 0ab17d0bf..2f299548f 100644
--- a/frontend/src/locales/zh-TW.js
+++ b/frontend/src/locales/zh-TW.js
@@ -1094,6 +1094,14 @@ export default {
'Imported! {0} routines are in your plan and your week is set. See you at the next session.': '已匯入!{0} 份課表已加入你的計畫,本週也排好了。下次訓練見。',
'Imported! {0} routines are in your plan. Your week is unchanged; schedule them whenever you like.': '已匯入!{0} 份課表已加入你的計畫。本週排程不變,想什麼時候排都可以。',
'It designs your plan from a few answers and adjusts it from what you actually log. It never changes anything without your say-so, and you can undo every change.': '它會根據簡短問答規劃課表,並根據實際紀錄進行調整。未經授權絕不自行變更,且隨時可以復原修改。',
+ 'Routines, exercises, sets and reps, your weekly schedule and progression settings.': '課表、動作、組數與次數、你的每週排程以及漸進超負荷設定。',
+ 'Your logged training': '你記錄的訓練',
+ 'Sets you logged in the review window: weights, reps, times, effort ratings, how long sessions took, and your session notes.': '你在檢討期間內記錄的各組資料:重量、次數、時間、強度評分、每次訓練的時長,以及你的訓練總結筆記。',
+ 'Weigh-ins from the same window, and your goal weight if you set one.': '同一期間的體重紀錄,以及你設定的目標體重(如有)。',
+ 'What you tell the Coach': '你告訴教練的內容',
+ 'Your intake answers, including any limitations or injuries you describe.': '你在初始問答中的回答,包括你描述的任何限制或傷病。',
+ 'A few preferences': '幾項偏好設定',
+ 'Your unit, your language and which effort scale you log.': '你的單位、語言,以及你記錄強度所用的量表。',
'Likes: {0}': '偏好:{0}',
'Limits': '限制條件',
'Limits: {0}': '限制:{0}',
diff --git a/frontend/src/locales/zh.js b/frontend/src/locales/zh.js
index 07765586e..0e9aaf322 100644
--- a/frontend/src/locales/zh.js
+++ b/frontend/src/locales/zh.js
@@ -1102,6 +1102,14 @@ export default {
'Imported! {0} routines are in your plan and your week is set. See you at the next session.': '已导入!{0} 个训练日已加入你的计划,本周也安排好了。下次训练见。',
'Imported! {0} routines are in your plan. Your week is unchanged; schedule them whenever you like.': '已导入!{0} 个训练日已加入你的计划。本周安排不变,你想什么时候排都行。',
'It designs your plan from a few answers and adjusts it from what you actually log. It never changes anything without your say-so, and you can undo every change.': '它根据几个回答设计你的计划,并根据你的实际记录进行调整。未经你同意它不会更改任何内容,每项更改都可以撤销。',
+ 'Routines, exercises, sets and reps, your weekly schedule and progression settings.': '训练计划、动作、组数和次数、你的每周日程以及进阶设置。',
+ 'Your logged training': '你记录的训练',
+ 'Sets you logged in the review window: weights, reps, times, effort ratings, how long sessions took, and your session notes.': '你在复盘周期内记录的各组数据:重量、次数、时间、强度评分、每次训练的时长,以及你的训练备注。',
+ 'Weigh-ins from the same window, and your goal weight if you set one.': '同一时段的称重记录,以及你设定的目标体重(如有)。',
+ 'What you tell the Coach': '你告诉教练的内容',
+ 'Your intake answers, including any limitations or injuries you describe.': '你在初始问卷中的回答,包括你描述的任何限制或伤病。',
+ 'A few preferences': '几项偏好设置',
+ 'Your unit, your language and which effort scale you log.': '你的单位、语言,以及你记录强度所用的标度。',
'Likes: {0}': '喜欢:{0}',
'Limits': '限制',
'Limits: {0}': '限制:{0}',
diff --git a/frontend/src/views/CoachIntake.jsx b/frontend/src/views/CoachIntake.jsx
index 99eef2101..11639ed47 100644
--- a/frontend/src/views/CoachIntake.jsx
+++ b/frontend/src/views/CoachIntake.jsx
@@ -255,8 +255,8 @@ function Consent({ onAgree, onDecline }) {
<div className="ob-sub" style={{ marginTop: 0 }}>{t('What it reads')}</div>
<div className="ob-consent">
{(info?.categories || Object.keys(CATEGORY_TEXT)).map(k => {
- const [title, sub] = CATEGORY_TEXT[k] || [k, '']
- return <div key={k} className="ob-consent-row"><Icon name="check" /><div><b>{t(title)}</b><span>{t(sub)}</span></div></div>
+ const [title, sub] = CATEGORY_TEXT[k]?.() || [k, '']
+ return <div key={k} className="ob-consent-row"><Icon name="check" /><div><b>{title}</b><span>{sub}</span></div></div>
})}
</div>
<div className="ob-fine">
diff --git a/frontend/src/views/CoachIntake.test.jsx b/frontend/src/views/CoachIntake.test.jsx
index 639f8d93d..be18777ac 100644
--- a/frontend/src/views/CoachIntake.test.jsx
+++ b/frontend/src/views/CoachIntake.test.jsx
@@ -15,7 +15,8 @@ import { createRoot } from 'react-dom/client'
import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'
import CoachIntake from './CoachIntake.jsx'
import { requestPlan, disclosure } from '../lib/coach-api.js'
-import { CONSENT_VERSION } from '../lib/coach.js'
+import { CONSENT_VERSION, CATEGORY_TEXT } from '../lib/coach.js'
+import { setLang } from '../lib/i18n.js'
globalThis.IS_REACT_ACT_ENVIRONMENT = true
@@ -211,6 +212,19 @@ describe('CoachIntake — the consent screen', () => {
expect(all('.ob-consent-row').map(r => r.querySelector('b').textContent)).toEqual(['Your plan', 'sleep'])
})
+ it('names every category in the app’s language', async () => {
+ // The screen used to pass these lines to t() as variables, which check-source-strings cannot
+ // see, and eight of the ten had no translation in any pack.
+ const english = Object.values(CATEGORY_TEXT).map(text => text())
+ const de = (await import('../locales/de.js')).default
+ await setLang('de')
+ try {
+ mount()
+ expect(all('.ob-consent-row').map(r => [r.querySelector('b').textContent, r.querySelector('span').textContent]))
+ .toEqual(english.map(([title, sub]) => [de[title], de[sub]]))
+ } finally { await setLang('en') }
+ })
+
it('is skipped entirely once consent is on file', () => {
mocks.S.coach = { consent: { agreedAt: '2026-09-01T00:00:00Z', version: CONSENT_VERSION }, profile: null, chat: [] }
mount()
diff --git a/frontend/src/views/CoachSetup.flow.test.jsx b/frontend/src/views/CoachSetup.flow.test.jsx
index 88a5ff3a2..40f98351a 100644
--- a/frontend/src/views/CoachSetup.flow.test.jsx
+++ b/frontend/src/views/CoachSetup.flow.test.jsx
@@ -171,7 +171,7 @@ describe('CoachSetup — bringing your own key', () => {
await mount(); await openByok()
const section = all('.sect').find(s => s.querySelector('.sect-t')?.textContent === 'What leaves this phone')
expect([...section.querySelectorAll('.lrow-t')].map(t => t.textContent))
- .toEqual(DATA_CATEGORIES.map(k => CATEGORY_TEXT[k][0]))
+ .toEqual(DATA_CATEGORIES.map(k => CATEGORY_TEXT[k]()[0]))
expect(host.textContent).toContain('Each request goes straight to api.anthropic.com with your key')
})
diff --git a/frontend/src/views/CoachSetup.jsx b/frontend/src/views/CoachSetup.jsx
index 3c9fae552..92b8f64f7 100644
--- a/frontend/src/views/CoachSetup.jsx
+++ b/frontend/src/views/CoachSetup.jsx
@@ -177,8 +177,8 @@ export default function CoachSetup() {
<Section title={t('What leaves this phone')}>
{DATA_CATEGORIES.map(k => {
- const [title, sub] = CATEGORY_TEXT[k] || [k, '']
- return <Row key={k} icon="check" iconTint="var(--acc)" title={t(title)} subtitle={t(sub)} />
+ const [title, sub] = CATEGORY_TEXT[k]?.() || [k, '']
+ return <Row key={k} icon="check" iconTint="var(--acc)" title={title} subtitle={sub} />
})}
</Section>
<p className="sect-f" style={{ marginTop: -18, marginBottom: 22, lineHeight: 1.5 }}>