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 intake's goal and experience lines in the app's language

Boris 'B' Kurktchiev00b6b2d4d3bf
diff --git a/frontend/src/locales/ar.js b/frontend/src/locales/ar.js
index f05ee7410..eba2471ff 100644
--- a/frontend/src/locales/ar.js
+++ b/frontend/src/locales/ar.js
@@ -1121,6 +1121,14 @@ export default {
'New to lifting': 'جديد في رفع الأثقال',
'Coming back after a break': 'عائد بعد انقطاع',
'Training regularly': 'أتدرب بانتظام',
+ 'Heavier lifts, lower reps.': 'أوزان أثقل وتكرارات أقل.',
+ 'Volume and progression.': 'حجم التدريب والتدرّج.',
+ 'Balanced, sustainable training.': 'تدريب متوازن ومستدام.',
+ 'Keep strength while leaning out.': 'الحفاظ على القوة مع إنقاص الدهون.',
+ 'Higher reps, less rest, cardio.': 'تكرارات أكثر، راحة أقل، كارديو.',
+ 'First months in the gym.': 'الأشهر الأولى في الجيم.',
+ 'You know the movements; the numbers need rebuilding.': 'تعرف الحركات؛ والأرقام تحتاج إلى إعادة بناء.',
+ 'Consistent for a while now.': 'منتظم منذ فترة.',
'Back muscles': 'عضلات الظهر',
'{0}: what’s planned': '{0}: ما هو مخطط',
'What should change?': 'ما الذي يجب أن يتغير؟',
diff --git a/frontend/src/locales/de.js b/frontend/src/locales/de.js
index 9180b0da9..efcb95ebc 100644
--- a/frontend/src/locales/de.js
+++ b/frontend/src/locales/de.js
@@ -1269,6 +1269,14 @@ export default {
'New to lifting': 'Neu im Krafttraining',
'Coming back after a break': 'Zurück nach einer Pause',
'Training regularly': 'Trainiere regelmäßig',
+ 'Heavier lifts, lower reps.': 'Schwerere Gewichte, weniger Wiederholungen.',
+ 'Volume and progression.': 'Volumen und Progression.',
+ 'Balanced, sustainable training.': 'Ausgewogenes, nachhaltiges Training.',
+ 'Keep strength while leaning out.': 'Kraft halten, während du schlanker wirst.',
+ 'Higher reps, less rest, cardio.': 'Mehr Wiederholungen, kürzere Pausen, Cardio.',
+ 'First months in the gym.': 'Die ersten Monate im Studio.',
+ 'You know the movements; the numbers need rebuilding.': 'Du kennst die Bewegungen; die Kraft muss erst wieder aufgebaut werden.',
+ 'Consistent for a while now.': 'Schon eine Weile konstant dabei.',
'Back muscles': 'Rücken',
'{0}: what’s planned': '{0}: geplant',
'What should change?': 'Was soll anders sein?',
diff --git a/frontend/src/locales/es.js b/frontend/src/locales/es.js
index 5a68e3645..b76a71b35 100644
--- a/frontend/src/locales/es.js
+++ b/frontend/src/locales/es.js
@@ -1249,6 +1249,14 @@ export default {
'New to lifting': 'Nuevo en el gimnasio',
'Coming back after a break': 'Vuelvo tras un parón',
'Training regularly': 'Entreno con regularidad',
+ 'Heavier lifts, lower reps.': 'Cargas más pesadas, menos repeticiones.',
+ 'Volume and progression.': 'Volumen y progresión.',
+ 'Balanced, sustainable training.': 'Entrenamiento equilibrado y sostenible.',
+ 'Keep strength while leaning out.': 'Mantener la fuerza mientras te defines.',
+ 'Higher reps, less rest, cardio.': 'Más repeticiones, menos descanso, cardio.',
+ 'First months in the gym.': 'Los primeros meses en el gimnasio.',
+ 'You know the movements; the numbers need rebuilding.': 'Conoces los movimientos; hay que recuperar las marcas.',
+ 'Consistent for a while now.': 'Constante desde hace tiempo.',
'Back muscles': 'Espalda',
'{0}: what’s planned': '{0}: lo previsto',
'What should change?': '¿Qué debería cambiar?',
diff --git a/frontend/src/locales/fr.js b/frontend/src/locales/fr.js
index 86315fe02..643f85a95 100644
--- a/frontend/src/locales/fr.js
+++ b/frontend/src/locales/fr.js
@@ -1249,6 +1249,14 @@ export default {
'New to lifting': 'Débutant en muscu',
'Coming back after a break': 'Je reprends après une pause',
'Training regularly': 'Je m’entraîne régulièrement',
+ 'Heavier lifts, lower reps.': 'Charges plus lourdes, moins de répétitions.',
+ 'Volume and progression.': 'Volume et progression.',
+ 'Balanced, sustainable training.': 'Entraînement équilibré et durable.',
+ 'Keep strength while leaning out.': 'Garder sa force en s’affinant.',
+ 'Higher reps, less rest, cardio.': 'Plus de répétitions, moins de repos, du cardio.',
+ 'First months in the gym.': 'Les premiers mois en salle.',
+ 'You know the movements; the numbers need rebuilding.': 'Les mouvements sont connus ; les charges sont à remonter.',
+ 'Consistent for a while now.': 'Régulier depuis un moment.',
'Back muscles': 'Dos',
'{0}: what’s planned': '{0} : prévu',
'What should change?': 'Que faut-il changer ?',
diff --git a/frontend/src/locales/hi.js b/frontend/src/locales/hi.js
index 71bdbf9e8..556d1ed0b 100644
--- a/frontend/src/locales/hi.js
+++ b/frontend/src/locales/hi.js
@@ -1249,6 +1249,14 @@ export default {
'New to lifting': 'वेट ट्रेनिंग में नया',
'Coming back after a break': 'ब्रेक के बाद वापसी',
'Training regularly': 'नियमित प्रशिक्षण',
+ 'Heavier lifts, lower reps.': 'भारी वज़न, कम रेप्स।',
+ 'Volume and progression.': 'वॉल्यूम और प्रोग्रेशन।',
+ 'Balanced, sustainable training.': 'संतुलित, टिकाऊ ट्रेनिंग।',
+ 'Keep strength while leaning out.': 'चर्बी घटाते हुए ताक़त बनाए रखना।',
+ 'Higher reps, less rest, cardio.': 'ज़्यादा रेप्स, कम आराम, कार्डियो।',
+ 'First months in the gym.': 'जिम में पहले कुछ महीने।',
+ 'You know the movements; the numbers need rebuilding.': 'आप मूवमेंट जानते हैं; वज़न फिर से बढ़ाना है।',
+ 'Consistent for a while now.': 'कुछ समय से नियमित।',
'Back muscles': 'पीठ',
'{0}: what’s planned': '{0}: योजना',
'What should change?': 'क्या बदलना चाहिए?',
diff --git a/frontend/src/locales/hu.js b/frontend/src/locales/hu.js
index 3b10dcc21..26cf31846 100644
--- a/frontend/src/locales/hu.js
+++ b/frontend/src/locales/hu.js
@@ -1332,6 +1332,14 @@ export default {
'New to lifting': 'Kezdő a súlyzós edzésben',
'Coming back after a break': 'Visszatérés szünet után',
'Training regularly': 'Rendszeresen edzem',
+ 'Heavier lifts, lower reps.': 'Nehezebb súlyok, kevesebb ismétlés.',
+ 'Volume and progression.': 'Volumen és progresszió.',
+ 'Balanced, sustainable training.': 'Kiegyensúlyozott, fenntartható edzés.',
+ 'Keep strength while leaning out.': 'Az erő megtartása, miközben szálkásodsz.',
+ 'Higher reps, less rest, cardio.': 'Több ismétlés, kevesebb pihenő, kardió.',
+ 'First months in the gym.': 'Az első hónapok a teremben.',
+ 'You know the movements; the numbers need rebuilding.': 'Ismered a mozdulatokat; az erőt kell újra felépíteni.',
+ 'Consistent for a while now.': 'Már egy ideje kitartóan csinálod.',
'Back muscles': 'Hátizmok',
'{0}: what’s planned': '{0}: tervezett',
'What should change?': 'Mi változzon?',
diff --git a/frontend/src/locales/it.js b/frontend/src/locales/it.js
index 2134f9532..b3d53bc44 100644
--- a/frontend/src/locales/it.js
+++ b/frontend/src/locales/it.js
@@ -1249,6 +1249,14 @@ export default {
'New to lifting': 'Nuovo alla sala pesi',
'Coming back after a break': 'Torno dopo una pausa',
'Training regularly': 'Mi alleno regolarmente',
+ 'Heavier lifts, lower reps.': 'Carichi più pesanti, meno ripetizioni.',
+ 'Volume and progression.': 'Volume e progressione.',
+ 'Balanced, sustainable training.': 'Allenamento equilibrato e sostenibile.',
+ 'Keep strength while leaning out.': 'Mantenere la forza mentre ti definisci.',
+ 'Higher reps, less rest, cardio.': 'Più ripetizioni, meno recupero, cardio.',
+ 'First months in the gym.': 'I primi mesi in palestra.',
+ 'You know the movements; the numbers need rebuilding.': 'Conosci i movimenti; i carichi vanno recuperati.',
+ 'Consistent for a while now.': 'Costante ormai da un po’.',
'Back muscles': 'Schiena',
'{0}: what’s planned': '{0}: in programma',
'What should change?': 'Cosa dovrebbe cambiare?',
diff --git a/frontend/src/locales/ko.js b/frontend/src/locales/ko.js
index ce681eafa..1261345b7 100644
--- a/frontend/src/locales/ko.js
+++ b/frontend/src/locales/ko.js
@@ -1249,6 +1249,14 @@ export default {
'New to lifting': '웨이트 초보',
'Coming back after a break': '휴식 후 복귀',
'Training regularly': '꾸준히 훈련 중',
+ 'Heavier lifts, lower reps.': '더 무거운 중량, 더 적은 횟수.',
+ 'Volume and progression.': '볼륨과 점진적 증가.',
+ 'Balanced, sustainable training.': '균형 잡히고 꾸준히 이어갈 수 있는 훈련.',
+ 'Keep strength while leaning out.': '체지방을 줄이면서 근력 유지.',
+ 'Higher reps, less rest, cardio.': '더 많은 횟수, 더 짧은 휴식, 유산소.',
+ 'First months in the gym.': '헬스장에서의 첫 몇 달.',
+ 'You know the movements; the numbers need rebuilding.': '동작은 알고 있지만, 중량은 다시 끌어올려야 합니다.',
+ 'Consistent for a while now.': '한동안 꾸준히 해 왔습니다.',
'Back muscles': '등',
'{0}: what’s planned': '{0}: 계획',
'What should change?': '무엇을 바꿀까요?',
diff --git a/frontend/src/locales/pl.js b/frontend/src/locales/pl.js
index cd22ce911..4b84e4b2a 100644
--- a/frontend/src/locales/pl.js
+++ b/frontend/src/locales/pl.js
@@ -1249,6 +1249,14 @@ export default {
'New to lifting': 'Nowy na siłowni',
'Coming back after a break': 'Wracam po przerwie',
'Training regularly': 'Trenuję regularnie',
+ 'Heavier lifts, lower reps.': 'Większe ciężary, mniej powtórzeń.',
+ 'Volume and progression.': 'Objętość i progresja.',
+ 'Balanced, sustainable training.': 'Zrównoważony trening na dłuższą metę.',
+ 'Keep strength while leaning out.': 'Utrzymać siłę podczas redukcji.',
+ 'Higher reps, less rest, cardio.': 'Więcej powtórzeń, mniej odpoczynku, cardio.',
+ 'First months in the gym.': 'Pierwsze miesiące na siłowni.',
+ 'You know the movements; the numbers need rebuilding.': 'Znasz ruchy; wyniki trzeba odbudować.',
+ 'Consistent for a while now.': 'Regularnie od dłuższego czasu.',
'Back muscles': 'Plecy',
'{0}: what’s planned': '{0}: w planie',
'What should change?': 'Co powinno się zmienić?',
diff --git a/frontend/src/locales/pt-BR.js b/frontend/src/locales/pt-BR.js
index c2ee62f89..39d0b31e6 100644
--- a/frontend/src/locales/pt-BR.js
+++ b/frontend/src/locales/pt-BR.js
@@ -734,6 +734,14 @@ export const PT_BR_OVERRIDES = {
'New to lifting': 'Novo na musculação',
'Coming back after a break': 'Voltando depois de uma pausa',
'Training regularly': 'Treino regularmente',
+ 'Heavier lifts, lower reps.': 'Cargas mais pesadas, menos repetições.',
+ 'Volume and progression.': 'Volume e progressão.',
+ 'Balanced, sustainable training.': 'Treino equilibrado e sustentável.',
+ 'Keep strength while leaning out.': 'Manter a força durante a definição.',
+ 'Higher reps, less rest, cardio.': 'Mais repetições, menos descanso, cardio.',
+ 'First months in the gym.': 'Os primeiros meses na academia.',
+ 'You know the movements; the numbers need rebuilding.': 'Você conhece os movimentos; as cargas precisam voltar a subir.',
+ 'Consistent for a while now.': 'Consistente há algum tempo.',
'Back muscles': 'Costas',
'{0}: what’s planned': '{0}: previsto',
diff --git a/frontend/src/locales/pt.js b/frontend/src/locales/pt.js
index 9b70926d4..7ea05ac9f 100644
--- a/frontend/src/locales/pt.js
+++ b/frontend/src/locales/pt.js
@@ -1249,6 +1249,14 @@ export default {
'New to lifting': 'Novo na musculação',
'Coming back after a break': 'A voltar depois de uma pausa',
'Training regularly': 'Treino regularmente',
+ 'Heavier lifts, lower reps.': 'Cargas mais pesadas, menos repetições.',
+ 'Volume and progression.': 'Volume e progressão.',
+ 'Balanced, sustainable training.': 'Treino equilibrado e sustentável.',
+ 'Keep strength while leaning out.': 'Manter a força durante a definição.',
+ 'Higher reps, less rest, cardio.': 'Mais repetições, menos descanso, cardio.',
+ 'First months in the gym.': 'Os primeiros meses no ginásio.',
+ 'You know the movements; the numbers need rebuilding.': 'Conheces os movimentos; as cargas têm de voltar a subir.',
+ 'Consistent for a while now.': 'Consistente há algum tempo.',
'Back muscles': 'Costas',
'{0}: what’s planned': '{0}: previsto',
'What should change?': 'O que deve mudar?',
diff --git a/frontend/src/locales/ru.js b/frontend/src/locales/ru.js
index c01731c59..b60ef8fe4 100644
--- a/frontend/src/locales/ru.js
+++ b/frontend/src/locales/ru.js
@@ -1220,6 +1220,14 @@ export default {
'New to lifting': 'Новичок в зале',
'Coming back after a break': 'Возвращаюсь после перерыва',
'Training regularly': 'Тренируюсь регулярно',
+ 'Heavier lifts, lower reps.': 'Больший вес, меньше повторений.',
+ 'Volume and progression.': 'Объём и прогрессия.',
+ 'Balanced, sustainable training.': 'Сбалансированные тренировки на долгий срок.',
+ 'Keep strength while leaning out.': 'Сохранить силу на сушке.',
+ 'Higher reps, less rest, cardio.': 'Больше повторений, меньше отдыха, кардио.',
+ 'First months in the gym.': 'Первые месяцы в зале.',
+ 'You know the movements; the numbers need rebuilding.': 'Движения вы знаете; цифры нужно восстановить.',
+ 'Consistent for a while now.': 'Стабильно уже какое-то время.',
'Back muscles': 'Спина',
'{0}: what’s planned': '{0}: по плану',
'What should change?': 'Что изменить?',
diff --git a/frontend/src/locales/th.js b/frontend/src/locales/th.js
index c2b6bd405..74010328c 100644
--- a/frontend/src/locales/th.js
+++ b/frontend/src/locales/th.js
@@ -1340,6 +1340,14 @@ export default {
'New to lifting': 'เพิ่งเริ่มยกน้ำหนัก',
'Coming back after a break': 'กลับมาหลังพัก',
'Training regularly': 'ฝึกเป็นประจำ',
+ 'Heavier lifts, lower reps.': 'น้ำหนักมากขึ้น จำนวนครั้งน้อยลง',
+ 'Volume and progression.': 'ปริมาณงานและการเพิ่มระดับ',
+ 'Balanced, sustainable training.': 'การฝึกที่สมดุลและทำได้ต่อเนื่อง',
+ 'Keep strength while leaning out.': 'รักษาความแข็งแรงระหว่างลดไขมัน',
+ 'Higher reps, less rest, cardio.': 'จำนวนครั้งมากขึ้น พักน้อยลง และคาร์ดิโอ',
+ 'First months in the gym.': 'ช่วงไม่กี่เดือนแรกในยิม',
+ 'You know the movements; the numbers need rebuilding.': 'คุณรู้จักท่าอยู่แล้ว ส่วนน้ำหนักต้องค่อย ๆ เพิ่มกลับขึ้นมา',
+ 'Consistent for a while now.': 'ฝึกสม่ำเสมอมาสักพักแล้ว',
'Back muscles': 'กล้ามเนื้อหลัง',
'{0}: what’s planned': '{0}: ตามแผน',
'What should change?': 'ควรเปลี่ยนอะไร',
diff --git a/frontend/src/locales/tr.js b/frontend/src/locales/tr.js
index e19e6a900..77550538f 100644
--- a/frontend/src/locales/tr.js
+++ b/frontend/src/locales/tr.js
@@ -1249,6 +1249,14 @@ export default {
'New to lifting': 'Ağırlığa yeni başlayan',
'Coming back after a break': 'Aradan sonra dönüyorum',
'Training regularly': 'Düzenli antrenman yapıyorum',
+ 'Heavier lifts, lower reps.': 'Daha ağır kaldırışlar, daha az tekrar.',
+ 'Volume and progression.': 'Hacim ve ilerleme.',
+ 'Balanced, sustainable training.': 'Dengeli, sürdürülebilir antrenman.',
+ 'Keep strength while leaning out.': 'Yağ yakarken gücü korumak.',
+ 'Higher reps, less rest, cardio.': 'Daha çok tekrar, daha az dinlenme, kardiyo.',
+ 'First months in the gym.': 'Salondaki ilk aylar.',
+ 'You know the movements; the numbers need rebuilding.': 'Hareketleri biliyorsun; rakamları yeniden yükseltmek gerekiyor.',
+ 'Consistent for a while now.': 'Bir süredir düzenli.',
'Back muscles': 'Sırt',
'{0}: what’s planned': '{0}: planlanan',
'What should change?': 'Ne değişmeli?',
diff --git a/frontend/src/locales/uk.js b/frontend/src/locales/uk.js
index 30854a11d..92b1a8a71 100644
--- a/frontend/src/locales/uk.js
+++ b/frontend/src/locales/uk.js
@@ -1053,6 +1053,14 @@ export default {
'New to lifting': 'Новачок у залі',
'Coming back after a break': 'Повертаюся після перерви',
'Training regularly': 'Тренуюся регулярно',
+ 'Heavier lifts, lower reps.': 'Більша вага, менше повторень.',
+ 'Volume and progression.': 'Обсяг і прогресія.',
+ 'Balanced, sustainable training.': 'Збалансовані тренування надовго.',
+ 'Keep strength while leaning out.': 'Зберегти силу на сушці.',
+ 'Higher reps, less rest, cardio.': 'Більше повторень, менше відпочинку, кардіо.',
+ 'First months in the gym.': 'Перші місяці в залі.',
+ 'You know the movements; the numbers need rebuilding.': 'Рухи ти знаєш; цифри треба відновити.',
+ 'Consistent for a while now.': 'Стабільно вже якийсь час.',
'Back muscles': 'Спина',
'{0}: what’s planned': '{0}: за планом',
'What should change?': 'Що змінити?',
diff --git a/frontend/src/locales/zh-TW.js b/frontend/src/locales/zh-TW.js
index 2f299548f..5d8240f19 100644
--- a/frontend/src/locales/zh-TW.js
+++ b/frontend/src/locales/zh-TW.js
@@ -1241,6 +1241,14 @@ export default {
'New to lifting': '重訓新手初學者',
'Coming back after a break': '停練一段時間回歸',
'Training regularly': '規律訓練的老手',
+ 'Heavier lifts, lower reps.': '更大的重量,更少的次數。',
+ 'Volume and progression.': '總訓練量與漸進超負荷。',
+ 'Balanced, sustainable training.': '均衡、可持續的訓練。',
+ 'Keep strength while leaning out.': '減脂的同時保持肌力。',
+ 'Higher reps, less rest, cardio.': '次數更多、休息更少,再加上有氧。',
+ 'First months in the gym.': '剛進健身房的頭幾個月。',
+ 'You know the movements; the numbers need rebuilding.': '動作你都熟悉;重量需要重新練回來。',
+ 'Consistent for a while now.': '已經持續訓練一段時間了。',
'Back muscles': '背部肌群',
'{0}: what’s planned': '{0}:排定項目',
'What should change?': '想要調整什麼?',
diff --git a/frontend/src/locales/zh.js b/frontend/src/locales/zh.js
index 0e9aaf322..043b8bf01 100644
--- a/frontend/src/locales/zh.js
+++ b/frontend/src/locales/zh.js
@@ -1249,6 +1249,14 @@ export default {
'New to lifting': '力量训练新手',
'Coming back after a break': '休息后回归',
'Training regularly': '规律训练中',
+ 'Heavier lifts, lower reps.': '更大的重量,更少的次数。',
+ 'Volume and progression.': '训练总量与进阶。',
+ 'Balanced, sustainable training.': '均衡、可持续的训练。',
+ 'Keep strength while leaning out.': '减脂的同时保持力量。',
+ 'Higher reps, less rest, cardio.': '次数更多、休息更少,外加有氧。',
+ 'First months in the gym.': '刚进健身房的头几个月。',
+ 'You know the movements; the numbers need rebuilding.': '动作你都熟悉;重量需要重新练回来。',
+ 'Consistent for a while now.': '已经坚持一段时间了。',
'Back muscles': '背部',
'{0}: what’s planned': '{0}:计划',
'What should change?': '需要改什么?',
diff --git a/frontend/src/views/CoachIntake.jsx b/frontend/src/views/CoachIntake.jsx
index 11639ed47..6f665cc11 100644
--- a/frontend/src/views/CoachIntake.jsx
+++ b/frontend/src/views/CoachIntake.jsx
@@ -23,17 +23,21 @@ import Icon from '../components/Icon.jsx'
import { Button, TextArea } from '../components/ui.jsx'
import '../coach.css'
+// Each choice's text returns [title, detail] in the current language, through literal t() calls
+// so check-source-strings sees every key, as CATEGORY_TEXT in lib/coach.js does. When the screen
+// passed these to t() as variables the checker could not see them, and the eight details had no
+// translation in any pack.
const GOALS = [
- ['strength', 'Get stronger', 'Heavier lifts, lower reps.', 'barbell'],
- ['muscle', 'Build muscle', 'Volume and progression.', 'arm'],
- ['general', 'General fitness', 'Balanced, sustainable training.', 'heart'],
- ['fatloss', 'Lose fat', 'Keep strength while leaning out.', 'flame'],
- ['endurance', 'Endurance', 'Higher reps, less rest, cardio.', 'figureRun']
+ ['strength', () => [t('Get stronger'), t('Heavier lifts, lower reps.')], 'barbell'],
+ ['muscle', () => [t('Build muscle'), t('Volume and progression.')], 'arm'],
+ ['general', () => [t('General fitness'), t('Balanced, sustainable training.')], 'heart'],
+ ['fatloss', () => [t('Lose fat'), t('Keep strength while leaning out.')], 'flame'],
+ ['endurance', () => [t('Endurance'), t('Higher reps, less rest, cardio.')], 'figureRun']
]
const EXPERIENCE = [
- ['new', 'New to lifting', 'First months in the gym.', 'sparkles'],
- ['returning', 'Coming back after a break', 'You know the movements; the numbers need rebuilding.', 'reset'],
- ['regular', 'Training regularly', 'Consistent for a while now.', 'trophy']
+ ['new', () => [t('New to lifting'), t('First months in the gym.')], 'sparkles'],
+ ['returning', () => [t('Coming back after a break'), t('You know the movements; the numbers need rebuilding.')], 'reset'],
+ ['regular', () => [t('Training regularly'), t('Consistent for a while now.')], 'trophy']
]
// Equipment options come from the library's own taxonomy, most common first, so every choice
@@ -140,7 +144,7 @@ export default function CoachIntake() {
<h1 className="ob-h">{t('What are you training for?')}</h1>
<p className="ob-p">{t('The Coach builds the whole plan around this.')}</p>
<div className="ob-choices">
- {GOALS.map(([v, label, sub, icon]) => <Choice key={v} on={p.goal === v} icon={icon} title={t(label)} sub={t(sub)} onClick={() => set({ goal: v })} />)}
+ {GOALS.map(([v, text, icon]) => { const [title, sub] = text(); return <Choice key={v} on={p.goal === v} icon={icon} title={title} sub={sub} onClick={() => set({ goal: v })} /> })}
</div>
</>}
@@ -149,7 +153,7 @@ export default function CoachIntake() {
<h1 className="ob-h">{t('Where are you starting from?')}</h1>
<p className="ob-p">{t('Sets the pace of progression, and how much the Coach assumes you know.')}</p>
<div className="ob-choices">
- {EXPERIENCE.map(([v, label, sub, icon]) => <Choice key={v} on={p.experience === v} icon={icon} title={t(label)} sub={t(sub)} onClick={() => set({ experience: v })} />)}
+ {EXPERIENCE.map(([v, text, icon]) => { const [title, sub] = text(); return <Choice key={v} on={p.experience === v} icon={icon} title={title} sub={sub} onClick={() => set({ experience: v })} /> })}
</div>
</>}
diff --git a/frontend/src/views/CoachIntake.test.jsx b/frontend/src/views/CoachIntake.test.jsx
index be18777ac..b13dba67c 100644
--- a/frontend/src/views/CoachIntake.test.jsx
+++ b/frontend/src/views/CoachIntake.test.jsx
@@ -257,6 +257,34 @@ describe('CoachIntake — the two answers that gate the flow', () => {
expect(eyebrow()).toBe('Schedule')
})
+ it('names and describes every goal and starting point in the app’s language', async () => {
+ // The screen used to pass these lines to t() as variables, which check-source-strings cannot
+ // see, and the eight descriptions had no translation in any pack.
+ const goals = [
+ ['Get stronger', 'Heavier lifts, lower reps.'],
+ ['Build muscle', 'Volume and progression.'],
+ ['General fitness', 'Balanced, sustainable training.'],
+ ['Lose fat', 'Keep strength while leaning out.'],
+ ['Endurance', 'Higher reps, less rest, cardio.']
+ ]
+ const experience = [
+ ['New to lifting', 'First months in the gym.'],
+ ['Coming back after a break', 'You know the movements; the numbers need rebuilding.'],
+ ['Training regularly', 'Consistent for a while now.']
+ ]
+ const choices = () => all('.ob-choice').map(c => [c.querySelector('.ob-choice-t').firstChild.textContent, c.querySelector('.ob-choice-s').textContent])
+ const de = (await import('../locales/de.js')).default
+ mocks.S.coach = { consent: { agreedAt: '2026-09-01T00:00:00Z', version: CONSENT_VERSION }, profile: null, chat: [] }
+ await setLang('de')
+ try {
+ mount()
+ expect(choices()).toEqual(goals.map(([title, sub]) => [de[title], de[sub]]))
+ act(() => host.querySelector('.ob-choice').click())
+ cont()
+ expect(choices()).toEqual(experience.map(([title, sub]) => [de[title], de[sub]]))
+ } finally { await setLang('en') }
+ })
+
it('refuses a session shorter than ten minutes', () => {
mount(); walkTo('Session length')
const [hours, minutes] = all('.ob-wheel')
diff --git a/frontend/src/views/CoachSetup.jsx b/frontend/src/views/CoachSetup.jsx
index 92b8f64f7..e0ffcdfa2 100644
--- a/frontend/src/views/CoachSetup.jsx
+++ b/frontend/src/views/CoachSetup.jsx
@@ -23,7 +23,8 @@ import { ConnectSheet } from './MobileOnboarding.jsx'
import Icon from '../components/Icon.jsx'
import { Section, Row, Button, TextField } from '../components/ui.jsx'
-const STEPS = ['Loading the exercise catalogue…', 'Checking the endpoint…', 'Ready']
+// Literal t() calls, so check-source-strings sees the three lines; t(s) over a list of keys hid them.
+const STEPS = () => [t('Loading the exercise catalogue…'), t('Checking the endpoint…'), t('Ready')]
// The phone calls the provider through CapacitorHttp, native networking that obeys the
// platform's cleartext rule, and Android refuses unencrypted http:// from apps
@@ -186,9 +187,9 @@ export default function CoachSetup() {
</p>
{step >= 0 && <div className="card">
- {STEPS.map((s, i) => <div key={s} className="row" style={{ gap: 8, padding: '3px 0', opacity: i > step ? .4 : 1 }}>
+ {STEPS().map((s, i) => <div key={s} className="row" style={{ gap: 8, padding: '3px 0', opacity: i > step ? .4 : 1 }}>
<span style={{ color: i < step || step === 2 ? 'var(--green)' : i === step ? 'var(--acc)' : 'var(--dim)' }}><Icon name={i < step || step === 2 ? 'check' : 'hourglass'} /></span>
- <span className="small">{t(s)}</span>
+ <span className="small">{s}</span>
</div>)}
</div>}