From 631d01b1b2dfc76ddc4c5919844862b976610648 Mon Sep 17 00:00:00 2001 From: Duarte Santos Date: Sat, 12 Sep 2026 22:58:25 +0200 Subject: [PATCH] After the merges: four combine-routines / custom-exercise strings in all 14 packs, the de-CH number test accepts either Swiss apostrophe (ICU versions differ), changelog for the merged PRs and MRs --- CHANGELOG.md | 20 ++++++++++++++++++++ frontend/src/lib/i18n-core.test.js | 3 ++- frontend/src/lib/pt-br-locale.test.js | 4 ++-- frontend/src/locales/de.js | 5 +++++ frontend/src/locales/es.js | 5 +++++ frontend/src/locales/fr.js | 5 +++++ frontend/src/locales/hi.js | 5 +++++ frontend/src/locales/hu.js | 5 +++++ frontend/src/locales/it.js | 5 +++++ frontend/src/locales/ko.js | 5 +++++ frontend/src/locales/pl.js | 5 +++++ frontend/src/locales/pt.js | 5 +++++ frontend/src/locales/ru.js | 5 +++++ frontend/src/locales/th.js | 5 +++++ frontend/src/locales/tr.js | 5 +++++ frontend/src/locales/zh.js | 5 +++++ 16 files changed, 89 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index df6ecbd..3b11995 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -81,6 +81,26 @@ tab bar mid-screen during a workout. Web bundle, APK and API image. viewport stayed displaced — tab bar and rest timer mid-screen. Ticking a set and opening a sheet now blur the field, and the correction also works while a sheet has the page pinned. The mobile workout screen keeps less blank space under the last set (mflova, !121). +- ⚖️ **Weigh in before workouts is a switch** (kurktchiev, #174, #137): off, Start goes straight into + the session; body weight can still be logged from Home and Stats. +- 🇨🇭 **Swiss German** (mkoester, #171): `de-CH` derived from the German pack (ss for ß, Swiss + number formatting), no second pack to maintain. +- 🍎 **iOS shell builds with Xcode 26 / iOS 26** (shailantani, #117; thedandano, !125): UIScene + lifecycle, deployment target 15.5. +- 🔥 **Rest between warm-up ramp sets** (kurktchiev, #164): a per-exercise `warmupRestSec` for + plan files; the break into the first work set stays the working rest. +- 🧰 **Custom exercises** (LuckaPow, #162): equipment is chosen (and required), muscle names read + like the built-in ones, cardio gets its target, a chip's focus outline is no longer clipped in + a sheet. +- 🐳 **nginx resolver is configurable** (T13o, !110, #148): `RESOLVER` env (default Docker's + 127.0.0.11) so /api resolves under Podman and Kubernetes. +- 🖨️ **Plan as PDF on the phone** (HenryByte, !118, #149): "Print as PDF" opens the OS print + dialog, which saves to Files / Drive. +- 🎛️ **The equipment filter survives a body-part change** in the exercise picker + (ErrorUsernameAlreadyTaken, !120, #150), and per-side (L/R) data is preserved through progression + and session flows (!133). +- 🔐 **Coach job directory** (T13o, !135): permissions set with chmod instead of chown, so the + built-in Coach runs on a container without CAP_DAC_OVERRIDE. - 🛡️ **The twelve Astra findings** (kurktchiev, #166, #160): a request target that does not parse answers 400 instead of an unhandled rejection; a stored state the reminder tick cannot read is skipped instead of taking the API down, and `PUT /api/data` refuses non-array `workouts` / diff --git a/frontend/src/lib/i18n-core.test.js b/frontend/src/lib/i18n-core.test.js index cfafb54..5634592 100644 --- a/frontend/src/lib/i18n-core.test.js +++ b/frontend/src/lib/i18n-core.test.js @@ -70,7 +70,8 @@ describe('de-CH as a selectable language', () => { expect(LANGS['de-CH']).toBeTruthy() expect(DATE_LOCALES['de-CH']).toBe('de-CH') // The reason de-CH is worth having at all: German formatting gets the weights wrong here. - expect(new Intl.NumberFormat(DATE_LOCALES['de-CH']).format(1234.5)).toBe("1'234.5") + // ICU writes the Swiss group separator as ' or ’ depending on its version; both are Swiss. + expect(new Intl.NumberFormat(DATE_LOCALES['de-CH']).format(1234.5)).toMatch(/^1['’]234\.5$/) expect(new Intl.NumberFormat(DATE_LOCALES.de).format(1234.5)).toBe('1.234,5') }) diff --git a/frontend/src/lib/pt-br-locale.test.js b/frontend/src/lib/pt-br-locale.test.js index 2416262..42c1854 100644 --- a/frontend/src/lib/pt-br-locale.test.js +++ b/frontend/src/lib/pt-br-locale.test.js @@ -28,10 +28,10 @@ describe('Brazilian Portuguese locale', () => { const fingerprint = createHash('sha256').update(JSON.stringify(inherited)).digest('hex') expect(Object.keys(PT_BR_OVERRIDES)).toHaveLength(642) - expect(inherited).toHaveLength(643) + expect(inherited).toHaveLength(647) // 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('f9f572ecbbdd79fbc62a1a7804224f219d23e07810121f0160e594b4518d09ac') + expect(fingerprint, 'pt-PT inheritance changed; review the inherited pt-BR wording').toBe('185cca3dfbc438a4a2177956d1d18da2bbdc907281c5eb4c858ba34afaf9f38e') }) test('does not leak European Portuguese UI terms', () => { diff --git a/frontend/src/locales/de.js b/frontend/src/locales/de.js index b9aeec3..8c159df 100644 --- a/frontend/src/locales/de.js +++ b/frontend/src/locales/de.js @@ -1249,4 +1249,9 @@ export default { 'Offline — showing the last copy synced with the server.': 'Offline — zeigt die zuletzt mit dem Server synchronisierte Kopie.', 'Not synced yet — tap to retry.': 'Noch nicht synchronisiert — tippen zum Wiederholen.', 'Back online — synced with the server.': 'Wieder online — mit dem Server synchronisiert.', + // --- combine-routines sheet + custom-exercise equipment (v1.3.6) --- + '{0} added — {1}': '{0} hinzugefügt — {1}', + 'already added': 'schon drin', + 'no exercises': 'keine Übungen', + 'Pick equipment': 'Gerät wählen', } diff --git a/frontend/src/locales/es.js b/frontend/src/locales/es.js index 4c9c85e..916ce4c 100644 --- a/frontend/src/locales/es.js +++ b/frontend/src/locales/es.js @@ -1229,4 +1229,9 @@ export default { 'Offline — showing the last copy synced with the server.': 'Sin conexión: se muestra la última copia sincronizada con el servidor.', 'Not synced yet — tap to retry.': 'Aún no sincronizado: toca para reintentar.', 'Back online — synced with the server.': 'De nuevo en línea: sincronizado con el servidor.', + // --- combine-routines sheet + custom-exercise equipment (v1.3.6) --- + '{0} added — {1}': '{0} añadido — {1}', + 'already added': 'ya añadido', + 'no exercises': 'sin ejercicios', + 'Pick equipment': 'Elegir equipamiento', } diff --git a/frontend/src/locales/fr.js b/frontend/src/locales/fr.js index a4bf2d0..c9443b4 100644 --- a/frontend/src/locales/fr.js +++ b/frontend/src/locales/fr.js @@ -1229,4 +1229,9 @@ export default { 'Offline — showing the last copy synced with the server.': 'Hors ligne — affichage de la dernière copie synchronisée avec le serveur.', 'Not synced yet — tap to retry.': 'Pas encore synchronisé — touchez pour réessayer.', 'Back online — synced with the server.': 'De retour en ligne — synchronisé avec le serveur.', + // --- combine-routines sheet + custom-exercise equipment (v1.3.6) --- + '{0} added — {1}': '{0} ajouté — {1}', + 'already added': 'déjà ajouté', + 'no exercises': 'aucun exercice', + 'Pick equipment': 'Choisir l’équipement', } diff --git a/frontend/src/locales/hi.js b/frontend/src/locales/hi.js index 51d6a02..2dd2d05 100644 --- a/frontend/src/locales/hi.js +++ b/frontend/src/locales/hi.js @@ -1229,4 +1229,9 @@ export default { 'Offline — showing the last copy synced with the server.': 'ऑफ़लाइन — सर्वर से सिंक की गई आख़िरी प्रति दिखाई जा रही है।', 'Not synced yet — tap to retry.': 'अभी सिंक नहीं हुआ — फिर से कोशिश के लिए टैप करें।', 'Back online — synced with the server.': 'फिर से ऑनलाइन — सर्वर से सिंक हो गया।', + // --- combine-routines sheet + custom-exercise equipment (v1.3.6) --- + '{0} added — {1}': '{0} जोड़ा गया — {1}', + 'already added': 'पहले से जोड़ा हुआ', + 'no exercises': 'कोई व्यायाम नहीं', + 'Pick equipment': 'उपकरण चुनें', } diff --git a/frontend/src/locales/hu.js b/frontend/src/locales/hu.js index 1e31845..54b3138 100644 --- a/frontend/src/locales/hu.js +++ b/frontend/src/locales/hu.js @@ -1232,4 +1232,9 @@ export default { 'Offline — showing the last copy synced with the server.': 'Offline — a szerverrel utoljára szinkronizált másolat látható.', 'Not synced yet — tap to retry.': 'Még nincs szinkronizálva — koppints az újrapróbáláshoz.', 'Back online — synced with the server.': 'Újra online — szinkronizálva a szerverrel.', + // --- combine-routines sheet + custom-exercise equipment (v1.3.6) --- + '{0} added — {1}': '{0} hozzáadva — {1}', + 'already added': 'már hozzáadva', + 'no exercises': 'nincs gyakorlat', + 'Pick equipment': 'Eszköz kiválasztása', } diff --git a/frontend/src/locales/it.js b/frontend/src/locales/it.js index 38325ae..ffe810a 100644 --- a/frontend/src/locales/it.js +++ b/frontend/src/locales/it.js @@ -1229,4 +1229,9 @@ export default { 'Offline — showing the last copy synced with the server.': 'Offline — viene mostrata l’ultima copia sincronizzata con il server.', 'Not synced yet — tap to retry.': 'Non ancora sincronizzato — tocca per riprovare.', 'Back online — synced with the server.': 'Di nuovo online — sincronizzato con il server.', + // --- combine-routines sheet + custom-exercise equipment (v1.3.6) --- + '{0} added — {1}': '{0} aggiunto — {1}', + 'already added': 'già aggiunto', + 'no exercises': 'nessun esercizio', + 'Pick equipment': 'Scegli l’attrezzatura', } diff --git a/frontend/src/locales/ko.js b/frontend/src/locales/ko.js index 8a18af5..1a32294 100644 --- a/frontend/src/locales/ko.js +++ b/frontend/src/locales/ko.js @@ -1229,4 +1229,9 @@ export default { 'Offline — showing the last copy synced with the server.': '오프라인 — 서버와 마지막으로 동기화된 사본을 표시합니다.', 'Not synced yet — tap to retry.': '아직 동기화되지 않음 — 다시 시도하려면 탭하세요.', 'Back online — synced with the server.': '다시 온라인 — 서버와 동기화되었습니다.', + // --- combine-routines sheet + custom-exercise equipment (v1.3.6) --- + '{0} added — {1}': '{0} 추가됨 — {1}', + 'already added': '이미 추가됨', + 'no exercises': '운동 없음', + 'Pick equipment': '기구 선택', } diff --git a/frontend/src/locales/pl.js b/frontend/src/locales/pl.js index 818254e..5ab74e1 100644 --- a/frontend/src/locales/pl.js +++ b/frontend/src/locales/pl.js @@ -1229,4 +1229,9 @@ export default { 'Offline — showing the last copy synced with the server.': 'Offline — wyświetlana jest ostatnia kopia zsynchronizowana z serwerem.', 'Not synced yet — tap to retry.': 'Jeszcze nie zsynchronizowano — dotknij, aby ponowić.', 'Back online — synced with the server.': 'Znów online — zsynchronizowano z serwerem.', + // --- combine-routines sheet + custom-exercise equipment (v1.3.6) --- + '{0} added — {1}': 'Dodano {0} — {1}', + 'already added': 'już dodano', + 'no exercises': 'brak ćwiczeń', + 'Pick equipment': 'Wybierz sprzęt', } diff --git a/frontend/src/locales/pt.js b/frontend/src/locales/pt.js index ec311d0..531d991 100644 --- a/frontend/src/locales/pt.js +++ b/frontend/src/locales/pt.js @@ -1229,4 +1229,9 @@ export default { 'Offline — showing the last copy synced with the server.': 'Offline — a mostrar a última cópia sincronizada com o servidor.', 'Not synced yet — tap to retry.': 'Ainda não sincronizado — toca para tentar de novo.', 'Back online — synced with the server.': 'De volta online — sincronizado com o servidor.', + // --- combine-routines sheet + custom-exercise equipment (v1.3.6) --- + '{0} added — {1}': '{0} adicionado — {1}', + 'already added': 'já adicionado', + 'no exercises': 'sem exercícios', + 'Pick equipment': 'Escolher equipamento', } diff --git a/frontend/src/locales/ru.js b/frontend/src/locales/ru.js index f262251..1101b26 100644 --- a/frontend/src/locales/ru.js +++ b/frontend/src/locales/ru.js @@ -1229,4 +1229,9 @@ export default { 'Offline — showing the last copy synced with the server.': 'Офлайн — показана последняя копия, синхронизированная с сервером.', 'Not synced yet — tap to retry.': 'Ещё не синхронизировано — нажмите, чтобы повторить.', 'Back online — synced with the server.': 'Снова онлайн — синхронизировано с сервером.', + // --- combine-routines sheet + custom-exercise equipment (v1.3.6) --- + '{0} added — {1}': '{0} добавлено — {1}', + 'already added': 'уже добавлено', + 'no exercises': 'нет упражнений', + 'Pick equipment': 'Выбрать оборудование', } diff --git a/frontend/src/locales/th.js b/frontend/src/locales/th.js index a9326b8..1bfabe3 100644 --- a/frontend/src/locales/th.js +++ b/frontend/src/locales/th.js @@ -1240,4 +1240,9 @@ export default { 'Offline — showing the last copy synced with the server.': 'ออฟไลน์ — แสดงสำเนาล่าสุดที่ซิงค์กับเซิร์ฟเวอร์', 'Not synced yet — tap to retry.': 'ยังไม่ได้ซิงค์ — แตะเพื่อลองใหม่', 'Back online — synced with the server.': 'กลับมาออนไลน์แล้ว — ซิงค์กับเซิร์ฟเวอร์แล้ว', + // --- combine-routines sheet + custom-exercise equipment (v1.3.6) --- + '{0} added — {1}': 'เพิ่ม {0} แล้ว — {1}', + 'already added': 'เพิ่มแล้ว', + 'no exercises': 'ไม่มีท่าออกกำลังกาย', + 'Pick equipment': 'เลือกอุปกรณ์', } diff --git a/frontend/src/locales/tr.js b/frontend/src/locales/tr.js index a68b648..f3c09a5 100644 --- a/frontend/src/locales/tr.js +++ b/frontend/src/locales/tr.js @@ -1229,4 +1229,9 @@ export default { 'Offline — showing the last copy synced with the server.': 'Çevrimdışı — sunucuyla en son eşitlenen kopya gösteriliyor.', 'Not synced yet — tap to retry.': 'Henüz eşitlenmedi — yeniden denemek için dokun.', 'Back online — synced with the server.': 'Yeniden çevrimiçi — sunucuyla eşitlendi.', + // --- combine-routines sheet + custom-exercise equipment (v1.3.6) --- + '{0} added — {1}': '{0} eklendi — {1}', + 'already added': 'zaten ekli', + 'no exercises': 'egzersiz yok', + 'Pick equipment': 'Ekipman seç', } diff --git a/frontend/src/locales/zh.js b/frontend/src/locales/zh.js index 99c3c2c..eed9cea 100644 --- a/frontend/src/locales/zh.js +++ b/frontend/src/locales/zh.js @@ -1229,4 +1229,9 @@ export default { 'Offline — showing the last copy synced with the server.': '离线 — 正在显示最后一次与服务器同步的副本。', 'Not synced yet — tap to retry.': '尚未同步 — 点按重试。', 'Back online — synced with the server.': '已恢复联网 — 已与服务器同步。', + // --- combine-routines sheet + custom-exercise equipment (v1.3.6) --- + '{0} added — {1}': '已添加 {0} — {1}', + 'already added': '已添加', + 'no exercises': '没有动作', + 'Pick equipment': '选择器械', }