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.

curated2: Thai and Hungarian get the move-control labels; !27's test file declares its DOM environment

Duarte Santosf3d65ffb10b8
diff --git a/frontend/src/locales/hu.js b/frontend/src/locales/hu.js
index 0323216ae..6448ce76d 100644
--- a/frontend/src/locales/hu.js
+++ b/frontend/src/locales/hu.js
@@ -681,4 +681,6 @@ export default {
'Show all equipment': 'Minden eszköz megjelenítése',
'Showing what you have in "{0}"': 'Az jelenik meg, ami megvan a(z) „{0}” profilban',
'Showing all equipment': 'Minden eszköz megjelenítve',
+ 'Move up': 'Feljebb',
+ 'Move down': 'Lejjebb',
}
diff --git a/frontend/src/locales/th.js b/frontend/src/locales/th.js
index 1d23a798d..70f0f4283 100644
--- a/frontend/src/locales/th.js
+++ b/frontend/src/locales/th.js
@@ -688,5 +688,7 @@ export default {
'Add session note': 'เพิ่มบันทึกประจำรอบ',
'Edit session note': 'แก้ไขบันทึกประจำรอบ',
'How the session went as a whole.': 'ภาพรวมของการออกกำลังกายรอบนี้เป็นอย่างไร',
- '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 always trains as one warm-up set at this rep count, then one rest-pause work set — "Sets" is not used.': 'เรสต์-พอสจะฝึกเป็นเซ็ตวอร์มอัพหนึ่งเซ็ตที่จำนวนครั้งนี้ ตามด้วยเซ็ตหลักแบบเรสต์-พอสหนึ่งเซ็ตเสมอ — ไม่ใช้ค่า "เซ็ต"',
+ 'Move up': 'เลื่อนขึ้น',
+ 'Move down': 'เลื่อนลง',
}
diff --git a/frontend/src/views/RoutineEdit.move.test.jsx b/frontend/src/views/RoutineEdit.move.test.jsx
index d83c73e2f..301d7d829 100644
--- a/frontend/src/views/RoutineEdit.move.test.jsx
+++ b/frontend/src/views/RoutineEdit.move.test.jsx
@@ -2,6 +2,7 @@
import { readFileSync } from 'node:fs'
import { resolve } from 'node:path'
import React, { act } from 'react'
+import { LANGS } from '../lib/i18n-core.js'
import { createRoot } from 'react-dom/client'
import { MemoryRouter, Route, Routes } from 'react-router-dom'
import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'
@@ -215,8 +216,8 @@ describe('routine move controls', () => {
describe('routine move-control locale coverage', () => {
const packs = import.meta.glob('../locales/*.js', { eager: true, import: 'default' })
- it('defines both accessible names in all twelve locale packs', () => {
- expect(Object.keys(packs)).toHaveLength(12)
+ it('defines both accessible names in every non-English locale pack', () => {
+ expect(Object.keys(packs)).toHaveLength(Object.keys(LANGS).length - 1)
Object.entries(packs).forEach(([path, pack]) => {
expect(pack, `${path} is missing Move up`).toHaveProperty('Move up')
expect(pack, `${path} is missing Move down`).toHaveProperty('Move down')
diff --git a/frontend/src/views/Stats.recovery.test.jsx b/frontend/src/views/Stats.recovery.test.jsx
index ed7cd6bb4..402981f0f 100644
--- a/frontend/src/views/Stats.recovery.test.jsx
+++ b/frontend/src/views/Stats.recovery.test.jsx
@@ -1,3 +1,4 @@
+// @vitest-environment happy-dom
import React, { act } from 'react'
import { createRoot } from 'react-dom/client'
import { Window } from 'happy-dom'