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.

body measurements: cm-canonical store, log/edit/choose sheets, per-measurement charts; tests + all 11 locales

Robert Geica0a593b02f0f6
diff --git a/README.md b/README.md
index 4da510bb3..d63449ddf 100644
--- a/README.md
+++ b/README.md
@@ -57,6 +57,7 @@ as a home-screen app, passkey sign-in, offline support, sync across your phone a
## Features
- ⚖️ **Body-weight tracking** — interactive chart with a goal line you set, gains/losses colored by whether they move toward it
+- 📏 **Body measurements** — track neck, shoulders, chest, waist, hips, left/right arms and legs, body fat and your own custom measurements, with a curve for each
- 🏋️ **Weekly plan** — a routine per weekday, over a library of **1,324 exercises** (searchable, with animated demos)
- 🗓️ **Reschedule any day** — sick, missed a session, or fewer gym days this week? Move a workout to another day without touching your weekly plan
- ▶️ **Guided workouts** — it knows what day it is and starts today's session; asks your body weight first, pre-fills your weights from last time, rest timer, PR detection, per-exercise weight tracking
@@ -170,7 +171,7 @@ Rough, community-driven — ideas and PRs welcome:
- [ ] More starter plans (upper/lower, full-body, 5×5)
- [x] Importers from FitNotes / Strong / Hevy (including the RPE they record), and body weight from Apple Health
- [x] Effort per set — RIR or RPE, whichever scale you think in
-- [ ] Body measurements (waist, arms…) alongside weight
+- [x] Body measurements (waist, arms…) alongside weight
- [ ] Per-exercise notes & plate calculator
- [ ] Exercise instructions in German & Portuguese (UI is translated; upstream dataset doesn't ship these yet)
diff --git a/api/server.js b/api/server.js
index 80af0e5e7..997ef1211 100644
--- a/api/server.js
+++ b/api/server.js
@@ -494,6 +494,7 @@ const routes = {
lastSync: S._ts || null,
routines: (S.routines || []).map(r => ({ id: r.id, name: r.name, emoji: r.emoji, count: (r.ex || []).length })),
bodyweight: S.bodyweight || [],
+ measurements: S.measurements || [],
workouts: (S.workouts || []).slice().reverse() // newest first for display
});
},
diff --git a/frontend/src/App.jsx b/frontend/src/App.jsx
index e7c8c5221..33d2ceebb 100644
--- a/frontend/src/App.jsx
+++ b/frontend/src/App.jsx
@@ -24,6 +24,7 @@ import History from './views/History.jsx'
import Library from './views/Library.jsx'
import Settings from './views/Settings.jsx'
import Admin from './views/Admin.jsx'
+import Measurements from './views/Measurements.jsx'
bindUI(useUI) // lets the shared controls open sheets without importing the store at module scope
@@ -73,6 +74,7 @@ function Shell() {
<Route path="/workout" element={<Workout />} />
<Route path="/stats" element={<Stats />} />
<Route path="/history" element={<History />} />
+ <Route path="/measurements" element={<Measurements />} />
<Route path="/library" element={<Library />} />
<Route path="/settings" element={<Settings />} />
<Route path="/admin" element={user?.admin ? <Admin /> : <Navigate to="/home" replace />} />
diff --git a/frontend/src/index.css b/frontend/src/index.css
index a6be108b0..ed5e44e62 100644
--- a/frontend/src/index.css
+++ b/frontend/src/index.css
@@ -385,6 +385,24 @@ h4.sec{
.field::placeholder,.input::placeholder{color:var(--label-3)}
.field:focus,.input:focus{box-shadow:inset 0 0 0 2px var(--acc)}
.field.area,textarea.input{min-height:92px;resize:vertical;line-height:1.42}
+.measure-date{display:block;margin-bottom:14px}
+.measure-date>span,.measure-field>span:first-child{display:block;color:var(--label-2);font-size:13px;margin:0 2px 6px}
+.measure-date .field{background:var(--surface-2)}
+.measure-form{display:grid;grid-template-columns:1fr 1fr;gap:11px 10px}
+.measure-field{min-width:0}
+.measure-input{height:47px;background:var(--surface-2);border-radius:var(--r);display:flex;align-items:center;padding:0 12px;gap:6px}
+.measure-input .num{width:100%;min-width:0;background:transparent;border:0;outline:none;font-size:18px;font-weight:500;color:var(--label);padding:0}
+.measure-input i{font-style:normal;color:var(--label-3);font-size:13px}
+.measure-options{margin:12px 0 16px}
+.measure-select{margin-bottom:10px;background:var(--surface-2)}
+.measure-preview{display:flex;flex-wrap:wrap;gap:6px 12px;margin-top:11px;padding-top:10px;border-top:1px solid var(--sep);font-size:12px;color:var(--label-2)}
+.measure-preview b{color:var(--label);font-weight:500}
+.measure-home-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
+.measure-home-grid button{background:var(--surface-2);border-radius:10px;padding:10px;text-align:left;min-width:0}
+.measure-home-grid span,.measure-home-grid i{display:block;font-size:11px;color:var(--label-2);font-style:normal;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
+.measure-home-grid b{display:block;font-size:16px;margin:3px 0;white-space:nowrap}
+.measure-empty{width:100%;display:flex;align-items:center;justify-content:space-between;text-align:left;color:var(--label-2);font-size:13px;gap:10px}
+.measure-empty .icn{flex:none}
.exnote{
background:var(--surface);border-radius:var(--r);padding:13px 15px;
line-height:1.45;white-space:pre-wrap;font-size:15px;margin-bottom:10px;color:var(--label-2);
diff --git a/frontend/src/lib/demoSeed.js b/frontend/src/lib/demoSeed.js
index 57a9dafee..18fbf390f 100644
--- a/frontend/src/lib/demoSeed.js
+++ b/frontend/src/lib/demoSeed.js
@@ -3,6 +3,7 @@
import { isoOf, uid } from './format.js'
import { starterRoutines } from './starter.js'
import { modeOf } from './history.js'
+import { emptyMeasurement } from './measurements.js'
// Starting weight and weekly increment per exercise of the starter plan (kg).
// Chest dips are body-weight only here, so they log reps at 0 added weight.
@@ -70,6 +71,7 @@ export function buildDemoState() {
const workouts = []
const bodyweight = []
+ const measurements = []
const exWeights = {}
const best = {}
@@ -85,6 +87,28 @@ export function buildDemoState() {
bodyweight.push({ d: iso, w: Math.round(w * 10) / 10, t: at(day, 7, 30) })
}
+ // A fortnightly tape check gives every measurement chart enough points to be useful in
+ // the public demo. The asymmetry is intentional and small — real bodies are not mirrored.
+ if (day.getDay() === 0 && weekIdx % 2 === 0) {
+ const e = emptyMeasurement(iso)
+ e.t = at(day, 8, 10)
+ e.neck = Math.round((39.8 - p * 0.8 + (rnd() - 0.5) * 0.2) * 10) / 10
+ e.shoulders = Math.round((119.5 + p * 1.6 + (rnd() - 0.5) * 0.4) * 10) / 10
+ e.chest = Math.round((103 - p * 1.4 + (rnd() - 0.5) * 0.3) * 10) / 10
+ e.waist = Math.round((89 - p * 7.2 + (rnd() - 0.5) * 0.5) * 10) / 10
+ e.hips = Math.round((101 - p * 3.1 + (rnd() - 0.5) * 0.3) * 10) / 10
+ e.upperArmLeft = Math.round((35.2 + p * 0.9 + (rnd() - 0.5) * 0.2) * 10) / 10
+ e.upperArmRight = Math.round((35.5 + p * 0.9 + (rnd() - 0.5) * 0.2) * 10) / 10
+ e.forearmLeft = Math.round((28.6 + p * 0.4) * 10) / 10
+ e.forearmRight = Math.round((28.9 + p * 0.4) * 10) / 10
+ e.thighLeft = Math.round((58.1 + p * 0.5) * 10) / 10
+ e.thighRight = Math.round((58.5 + p * 0.5) * 10) / 10
+ e.calfLeft = Math.round((38.2 + p * 0.3) * 10) / 10
+ e.calfRight = Math.round((38.5 + p * 0.3) * 10) / 10
+ e.bodyFat = Math.round((20.4 - p * 3.8 + (rnd() - 0.5) * 0.3) * 10) / 10
+ measurements.push(e)
+ }
+
const routine = byWeekday[day.getDay()]
if (!routine) continue
if (rnd() < 0.09) continue // life happens — a few missed sessions
@@ -152,7 +176,7 @@ export function buildDemoState() {
routines: [push, pull, legs],
week: { 1: push.id, 3: pull.id, 5: legs.id },
dayPlan,
- workouts, bodyweight, exWeights,
+ workouts, bodyweight, measurements, exWeights,
targetW: TARGET_W,
// The history is rated, so the demo turns the column on and the stats get a scale to
// label their aggregates with instead of guessing one (see displayScale).
diff --git a/frontend/src/lib/measurements.js b/frontend/src/lib/measurements.js
new file mode 100644
index 000000000..5f51790cd
--- /dev/null
+++ b/frontend/src/lib/measurements.js
@@ -0,0 +1,152 @@
+// Body measurements are stored in centimetres, regardless of the profile's weight unit.
+// Keeping one canonical unit means changing kg/lb never relabels old circumference values as
+// something they are not. The UI converts at its edge: kg profiles see cm, lb profiles see in.
+
+export const MEASUREMENT_FIELDS = [
+ { key: 'neck', label: 'Neck', group: 'Torso' },
+ { key: 'shoulders', label: 'Shoulders', group: 'Torso' },
+ { key: 'chest', label: 'Chest', group: 'Torso' },
+ { key: 'waist', label: 'Waist', group: 'Torso' },
+ { key: 'hips', label: 'Hips', group: 'Torso' },
+ { key: 'abdomen', label: 'Abdomen', group: 'Torso', optional: true },
+ { key: 'upperArmLeft', label: 'Left upper arm', group: 'Arms' },
+ { key: 'upperArmRight', label: 'Right upper arm', group: 'Arms' },
+ { key: 'forearmLeft', label: 'Left forearm', group: 'Arms' },
+ { key: 'forearmRight', label: 'Right forearm', group: 'Arms' },
+ { key: 'wristLeft', label: 'Left wrist', group: 'Arms', optional: true },
+ { key: 'wristRight', label: 'Right wrist', group: 'Arms', optional: true },
+ { key: 'thighLeft', label: 'Left thigh', group: 'Legs' },
+ { key: 'thighRight', label: 'Right thigh', group: 'Legs' },
+ { key: 'calfLeft', label: 'Left calf', group: 'Legs' },
+ { key: 'calfRight', label: 'Right calf', group: 'Legs' },
+ { key: 'ankleLeft', label: 'Left ankle', group: 'Legs', optional: true },
+ { key: 'ankleRight', label: 'Right ankle', group: 'Legs', optional: true },
+ { key: 'bodyFat', label: 'Body fat', group: 'Other', kind: 'percent', optional: true },
+]
+
+export const MEASUREMENT_KEYS = MEASUREMENT_FIELDS.map(f => f.key)
+export const DEFAULT_MEASUREMENT_KEYS = MEASUREMENT_FIELDS.filter(f => !f.optional).map(f => f.key)
+
+const round = n => Math.round(n * 10) / 10
+const valid = v => Number.isFinite(+v) && +v > 0 ? round(+v) : null
+
+export const measurementUnit = unit => unit === 'lb' ? 'in' : 'cm'
+export const toMeasurementDisplay = (cm, unit) => cm == null ? null : round(unit === 'lb' ? cm / 2.54 : cm)
+export const fromMeasurementDisplay = (value, unit) => value == null ? null : valid(unit === 'lb' ? +value * 2.54 : +value)
+
+export function emptyMeasurement(date, custom = []) {
+ const entry = { d: date, t: new Date(date + 'T12:00:00').getTime() }
+ for (const key of MEASUREMENT_KEYS) entry[key] = null
+ entry.other = custom.map(c => ({ id: c.id, name: c.name, value: null }))
+ return entry
+}
+
+// Complete old or partial entries into the stable schema. Unknown custom values are preserved:
+// a backup must not lose history merely because its custom-field definition is absent.
+export function normalizeMeasurementEntry(raw = {}, custom = []) {
+ const entry = emptyMeasurement(raw.d || '', custom)
+ entry.t = Number.isFinite(+raw.t) ? +raw.t : entry.t
+ for (const key of MEASUREMENT_KEYS) entry[key] = valid(raw[key])
+ if (entry.bodyFat != null && entry.bodyFat > 100) entry.bodyFat = null
+
+ const known = new Map(custom.map(c => [c.id, c]))
+ const seen = new Set()
+ entry.other = (Array.isArray(raw.other) ? raw.other : []).map(o => {
+ if (!o || !o.id || seen.has(o.id)) return null
+ seen.add(o.id)
+ return { id: String(o.id), name: String(known.get(o.id)?.name || o.name || 'Other'), value: valid(o.value) }
+ }).filter(Boolean)
+ for (const c of custom) if (!seen.has(c.id)) entry.other.push({ id: c.id, name: c.name, value: null })
+ return entry
+}
+
+// Fold a second entry for a date into the first. The later reading wins per field, but a field
+// it left empty keeps the earlier value — two partial rows on one date are two halves of the
+// same check-in, not a reason to throw one away.
+function mergeMeasurementEntries(a, b) {
+ const entry = { ...a, t: b.t }
+ for (const key of MEASUREMENT_KEYS) entry[key] = b[key] ?? a[key]
+ const other = new Map(a.other.map(o => [o.id, o]))
+ for (const o of b.other) {
+ const prev = other.get(o.id)
+ other.set(o.id, prev ? { ...o, value: o.value ?? prev.value } : o)
+ }
+ entry.other = [...other.values()]
+ return entry
+}
+
+export function normalizeMeasurementsState(state) {
+ const rawCustom = Array.isArray(state.customMeasurements) ? state.customMeasurements : []
+ const ids = new Set()
+ state.customMeasurements = rawCustom.map(c => {
+ if (!c || !c.id || !String(c.name || '').trim() || ids.has(String(c.id))) return null
+ const id = String(c.id); ids.add(id)
+ return { id, name: String(c.name).trim().slice(0, 60), enabled: c.enabled !== false }
+ }).filter(Boolean)
+
+ const enabled = Array.isArray(state.measurementEnabled) ? state.measurementEnabled : DEFAULT_MEASUREMENT_KEYS
+ state.measurementEnabled = [...new Set(enabled.filter(k => MEASUREMENT_KEYS.includes(k)))]
+ const entries = (Array.isArray(state.measurements) ? state.measurements : [])
+ .filter(e => e && /^\d{4}-\d{2}-\d{2}$/.test(e.d || ''))
+ .map(e => normalizeMeasurementEntry(e, state.customMeasurements))
+ .sort((a, b) => a.d.localeCompare(b.d) || a.t - b.t)
+
+ // One entry per date is what the logging form enforces and what every reader assumes — the
+ // history keys on the date, editing looks up by it and deleting filters by it. State that
+ // never went through the form (an imported backup, a sync from another client) can still
+ // carry two rows for a day, so they are folded here rather than left to surface as a
+ // duplicate React key and an edit that silently drops the other row.
+ const byDate = new Map()
+ for (const entry of entries) {
+ const prev = byDate.get(entry.d)
+ byDate.set(entry.d, prev ? mergeMeasurementEntries(prev, entry) : entry)
+ }
+ state.measurements = [...byDate.values()]
+ return state
+}
+
+export function measurementValue(entry, key) {
+ if (!entry) return null
+ if (!key.startsWith('other:')) return valid(entry[key])
+ return valid((entry.other || []).find(o => o.id === key.slice(6))?.value)
+}
+
+export function measurementLabel(key, custom = []) {
+ if (key.startsWith('other:')) return custom.find(c => c.id === key.slice(6))?.name || 'Other'
+ return MEASUREMENT_FIELDS.find(f => f.key === key)?.label || key
+}
+
+// Order comes from MEASUREMENT_FIELDS, not from measurementEnabled: that array is a set the
+// toggles append to, so reading it in stored order would move a field to the end of the logging
+// form the moment you switched it off and on again, interleaving the Torso/Arms/Legs groups.
+export function enabledMeasurementFields(state) {
+ const enabled = new Set(state.measurementEnabled || DEFAULT_MEASUREMENT_KEYS)
+ const builtins = MEASUREMENT_FIELDS.filter(f => enabled.has(f.key))
+ const custom = (state.customMeasurements || []).filter(c => c.enabled !== false)
+ .map(c => ({ key: 'other:' + c.id, label: c.name, group: 'Other', custom: true }))
+ return [...builtins, ...custom]
+}
+
+export function measurementSeries(state, key, range = 0, now = Date.now()) {
+ const cutoff = range ? now - range * 86400000 : -Infinity
+ const unit = state.unit || 'kg'
+ const percent = key === 'bodyFat'
+ return (state.measurements || []).map(entry => {
+ const raw = measurementValue(entry, key)
+ if (raw == null || entry.t < cutoff) return null
+ return { t: entry.t, d: entry.d, y: percent ? raw : toMeasurementDisplay(raw, unit) }
+ }).filter(Boolean)
+}
+
+export function latestMeasurement(state, key) {
+ for (let i = (state.measurements || []).length - 1; i >= 0; i--) {
+ const value = measurementValue(state.measurements[i], key)
+ if (value != null) return { entry: state.measurements[i], value }
+ }
+ return null
+}
+
+export function measurementEntryHasValues(entry) {
+ return MEASUREMENT_KEYS.some(k => valid(entry?.[k]) != null) ||
+ (entry?.other || []).some(o => valid(o?.value) != null)
+}
diff --git a/frontend/src/lib/measurements.test.js b/frontend/src/lib/measurements.test.js
new file mode 100644
index 000000000..a208d6164
--- /dev/null
+++ b/frontend/src/lib/measurements.test.js
@@ -0,0 +1,83 @@
+import { describe, expect, it } from 'vitest'
+import {
+ MEASUREMENT_KEYS, DEFAULT_MEASUREMENT_KEYS, emptyMeasurement, enabledMeasurementFields,
+ normalizeMeasurementEntry, normalizeMeasurementsState, measurementSeries,
+ toMeasurementDisplay, fromMeasurementDisplay, measurementEntryHasValues,
+} from './measurements.js'
+
+describe('body measurements', () => {
+ it('creates a complete entry with nulls instead of ambiguous zeroes', () => {
+ const e = emptyMeasurement('2026-08-11', [{ id: 'knee', name: 'Around knees' }])
+ expect(Object.keys(e).filter(k => MEASUREMENT_KEYS.includes(k))).toEqual(MEASUREMENT_KEYS)
+ expect(MEASUREMENT_KEYS.every(k => e[k] === null)).toBe(true)
+ expect(e.other).toEqual([{ id: 'knee', name: 'Around knees', value: null }])
+ expect(measurementEntryHasValues(e)).toBe(false)
+ })
+
+ it('normalizes partial entries and preserves unknown custom history', () => {
+ const e = normalizeMeasurementEntry({
+ d: '2026-08-11', waist: 82.54, chest: 0,
+ bodyFat: 140,
+ other: [{ id: 'old', name: 'Old field', value: 12.34 }],
+ }, [{ id: 'knee', name: 'Knee' }])
+ expect(e.waist).toBe(82.5)
+ expect(e.chest).toBeNull()
+ expect(e.bodyFat).toBeNull()
+ expect(e.other).toEqual([
+ { id: 'old', name: 'Old field', value: 12.3 },
+ { id: 'knee', name: 'Knee', value: null },
+ ])
+ })
+
+ it('uses centimetres as canonical storage and round-trips inches', () => {
+ expect(fromMeasurementDisplay(32.5, 'lb')).toBe(82.6)
+ expect(toMeasurementDisplay(82.6, 'lb')).toBe(32.5)
+ expect(fromMeasurementDisplay(82.6, 'kg')).toBe(82.6)
+ })
+
+ it('migrates missing state defaults and sorts entries', () => {
+ const s = normalizeMeasurementsState({ measurements: [
+ { d: '2026-08-12', waist: 83 }, { d: '2026-08-11', waist: 82 },
+ ] })
+ expect(s.measurementEnabled).toEqual(DEFAULT_MEASUREMENT_KEYS)
+ expect(s.measurements.map(e => e.d)).toEqual(['2026-08-11', '2026-08-12'])
+ expect(MEASUREMENT_KEYS.every(k => k in s.measurements[0])).toBe(true)
+ })
+
+ it('builds a display-unit series and ignores missing values', () => {
+ const s = normalizeMeasurementsState({ unit: 'lb', measurements: [
+ { d: '2026-08-11', t: 100, waist: 82.55 },
+ { d: '2026-08-12', t: 200, waist: null },
+ { d: '2026-08-13', t: 300, waist: 85.09 },
+ ] })
+ expect(measurementSeries(s, 'waist').map(p => p.y)).toEqual([32.5, 33.5])
+ })
+
+ it('folds two entries for one date into a single check-in', () => {
+ const s = normalizeMeasurementsState({
+ customMeasurements: [{ id: 'knee', name: 'Knee' }],
+ measurements: [
+ { d: '2026-08-11', t: 100, waist: 82, chest: 101, other: [{ id: 'knee', value: 38 }] },
+ { d: '2026-08-11', t: 200, waist: 83, other: [{ id: 'knee', value: null }] },
+ { d: '2026-08-12', t: 300, waist: 84 },
+ ],
+ })
+ expect(s.measurements.map(e => e.d)).toEqual(['2026-08-11', '2026-08-12'])
+ const [merged] = s.measurements
+ expect(merged.t).toBe(200)
+ expect(merged.waist).toBe(83) // later reading wins
+ expect(merged.chest).toBe(101) // only the earlier row had it — kept
+ expect(merged.other).toEqual([{ id: 'knee', name: 'Knee', value: 38 }])
+ })
+
+ it('orders fields by the field list, not by when each was switched on', () => {
+ // measurementEnabled is a set the toggles append to: switching Neck off and on again puts
+ // it last there, and the form must not reorder itself because of that.
+ const state = {
+ measurementEnabled: [...DEFAULT_MEASUREMENT_KEYS.filter(k => k !== 'neck'), 'neck'],
+ customMeasurements: [{ id: 'knee', name: 'Around knees', enabled: true }],
+ }
+ expect(enabledMeasurementFields(state).map(f => f.key))
+ .toEqual([...DEFAULT_MEASUREMENT_KEYS, 'other:knee'])
+ })
+})
diff --git a/frontend/src/locales/de.js b/frontend/src/locales/de.js
index 779b301ed..9d889ad48 100644
--- a/frontend/src/locales/de.js
+++ b/frontend/src/locales/de.js
@@ -272,13 +272,13 @@ export default {
'Weight unit': 'Gewichtseinheit',
'Rest timer': 'Pausen-Timer',
'Sounds': 'Töne',
- 'Note: switching units only changes the label — logged numbers are not converted.': 'Hinweis: Der Einheitenwechsel ändert nur die Beschriftung — eingetragene Zahlen werden nicht umgerechnet.',
+ 'Weight history keeps its numbers when units change. Body measurements are safely converted between cm and in.': 'Das Gewicht behält beim Einheitenwechsel seine Zahlen. Körpermaße werden sicher zwischen cm und in umgerechnet.',
'Data': 'Daten',
'Export backup (JSON)': 'Backup exportieren (JSON)',
'Import backup': 'Backup importieren',
'Reset everything?': 'Alles zurücksetzen?',
'Reset everything': 'Alles zurücksetzen',
- 'Deletes your plan, workouts and body weight on this device. This cannot be undone.': 'Löscht Plan, Trainings und Körpergewicht auf diesem Gerät. Das kann nicht rückgängig gemacht werden.',
+ 'Deletes your plan, workouts, body weight and measurements on this device. This cannot be undone.': 'Löscht Plan, Trainings, Körpergewicht und Maße auf diesem Gerät. Das kann nicht rückgängig gemacht werden.',
'Delete everything': 'Alles löschen',
'All data reset': 'Alle Daten zurückgesetzt',
'Backup exported': 'Backup exportiert',
@@ -586,5 +586,59 @@ export default {
'{0} sets · {1} work': '{0} Sätze · {1} Arbeit',
'Make superset with previous': 'Mit vorheriger Übung kombinieren',
'Make superset with next': 'Mit nächster Übung kombinieren',
- 'Unpair': 'Trennen'
+ 'Unpair': 'Trennen',
+ // --- body measurements ---
+ 'Body measurements': 'Körpermaße',
+ 'Circumference & composition': 'Umfänge & Zusammensetzung',
+ 'Measurement': 'Maß',
+ 'Measurement history': 'Verlauf der Maße',
+ 'Measurements saved': 'Maße gespeichert',
+ 'Measurements deleted': 'Maße gelöscht',
+ 'Delete measurements?': 'Maße löschen?',
+ 'Deletes the measurements logged on {0}.': 'Löscht die am {0} eingetragenen Maße.',
+ 'Log measurements': 'Maße eintragen',
+ 'Edit measurements': 'Maße bearbeiten',
+ 'Choose measurements': 'Maße auswählen',
+ 'Choose measurement': 'Maß auswählen',
+ 'Choose the measurements you want to track, then log your first check-in.': 'Wähle die Maße, die du verfolgen willst, und trage deine ersten Werte ein.',
+ 'Keep the logging form focused on the measurements you actually track.': 'Halte das Formular auf die Maße beschränkt, die du wirklich verfolgst.',
+ 'Fill only what you measured today. Empty fields stay empty.': 'Trage nur ein, was du heute gemessen hast. Leere Felder bleiben leer.',
+ 'Choose at least one measurement first.': 'Wähle zuerst mindestens ein Maß aus.',
+ 'Enter at least one measurement': 'Trage mindestens ein Maß ein',
+ 'Choose a valid date': 'Wähle ein gültiges Datum',
+ 'That date already has measurements — edit it instead.': 'Für dieses Datum gibt es schon Maße — bearbeite sie stattdessen.',
+ 'A custom measurement with that name already exists.': 'Ein eigenes Maß mit diesem Namen gibt es schon.',
+ 'Body fat must be between 0 and 100%.': 'Körperfett muss zwischen 0 und 100 % liegen.',
+ 'No measurements yet': 'Noch keine Maße',
+ 'No measurements yet — choose what you track and log your first check-in.': 'Noch keine Maße — wähle aus, was du verfolgst, und trage deine ersten Werte ein.',
+ 'View measurements': 'Maße ansehen',
+ 'since previous': 'seit dem letzten Mal',
+ '{0} measurement': '{0} Maß',
+ '{0} measurements': '{0} Maße',
+ 'Custom measurement': 'Eigenes Maß',
+ 'Custom': 'Eigenes',
+ 'Fields': 'Felder',
+ 'Date': 'Datum',
+ 'Add': 'Hinzufügen',
+ 'Torso': 'Rumpf',
+ 'Arms': 'Arme',
+ 'Legs': 'Beine',
+ 'Other': 'Sonstige',
+ 'Neck': 'Hals',
+ 'Waist': 'Taille',
+ 'Hips': 'Hüfte',
+ 'Abdomen': 'Bauch',
+ 'Left upper arm': 'Oberarm links',
+ 'Right upper arm': 'Oberarm rechts',
+ 'Left forearm': 'Unterarm links',
+ 'Right forearm': 'Unterarm rechts',
+ 'Left wrist': 'Handgelenk links',
+ 'Right wrist': 'Handgelenk rechts',
+ 'Left thigh': 'Oberschenkel links',
+ 'Right thigh': 'Oberschenkel rechts',
+ 'Left calf': 'Wade links',
+ 'Right calf': 'Wade rechts',
+ 'Left ankle': 'Knöchel links',
+ 'Right ankle': 'Knöchel rechts',
+ 'Body fat': 'Körperfett'
}
diff --git a/frontend/src/locales/es.js b/frontend/src/locales/es.js
index a80f6234a..bae3d527b 100644
--- a/frontend/src/locales/es.js
+++ b/frontend/src/locales/es.js
@@ -258,13 +258,13 @@ export default {
'Weight unit': 'Unidad de peso',
'Rest timer': 'Temporizador de descanso',
'Sounds': 'Sonidos',
- 'Note: switching units only changes the label — logged numbers are not converted.': 'Nota: cambiar la unidad solo cambia la etiqueta — los números registrados no se convierten.',
+ 'Weight history keeps its numbers when units change. Body measurements are safely converted between cm and in.': 'El historial de peso conserva sus números al cambiar de unidad. Las medidas corporales se convierten con seguridad entre cm e in.',
'Data': 'Datos',
'Export backup (JSON)': 'Exportar copia (JSON)',
'Import backup': 'Importar copia',
'Reset everything?': '¿Restablecer todo?',
'Reset everything': 'Restablecer todo',
- 'Deletes your plan, workouts and body weight on this device. This cannot be undone.': 'Elimina tu plan, entrenamientos y peso corporal en este dispositivo. No se puede deshacer.',
+ 'Deletes your plan, workouts, body weight and measurements on this device. This cannot be undone.': 'Elimina tu plan, entrenamientos, peso corporal y medidas en este dispositivo. No se puede deshacer.',
'Delete everything': 'Eliminar todo',
'All data reset': 'Todos los datos restablecidos',
'Backup exported': 'Copia exportada',
@@ -569,5 +569,59 @@ export default {
'{0} sets · {1} work': '{0} series · {1} trabajo',
'Make superset with previous': 'Hacer superserie con anterior',
'Make superset with next': 'Hacer superserie con siguiente',
- 'Unpair': 'Desvincular'
+ 'Unpair': 'Desvincular',
+ // --- body measurements ---
+ 'Body measurements': 'Medidas corporales',
+ 'Circumference & composition': 'Contornos y composición',
+ 'Measurement': 'Medida',
+ 'Measurement history': 'Historial de medidas',
+ 'Measurements saved': 'Medidas guardadas',
+ 'Measurements deleted': 'Medidas eliminadas',
+ 'Delete measurements?': '¿Eliminar medidas?',
+ 'Deletes the measurements logged on {0}.': 'Elimina las medidas registradas el {0}.',
+ 'Log measurements': 'Registrar medidas',
+ 'Edit measurements': 'Editar medidas',
+ 'Choose measurements': 'Elegir medidas',
+ 'Choose measurement': 'Elegir medida',
+ 'Choose the measurements you want to track, then log your first check-in.': 'Elige las medidas que quieres seguir y registra tu primera toma.',
+ 'Keep the logging form focused on the measurements you actually track.': 'Mantén el formulario centrado en las medidas que realmente sigues.',
+ 'Fill only what you measured today. Empty fields stay empty.': 'Rellena solo lo que mediste hoy. Los campos vacíos se quedan vacíos.',
+ 'Choose at least one measurement first.': 'Elige al menos una medida primero.',
+ 'Enter at least one measurement': 'Introduce al menos una medida',
+ 'Choose a valid date': 'Elige una fecha válida',
+ 'That date already has measurements — edit it instead.': 'Esa fecha ya tiene medidas — edítalas en su lugar.',
+ 'A custom measurement with that name already exists.': 'Ya existe una medida personalizada con ese nombre.',
+ 'Body fat must be between 0 and 100%.': 'La grasa corporal debe estar entre 0 y 100 %.',
+ 'No measurements yet': 'Aún no hay medidas',
+ 'No measurements yet — choose what you track and log your first check-in.': 'Aún no hay medidas — elige qué sigues y registra tu primera toma.',
+ 'View measurements': 'Ver medidas',
+ 'since previous': 'desde la anterior',
+ '{0} measurement': '{0} medida',
+ '{0} measurements': '{0} medidas',
+ 'Custom measurement': 'Medida personalizada',
+ 'Custom': 'Personalizada',
+ 'Fields': 'Campos',
+ 'Date': 'Fecha',
+ 'Add': 'Añadir',
+ 'Torso': 'Tronco',
+ 'Arms': 'Brazos',
+ 'Legs': 'Piernas',
+ 'Other': 'Otras',
+ 'Neck': 'Cuello',
+ 'Waist': 'Cintura',
+ 'Hips': 'Cadera',
+ 'Abdomen': 'Abdomen',
+ 'Left upper arm': 'Brazo izquierdo',
+ 'Right upper arm': 'Brazo derecho',
+ 'Left forearm': 'Antebrazo izquierdo',
+ 'Right forearm': 'Antebrazo derecho',
+ 'Left wrist': 'Muñeca izquierda',
+ 'Right wrist': 'Muñeca derecha',
+ 'Left thigh': 'Muslo izquierdo',
+ 'Right thigh': 'Muslo derecho',
+ 'Left calf': 'Gemelo izquierdo',
+ 'Right calf': 'Gemelo derecho',
+ 'Left ankle': 'Tobillo izquierdo',
+ 'Right ankle': 'Tobillo derecho',
+ 'Body fat': 'Grasa corporal'
}
diff --git a/frontend/src/locales/fr.js b/frontend/src/locales/fr.js
index a9207b86d..508a5c39b 100644
--- a/frontend/src/locales/fr.js
+++ b/frontend/src/locales/fr.js
@@ -258,13 +258,13 @@ export default {
'Weight unit': 'Unité de poids',
'Rest timer': 'Minuteur de repos',
'Sounds': 'Sons',
- 'Note: switching units only changes the label — logged numbers are not converted.': 'Note : changer d’unité ne change que l’étiquette — les nombres enregistrés ne sont pas convertis.',
+ 'Weight history keeps its numbers when units change. Body measurements are safely converted between cm and in.': 'L’historique de poids garde ses nombres quand tu changes d’unité. Les mensurations sont converties sans risque entre cm et in.',
'Data': 'Données',
'Export backup (JSON)': 'Exporter une sauvegarde (JSON)',
'Import backup': 'Importer une sauvegarde',
'Reset everything?': 'Tout réinitialiser ?',
'Reset everything': 'Tout réinitialiser',
- 'Deletes your plan, workouts and body weight on this device. This cannot be undone.': 'Supprime ton plan, tes séances et ton poids corporel sur cet appareil. Irréversible.',
+ 'Deletes your plan, workouts, body weight and measurements on this device. This cannot be undone.': 'Supprime ton plan, tes séances, ton poids corporel et tes mesures sur cet appareil. Irréversible.',
'Delete everything': 'Tout supprimer',
'All data reset': 'Toutes les données réinitialisées',
'Backup exported': 'Sauvegarde exportée',
@@ -569,5 +569,59 @@ export default {
'{0} sets · {1} work': '{0} séries · {1} travail',
'Make superset with previous': 'Faire un superset avec le précédent',
'Make superset with next': 'Faire un superset avec le suivant',
- 'Unpair': 'Dissocier'
+ 'Unpair': 'Dissocier',
+ // --- body measurements ---
+ 'Body measurements': 'Mensurations',
+ 'Circumference & composition': 'Tours et composition',
+ 'Measurement': 'Mesure',
+ 'Measurement history': 'Historique des mesures',
+ 'Measurements saved': 'Mesures enregistrées',
+ 'Measurements deleted': 'Mesures supprimées',
+ 'Delete measurements?': 'Supprimer les mesures ?',
+ 'Deletes the measurements logged on {0}.': 'Supprime les mesures enregistrées le {0}.',
+ 'Log measurements': 'Noter les mesures',
+ 'Edit measurements': 'Modifier les mesures',
+ 'Choose measurements': 'Choisir les mesures',
+ 'Choose measurement': 'Choisir la mesure',
+ 'Choose the measurements you want to track, then log your first check-in.': 'Choisis les mesures que tu veux suivre, puis note ton premier relevé.',
+ 'Keep the logging form focused on the measurements you actually track.': 'Garde le formulaire limité aux mesures que tu suis vraiment.',
+ 'Fill only what you measured today. Empty fields stay empty.': 'Ne remplis que ce que tu as mesuré aujourd’hui. Les champs vides restent vides.',
+ 'Choose at least one measurement first.': 'Choisis d’abord au moins une mesure.',
+ 'Enter at least one measurement': 'Saisis au moins une mesure',
+ 'Choose a valid date': 'Choisis une date valide',
+ 'That date already has measurements — edit it instead.': 'Cette date a déjà des mesures — modifie-les plutôt.',
+ 'A custom measurement with that name already exists.': 'Une mesure personnalisée porte déjà ce nom.',
+ 'Body fat must be between 0 and 100%.': 'La masse grasse doit être entre 0 et 100 %.',
+ 'No measurements yet': 'Pas encore de mesures',
+ 'No measurements yet — choose what you track and log your first check-in.': 'Pas encore de mesures — choisis ce que tu suis et note ton premier relevé.',
+ 'View measurements': 'Voir les mesures',
+ 'since previous': 'depuis la précédente',
+ '{0} measurement': '{0} mesure',
+ '{0} measurements': '{0} mesures',
+ 'Custom measurement': 'Mesure personnalisée',
+ 'Custom': 'Personnalisée',
+ 'Fields': 'Champs',
+ 'Date': 'Date',
+ 'Add': 'Ajouter',
+ 'Torso': 'Buste',
+ 'Arms': 'Bras',
+ 'Legs': 'Jambes',
+ 'Other': 'Autres',
+ 'Neck': 'Cou',
+ 'Waist': 'Taille',
+ 'Hips': 'Hanches',
+ 'Abdomen': 'Abdomen',
+ 'Left upper arm': 'Bras gauche',
+ 'Right upper arm': 'Bras droit',
+ 'Left forearm': 'Avant-bras gauche',
+ 'Right forearm': 'Avant-bras droit',
+ 'Left wrist': 'Poignet gauche',
+ 'Right wrist': 'Poignet droit',
+ 'Left thigh': 'Cuisse gauche',
+ 'Right thigh': 'Cuisse droite',
+ 'Left calf': 'Mollet gauche',
+ 'Right calf': 'Mollet droit',
+ 'Left ankle': 'Cheville gauche',
+ 'Right ankle': 'Cheville droite',
+ 'Body fat': 'Masse grasse'
}
diff --git a/frontend/src/locales/hi.js b/frontend/src/locales/hi.js
index 60e2e2a24..1be8b4887 100644
--- a/frontend/src/locales/hi.js
+++ b/frontend/src/locales/hi.js
@@ -258,13 +258,13 @@ export default {
'Weight unit': 'वज़न की इकाई',
'Rest timer': 'आराम टाइमर',
'Sounds': 'ध्वनियाँ',
- 'Note: switching units only changes the label — logged numbers are not converted.': 'नोट: इकाई बदलने से केवल लेबल बदलता है — दर्ज संख्याएँ परिवर्तित नहीं होतीं।',
+ 'Weight history keeps its numbers when units change. Body measurements are safely converted between cm and in.': 'इकाई बदलने पर वज़न इतिहास के आँकड़े वैसे ही रहते हैं। शरीर के माप cm और in के बीच सुरक्षित रूप से बदले जाते हैं।',
'Data': 'डेटा',
'Export backup (JSON)': 'बैकअप निर्यात करें (JSON)',
'Import backup': 'बैकअप आयात करें',
'Reset everything?': 'सब कुछ रीसेट करें?',
'Reset everything': 'सब कुछ रीसेट करें',
- 'Deletes your plan, workouts and body weight on this device. This cannot be undone.': 'इस डिवाइस पर आपकी योजना, वर्कआउट और वज़न हट जाएँगे। इसे पूर्ववत नहीं किया जा सकता।',
+ 'Deletes your plan, workouts, body weight and measurements on this device. This cannot be undone.': 'इस डिवाइस पर आपकी योजना, वर्कआउट, वज़न और माप हट जाएँगे। इसे पूर्ववत नहीं किया जा सकता।',
'Delete everything': 'सब हटाएँ',
'All data reset': 'सारा डेटा रीसेट',
'Backup exported': 'बैकअप निर्यात हुआ',
@@ -569,5 +569,59 @@ export default {
'{0} sets · {1} work': '{0} सेट · {1} काम',
'Make superset with previous': 'पिछले के साथ सुपरसेट',
'Make superset with next': 'अगले के साथ सुपरसेट',
- 'Unpair': 'अलग करें'
+ 'Unpair': 'अलग करें',
+ // --- body measurements ---
+ 'Body measurements': 'शरीर के माप',
+ 'Circumference & composition': 'घेरा और शरीर संरचना',
+ 'Measurement': 'माप',
+ 'Measurement history': 'माप का इतिहास',
+ 'Measurements saved': 'माप सहेजे गए',
+ 'Measurements deleted': 'माप हटाए गए',
+ 'Delete measurements?': 'माप हटाएँ?',
+ 'Deletes the measurements logged on {0}.': '{0} को दर्ज किए गए माप हटा देता है।',
+ 'Log measurements': 'माप दर्ज करें',
+ 'Edit measurements': 'माप संपादित करें',
+ 'Choose measurements': 'माप चुनें',
+ 'Choose measurement': 'माप चुनें',
+ 'Choose the measurements you want to track, then log your first check-in.': 'जिन मापों को ट्रैक करना है उन्हें चुनें, फिर अपना पहला माप दर्ज करें।',
+ 'Keep the logging form focused on the measurements you actually track.': 'फ़ॉर्म में सिर्फ़ वही माप रखें जिन्हें आप वाकई ट्रैक करते हैं।',
+ 'Fill only what you measured today. Empty fields stay empty.': 'आज जो मापा है वही भरें। खाली फ़ील्ड खाली रहते हैं।',
+ 'Choose at least one measurement first.': 'पहले कम से कम एक माप चुनें।',
+ 'Enter at least one measurement': 'कम से कम एक माप दर्ज करें',
+ 'Choose a valid date': 'मान्य तारीख़ चुनें',
+ 'That date already has measurements — edit it instead.': 'उस तारीख़ के माप पहले से हैं — उन्हीं को संपादित करें।',
+ 'A custom measurement with that name already exists.': 'इस नाम का कस्टम माप पहले से मौजूद है।',
+ 'Body fat must be between 0 and 100%.': 'बॉडी फैट 0 से 100 % के बीच होना चाहिए।',
+ 'No measurements yet': 'अभी कोई माप नहीं',
+ 'No measurements yet — choose what you track and log your first check-in.': 'अभी कोई माप नहीं — चुनें कि क्या ट्रैक करना है और पहला माप दर्ज करें।',
+ 'View measurements': 'माप देखें',
+ 'since previous': 'पिछली बार से',
+ '{0} measurement': '{0} माप',
+ '{0} measurements': '{0} माप',
+ 'Custom measurement': 'कस्टम माप',
+ 'Custom': 'कस्टम',
+ 'Fields': 'फ़ील्ड',
+ 'Date': 'तारीख़',
+ 'Add': 'जोड़ें',
+ 'Torso': 'धड़',
+ 'Arms': 'बाहें',
+ 'Legs': 'टाँगें',
+ 'Other': 'अन्य',
+ 'Neck': 'गर्दन',
+ 'Waist': 'कमर',
+ 'Hips': 'कूल्हे',
+ 'Abdomen': 'पेट',
+ 'Left upper arm': 'बाईं बाँह',
+ 'Right upper arm': 'दाईं बाँह',
+ 'Left forearm': 'बाईं अग्रभुजा',
+ 'Right forearm': 'दाईं अग्रभुजा',
+ 'Left wrist': 'बाईं कलाई',
+ 'Right wrist': 'दाईं कलाई',
+ 'Left thigh': 'बाईं जाँघ',
+ 'Right thigh': 'दाईं जाँघ',
+ 'Left calf': 'बाईं पिंडली',
+ 'Right calf': 'दाईं पिंडली',
+ 'Left ankle': 'बायाँ टखना',
+ 'Right ankle': 'दायाँ टखना',
+ 'Body fat': 'बॉडी फैट'
}
diff --git a/frontend/src/locales/it.js b/frontend/src/locales/it.js
index a9f01db29..2aadcdfb1 100644
--- a/frontend/src/locales/it.js
+++ b/frontend/src/locales/it.js
@@ -258,13 +258,13 @@ export default {
'Weight unit': 'Unità di peso',
'Rest timer': 'Timer di riposo',
'Sounds': 'Suoni',
- 'Note: switching units only changes the label — logged numbers are not converted.': 'Nota: cambiare unità cambia solo l’etichetta — i numeri registrati non vengono convertiti.',
+ 'Weight history keeps its numbers when units change. Body measurements are safely converted between cm and in.': 'Lo storico del peso mantiene i suoi numeri quando cambi unità. Le misure corporee vengono convertite senza rischi tra cm e in.',
'Data': 'Dati',
'Export backup (JSON)': 'Esporta backup (JSON)',
'Import backup': 'Importa backup',
'Reset everything?': 'Azzerare tutto?',
'Reset everything': 'Azzera tutto',
- 'Deletes your plan, workouts and body weight on this device. This cannot be undone.': 'Elimina piano, allenamenti e peso corporeo su questo dispositivo. Irreversibile.',
+ 'Deletes your plan, workouts, body weight and measurements on this device. This cannot be undone.': 'Elimina piano, allenamenti, peso corporeo e misure su questo dispositivo. Irreversibile.',
'Delete everything': 'Elimina tutto',
'All data reset': 'Tutti i dati azzerati',
'Backup exported': 'Backup esportato',
@@ -569,5 +569,59 @@ export default {
'{0} sets · {1} work': '{0} serie · {1} lavoro',
'Make superset with previous': 'Superset con il precedente',
'Make superset with next': 'Superset con il successivo',
- 'Unpair': 'Separa'
+ 'Unpair': 'Separa',
+ // --- body measurements ---
+ 'Body measurements': 'Misure corporee',
+ 'Circumference & composition': 'Circonferenze e composizione',
+ 'Measurement': 'Misura',
+ 'Measurement history': 'Storico delle misure',
+ 'Measurements saved': 'Misure salvate',
+ 'Measurements deleted': 'Misure eliminate',
+ 'Delete measurements?': 'Eliminare le misure?',
+ 'Deletes the measurements logged on {0}.': 'Elimina le misure registrate il {0}.',
+ 'Log measurements': 'Registra misure',
+ 'Edit measurements': 'Modifica misure',
+ 'Choose measurements': 'Scegli le misure',
+ 'Choose measurement': 'Scegli la misura',
+ 'Choose the measurements you want to track, then log your first check-in.': 'Scegli le misure che vuoi seguire, poi registra il primo rilevamento.',
+ 'Keep the logging form focused on the measurements you actually track.': 'Tieni il modulo sulle misure che segui davvero.',
+ 'Fill only what you measured today. Empty fields stay empty.': 'Compila solo ciò che hai misurato oggi. I campi vuoti restano vuoti.',
+ 'Choose at least one measurement first.': 'Scegli prima almeno una misura.',
+ 'Enter at least one measurement': 'Inserisci almeno una misura',
+ 'Choose a valid date': 'Scegli una data valida',
+ 'That date already has measurements — edit it instead.': 'Quella data ha già delle misure — modifica quelle.',
+ 'A custom measurement with that name already exists.': 'Esiste già una misura personalizzata con questo nome.',
+ 'Body fat must be between 0 and 100%.': 'Il grasso corporeo deve essere tra 0 e 100 %.',
+ 'No measurements yet': 'Ancora nessuna misura',
+ 'No measurements yet — choose what you track and log your first check-in.': 'Ancora nessuna misura — scegli cosa seguire e registra il primo rilevamento.',
+ 'View measurements': 'Vedi le misure',
+ 'since previous': 'dalla precedente',
+ '{0} measurement': '{0} misura',
+ '{0} measurements': '{0} misure',
+ 'Custom measurement': 'Misura personalizzata',
+ 'Custom': 'Personalizzata',
+ 'Fields': 'Campi',
+ 'Date': 'Data',
+ 'Add': 'Aggiungi',
+ 'Torso': 'Tronco',
+ 'Arms': 'Braccia',
+ 'Legs': 'Gambe',
+ 'Other': 'Altro',
+ 'Neck': 'Collo',
+ 'Waist': 'Vita',
+ 'Hips': 'Fianchi',
+ 'Abdomen': 'Addome',
+ 'Left upper arm': 'Braccio sinistro',
+ 'Right upper arm': 'Braccio destro',
+ 'Left forearm': 'Avambraccio sinistro',
+ 'Right forearm': 'Avambraccio destro',
+ 'Left wrist': 'Polso sinistro',
+ 'Right wrist': 'Polso destro',
+ 'Left thigh': 'Coscia sinistra',
+ 'Right thigh': 'Coscia destra',
+ 'Left calf': 'Polpaccio sinistro',
+ 'Right calf': 'Polpaccio destro',
+ 'Left ankle': 'Caviglia sinistra',
+ 'Right ankle': 'Caviglia destra',
+ 'Body fat': 'Grasso corporeo'
}
diff --git a/frontend/src/locales/ko.js b/frontend/src/locales/ko.js
index 6a811fdd7..4950de73f 100644
--- a/frontend/src/locales/ko.js
+++ b/frontend/src/locales/ko.js
@@ -258,13 +258,13 @@ export default {
'Weight unit': '무게 단위',
'Rest timer': '휴식 타이머',
'Sounds': '소리',
- 'Note: switching units only changes the label — logged numbers are not converted.': '참고: 단위 변경은 표기만 바꿉니다 — 기록된 숫자는 환산되지 않아요.',
+ 'Weight history keeps its numbers when units change. Body measurements are safely converted between cm and in.': '단위를 바꿔도 체중 기록의 숫자는 그대로예요. 신체 측정값은 cm와 in 사이에서 안전하게 변환돼요.',
'Data': '데이터',
'Export backup (JSON)': '백업 내보내기 (JSON)',
'Import backup': '백업 가져오기',
'Reset everything?': '전부 초기화할까요?',
'Reset everything': '전부 초기화',
- 'Deletes your plan, workouts and body weight on this device. This cannot be undone.': '이 기기의 계획, 운동, 체중을 삭제합니다. 되돌릴 수 없어요.',
+ 'Deletes your plan, workouts, body weight and measurements on this device. This cannot be undone.': '이 기기의 계획, 운동, 체중, 측정값을 삭제합니다. 되돌릴 수 없어요.',
'Delete everything': '전부 삭제',
'All data reset': '모든 데이터 초기화됨',
'Backup exported': '백업 내보냄',
@@ -569,5 +569,59 @@ export default {
'{0} sets · {1} work': '{0} 세트 · {1} 작업',
'Make superset with previous': '이전 운동과 슈퍼셋',
'Make superset with next': '다음 운동과 슈퍼셋',
- 'Unpair': '분리'
+ 'Unpair': '분리',
+ // --- body measurements ---
+ 'Body measurements': '신체 측정',
+ 'Circumference & composition': '둘레와 체성분',
+ 'Measurement': '측정 항목',
+ 'Measurement history': '측정 기록',
+ 'Measurements saved': '측정값을 저장했어요',
+ 'Measurements deleted': '측정값을 삭제했어요',
+ 'Delete measurements?': '측정값을 삭제할까요?',
+ 'Deletes the measurements logged on {0}.': '{0}에 기록한 측정값을 삭제해요.',
+ 'Log measurements': '측정값 기록',
+ 'Edit measurements': '측정값 편집',
+ 'Choose measurements': '측정 항목 선택',
+ 'Choose measurement': '측정 항목 선택',
+ 'Choose the measurements you want to track, then log your first check-in.': '추적할 항목을 고르고 첫 측정값을 기록해 보세요.',
+ 'Keep the logging form focused on the measurements you actually track.': '실제로 재는 항목만 입력 폼에 남겨 두세요.',
+ 'Fill only what you measured today. Empty fields stay empty.': '오늘 잰 것만 입력하세요. 빈 칸은 비워 둡니다.',
+ 'Choose at least one measurement first.': '먼저 항목을 하나 이상 선택하세요.',
+ 'Enter at least one measurement': '측정값을 하나 이상 입력하세요',
+ 'Choose a valid date': '올바른 날짜를 선택하세요',
+ 'That date already has measurements — edit it instead.': '그 날짜에는 이미 측정값이 있어요 — 기존 기록을 편집하세요.',
+ 'A custom measurement with that name already exists.': '같은 이름의 사용자 항목이 이미 있어요.',
+ 'Body fat must be between 0 and 100%.': '체지방률은 0에서 100 % 사이여야 해요.',
+ 'No measurements yet': '아직 측정값이 없어요',
+ 'No measurements yet — choose what you track and log your first check-in.': '아직 측정값이 없어요 — 추적할 항목을 고르고 첫 기록을 남겨 보세요.',
+ 'View measurements': '측정값 보기',
+ 'since previous': '이전 대비',
+ '{0} measurement': '측정 {0}개',
+ '{0} measurements': '측정 {0}개',
+ 'Custom measurement': '사용자 측정 항목',
+ 'Custom': '사용자',
+ 'Fields': '항목',
+ 'Date': '날짜',
+ 'Add': '추가',
+ 'Torso': '몸통',
+ 'Arms': '팔',
+ 'Legs': '다리',
+ 'Other': '기타',
+ 'Neck': '목',
+ 'Waist': '허리',
+ 'Hips': '엉덩이',
+ 'Abdomen': '복부',
+ 'Left upper arm': '왼쪽 위팔',
+ 'Right upper arm': '오른쪽 위팔',
+ 'Left forearm': '왼쪽 아래팔',
+ 'Right forearm': '오른쪽 아래팔',
+ 'Left wrist': '왼쪽 손목',
+ 'Right wrist': '오른쪽 손목',
+ 'Left thigh': '왼쪽 허벅지',
+ 'Right thigh': '오른쪽 허벅지',
+ 'Left calf': '왼쪽 종아리',
+ 'Right calf': '오른쪽 종아리',
+ 'Left ankle': '왼쪽 발목',
+ 'Right ankle': '오른쪽 발목',
+ 'Body fat': '체지방률'
}
diff --git a/frontend/src/locales/pl.js b/frontend/src/locales/pl.js
index ddc2fa6f7..1c3cceb72 100644
--- a/frontend/src/locales/pl.js
+++ b/frontend/src/locales/pl.js
@@ -258,13 +258,13 @@ export default {
'Weight unit': 'Jednostka wagi',
'Rest timer': 'Minutnik przerwy',
'Sounds': 'Dźwięki',
- 'Note: switching units only changes the label — logged numbers are not converted.': 'Uwaga: zmiana jednostki zmienia tylko etykietę — zapisane liczby nie są przeliczane.',
+ 'Weight history keeps its numbers when units change. Body measurements are safely converted between cm and in.': 'Historia wagi zachowuje swoje liczby przy zmianie jednostek. Pomiary ciała są bezpiecznie przeliczane między cm a in.',
'Data': 'Dane',
'Export backup (JSON)': 'Eksportuj kopię (JSON)',
'Import backup': 'Importuj kopię',
'Reset everything?': 'Zresetować wszystko?',
'Reset everything': 'Zresetuj wszystko',
- 'Deletes your plan, workouts and body weight on this device. This cannot be undone.': 'Usuwa plan, treningi i masę ciała na tym urządzeniu. Nie można tego cofnąć.',
+ 'Deletes your plan, workouts, body weight and measurements on this device. This cannot be undone.': 'Usuwa plan, treningi, masę ciała i pomiary na tym urządzeniu. Nie można tego cofnąć.',
'Delete everything': 'Usuń wszystko',
'All data reset': 'Wszystkie dane zresetowane',
'Backup exported': 'Kopia wyeksportowana',
@@ -569,5 +569,59 @@ export default {
'{0} sets · {1} work': '{0} serii · {1} praca',
'Make superset with previous': 'Połącz z poprzednim',
'Make superset with next': 'Połącz z następnym',
- 'Unpair': 'Rozłącz'
+ 'Unpair': 'Rozłącz',
+ // --- body measurements ---
+ 'Body measurements': 'Pomiary ciała',
+ 'Circumference & composition': 'Obwody i skład ciała',
+ 'Measurement': 'Pomiar',
+ 'Measurement history': 'Historia pomiarów',
+ 'Measurements saved': 'Zapisano pomiary',
+ 'Measurements deleted': 'Usunięto pomiary',
+ 'Delete measurements?': 'Usunąć pomiary?',
+ 'Deletes the measurements logged on {0}.': 'Usuwa pomiary zapisane {0}.',
+ 'Log measurements': 'Zapisz pomiary',
+ 'Edit measurements': 'Edytuj pomiary',
+ 'Choose measurements': 'Wybierz pomiary',
+ 'Choose measurement': 'Wybierz pomiar',
+ 'Choose the measurements you want to track, then log your first check-in.': 'Wybierz pomiary, które chcesz śledzić, i zapisz pierwszy odczyt.',
+ 'Keep the logging form focused on the measurements you actually track.': 'Zostaw w formularzu tylko pomiary, które naprawdę śledzisz.',
+ 'Fill only what you measured today. Empty fields stay empty.': 'Wpisz tylko dzisiejsze pomiary. Puste pola zostają puste.',
+ 'Choose at least one measurement first.': 'Najpierw wybierz co najmniej jeden pomiar.',
+ 'Enter at least one measurement': 'Wpisz co najmniej jeden pomiar',
+ 'Choose a valid date': 'Wybierz prawidłową datę',
+ 'That date already has measurements — edit it instead.': 'Ta data ma już pomiary — edytuj je zamiast tego.',
+ 'A custom measurement with that name already exists.': 'Własny pomiar o tej nazwie już istnieje.',
+ 'Body fat must be between 0 and 100%.': 'Tkanka tłuszczowa musi mieścić się między 0 a 100 %.',
+ 'No measurements yet': 'Brak pomiarów',
+ 'No measurements yet — choose what you track and log your first check-in.': 'Brak pomiarów — wybierz, co śledzisz, i zapisz pierwszy odczyt.',
+ 'View measurements': 'Zobacz pomiary',
+ 'since previous': 'od poprzedniego',
+ '{0} measurement': '{0} pomiar',
+ '{0} measurements': 'pomiary: {0}',
+ 'Custom measurement': 'Własny pomiar',
+ 'Custom': 'Własny',
+ 'Fields': 'Pola',
+ 'Date': 'Data',
+ 'Add': 'Dodaj',
+ 'Torso': 'Tułów',
+ 'Arms': 'Ramiona',
+ 'Legs': 'Nogi',
+ 'Other': 'Inne',
+ 'Neck': 'Szyja',
+ 'Waist': 'Talia',
+ 'Hips': 'Biodra',
+ 'Abdomen': 'Brzuch',
+ 'Left upper arm': 'Lewe ramię',
+ 'Right upper arm': 'Prawe ramię',
+ 'Left forearm': 'Lewe przedramię',
+ 'Right forearm': 'Prawe przedramię',
+ 'Left wrist': 'Lewy nadgarstek',
+ 'Right wrist': 'Prawy nadgarstek',
+ 'Left thigh': 'Lewe udo',
+ 'Right thigh': 'Prawe udo',
+ 'Left calf': 'Lewa łydka',
+ 'Right calf': 'Prawa łydka',
+ 'Left ankle': 'Lewa kostka',
+ 'Right ankle': 'Prawa kostka',
+ 'Body fat': 'Tkanka tłuszczowa'
}
diff --git a/frontend/src/locales/pt.js b/frontend/src/locales/pt.js
index 3e50cf5db..8466b58ca 100644
--- a/frontend/src/locales/pt.js
+++ b/frontend/src/locales/pt.js
@@ -258,13 +258,13 @@ export default {
'Weight unit': 'Unidade de peso',
'Rest timer': 'Temporizador de descanso',
'Sounds': 'Sons',
- 'Note: switching units only changes the label — logged numbers are not converted.': 'Nota: mudar a unidade só muda o rótulo — os números registados não são convertidos.',
+ 'Weight history keeps its numbers when units change. Body measurements are safely converted between cm and in.': 'O histórico de peso mantém os seus números quando mudas de unidade. As medidas corporais são convertidas em segurança entre cm e in.',
'Data': 'Dados',
'Export backup (JSON)': 'Exportar cópia (JSON)',
'Import backup': 'Importar cópia',
'Reset everything?': 'Repor tudo?',
'Reset everything': 'Repor tudo',
- 'Deletes your plan, workouts and body weight on this device. This cannot be undone.': 'Elimina o teu plano, treinos e peso corporal neste dispositivo. Não pode ser anulado.',
+ 'Deletes your plan, workouts, body weight and measurements on this device. This cannot be undone.': 'Elimina o teu plano, treinos, peso corporal e medidas neste dispositivo. Não pode ser anulado.',
'Delete everything': 'Eliminar tudo',
'All data reset': 'Todos os dados repostos',
'Backup exported': 'Cópia exportada',
@@ -569,5 +569,59 @@ export default {
'{0} sets · {1} work': '{0} séries · {1} trabalho',
'Make superset with previous': 'Fazer superset com o anterior',
'Make superset with next': 'Fazer superset com o próximo',
- 'Unpair': 'Desfazer'
+ 'Unpair': 'Desfazer',
+ // --- body measurements ---
+ 'Body measurements': 'Medidas corporais',
+ 'Circumference & composition': 'Perímetros e composição',
+ 'Measurement': 'Medida',
+ 'Measurement history': 'Histórico de medidas',
+ 'Measurements saved': 'Medidas guardadas',
+ 'Measurements deleted': 'Medidas eliminadas',
+ 'Delete measurements?': 'Eliminar medidas?',
+ 'Deletes the measurements logged on {0}.': 'Elimina as medidas registadas em {0}.',
+ 'Log measurements': 'Registar medidas',
+ 'Edit measurements': 'Editar medidas',
+ 'Choose measurements': 'Escolher medidas',
+ 'Choose measurement': 'Escolher medida',
+ 'Choose the measurements you want to track, then log your first check-in.': 'Escolhe as medidas que queres acompanhar e faz a tua primeira medição.',
+ 'Keep the logging form focused on the measurements you actually track.': 'Mantém o formulário focado nas medidas que realmente acompanhas.',
+ 'Fill only what you measured today. Empty fields stay empty.': 'Preenche só o que mediste hoje. Os campos vazios ficam vazios.',
+ 'Choose at least one measurement first.': 'Escolhe primeiro pelo menos uma medida.',
+ 'Enter at least one measurement': 'Introduz pelo menos uma medida',
+ 'Choose a valid date': 'Escolhe uma data válida',
+ 'That date already has measurements — edit it instead.': 'Essa data já tem medidas — edita-as em vez disso.',
+ 'A custom measurement with that name already exists.': 'Já existe uma medida personalizada com esse nome.',
+ 'Body fat must be between 0 and 100%.': 'A gordura corporal tem de estar entre 0 e 100 %.',
+ 'No measurements yet': 'Ainda sem medidas',
+ 'No measurements yet — choose what you track and log your first check-in.': 'Ainda sem medidas — escolhe o que acompanhas e faz a tua primeira medição.',
+ 'View measurements': 'Ver medidas',
+ 'since previous': 'desde a anterior',
+ '{0} measurement': '{0} medida',
+ '{0} measurements': '{0} medidas',
+ 'Custom measurement': 'Medida personalizada',
+ 'Custom': 'Personalizada',
+ 'Fields': 'Campos',
+ 'Date': 'Data',
+ 'Add': 'Adicionar',
+ 'Torso': 'Tronco',
+ 'Arms': 'Braços',
+ 'Legs': 'Pernas',
+ 'Other': 'Outras',
+ 'Neck': 'Pescoço',
+ 'Waist': 'Cintura',
+ 'Hips': 'Ancas',
+ 'Abdomen': 'Abdómen',
+ 'Left upper arm': 'Braço esquerdo',
+ 'Right upper arm': 'Braço direito',
+ 'Left forearm': 'Antebraço esquerdo',
+ 'Right forearm': 'Antebraço direito',
+ 'Left wrist': 'Pulso esquerdo',
+ 'Right wrist': 'Pulso direito',
+ 'Left thigh': 'Coxa esquerda',
+ 'Right thigh': 'Coxa direita',
+ 'Left calf': 'Gémeo esquerdo',
+ 'Right calf': 'Gémeo direito',
+ 'Left ankle': 'Tornozelo esquerdo',
+ 'Right ankle': 'Tornozelo direito',
+ 'Body fat': 'Gordura corporal'
}
diff --git a/frontend/src/locales/ru.js b/frontend/src/locales/ru.js
index 1dbc915b1..ad2128ea5 100644
--- a/frontend/src/locales/ru.js
+++ b/frontend/src/locales/ru.js
@@ -258,13 +258,13 @@ export default {
'Weight unit': 'Единица веса',
'Rest timer': 'Таймер отдыха',
'Sounds': 'Звуки',
- 'Note: switching units only changes the label — logged numbers are not converted.': 'Примечание: смена единиц меняет только подпись — записанные числа не пересчитываются.',
+ 'Weight history keeps its numbers when units change. Body measurements are safely converted between cm and in.': 'История веса сохраняет свои числа при смене единиц. Замеры тела безопасно пересчитываются между см и дюймами.',
'Data': 'Данные',
'Export backup (JSON)': 'Экспорт резервной копии (JSON)',
'Import backup': 'Импорт резервной копии',
'Reset everything?': 'Сбросить всё?',
'Reset everything': 'Сбросить всё',
- 'Deletes your plan, workouts and body weight on this device. This cannot be undone.': 'Удаляет план, тренировки и вес тела на этом устройстве. Отменить нельзя.',
+ 'Deletes your plan, workouts, body weight and measurements on this device. This cannot be undone.': 'Удаляет план, тренировки, вес тела и замеры на этом устройстве. Отменить нельзя.',
'Delete everything': 'Удалить всё',
'All data reset': 'Все данные сброшены',
'Backup exported': 'Копия экспортирована',
@@ -569,5 +569,59 @@ export default {
'{0} sets · {1} work': '{0} подходов · {1} рабочих',
'Make superset with previous': 'Суперсет с предыдущим',
'Make superset with next': 'Суперсет со следующим',
- 'Unpair': 'Разъединить'
+ 'Unpair': 'Разъединить',
+ // --- body measurements ---
+ 'Body measurements': 'Замеры тела',
+ 'Circumference & composition': 'Обхваты и состав тела',
+ 'Measurement': 'Замер',
+ 'Measurement history': 'История замеров',
+ 'Measurements saved': 'Замеры сохранены',
+ 'Measurements deleted': 'Замеры удалены',
+ 'Delete measurements?': 'Удалить замеры?',
+ 'Deletes the measurements logged on {0}.': 'Удаляет замеры, записанные {0}.',
+ 'Log measurements': 'Записать замеры',
+ 'Edit measurements': 'Изменить замеры',
+ 'Choose measurements': 'Выбрать замеры',
+ 'Choose measurement': 'Выбрать замер',
+ 'Choose the measurements you want to track, then log your first check-in.': 'Выбери замеры, которые хочешь отслеживать, и запиши первый.',
+ 'Keep the logging form focused on the measurements you actually track.': 'Оставь в форме только те замеры, которые действительно ведёшь.',
+ 'Fill only what you measured today. Empty fields stay empty.': 'Заполни только сегодняшние замеры. Пустые поля останутся пустыми.',
+ 'Choose at least one measurement first.': 'Сначала выбери хотя бы один замер.',
+ 'Enter at least one measurement': 'Введи хотя бы один замер',
+ 'Choose a valid date': 'Выбери корректную дату',
+ 'That date already has measurements — edit it instead.': 'На эту дату замеры уже есть — измени их.',
+ 'A custom measurement with that name already exists.': 'Свой замер с таким названием уже есть.',
+ 'Body fat must be between 0 and 100%.': 'Процент жира должен быть от 0 до 100 %.',
+ 'No measurements yet': 'Замеров пока нет',
+ 'No measurements yet — choose what you track and log your first check-in.': 'Замеров пока нет — выбери, что отслеживать, и запиши первый.',
+ 'View measurements': 'Открыть замеры',
+ 'since previous': 'с прошлого раза',
+ '{0} measurement': '{0} замер',
+ '{0} measurements': 'замеров: {0}',
+ 'Custom measurement': 'Свой замер',
+ 'Custom': 'Свой',
+ 'Fields': 'Поля',
+ 'Date': 'Дата',
+ 'Add': 'Добавить',
+ 'Torso': 'Корпус',
+ 'Arms': 'Руки',
+ 'Legs': 'Ноги',
+ 'Other': 'Другое',
+ 'Neck': 'Шея',
+ 'Waist': 'Талия',
+ 'Hips': 'Таз',
+ 'Abdomen': 'Живот',
+ 'Left upper arm': 'Левый бицепс',
+ 'Right upper arm': 'Правый бицепс',
+ 'Left forearm': 'Левое предплечье',
+ 'Right forearm': 'Правое предплечье',
+ 'Left wrist': 'Левое запястье',
+ 'Right wrist': 'Правое запястье',
+ 'Left thigh': 'Левое бедро',
+ 'Right thigh': 'Правое бедро',
+ 'Left calf': 'Левая икра',
+ 'Right calf': 'Правая икра',
+ 'Left ankle': 'Левая лодыжка',
+ 'Right ankle': 'Правая лодыжка',
+ 'Body fat': 'Процент жира'
}
diff --git a/frontend/src/locales/tr.js b/frontend/src/locales/tr.js
index b3c3879f6..62320da53 100644
--- a/frontend/src/locales/tr.js
+++ b/frontend/src/locales/tr.js
@@ -258,13 +258,13 @@ export default {
'Weight unit': 'Ağırlık birimi',
'Rest timer': 'Dinlenme sayacı',
'Sounds': 'Sesler',
- 'Note: switching units only changes the label — logged numbers are not converted.': 'Not: birim değiştirmek sadece etiketi değiştirir — kayıtlı sayılar dönüştürülmez.',
+ 'Weight history keeps its numbers when units change. Body measurements are safely converted between cm and in.': 'Ağırlık geçmişi birim değişince sayılarını korur. Vücut ölçüleri cm ile in arasında güvenle dönüştürülür.',
'Data': 'Veriler',
'Export backup (JSON)': 'Yedeği dışa aktar (JSON)',
'Import backup': 'Yedeği içe aktar',
'Reset everything?': 'Her şey sıfırlansın mı?',
'Reset everything': 'Her şeyi sıfırla',
- 'Deletes your plan, workouts and body weight on this device. This cannot be undone.': 'Bu cihazdaki planını, antrenmanlarını ve vücut ağırlığını siler. Geri alınamaz.',
+ 'Deletes your plan, workouts, body weight and measurements on this device. This cannot be undone.': 'Bu cihazdaki planını, antrenmanlarını, vücut ağırlığını ve ölçülerini siler. Geri alınamaz.',
'Delete everything': 'Her şeyi sil',
'All data reset': 'Tüm veriler sıfırlandı',
'Backup exported': 'Yedek dışa aktarıldı',
@@ -569,5 +569,59 @@ export default {
'{0} sets · {1} work': '{0} set · {1} çalışma',
'Make superset with previous': 'Öncekiyle superset yap',
'Make superset with next': 'Sonrakiyle superset yap',
- 'Unpair': 'Ayır'
+ 'Unpair': 'Ayır',
+ // --- body measurements ---
+ 'Body measurements': 'Vücut ölçüleri',
+ 'Circumference & composition': 'Çevre ölçüleri ve kompozisyon',
+ 'Measurement': 'Ölçü',
+ 'Measurement history': 'Ölçü geçmişi',
+ 'Measurements saved': 'Ölçüler kaydedildi',
+ 'Measurements deleted': 'Ölçüler silindi',
+ 'Delete measurements?': 'Ölçüler silinsin mi?',
+ 'Deletes the measurements logged on {0}.': '{0} tarihinde kaydedilen ölçüleri siler.',
+ 'Log measurements': 'Ölçü kaydet',
+ 'Edit measurements': 'Ölçüleri düzenle',
+ 'Choose measurements': 'Ölçüleri seç',
+ 'Choose measurement': 'Ölçü seç',
+ 'Choose the measurements you want to track, then log your first check-in.': 'Takip etmek istediğin ölçüleri seç, sonra ilk kaydını gir.',
+ 'Keep the logging form focused on the measurements you actually track.': 'Formu gerçekten takip ettiğin ölçülerle sınırlı tut.',
+ 'Fill only what you measured today. Empty fields stay empty.': 'Sadece bugün ölçtüklerini gir. Boş alanlar boş kalır.',
+ 'Choose at least one measurement first.': 'Önce en az bir ölçü seç.',
+ 'Enter at least one measurement': 'En az bir ölçü gir',
+ 'Choose a valid date': 'Geçerli bir tarih seç',
+ 'That date already has measurements — edit it instead.': 'Bu tarihte zaten ölçü var — onu düzenle.',
+ 'A custom measurement with that name already exists.': 'Bu adda özel bir ölçü zaten var.',
+ 'Body fat must be between 0 and 100%.': 'Vücut yağı %0 ile %100 arasında olmalı.',
+ 'No measurements yet': 'Henüz ölçü yok',
+ 'No measurements yet — choose what you track and log your first check-in.': 'Henüz ölçü yok — neyi takip ettiğini seç ve ilk kaydını gir.',
+ 'View measurements': 'Ölçüleri gör',
+ 'since previous': 'öncekine göre',
+ '{0} measurement': '{0} ölçü',
+ '{0} measurements': '{0} ölçü',
+ 'Custom measurement': 'Özel ölçü',
+ 'Custom': 'Özel',
+ 'Fields': 'Alanlar',
+ 'Date': 'Tarih',
+ 'Add': 'Ekle',
+ 'Torso': 'Gövde',
+ 'Arms': 'Kollar',
+ 'Legs': 'Bacaklar',
+ 'Other': 'Diğer',
+ 'Neck': 'Boyun',
+ 'Waist': 'Bel',
+ 'Hips': 'Kalça',
+ 'Abdomen': 'Karın',
+ 'Left upper arm': 'Sol üst kol',
+ 'Right upper arm': 'Sağ üst kol',
+ 'Left forearm': 'Sol ön kol',
+ 'Right forearm': 'Sağ ön kol',
+ 'Left wrist': 'Sol bilek',
+ 'Right wrist': 'Sağ bilek',
+ 'Left thigh': 'Sol uyluk',
+ 'Right thigh': 'Sağ uyluk',
+ 'Left calf': 'Sol baldır',
+ 'Right calf': 'Sağ baldır',
+ 'Left ankle': 'Sol ayak bileği',
+ 'Right ankle': 'Sağ ayak bileği',
+ 'Body fat': 'Vücut yağı'
}
diff --git a/frontend/src/locales/zh.js b/frontend/src/locales/zh.js
index 0157fa2ae..3c566da67 100644
--- a/frontend/src/locales/zh.js
+++ b/frontend/src/locales/zh.js
@@ -258,13 +258,13 @@ export default {
'Weight unit': '重量单位',
'Rest timer': '休息计时',
'Sounds': '声音',
- 'Note: switching units only changes the label — logged numbers are not converted.': '注意:切换单位只改变标签——已记录的数字不会换算。',
+ 'Weight history keeps its numbers when units change. Body measurements are safely converted between cm and in.': '切换单位时体重记录的数字保持不变;身体围度会在 cm 与 in 之间安全换算。',
'Data': '数据',
'Export backup (JSON)': '导出备份(JSON)',
'Import backup': '导入备份',
'Reset everything?': '重置所有内容?',
'Reset everything': '重置所有内容',
- 'Deletes your plan, workouts and body weight on this device. This cannot be undone.': '删除本设备上的计划、训练和体重。无法撤销。',
+ 'Deletes your plan, workouts, body weight and measurements on this device. This cannot be undone.': '删除本设备上的计划、训练、体重和围度记录。无法撤销。',
'Delete everything': '全部删除',
'All data reset': '所有数据已重置',
'Backup exported': '备份已导出',
@@ -569,5 +569,59 @@ export default {
'{0} sets · {1} work': '{0} 组 · {1} 工作',
'Make superset with previous': '与上一个组成超级组',
'Make superset with next': '与下一个组成超级组',
- 'Unpair': '取消组合'
+ 'Unpair': '取消组合',
+ // --- body measurements ---
+ 'Body measurements': '身体围度',
+ 'Circumference & composition': '围度与体成分',
+ 'Measurement': '测量项',
+ 'Measurement history': '测量历史',
+ 'Measurements saved': '已保存测量',
+ 'Measurements deleted': '已删除测量',
+ 'Delete measurements?': '删除这次测量?',
+ 'Deletes the measurements logged on {0}.': '删除 {0} 记录的测量。',
+ 'Log measurements': '记录测量',
+ 'Edit measurements': '编辑测量',
+ 'Choose measurements': '选择测量项',
+ 'Choose measurement': '选择测量项',
+ 'Choose the measurements you want to track, then log your first check-in.': '选择你想跟踪的测量项,然后记录第一次测量。',
+ 'Keep the logging form focused on the measurements you actually track.': '让表单只保留你真正跟踪的测量项。',
+ 'Fill only what you measured today. Empty fields stay empty.': '只填今天量过的部位,留空的字段保持为空。',
+ 'Choose at least one measurement first.': '请先选择至少一个测量项。',
+ 'Enter at least one measurement': '请至少输入一项测量',
+ 'Choose a valid date': '请选择有效日期',
+ 'That date already has measurements — edit it instead.': '该日期已有测量——请直接编辑。',
+ 'A custom measurement with that name already exists.': '已有同名的自定义测量项。',
+ 'Body fat must be between 0 and 100%.': '体脂率必须在 0% 到 100% 之间。',
+ 'No measurements yet': '还没有测量',
+ 'No measurements yet — choose what you track and log your first check-in.': '还没有测量——选择你要跟踪的项目并记录第一次。',
+ 'View measurements': '查看测量',
+ 'since previous': '较上次',
+ '{0} measurement': '{0} 项测量',
+ '{0} measurements': '{0} 项测量',
+ 'Custom measurement': '自定义测量项',
+ 'Custom': '自定义',
+ 'Fields': '字段',
+ 'Date': '日期',
+ 'Add': '添加',
+ 'Torso': '躯干',
+ 'Arms': '手臂',
+ 'Legs': '腿部',
+ 'Other': '其他',
+ 'Neck': '颈围',
+ 'Waist': '腰围',
+ 'Hips': '臀围',
+ 'Abdomen': '腹围',
+ 'Left upper arm': '左上臂',
+ 'Right upper arm': '右上臂',
+ 'Left forearm': '左前臂',
+ 'Right forearm': '右前臂',
+ 'Left wrist': '左手腕',
+ 'Right wrist': '右手腕',
+ 'Left thigh': '左大腿',
+ 'Right thigh': '右大腿',
+ 'Left calf': '左小腿',
+ 'Right calf': '右小腿',
+ 'Left ankle': '左脚踝',
+ 'Right ankle': '右脚踝',
+ 'Body fat': '体脂率'
}
diff --git a/frontend/src/store/useStore.js b/frontend/src/store/useStore.js
index 6da600e30..0b25b4eb5 100644
--- a/frontend/src/store/useStore.js
+++ b/frontend/src/store/useStore.js
@@ -5,12 +5,14 @@ import { registerCustom } from '../lib/exercises.js'
import { DEMO, DEMO_SEEDED } from '../lib/demo.js'
import { guestAllowed } from '../lib/guest.js'
import { MOBILE, nativeLoad, nativeSave, syncReminder } from '../lib/mobile.js'
+import { normalizeMeasurementsState } from '../lib/measurements.js'
const KEY = 'gym_state_v1'
export const DEF = {
unit: 'kg', restSec: 90, sound: true, keepAwake: true, lang: 'en',
theme: 'dark', accent: 'lime', body: 'male', targetW: null,
bodyweight: [], routines: [], week: {}, dayPlan: {},
+ measurements: [], measurementEnabled: null, customMeasurements: [],
exWeights: {}, workouts: [], active: null, customEx: [], gifSize: 'full',
// effort: which per-set effort scale is logged — 'none' | 'rir' | 'rpe'. null, not 'none', so
// that a profile which never chose (loaded state is overlaid on DEF, on every path: local,
@@ -23,12 +25,12 @@ const clone = o => JSON.parse(JSON.stringify(o))
function loadState() {
try {
const raw = localStorage.getItem(KEY)
- if (raw) return Object.assign(clone(DEF), JSON.parse(raw))
+ if (raw) return normalizeMeasurementsState(Object.assign(clone(DEF), JSON.parse(raw)))
} catch (e) { /* ignore */ }
- return clone(DEF)
+ return normalizeMeasurementsState(clone(DEF))
}
-const hasData = st => !!((st.workouts || []).length || (st.routines || []).length || (st.bodyweight || []).length)
+const hasData = st => !!((st.workouts || []).length || (st.routines || []).length || (st.bodyweight || []).length || (st.measurements || []).length)
export const useStore = create((set, get) => {
let pushTm = null
@@ -42,6 +44,7 @@ export const useStore = create((set, get) => {
}
const persist = (S, push = true) => {
+ normalizeMeasurementsState(S)
S._ts = Date.now()
registerCustom(S.customEx)
localStorage.setItem(KEY, JSON.stringify(S))
diff --git a/frontend/src/views/Admin.jsx b/frontend/src/views/Admin.jsx
index c981c732b..537495bbd 100644
--- a/frontend/src/views/Admin.jsx
+++ b/frontend/src/views/Admin.jsx
@@ -45,6 +45,7 @@ function UserDetail({ id, onChanged, close }) {
<div className="tiles" style={{ textAlign: 'left' }}>
<div className="tile"><div className="l">Workouts</div><div className="v" style={{ fontSize: '1.1rem' }}>{d.workouts.length}</div></div>
<div className="tile"><div className="l">Weigh-ins</div><div className="v" style={{ fontSize: '1.1rem' }}>{d.bodyweight.length}</div></div>
+ <div className="tile"><div className="l">Measurements</div><div className="v" style={{ fontSize: '1.1rem' }}>{(d.measurements || []).length}</div></div>
<div className="tile"><div className="l">Routines</div><div className="v" style={{ fontSize: '1.1rem' }}>{d.routines.length}</div></div>
<div className="tile"><div className="l">Last sync</div><div className="v" style={{ fontSize: '.95rem' }}>{rel(d.lastSync)}</div></div>
</div>
diff --git a/frontend/src/views/Home.jsx b/frontend/src/views/Home.jsx
index 1a751f898..12f3ae820 100644
--- a/frontend/src/views/Home.jsx
+++ b/frontend/src/views/Home.jsx
@@ -9,6 +9,8 @@ import LineChart from '../components/LineChart.jsx'
import Icon from '../components/Icon.jsx'
import { Button } from '../components/ui.jsx'
import { glyphOf } from '../lib/glyphs.js'
+import { enabledMeasurementFields, latestMeasurement, measurementUnit, toMeasurementDisplay } from '../lib/measurements.js'
+import { measurementLogSheet } from './Measurements.jsx'
// Home = what to do now + a quick glance. Deep charts & history live in Stats.
export default function Home() {
@@ -41,6 +43,12 @@ export default function Home() {
const wThisWeek = S.workouts.filter(w => weekKey(w.d) === weekKey(todayISO())).length
const plannedPerWeek = Object.keys(S.week).filter(k => S.week[k]).length
const bwPoints = S.bodyweight.slice(-30).map(b => ({ t: b.t || new Date(b.d).getTime(), y: b.w, d: b.d }))
+ const measurementSummary = enabledMeasurementFields(S).map(field => {
+ const latest = latestMeasurement(S, field.key)
+ if (!latest) return null
+ const value = field.key === 'bodyFat' ? latest.value : toMeasurementDisplay(latest.value, S.unit)
+ return { field, value, d: latest.entry.d, unit: field.key === 'bodyFat' ? '%' : measurementUnit(S.unit) }
+ }).filter(Boolean).slice(0, 3)
// today's session shown right under the week strip
const onToday = () => { if (S.active) nav('/workout'); else if (routine) startFlow(routine.id); else dayOverrideSheet(todayISO()) }
@@ -116,6 +124,19 @@ export default function Home() {
</> : <div className="muted small">{t("No entries yet — log your weight to start the curve. It's also asked before every workout.")}</div>}
</div>
+ <div className="card">
+ <div className="row between" style={{ marginBottom: measurementSummary.length ? 10 : 0 }}>
+ <h2 style={{ margin: 0 }}>{t('Body measurements')}</h2>
+ <div className="row" style={{ gap: 8 }}>
+ <Button size="sm" icon="plus" onClick={() => measurementLogSheet()}>{t('Log')}</Button>
+ <button className="iconbtn" onClick={() => nav('/measurements')} aria-label={t('View measurements')}><Icon name="chevronRight" /></button>
+ </div>
+ </div>
+ {measurementSummary.length ? <div className="measure-home-grid">{measurementSummary.map(({ field, value, d, unit }) => <button key={field.key} onClick={() => nav('/measurements')}>
+ <span>{t(field.label)}</span><b>{fmtNum(value)} {unit}</b><i>{fmtDate(d, true)}</i>
+ </button>)}</div> : <button className="measure-empty" onClick={() => nav('/measurements')}>{t('No measurements yet — choose what you track and log your first check-in.')} <Icon name="chevronRight" /></button>}
+ </div>
+
<div className="card tappable" style={{ cursor: 'pointer' }} onClick={() => calendarSheet()}>
<div className="row between">
<div>
diff --git a/frontend/src/views/Measurements.jsx b/frontend/src/views/Measurements.jsx
new file mode 100644
index 000000000..d39f225fa
--- /dev/null
+++ b/frontend/src/views/Measurements.jsx
@@ -0,0 +1,233 @@
+import { useMemo, useState } from 'react'
+import { useNavigate } from 'react-router-dom'
+import { useStore } from '../store/useStore.js'
+import { useUI } from '../store/useUI.js'
+import {
+ MEASUREMENT_FIELDS, MEASUREMENT_KEYS, emptyMeasurement, enabledMeasurementFields,
+ fromMeasurementDisplay, latestMeasurement, measurementEntryHasValues,
+ measurementSeries, measurementUnit, measurementValue, normalizeMeasurementEntry,
+ toMeasurementDisplay,
+} from '../lib/measurements.js'
+import { fmtDate, fmtNum, todayISO, uid } from '../lib/format.js'
+import { t } from '../lib/i18n.js'
+import LineChart from '../components/LineChart.jsx'
+import Icon from '../components/Icon.jsx'
+import { Button, NumberField, Section, Segmented, SelectRow, Switch, TextField } from '../components/ui.jsx'
+import { confirmSheet } from '../sheets.jsx'
+
+const update = (...args) => useStore.getState().update(...args)
+const toast = message => useUI.getState().toast(message)
+
+const fieldUnit = (field, profileUnit) => field.key === 'bodyFat' ? '%' : measurementUnit(profileUnit)
+const shownValue = (entry, field, profileUnit) => {
+ const value = measurementValue(entry, field.key)
+ if (value == null) return null
+ return field.key === 'bodyFat' ? value : toMeasurementDisplay(value, profileUnit)
+}
+
+function MeasurementLog({ sourceDate, close }) {
+ const S = useStore(s => s.S)
+ const source = sourceDate ? S.measurements.find(e => e.d === sourceDate) : null
+ const enabled = enabledMeasurementFields(S)
+ const fields = [...enabled]
+ // Editing must expose populated fields even if the user disabled them after logging.
+ if (source) {
+ for (const f of MEASUREMENT_FIELDS) {
+ if (source[f.key] != null && !fields.some(x => x.key === f.key)) fields.push(f)
+ }
+ for (const o of source.other || []) {
+ if (o.value != null && !fields.some(x => x.key === 'other:' + o.id)) {
+ fields.push({ key: 'other:' + o.id, label: o.name, custom: true, group: 'Other' })
+ }
+ }
+ }
+ const [date, setDate] = useState(source?.d || todayISO())
+ const [values, setValues] = useState(() => Object.fromEntries(fields.map(f => [f.key, shownValue(source, f, S.unit)])))
+
+ const save = () => {
+ if (!/^\d{4}-\d{2}-\d{2}$/.test(date) || date > todayISO()) { toast(t('Choose a valid date')); return }
+ if (date !== sourceDate && S.measurements.some(e => e.d === date)) {
+ toast(t('That date already has measurements — edit it instead.')); return
+ }
+ const base = source ? normalizeMeasurementEntry(source, S.customMeasurements) : emptyMeasurement(date, S.customMeasurements)
+ base.d = date
+ base.t = source && date === source.d ? source.t : (date === todayISO() ? Date.now() : new Date(date + 'T12:00:00').getTime())
+ for (const field of fields) {
+ const raw = values[field.key]
+ const value = raw == null || raw === 0 ? null : Math.round(+raw * 10) / 10
+ if (field.key === 'bodyFat' && value > 100) { toast(t('Body fat must be between 0 and 100%.')); return }
+ if (field.custom) {
+ const item = base.other.find(o => o.id === field.key.slice(6))
+ if (item) item.value = value == null ? null : fromMeasurementDisplay(value, S.unit)
+ } else if (field.key === 'bodyFat') base.bodyFat = value
+ else base[field.key] = value == null ? null : fromMeasurementDisplay(value, S.unit)
+ }
+ if (!measurementEntryHasValues(base)) { toast(t('Enter at least one measurement')); return }
+ update(state => {
+ if (sourceDate) state.measurements = state.measurements.filter(e => e.d !== sourceDate)
+ state.measurements.push(base)
+ })
+ close()
+ toast(t('Measurements saved'))
+ }
+
+ return <>
+ <h3>{source ? t('Edit measurements') : t('Log measurements')}</h3>
+ <div className="muted small" style={{ marginBottom: 12 }}>{t('Fill only what you measured today. Empty fields stay empty.')}</div>
+ <label className="measure-date">
+ <span>{t('Date')}</span>
+ <input className="field" type="date" value={date} max={todayISO()} onChange={e => setDate(e.target.value)} />
+ </label>
+ {fields.length ? <div className="measure-form">
+ {fields.map(field => <label className="measure-field" key={field.key}>
+ <span>{t(field.label)}</span>
+ <span className="measure-input">
+ <NumberField nullable value={values[field.key]} onChange={value => setValues(v => ({ ...v, [field.key]: value }))} />
+ <i>{fieldUnit(field, S.unit)}</i>
+ </span>
+ </label>)}
+ </div> : <div className="empty small">{t('Choose at least one measurement first.')}</div>}
+ <div style={{ height: 14 }} />
+ <Button variant="primary" onClick={save} disabled={!fields.length}>{t('Save')}</Button>
+ <div style={{ height: 8 }} />
+ <Button variant="ghost" className="dim" onClick={close}>{t('Cancel')}</Button>
+ </>
+}
+
+export function measurementLogSheet(sourceDate = null) {
+ return useUI.getState().openSheet(close => <MeasurementLog sourceDate={sourceDate} close={close} />)
+}
+
+function ManageMeasurements({ close }) {
+ const S = useStore(s => s.S)
+ const [name, setName] = useState('')
+ const groups = [...new Set(MEASUREMENT_FIELDS.map(f => f.group))]
+ const toggleBuiltin = (key, on) => update(state => {
+ const set = new Set(state.measurementEnabled || [])
+ if (on) set.add(key); else set.delete(key)
+ state.measurementEnabled = [...set]
+ })
+ const toggleCustom = (id, on) => update(state => {
+ const item = state.customMeasurements.find(c => c.id === id)
+ if (item) item.enabled = on
+ })
+ const add = () => {
+ const clean = name.trim()
+ if (!clean) return
+ if (S.customMeasurements.some(c => c.name.toLowerCase() === clean.toLowerCase()) ||
+ MEASUREMENT_FIELDS.some(f => f.label.toLowerCase() === clean.toLowerCase())) {
+ toast(t('A custom measurement with that name already exists.')); return
+ }
+ update(state => { state.customMeasurements.push({ id: uid(), name: clean.slice(0, 60), enabled: true }) })
+ setName('')
+ }
+ return <>
+ <h3>{t('Choose measurements')}</h3>
+ <div className="muted small" style={{ marginBottom: 12 }}>{t('Keep the logging form focused on the measurements you actually track.')}</div>
+ {groups.map(group => <Section title={t(group)} key={group} className="measure-options">
+ {MEASUREMENT_FIELDS.filter(f => f.group === group).map(field => <div className="lrow" key={field.key}>
+ <span className="lrow-m"><span className="lrow-t">{t(field.label)}</span></span>
+ <Switch checked={(S.measurementEnabled || []).includes(field.key)} onChange={on => toggleBuiltin(field.key, on)} />
+ </div>)}
+ {group === 'Other' && S.customMeasurements.map(field => <div className="lrow" key={field.id}>
+ <span className="lrow-m"><span className="lrow-t">{field.name}</span><span className="lrow-s">{t('Custom')}</span></span>
+ <Switch checked={field.enabled !== false} onChange={on => toggleCustom(field.id, on)} />
+ </div>)}
+ </Section>)}
+ <div className="row" style={{ gap: 8, alignItems: 'stretch' }}>
+ <TextField value={name} maxLength={60} placeholder={t('Custom measurement')} onChange={e => setName(e.target.value)} onKeyDown={e => { if (e.key === 'Enter') add() }} />
+ <Button icon="plus" onClick={add} disabled={!name.trim()}>{t('Add')}</Button>
+ </div>
+ <div style={{ height: 14 }} />
+ <Button variant="primary" onClick={close}>{t('Done')}</Button>
+ </>
+}
+
+export function manageMeasurementsSheet() {
+ return useUI.getState().openSheet(close => <ManageMeasurements close={close} />)
+}
+
+export default function Measurements() {
+ const nav = useNavigate()
+ const S = useStore(s => s.S)
+ const [range, setRange] = useState(90)
+ const available = useMemo(() => {
+ const out = enabledMeasurementFields(S)
+ for (const field of MEASUREMENT_FIELDS) {
+ if (latestMeasurement(S, field.key) && !out.some(f => f.key === field.key)) out.push(field)
+ }
+ for (const custom of S.customMeasurements || []) {
+ const key = 'other:' + custom.id
+ if (latestMeasurement(S, key) && !out.some(f => f.key === key)) out.push({ key, label: custom.name, custom: true, group: 'Other' })
+ }
+ return out
+ }, [S])
+ const fallback = available.find(f => f.key === 'waist')?.key || available[0]?.key || null
+ const [selected, setSelected] = useState(fallback)
+ const key = available.some(f => f.key === selected) ? selected : fallback
+ const field = available.find(f => f.key === key)
+ const points = key ? measurementSeries(S, key, range) : []
+ const unit = key === 'bodyFat' ? '%' : measurementUnit(S.unit)
+ const all = key ? measurementSeries(S, key) : []
+ const latest = all.at(-1)
+ const previous = all.at(-2)
+ const delta = latest && previous ? Math.round((latest.y - previous.y) * 10) / 10 : null
+ const recent = [...S.measurements].reverse()
+
+ const remove = entry => confirmSheet({
+ title: t('Delete measurements?'),
+ message: t('Deletes the measurements logged on {0}.', fmtDate(entry.d, true)),
+ confirmText: t('Delete'), danger: true,
+ onConfirm: () => { update(state => { state.measurements = state.measurements.filter(e => e.d !== entry.d) }); toast(t('Measurements deleted')) },
+ })
+
+ return <div className="narrow">
+ <div className="hdr">
+ <button className="iconbtn" onClick={() => nav('/home')} aria-label={t('Home')}><Icon name="chevronLeft" /></button>
+ <div style={{ flex: 1, marginLeft: 10 }}><h1>{t('Body measurements')}</h1><div className="sub">{t('Circumference & composition')}</div></div>
+ <button className="iconbtn" onClick={manageMeasurementsSheet} aria-label={t('Choose measurements')}><Icon name="gear" /></button>
+ </div>
+
+ <div className="card">
+ <div className="row between" style={{ marginBottom: 10 }}>
+ <div>
+ <div className="muted small">{field ? t(field.label) : t('Body measurements')}</div>
+ <div className="big" style={{ marginTop: 3 }}>{latest ? <>{fmtNum(latest.y)} <span className="muted" style={{ fontSize: '1rem' }}>{unit}</span></> : '—'}</div>
+ {delta != null && delta !== 0 && <div className="small" style={{ marginTop: 3, color: 'var(--label-2)' }}>{delta > 0 ? '+' : ''}{fmtNum(delta)} {unit} {t('since previous')}</div>}
+ </div>
+ <Button size="sm" icon="plus" onClick={() => measurementLogSheet()}>{t('Log')}</Button>
+ </div>
+ {available.length > 0 && <div className="sect-b measure-select"><SelectRow
+ title={t('Measurement')} sheetTitle={t('Choose measurement')} value={key} onChange={setSelected}
+ options={available.map(f => ({ value: f.key, label: t(f.label) }))} />
+ </div>}
+ <Segmented className="seg-range" value={range} onChange={setRange}
+ options={[{ value: 30, label: '1M' }, { value: 90, label: '3M' }, { value: 365, label: '1Y' }, { value: 0, label: t('All') }]} />
+ <div className="chart"><LineChart points={points} h={170} unit={unit} color="var(--teal)" /></div>
+ </div>
+
+ {!available.length && <div className="card">
+ <div className="muted small">{t('Choose the measurements you want to track, then log your first check-in.')}</div>
+ <div style={{ height: 10 }} /><Button onClick={manageMeasurementsSheet}>{t('Choose measurements')}</Button>
+ </div>}
+
+ <div className="row between" style={{ margin: '18px 2px 10px' }}>
+ <h4 className="sec" style={{ margin: 0 }}>{t('Measurement history')}</h4>
+ <Button size="sm" variant="ghost" icon="gear" onClick={manageMeasurementsSheet}>{t('Fields')}</Button>
+ </div>
+ {recent.length ? <div className="list">{recent.map(entry => {
+ const count = MEASUREMENT_KEYS.filter(k => entry[k] != null).length + (entry.other || []).filter(o => o.value != null).length
+ const previewFields = enabledMeasurementFields(S).map(f => ({ field: f, value: shownValue(entry, f, S.unit) })).filter(x => x.value != null).slice(0, 3)
+ return <div className="card measure-history" key={entry.d}>
+ <div className="row between">
+ <div><b>{fmtDate(entry.d, true)}</b><div className="small dim" style={{ marginTop: 2 }}>{t(count === 1 ? '{0} measurement' : '{0} measurements', count)}</div></div>
+ <div className="row" style={{ gap: 4 }}>
+ <button className="iconbtn" onClick={() => measurementLogSheet(entry.d)} aria-label={t('Edit')}><Icon name="pencil" /></button>
+ <button className="iconbtn" style={{ color: 'var(--red)' }} onClick={() => remove(entry)} aria-label={t('Delete')}><Icon name="trash" /></button>
+ </div>
+ </div>
+ {previewFields.length > 0 && <div className="measure-preview">{previewFields.map(({ field: f, value }) => <span key={f.key}>{t(f.label)} <b>{fmtNum(value)} {fieldUnit(f, S.unit)}</b></span>)}</div>}
+ </div>
+ })}</div> : <div className="empty small">{t('No measurements yet')}</div>}
+ </div>
+}
diff --git a/frontend/src/views/Settings.jsx b/frontend/src/views/Settings.jsx
index 4b3508c2a..e1cee31f9 100644
--- a/frontend/src/views/Settings.jsx
+++ b/frontend/src/views/Settings.jsx
@@ -99,7 +99,7 @@ export default function Settings() {
{!user && !DEMO && !MOBILE && <p className="sect-f" style={{ marginTop: -18, marginBottom: 22 }}>{t('Guest mode — data lives only in this browser.')}</p>}
{/* ---------- general ---------- */}
- <Section title={t('General')} footer={t('Note: switching units only changes the label — logged numbers are not converted.')}>
+ <Section title={t('General')} footer={t('Weight history keeps its numbers when units change. Body measurements are safely converted between cm and in.')}>
<SelectRow
icon="globe" iconTint="var(--blue)" title={t('Language')}
value={S.lang || 'en'} onChange={v => update(s => { s.lang = v })}
@@ -180,7 +180,7 @@ export default function Settings() {
accessory="chevron" onClick={() => importRef.current.click()} />
<Row icon="upload" iconTint="var(--blue)" title={t('Import backup')} accessory="chevron" onClick={() => fileRef.current.click()} />
<Row icon="download" iconTint="var(--blue)" title={t('Export backup (JSON)')} accessory="chevron" onClick={doExport} />
- <Row icon="trash" iconTint="var(--red)" title={t('Reset everything')} danger onClick={() => confirmSheet({ title: t('Reset everything?'), message: t('Deletes your plan, workouts and body weight on this device. This cannot be undone.'), confirmText: t('Delete everything'), danger: true, onConfirm: () => { replaceState(JSON.parse(JSON.stringify(DEF)), true); nav('/home'); toast(t('All data reset')) } })} />
+ <Row icon="trash" iconTint="var(--red)" title={t('Reset everything')} danger onClick={() => confirmSheet({ title: t('Reset everything?'), message: t('Deletes your plan, workouts, body weight and measurements on this device. This cannot be undone.'), confirmText: t('Delete everything'), danger: true, onConfirm: () => { replaceState(JSON.parse(JSON.stringify(DEF)), true); nav('/home'); toast(t('All data reset')) } })} />
</Section>
<input ref={fileRef} type="file" accept=".json,application/json" style={{ display: 'none' }} onChange={doImport} />
{/* Reset after reading so picking the same file twice still fires onChange. */}