From e1fadadadb0cb872a2cf3e497fddc572d7c26f68 Mon Sep 17 00:00:00 2001 From: Duarte Santos Date: Sun, 30 Aug 2026 14:28:12 +0200 Subject: [PATCH] curated2: past-workout strings in all 14 languages; pt-BR guard re-fingerprinted --- frontend/src/lib/pt-br-locale.test.js | 6 +++--- frontend/src/locales/de.js | 12 ++++++++++++ frontend/src/locales/es.js | 12 ++++++++++++ frontend/src/locales/fr.js | 12 ++++++++++++ frontend/src/locales/hi.js | 12 ++++++++++++ frontend/src/locales/hu.js | 12 ++++++++++++ frontend/src/locales/it.js | 12 ++++++++++++ frontend/src/locales/ko.js | 12 ++++++++++++ frontend/src/locales/pl.js | 12 ++++++++++++ frontend/src/locales/pt-BR.js | 5 +++++ frontend/src/locales/pt.js | 12 ++++++++++++ frontend/src/locales/ru.js | 12 ++++++++++++ frontend/src/locales/th.js | 12 ++++++++++++ frontend/src/locales/tr.js | 12 ++++++++++++ frontend/src/locales/zh.js | 12 ++++++++++++ 15 files changed, 164 insertions(+), 3 deletions(-) diff --git a/frontend/src/lib/pt-br-locale.test.js b/frontend/src/lib/pt-br-locale.test.js index b630209..3d8a051 100644 --- a/frontend/src/lib/pt-br-locale.test.js +++ b/frontend/src/lib/pt-br-locale.test.js @@ -27,11 +27,11 @@ describe('Brazilian Portuguese locale', () => { .sort(byCodeUnit) const fingerprint = createHash('sha256').update(JSON.stringify(inherited)).digest('hex') - expect(Object.keys(PT_BR_OVERRIDES)).toHaveLength(333) - expect(inherited).toHaveLength(448) + expect(Object.keys(PT_BR_OVERRIDES)).toHaveLength(338) + expect(inherited).toHaveLength(454) // If this fails, review the changed keys and wording before accepting a new hash. From // frontend/: node scripts/pt-br-inheritance-fingerprint.mjs --list - expect(fingerprint, 'pt-PT inheritance changed; review the inherited pt-BR wording').toBe('1f0f51af8e2e4b778db6d3d89cb7a6539091c9bc6e1cf0f864a590e586b03180') + expect(fingerprint, 'pt-PT inheritance changed; review the inherited pt-BR wording').toBe('549332a72036a9fda6e3c3b129ea57ae9863a6e87099135bc3ae638d2bd31a58') }) test('does not leak European Portuguese UI terms', () => { diff --git a/frontend/src/locales/de.js b/frontend/src/locales/de.js index b0cecb4..f575f91 100644 --- a/frontend/src/locales/de.js +++ b/frontend/src/locales/de.js @@ -734,4 +734,16 @@ export default { 'Rest-pause always trains as one warm-up set at this rep count, then one rest-pause work set — "Sets" is not used.': 'Rest-Pause trainiert immer als ein Aufwärmsatz mit dieser Wiederholungszahl und ein Rest-Pause-Arbeitssatz — „Sätze“ wird nicht verwendet.', 'Open progression settings': 'Progressions-Einstellungen öffnen', 'Hevy is rate-limiting requests — wait a minute and try again': 'Hevy drosselt die Anfragen — eine Minute warten und erneut versuchen', + // --- log a past workout --- + 'Log a past workout': 'Vergangenes Training eintragen', + 'Logged on the usual workout screen, without timers.': 'Wird auf dem normalen Trainingsbildschirm erfasst, nur ohne Timer.', + 'Date': 'Datum', + 'Start time': 'Startzeit', + 'Continue': 'Weiter', + 'Pick a day up to today': 'Wähle einen Tag bis heute', + 'There is already a workout on that day.': 'An diesem Tag gibt es bereits ein Training.', + 'Replace': 'Ersetzen', + 'Add as second workout': 'Als zweites Training hinzufügen', + 'Finish the current workout first.': 'Beende zuerst das laufende Training.', + 'Logging a past workout — no rest timers.': 'Vergangenes Training — keine Pausen-Timer.', } diff --git a/frontend/src/locales/es.js b/frontend/src/locales/es.js index 202cb34..e764ffe 100644 --- a/frontend/src/locales/es.js +++ b/frontend/src/locales/es.js @@ -717,4 +717,16 @@ export default { 'Rest-pause always trains as one warm-up set at this rep count, then one rest-pause work set — "Sets" is not used.': 'Rest-pause siempre entrena como una serie de calentamiento con estas reps y una serie de trabajo rest-pause — «Series» no se usa.', 'Open progression settings': 'Abrir ajustes de progresión', 'Hevy is rate-limiting requests — wait a minute and try again': 'Hevy está limitando las solicitudes: espera un minuto y vuelve a intentarlo', + // --- log a past workout --- + 'Log a past workout': 'Registrar un entrenamiento pasado', + 'Logged on the usual workout screen, without timers.': 'Se registra en la pantalla de entrenamiento habitual, sin temporizadores.', + 'Date': 'Fecha', + 'Start time': 'Hora de inicio', + 'Continue': 'Continuar', + 'Pick a day up to today': 'Elige un día hasta hoy', + 'There is already a workout on that day.': 'Ya hay un entrenamiento ese día.', + 'Replace': 'Reemplazar', + 'Add as second workout': 'Añadir como segundo entrenamiento', + 'Finish the current workout first.': 'Termina primero el entrenamiento actual.', + 'Logging a past workout — no rest timers.': 'Registrando un entrenamiento pasado — sin temporizadores de descanso.', } diff --git a/frontend/src/locales/fr.js b/frontend/src/locales/fr.js index e0ae387..ac038ae 100644 --- a/frontend/src/locales/fr.js +++ b/frontend/src/locales/fr.js @@ -717,4 +717,16 @@ export default { 'Rest-pause always trains as one warm-up set at this rep count, then one rest-pause work set — "Sets" is not used.': 'Le rest-pause s’entraîne toujours comme une série d’échauffement à ce nombre de reps, puis une série de travail rest-pause — « Séries » n’est pas utilisé.', 'Open progression settings': 'Ouvrir les réglages de progression', 'Hevy is rate-limiting requests — wait a minute and try again': 'Hevy limite les requêtes — attendez une minute puis réessayez', + // --- log a past workout --- + 'Log a past workout': 'Enregistrer une séance passée', + 'Logged on the usual workout screen, without timers.': 'Saisie sur l’écran d’entraînement habituel, sans minuteurs.', + 'Date': 'Date', + 'Start time': 'Heure de début', + 'Continue': 'Continuer', + 'Pick a day up to today': 'Choisis un jour jusqu’à aujourd’hui', + 'There is already a workout on that day.': 'Il y a déjà une séance ce jour-là.', + 'Replace': 'Remplacer', + 'Add as second workout': 'Ajouter comme deuxième séance', + 'Finish the current workout first.': 'Termine d’abord la séance en cours.', + 'Logging a past workout — no rest timers.': 'Séance passée — pas de minuteurs de repos.', } diff --git a/frontend/src/locales/hi.js b/frontend/src/locales/hi.js index 0de7f9c..0d927d9 100644 --- a/frontend/src/locales/hi.js +++ b/frontend/src/locales/hi.js @@ -717,4 +717,16 @@ export default { 'Rest-pause always trains as one warm-up set at this rep count, then one rest-pause work set — "Sets" is not used.': 'रेस्ट-पॉज़ हमेशा इसी रेप्स संख्या के एक वार्म-अप सेट और एक रेस्ट-पॉज़ वर्क सेट के रूप में किया जाता है — “सेट” का उपयोग नहीं होता।', 'Open progression settings': 'प्रगति सेटिंग्स खोलें', 'Hevy is rate-limiting requests — wait a minute and try again': 'Hevy अनुरोधों को सीमित कर रहा है — एक मिनट रुकें और फिर से कोशिश करें', + // --- log a past workout --- + 'Log a past workout': 'पिछला वर्कआउट दर्ज करें', + 'Logged on the usual workout screen, without timers.': 'सामान्य वर्कआउट स्क्रीन पर दर्ज होता है, बस टाइमर के बिना।', + 'Date': 'तारीख', + 'Start time': 'शुरू होने का समय', + 'Continue': 'जारी रखें', + 'Pick a day up to today': 'आज तक का कोई दिन चुनें', + 'There is already a workout on that day.': 'उस दिन पहले से एक वर्कआउट है।', + 'Replace': 'बदलें', + 'Add as second workout': 'दूसरे वर्कआउट के रूप में जोड़ें', + 'Finish the current workout first.': 'पहले मौजूदा वर्कआउट पूरा करें।', + 'Logging a past workout — no rest timers.': 'पिछला वर्कआउट दर्ज हो रहा है — कोई रेस्ट टाइमर नहीं।', } diff --git a/frontend/src/locales/hu.js b/frontend/src/locales/hu.js index 42d436a..b490a9d 100644 --- a/frontend/src/locales/hu.js +++ b/frontend/src/locales/hu.js @@ -722,4 +722,16 @@ export default { 'The next regular target continues from the last included workout.': 'A következő normál cél az utolsó beszámított edzéstől folytatódik.', 'Open progression settings': 'Progresszió beállításainak megnyitása', 'Hevy is rate-limiting requests — wait a minute and try again': 'A Hevy korlátozza a kéréseket — várj egy percet, és próbáld újra', + // --- log a past workout --- + 'Log a past workout': 'Korábbi edzés rögzítése', + 'Logged on the usual workout screen, without timers.': 'A szokásos edzésképernyőn rögzíted, csak időzítők nélkül.', + 'Date': 'Dátum', + 'Start time': 'Kezdés ideje', + 'Continue': 'Tovább', + 'Pick a day up to today': 'Válassz egy napot a mai napig', + 'There is already a workout on that day.': 'Azon a napon már van egy edzés.', + 'Replace': 'Csere', + 'Add as second workout': 'Hozzáadás második edzésként', + 'Finish the current workout first.': 'Előbb fejezd be a folyó edzést.', + 'Logging a past workout — no rest timers.': 'Korábbi edzés rögzítése — nincs pihenőidőzítő.', } diff --git a/frontend/src/locales/it.js b/frontend/src/locales/it.js index aba0c1d..7fd703c 100644 --- a/frontend/src/locales/it.js +++ b/frontend/src/locales/it.js @@ -717,4 +717,16 @@ export default { 'Rest-pause always trains as one warm-up set at this rep count, then one rest-pause work set — "Sets" is not used.': 'Il rest-pause si allena sempre come una serie di riscaldamento a queste ripetizioni e una serie di lavoro rest-pause — “Serie” non viene usato.', 'Open progression settings': 'Apri le impostazioni di progressione', 'Hevy is rate-limiting requests — wait a minute and try again': 'Hevy sta limitando le richieste: attendi un minuto e riprova', + // --- log a past workout --- + 'Log a past workout': 'Registra un allenamento passato', + 'Logged on the usual workout screen, without timers.': 'Si registra nella solita schermata di allenamento, solo senza timer.', + 'Date': 'Data', + 'Start time': 'Ora di inizio', + 'Continue': 'Continua', + 'Pick a day up to today': 'Scegli un giorno fino a oggi', + 'There is already a workout on that day.': 'C’è già un allenamento quel giorno.', + 'Replace': 'Sostituisci', + 'Add as second workout': 'Aggiungi come secondo allenamento', + 'Finish the current workout first.': 'Termina prima l’allenamento in corso.', + 'Logging a past workout — no rest timers.': 'Allenamento passato — nessun timer di recupero.', } diff --git a/frontend/src/locales/ko.js b/frontend/src/locales/ko.js index c8922e5..14c4d3a 100644 --- a/frontend/src/locales/ko.js +++ b/frontend/src/locales/ko.js @@ -717,4 +717,16 @@ export default { 'Rest-pause always trains as one warm-up set at this rep count, then one rest-pause work set — "Sets" is not used.': '레스트포즈는 항상 이 횟수의 워밍업 세트 하나와 레스트포즈 작업 세트 하나로 진행됩니다 — ‘세트’는 사용하지 않습니다.', 'Open progression settings': '진행 설정 열기', 'Hevy is rate-limiting requests — wait a minute and try again': 'Hevy가 요청을 제한하고 있습니다 — 잠시 기다렸다가 다시 시도하세요', + // --- log a past workout --- + 'Log a past workout': '지난 운동 기록', + 'Logged on the usual workout screen, without timers.': '평소 운동 화면에서 기록하며 타이머만 없습니다.', + 'Date': '날짜', + 'Start time': '시작 시간', + 'Continue': '계속', + 'Pick a day up to today': '오늘까지의 날짜를 선택하세요', + 'There is already a workout on that day.': '그날에 이미 운동이 있습니다.', + 'Replace': '바꾸기', + 'Add as second workout': '두 번째 운동으로 추가', + 'Finish the current workout first.': '먼저 진행 중인 운동을 마치세요.', + 'Logging a past workout — no rest timers.': '지난 운동 기록 중 — 휴식 타이머 없음.', } diff --git a/frontend/src/locales/pl.js b/frontend/src/locales/pl.js index 1a0b876..0483642 100644 --- a/frontend/src/locales/pl.js +++ b/frontend/src/locales/pl.js @@ -717,4 +717,16 @@ export default { 'Rest-pause always trains as one warm-up set at this rep count, then one rest-pause work set — "Sets" is not used.': 'Rest-pause zawsze trenuje się jako jedna seria rozgrzewkowa o tej liczbie powtórzeń i jedna seria robocza rest-pause — „Serie” nie są używane.', 'Open progression settings': 'Otwórz ustawienia progresji', 'Hevy is rate-limiting requests — wait a minute and try again': 'Hevy ogranicza liczbę zapytań — odczekaj minutę i spróbuj ponownie', + // --- log a past workout --- + 'Log a past workout': 'Zapisz miniony trening', + 'Logged on the usual workout screen, without timers.': 'Zapisujesz na zwykłym ekranie treningu, tylko bez minutników.', + 'Date': 'Data', + 'Start time': 'Godzina rozpoczęcia', + 'Continue': 'Dalej', + 'Pick a day up to today': 'Wybierz dzień do dzisiaj', + 'There is already a workout on that day.': 'Tego dnia jest już trening.', + 'Replace': 'Zastąp', + 'Add as second workout': 'Dodaj jako drugi trening', + 'Finish the current workout first.': 'Najpierw zakończ bieżący trening.', + 'Logging a past workout — no rest timers.': 'Zapisywanie minionego treningu — bez minutników przerw.', } diff --git a/frontend/src/locales/pt-BR.js b/frontend/src/locales/pt-BR.js index f5d1529..cf6072e 100644 --- a/frontend/src/locales/pt-BR.js +++ b/frontend/src/locales/pt-BR.js @@ -348,6 +348,11 @@ export const PT_BR_OVERRIDES = { 'Rest after each set of this exercise. Leave at 0 to use your default rest timer.': 'Descanso depois de cada série deste exercício. Deixe em 0 para usar o temporizador de descanso padrão.', 'Open progression settings': 'Abrir configurações de progressão', 'Hevy is rate-limiting requests — wait a minute and try again': 'O Hevy está limitando as solicitações — espere um minuto e tente novamente', + 'Log a past workout': 'Registrar um treino passado', + 'Logged on the usual workout screen, without timers.': 'Registrado na tela de treino habitual, só sem temporizadores.', + 'Pick a day up to today': 'Escolha um dia até hoje', + 'Finish the current workout first.': 'Termine primeiro o treino atual.', + 'Logging a past workout — no rest timers.': 'Registrando um treino passado — sem temporizadores de descanso.', } export default { ...pt, ...PT_BR_OVERRIDES } diff --git a/frontend/src/locales/pt.js b/frontend/src/locales/pt.js index 8343fd7..0acaa74 100644 --- a/frontend/src/locales/pt.js +++ b/frontend/src/locales/pt.js @@ -717,4 +717,16 @@ export default { 'Rest-pause always trains as one warm-up set at this rep count, then one rest-pause work set — "Sets" is not used.': 'O rest-pause treina sempre como uma série de aquecimento com estas repetições e uma série de trabalho rest-pause — «Séries» não é usado.', 'Open progression settings': 'Abrir definições de progressão', 'Hevy is rate-limiting requests — wait a minute and try again': 'O Hevy está a limitar os pedidos — espere um minuto e tente novamente', + // --- log a past workout --- + 'Log a past workout': 'Registar um treino passado', + 'Logged on the usual workout screen, without timers.': 'Registado no ecrã de treino habitual, só sem temporizadores.', + 'Date': 'Data', + 'Start time': 'Hora de início', + 'Continue': 'Continuar', + 'Pick a day up to today': 'Escolhe um dia até hoje', + 'There is already a workout on that day.': 'Já existe um treino nesse dia.', + 'Replace': 'Substituir', + 'Add as second workout': 'Adicionar como segundo treino', + 'Finish the current workout first.': 'Termina primeiro o treino em curso.', + 'Logging a past workout — no rest timers.': 'A registar um treino passado — sem temporizadores de descanso.', } diff --git a/frontend/src/locales/ru.js b/frontend/src/locales/ru.js index 31a5ea2..5596ee8 100644 --- a/frontend/src/locales/ru.js +++ b/frontend/src/locales/ru.js @@ -717,4 +717,16 @@ export default { 'Rest-pause always trains as one warm-up set at this rep count, then one rest-pause work set — "Sets" is not used.': 'Rest-pause всегда выполняется как один разминочный подход с этим числом повторений и один рабочий подход rest-pause — «Подходы» не используются.', 'Open progression settings': 'Открыть настройки прогрессии', 'Hevy is rate-limiting requests — wait a minute and try again': 'Hevy ограничивает запросы — подождите минуту и попробуйте снова', + // --- log a past workout --- + 'Log a past workout': 'Записать прошлую тренировку', + 'Logged on the usual workout screen, without timers.': 'Записывается на обычном экране тренировки, только без таймеров.', + 'Date': 'Дата', + 'Start time': 'Время начала', + 'Continue': 'Продолжить', + 'Pick a day up to today': 'Выбери день не позже сегодняшнего', + 'There is already a workout on that day.': 'В этот день уже есть тренировка.', + 'Replace': 'Заменить', + 'Add as second workout': 'Добавить как вторую тренировку', + 'Finish the current workout first.': 'Сначала заверши текущую тренировку.', + 'Logging a past workout — no rest timers.': 'Запись прошлой тренировки — без таймеров отдыха.', } diff --git a/frontend/src/locales/th.js b/frontend/src/locales/th.js index b051a01..4f39ef8 100644 --- a/frontend/src/locales/th.js +++ b/frontend/src/locales/th.js @@ -730,4 +730,16 @@ export default { 'The next regular target continues from the last included workout.': 'เป้าหมายปกติครั้งถัดไปจะต่อจากการฝึกล่าสุดที่นับรวม', 'Open progression settings': 'เปิดการตั้งค่าการเพิ่มน้ำหนัก', 'Hevy is rate-limiting requests — wait a minute and try again': 'Hevy จำกัดจำนวนคำขอ — รอสักครู่แล้วลองอีกครั้ง', + // --- log a past workout --- + 'Log a past workout': 'บันทึกการฝึกย้อนหลัง', + 'Logged on the usual workout screen, without timers.': 'บันทึกบนหน้าจอฝึกตามปกติ เพียงแต่ไม่มีตัวจับเวลา', + 'Date': 'วันที่', + 'Start time': 'เวลาเริ่ม', + 'Continue': 'ดำเนินการต่อ', + 'Pick a day up to today': 'เลือกวันได้ไม่เกินวันนี้', + 'There is already a workout on that day.': 'วันนั้นมีการฝึกอยู่แล้ว', + 'Replace': 'แทนที่', + 'Add as second workout': 'เพิ่มเป็นการฝึกครั้งที่สอง', + 'Finish the current workout first.': 'จบการฝึกปัจจุบันก่อน', + 'Logging a past workout — no rest timers.': 'กำลังบันทึกการฝึกย้อนหลัง — ไม่มีตัวจับเวลาพัก', } diff --git a/frontend/src/locales/tr.js b/frontend/src/locales/tr.js index a3dcfbf..b16b48a 100644 --- a/frontend/src/locales/tr.js +++ b/frontend/src/locales/tr.js @@ -717,4 +717,16 @@ export default { 'Rest-pause always trains as one warm-up set at this rep count, then one rest-pause work set — "Sets" is not used.': 'Rest-pause her zaman bu tekrar sayısında bir ısınma seti ve bir rest-pause çalışma seti olarak çalışılır — “Setler” kullanılmaz.', 'Open progression settings': 'İlerleme ayarlarını aç', 'Hevy is rate-limiting requests — wait a minute and try again': 'Hevy istekleri sınırlıyor — bir dakika bekleyip tekrar deneyin', + // --- log a past workout --- + 'Log a past workout': 'Geçmiş bir antrenman kaydet', + 'Logged on the usual workout screen, without timers.': 'Her zamanki antrenman ekranında kaydedilir, sadece zamanlayıcı olmadan.', + 'Date': 'Tarih', + 'Start time': 'Başlangıç saati', + 'Continue': 'Devam', + 'Pick a day up to today': 'Bugüne kadar bir gün seç', + 'There is already a workout on that day.': 'O gün zaten bir antrenman var.', + 'Replace': 'Değiştir', + 'Add as second workout': 'İkinci antrenman olarak ekle', + 'Finish the current workout first.': 'Önce mevcut antrenmanı bitir.', + 'Logging a past workout — no rest timers.': 'Geçmiş antrenman kaydediliyor — dinlenme zamanlayıcısı yok.', } diff --git a/frontend/src/locales/zh.js b/frontend/src/locales/zh.js index 3122001..65847d6 100644 --- a/frontend/src/locales/zh.js +++ b/frontend/src/locales/zh.js @@ -717,4 +717,16 @@ export default { 'Rest-pause always trains as one warm-up set at this rep count, then one rest-pause work set — "Sets" is not used.': 'Rest-pause 始终按这个次数练一个热身组,再加一个 rest-pause 正式组 —— 不使用“组数”。', 'Open progression settings': '打开进阶设置', 'Hevy is rate-limiting requests — wait a minute and try again': 'Hevy 正在限制请求——请稍等一分钟后重试', + // --- log a past workout --- + 'Log a past workout': '补记过去的训练', + 'Logged on the usual workout screen, without timers.': '在平时的训练界面记录,只是没有计时器。', + 'Date': '日期', + 'Start time': '开始时间', + 'Continue': '继续', + 'Pick a day up to today': '请选择今天或之前的日期', + 'There is already a workout on that day.': '那天已经有一次训练了。', + 'Replace': '替换', + 'Add as second workout': '添加为第二次训练', + 'Finish the current workout first.': '请先完成当前训练。', + 'Logging a past workout — no rest timers.': '正在补记过去的训练 — 没有休息计时器。', }