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.

ci: equipment.js reads t from i18n-core (the MCP tests load it without React); the FIT offset test holds in UTC

Duarte Santos33a32cd10311
diff --git a/frontend/src/lib/equipment.js b/frontend/src/lib/equipment.js
index 8bb9345f7..c5263ed9f 100644
--- a/frontend/src/lib/equipment.js
+++ b/frontend/src/lib/equipment.js
@@ -1,4 +1,4 @@
-import { t } from './i18n.js'
+import { t } from './i18n-core.js'
import { EXDB } from './exercises-data.js'
// Pieces of kit the catalogue never names as an exercise's equipment — "dumbbell bench press" is
diff --git a/frontend/src/lib/fit-export.test.js b/frontend/src/lib/fit-export.test.js
index 590c057e2..9d988de67 100644
--- a/frontend/src/lib/fit-export.test.js
+++ b/frontend/src/lib/fit-export.test.js
@@ -205,7 +205,8 @@ describe('a strength workout as FIT', () => {
expect([lap[0], lap[1], lap[2], lap[7], lap[25], lap[39]]).toEqual([9, 1, fitTime(T0), min(50), SPORT.training, SUB_SPORT.strengthTraining])
const [activity] = of(d, MSG.activity)
expect([activity[0], activity[1], activity[2], activity[3], activity[4]]).toEqual([min(50), 1, 0, 26, 1])
- expect(activity[5] - activity[253]).toBe(-new Date(T0 + min(50)).getTimezoneOffset() * 60)
+ // `|| 0`: in UTC the offset is -0, and the encoder writes a plain 0.
+ expect(activity[5] - activity[253]).toBe((-new Date(T0 + min(50)).getTimezoneOffset() * 60) || 0)
})
it('writes every set that was done, with its reps, weight and category, and leaves the rest out', () => {