Compare commits

...
20 Commits
Author SHA1 Message Date
Duarte Santos 785380ab1b Release v1.1.2: consolidate all work since v1.1.1
Collapse the never-released intermediate versions (custom exercises,
localization, comma fix, narrow-phone fix) into a single v1.1.2 release.
Merge their changelog sections under one v1.1.2 heading and set the
package version to 1.1.2. The confusing v1.2.0 and v1.1.3 tags are
removed in favour of a clean v1.1.2.
2026-07-22 00:50:21 +02:00
Duarte Santos 91e0bd73b9 Release v1.1.3: custom exercises + comma decimal separator
Fold the custom-exercises feature (#11) and the comma-decimal fix (#13)
into a single v1.1.3 release. Merge their changelog sections and set the
package version to 1.1.3.
2026-07-22 00:38:24 +02:00
Duarte Santos a4f73e34d1 Custom exercises: optional description + reachable delete
Adds an optional free-text description to custom exercises, shown where
a built-in exercise shows its animation (detail + config sheets) and
included in exercise search.

Deleting was only reachable from the Exercises tab detail sheet, which
you never pass through when tapping an exercise inside a routine. The
routine's config sheet now offers "Edit or delete this exercise", and
its old "Remove exercise" button is relabelled "Remove from routine" so
removing from a routine and deleting for good are no longer confusable.

Refs #11
2026-07-22 00:34:27 +02:00
Duarte Santos 0cefcb3636 Custom exercises: create your own with name + body part
Users can add movements missing from the catalogue (issue #11) from the
exercise picker or the Exercises tab. Custom exercises live in synced
state (S.customEx) and are merged into the exercise index, so routines,
supersets, logging, PRs, stats and history all work unchanged. The
animation stays blank by design. Editable and deletable from the detail
sheet; deleting keeps logged history readable by stamping the name into
past entries. Translated into all 12 UI languages.

Closes #11
2026-07-22 00:26:16 +02:00
Duarte Santos 93bd4e3850 Renumber comma-fix release as v1.1.3 2026-07-22 00:11:26 +02:00
Duarte Santos 30fd3a84a1 Accept comma as decimal separator in numeric inputs
iOS decimal keyboards in many locales only offer a comma; type=number
inputs report an empty value for it, snapping the field to 0. Numeric
fields (weight, speed, etc.) are now text inputs with inputMode=decimal
backed by a shared NumField component that normalizes ',' to '.' and
keeps partial input like "33," alive while typing.

Fixes #13
2026-07-22 00:03:48 +02:00
Duarte Santos c05b0756ec Localization: 12 UI languages + exercise instructions in 10 (#7)
Adds a Language setting (Settings → Appearance) that translates the whole
app: a tiny dependency-free i18n layer (English source strings as keys,
per-language dictionaries in frontend/src/locales/) plus per-language
exercise-instruction packs generated from the upstream dataset
(frontend/src/instr/, via scripts/build-instructions.mjs).

UI: en, de, es, fr, it, pt, pl, tr, ru, zh, ko, hi. Instructions: all of
those except de/pt (not in the upstream dataset — fall back to English).
Body-part/equipment/muscle labels and date formats are localized too;
exercise names stay English (upstream limitation).

Everything is lazy-loaded per language (Vite code-splitting), so the
initial bundle is unchanged; the choice syncs with the profile like the
theme. Closes #7.
2026-07-21 21:45:24 +02:00
Duarte Santos b9f8d18bbd Fix exercise-config sheet overflowing on narrow phones (#10)
The Sets/Reps/Weight stepper row (and its cardio variant) used fixed-width
steppers that added up to ~445px — wider than an iPhone viewport — clipping
the Weight stepper off-screen and letting iOS Safari pan the whole page
sideways. Steppers in the config sheet now flex and shrink to fit, and
html/body clip horizontal overflow as a safety net.
2026-07-21 20:48:14 +02:00
Duarte Santos 42402cae0c Lower weight slider floor to 1kg, add +-1/+-0.5 quick-step buttons
20kg was too high a floor for light dumbbell work. Also added -1/-0.5/
+0.5/+1 chip buttons alongside the existing fine +-0.1 pair, so coarse
adjustments don't need dozens of taps.
2026-07-21 19:08:07 +02:00
Duarte Santos 9da4e5a219 Replace self-extending slider window with a fixed range
The auto-extend fix from the last commit traded one bug for another:
every time the window grew mid-drag, the whole range shifted, so a
value's position on the track would jump around unpredictably (e.g.
60kg sliding from the middle toward the far left just from dragging
to the far end and back). A window that resizes itself during
interaction can't be predictable by construction.

Fixed range (20-300kg) instead — coarser per-pixel precision, but the
thumb's position is now a pure function of value: no drift, no jumps,
ever. The +/- steppers still give exact fine control. Verified with a
repeatable test: a value's slider position is now identical before and
after dragging to both extremes.
2026-07-21 19:02:18 +02:00
Duarte Santos 32fc0071dc Fix weight slider capped at a frozen ±20kg window
WeightInput (used for body weight, goal weight, and per-exercise top
weight) computed its slider's min/max once from the initial value and
never revisited it — starting from a fresh 70kg default capped the
slider at 90kg with no way to drag past it, exactly the reported bug.

Widened the base window (±60) and made it self-extend when dragged or
stepped to either edge, instead of getting stuck there.
2026-07-21 18:57:14 +02:00
Duarte Santos f117101972 Add a remove-set button during a workout
There was + Add set but no way back down — some days you just want
fewer sets than planned. Mirrors Add set (removes the last row),
floored at 1 set per exercise so an entry can't go empty.
2026-07-21 18:49:30 +02:00
Duarte Santos fbc615aa26 Release v1.1.1 2026-07-21 12:48:12 +02:00
Duarte Santos e83d642e1b Remove push delivery latency disclaimer from Settings
Confirmed working reliably after the 10s check-interval + high-urgency
push fixes.
2026-07-21 12:45:57 +02:00
Duarte Santos 95c4b2b279 Add honest delivery-latency disclaimer under push notification settings
Web Push through Apple/Google isn't instant or guaranteed even with
high urgency — set the expectation up front instead of letting people
assume it's unreliable/broken when it lags.
2026-07-21 12:34:32 +02:00
Duarte Santos c5cf31e2ca Tighten reminder timing: 10s check interval + high-urgency push
Reminder loop only checked once a minute, unaligned to the minute
boundary, so it could sit up to 59s on the target time before noticing
- now capped at ~9s. Also mark pushes as urgency:'high', the one lever
we actually have over delivery speed (iOS/Android throttle low-urgency
background push harder under battery saving). Remaining delivery lag
after that is Apple/Google's own push relay scheduling, not something
we control from here.
2026-07-21 12:25:24 +02:00
Duarte Santos 10fa150d09 Flush pending state save immediately when tab backgrounds/closes
Settings changes (like the reminder time) were saved via a 1.5s
debounce; closing or switching away from the tab right after an edit
could kill that pending save before it reached the server, silently
losing the change. Now flushed on visibilitychange instead of relying
on the timer alone.

Also confirmed via a live server-side test (bypassing the client
entirely) that the reminder loop itself fires correctly — trimmed the
verbose per-tick debug log added for that test, kept the one for an
actual match.
2026-07-21 12:00:49 +02:00
Duarte Santos 5a7ce13ca2 Update docs: reminder timezone is now auto-detected per user, not a server env var 2026-07-21 11:47:26 +02:00
Duarte Santos 0ac531acb8 Fix workout reminder using the server's timezone instead of the user's
The reminder compared 'now' against a single TZ env var, so it only
worked correctly for whoever's local time happened to match the
server's. The browser now reports its own IANA timezone (auto-
detected, no picker) and stores it with the reminder; the server
computes each user's local time/date individually via Intl, and the
client re-stamps it on every app load so it follows you when you
travel.
2026-07-21 11:46:45 +02:00
Duarte Santos 7dea9ccfcc Log push send failures instead of swallowing them silently
sendPush caught every webpush.sendNotification error to clean up
expired subscriptions, but never logged anything for other failure
modes — made a delivery problem indistinguishable from 'nothing to
send' when debugging.
2026-07-21 11:42:40 +02:00
54 changed files with 4452 additions and 354 deletions

No files matched your search

+4 -8
View File
@@ -20,11 +20,7 @@ RP_NAME=openGym
# (Point your proxy at the web container's WEB_PORT. See docs/SELF_HOSTING.md.)
# ── Notifications (optional) ───────────────────────────────────────────────
# Push works out of the box — VAPID keys are generated on first run and saved
# to ./data/vapid.json. The only thing worth setting yourself:
#
# TZ=Europe/Zurich
#
# Sets the container's timezone so the workout-day reminder fires at the time
# you actually pick, not UTC. Find your zone name at
# https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
# Push works out of the box — nothing to set. VAPID keys are generated on first
# run and saved to ./data/vapid.json. Each user's browser reports its own
# timezone automatically, so the workout-day reminder fires at their local
# time regardless of where the server runs or where they're travelling.
+66
View File
@@ -1,5 +1,71 @@
# Changelog
## v1.1.2 — 2026-07-22
Custom exercises, full localization, and input fixes.
### Custom exercises (#11)
- ✨ **Create your own exercise** from the exercise picker or the Exercises tab: a name and a
body part is all it takes. Your search text is pre-filled as the name, so "no match" flows
straight into "create it".
- 📝 **Optional description** — setup, cues, anything you want to remember. It shows on the
exercise's detail and config sheets (where a built-in exercise would show its animation),
and it's searchable, so you can find your own exercises by their cues too.
- 🏋️ Custom exercises behave like built-in ones everywhere — routines, supersets, workout
logging, weight suggestions, PRs, stats and history. The animation stays blank by design.
- 🏃 Pick the *cardio* body part and it logs time + speed instead of weight × reps, like the
built-in cardio exercises.
- ✏️ Edit (rename, change body part or description) or delete your custom exercises — from
their detail sheet in the Exercises tab, or straight from the exercise inside a routine via
"Edit or delete this exercise". Deleting removes them from your routines; already-logged
workouts keep their sets and still show the exercise name. (The routine sheet's old "Remove
exercise" button is now labelled "Remove from routine", so the two are no longer confusable.)
### Localization (#7)
- 🌍 **12 UI languages**: English, Deutsch, Español, Français, Italiano, Português, Polski,
Türkçe, Русский, 中文, 한국어, हिन्दी. Pick yours under Settings → Appearance → Language;
the choice syncs with your profile like the theme does.
- 📖 **Localized exercise instructions** for 10 of those languages (all except German and
Portuguese, which the upstream dataset doesn't cover yet — those fall back to English),
covering all 1,324 exercises. Body-part filters, equipment and muscle tags are translated
too; exercise *names* stay English (upstream limitation). Custom exercises are translated too.
- 📅 Dates, weekday and month labels follow the selected language.
- ⚡ Zero cost when unused: the app still ships English-only by default. Each UI language is a
~7 kB chunk and each instruction pack ~80–120 kB (gzipped), downloaded only when you switch —
the initial bundle size is unchanged.
- 🛠️ New `scripts/build-instructions.mjs` regenerates the instruction packs from the upstream
dataset; translations live in `frontend/src/locales/` (PRs welcome — it's one flat
English-string → translation map per language).
- Known gaps: push notification texts (sent by the server) and plural forms in some languages
are approximated; happy to take corrections from native speakers.
### Fixes
- ⌨️ Weight and other numeric fields now accept a comma as decimal separator ("33,5") — iOS
decimal keyboards in many locales only offer a comma, which previously reset the field to 0.
Partial input like "33," no longer snaps to 0 while typing. (#13)
- 📱 Fixed the exercise-config sheet (Sets / Reps / Weight, and the cardio variant) overflowing the
screen edge on narrow phones — the Weight stepper was clipped and could make the whole page pan
sideways in iOS Safari. Steppers now shrink to fit the viewport. (#10)
- 🛡️ Added a global horizontal-overflow guard so a single too-wide element can no longer knock the
page layout off-scale.
## v1.1.1 — 2026-07-21
Reliability fixes for the push notifications shipped in v1.1.0, found through live testing:
- 🌍 Workout day reminder now fires by each user's own browser-detected timezone instead of a
single server-wide one — works correctly regardless of where the server runs, and follows you
automatically if you travel.
- 💾 Settings changes (like the reminder time) are flushed to the server immediately when the tab
backgrounds or closes, instead of relying solely on a 1.5s debounce that could get cut short.
- ⏱️ Reminder check tightened from a 60s to a 10s interval, and pushes are now marked
`urgency: 'high'` — cuts avoidable delay on top of it, though delivery time is ultimately up to
Apple/Google's push relay.
- 🪵 Push send failures are now logged instead of silently swallowed.
## v1.1.0 — 2026-07-21
- 🐳 Prebuilt Docker images published to `ghcr.io/duartesantos8/opengym-{api,web}` (amd64 + arm64)
+6 -4
View File
@@ -5,9 +5,11 @@ openGym's own code is licensed under the **GNU AGPL v3.0** (see [LICENSE](LICENS
## Exercise data & media
The exercise names, instructions, images and animations (fetched into `media/` at build time and
indexed in `frontend/src/lib/exercises-data.js`) come from
The exercise names, instructions (English in `frontend/src/lib/exercises-data.js`, other
languages in `frontend/src/instr/`, regenerated via `scripts/build-instructions.mjs`), images
and animations (fetched into `media/` at build time) come from
[**hasaneyldrm/exercises-dataset**](https://github.com/hasaneyldrm/exercises-dataset)
and are **not** covered by openGym's AGPL license — they remain under that dataset's own terms.
This media is not distributed in this repository; it is downloaded from the upstream source on
first run. If you redistribute openGym with the media included, review the upstream license first.
The media files are not distributed in this repository; they are downloaded from the upstream
source on first run. If you redistribute openGym with the media included, review the upstream
license first.
+2 -1
View File
@@ -55,6 +55,7 @@ as a home-screen app, passkey sign-in, offline support, sync across your phone a
- 🟩 **Activity heatmap** — a GitHub-style year view, shaded by time spent training
- 🔑 **Passkeys, not passwords** — Face ID / Touch ID / fingerprint login; each profile keeps its own data, synced across devices
- 🎨 **Themes** — light/dark + 8 accent colors, saved to your profile
- 🌍 **12 languages** — full UI translation (EN, DE, ES, FR, IT, PT, PL, TR, RU, ZH, KO, HI); exercise instructions localized in 10 of them, loaded on demand so the app stays fast
- 📦 **Yours to keep** — one-tap JSON export/import, guest mode, **no telemetry**
## Quick start (self-host)
@@ -122,7 +123,7 @@ Rough, community-driven — ideas and PRs welcome:
- [ ] Importers from Strong / Hevy (CSV → openGym JSON)
- [ ] Body measurements (waist, arms…) alongside weight
- [ ] Per-exercise notes & plate calculator
- [ ] More exercise-instruction languages (the dataset ships several)
- [ ] Exercise instructions in German & Portuguese (UI is translated; upstream dataset doesn't ship these yet)
## Tech
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "gym-api",
"version": "1.1.0",
"version": "1.1.1",
"private": true,
"type": "module",
"main": "server.js",
+30 -14
View File
@@ -56,8 +56,14 @@ async function sendPush(userId, payload) {
const body = JSON.stringify(payload);
let dirty = false;
await Promise.all(subs.map(async sub => {
try { await webpush.sendNotification({ endpoint: sub.endpoint, keys: sub.keys }, body); }
// urgency 'high' is the one lever we have over delivery speed — iOS/Android throttle
// low-urgency background push more aggressively under battery-saving modes. TTL is left
// at the library default (long) so a briefly-offline device still gets it once reconnected,
// rather than risking it being dropped for the sake of shaving off latency that TTL doesn't
// actually control anyway.
try { await webpush.sendNotification({ endpoint: sub.endpoint, keys: sub.keys }, body, { urgency: 'high' }); }
catch (e) {
console.error('push send failed', userId, e.statusCode, e.body || e.message);
if (e.statusCode === 404 || e.statusCode === 410) {
db.subs = db.subs.filter(s => s.endpoint !== sub.endpoint); dirty = true;
}
@@ -91,24 +97,32 @@ function effectiveRoutineId(S, iso) {
const wd = new Date(iso + 'T12:00:00').getDay();
return S.week?.[wd] || null;
}
const todayISO = () => {
const d = new Date();
return d.getFullYear() + '-' + String(d.getMonth() + 1).padStart(2, '0') + '-' + String(d.getDate()).padStart(2, '0');
};
// Computes "now" in an arbitrary IANA zone (e.g. "Europe/Lisbon") instead of the server's own —
// each user's reminder fires by their own clock, wherever they and their phone actually are.
function userNow(tz) {
try {
const parts = new Intl.DateTimeFormat('en-CA', {
timeZone: tz, hour12: false,
year: 'numeric', month: '2-digit', day: '2-digit', hour: '2-digit', minute: '2-digit'
}).formatToParts(new Date());
const g = t => parts.find(p => p.type === t)?.value;
return { date: `${g('year')}-${g('month')}-${g('day')}`, hhmm: `${g('hour')}:${g('minute')}` };
} catch { return null; } // unknown/invalid tz string — skip this user rather than guess
}
setInterval(() => {
const now = new Date();
const hhmm = String(now.getHours()).padStart(2, '0') + ':' + String(now.getMinutes()).padStart(2, '0');
const today = todayISO();
for (const user of db.users) {
if (user.lastReminder === today) continue;
if (!db.subs.some(s => s.userId === user.id)) continue;
const S = readState(user.id);
if (!S?.reminder?.on || S.reminder.time !== hhmm) continue;
if ((S.workouts || []).some(w => w.d === today)) continue;
const rid = effectiveRoutineId(S, today);
if (!S?.reminder?.on) continue;
const now = userNow(S.reminder.tz || 'UTC');
if (!now || S.reminder.time !== now.hhmm) continue;
if (user.lastReminder === now.date) continue;
if ((S.workouts || []).some(w => w.d === now.date)) continue;
const rid = effectiveRoutineId(S, now.date);
if (!rid) continue; // rest day — nothing planned
const routine = (S.routines || []).find(r => r.id === rid);
user.lastReminder = today;
console.log('reminder firing', user.id, rid);
user.lastReminder = now.date;
saveDb();
sendPush(user.id, {
title: routine ? `${routine.emoji || '🏋️'} ${routine.name} today` : 'Workout planned today',
@@ -116,7 +130,9 @@ setInterval(() => {
tag: 'day-reminder'
});
}
}, 60000).unref();
// Checked every 10s (not 60s) — ticks aren't aligned to the top of the minute, so a 60s
// interval could sit on your target minute for up to 59s before noticing. 10s caps that at ~9s.
}, 10000).unref();
/* ---------- sessions (signed cookie) ---------- */
function sign(payload) {
+5 -9
View File
@@ -109,14 +109,10 @@ rest-timer-over, and a reminder on days you have a workout planned but haven't l
Turn it on per-profile in **Settings → Notifications** (requires a signed-in passkey profile and
HTTPS — see section 3).
No setup needed server-side: VAPID keys are generated on first run and saved to `./data/vapid.json`.
The one thing worth setting is your timezone, so the day reminder fires at the time you actually
picked rather than UTC:
```bash
# .env
TZ=Europe/Zurich
```
No setup needed server-side, and nothing to configure per timezone: VAPID keys are generated on
first run and saved to `./data/vapid.json`, and each user's browser reports its own timezone
automatically when they turn the reminder on — it fires at their local time, and follows them if
they travel, regardless of what timezone the server itself runs in.
## 7. Updating
@@ -147,6 +143,6 @@ downloaded media are untouched.
| Media didn't download | `docker compose logs media`. Re-run `docker compose up -d`, or run `./scripts/fetch-media.sh`. |
| Port 8080 already used | Set `WEB_PORT=9090` in `.env` (and update `ORIGIN` for local testing). |
| No "Notifications" option in Settings | Requires a signed-in profile and HTTPS (or `localhost`) — guest mode and plain HTTP over LAN can't subscribe. |
| Day reminder fires at the wrong time | Set `TZ=Continent/City` in `.env` and restart (see section 6). Defaults to UTC. |
| Day reminder fires at the wrong time | Toggle it off and on in Settings so it re-detects your browser's timezone (also happens automatically on every app load — see section 6). |
| Want to reset a stuck login | Delete the cookie in your browser; sessions are just signed cookies. |
| `docker compose pull` fails with "denied" / "unauthorized" | The prebuilt images aren't published yet, or need to be, or the GHCR package is still private — build from source instead (`docker compose up -d --build`). |
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "opengym-frontend",
"private": true,
"version": "1.1.0",
"version": "1.1.2",
"type": "module",
"scripts": {
"dev": "vite",
+4
View File
@@ -2,6 +2,7 @@ import { useEffect } from 'react'
import { HashRouter, Routes, Route, Navigate, useNavigate, useLocation } from 'react-router-dom'
import { useStore } from './store/useStore.js'
import { ACCENTS } from './lib/format.js'
import { setLang, useLang } from './lib/i18n.js'
import { setNav } from './lib/nav.js'
import { startFlow } from './sheets.jsx'
import TabBar from './components/TabBar.jsx'
@@ -31,8 +32,11 @@ function Shell() {
const loc = useLocation()
const { S, user, ready } = useStore()
const isGuest = useStore(s => s.isGuest())
const langV = useLang() // re-renders the whole shell when the language (pack) changes
useEffect(() => { setNav(navigate) }, [navigate])
useEffect(() => { applyPrefs(S.theme, S.accent) }, [S.theme, S.accent])
useEffect(() => { setLang(S.lang || 'en') }, [S.lang])
useEffect(() => { document.documentElement.lang = S.lang || 'en' }, [langV, S.lang])
// every tab/route change starts at the top of the page
useEffect(() => { window.scrollTo(0, 0) }, [loc.pathname])
+6 -5
View File
@@ -1,5 +1,6 @@
import { useEffect, useRef } from 'react'
import { fmtVol, isoOf, todayISO } from '../lib/format.js'
import { fmtVol, isoOf, todayISO, MONTHS } from '../lib/format.js'
import { t } from '../lib/i18n.js'
// GitHub-style activity heatmap, shaded by time trained per day.
export default function Heatmap({ S, onDay }) {
@@ -27,7 +28,7 @@ export default function Heatmap({ S, onDay }) {
const colStart = new Date(start); colStart.setDate(start.getDate() + wk * 7)
const mo = colStart.getMonth()
const showM = mo !== lastMonth && colStart.getDate() <= 7 && wk < 51
months.push(<span key={wk}>{showM ? ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'][mo] : ''}</span>)
months.push(<span key={wk}>{showM ? t(MONTHS[mo]) : ''}</span>)
if (colStart.getDate() <= 7) lastMonth = mo
const cells = []
for (let d = 0; d < 7; d++) {
@@ -36,7 +37,7 @@ export default function Heatmap({ S, onDay }) {
const a = agg[key]
const cls = 'hm-c l' + level(a) + (key === todayISO() ? ' today' : '') + (day > today ? ' future' : '')
cells.push(<div key={d} className={cls}
title={key + (a ? ` · ${a.n} workout${a.n > 1 ? 's' : ''} · ${a.min} min · ${fmtVol(a.vol, S.unit)}` : '')}
title={key + (a ? ` · ${t(a.n === 1 ? '{0} workout' : '{0} workouts', a.n)} · ${a.min} min · ${fmtVol(a.vol, S.unit)}` : '')}
onClick={a ? () => onDay(key) : undefined} />)
}
cols.push(<div key={wk} className="hm-col">{cells}</div>)
@@ -46,10 +47,10 @@ export default function Heatmap({ S, onDay }) {
<div className="hm-wrap" ref={wrapRef}>
<div className="hm-months" style={{ marginLeft: 30 }}>{months}</div>
<div className="hm-body">
<div className="hm-days"><span>Mon</span><span /><span>Wed</span><span /><span>Fri</span><span /><span /></div>
<div className="hm-days"><span>{t('Mon')}</span><span /><span>{t('Wed')}</span><span /><span>{t('Fri')}</span><span /><span /></div>
<div className="hm-grid">{cols}</div>
</div>
</div>
<div className="hm-legend">Less time <div className="hm-c l0" /><div className="hm-c l1" /><div className="hm-c l2" /><div className="hm-c l3" /><div className="hm-c l4" /> More time</div>
<div className="hm-legend">{t('Less time')} <div className="hm-c l0" /><div className="hm-c l1" /><div className="hm-c l2" /><div className="hm-c l3" /><div className="hm-c l4" /> {t('More time')}</div>
</>
}
+5 -4
View File
@@ -1,12 +1,13 @@
import { useRef, useState } from 'react'
import { fmtNum, fmtDate, MONTHS, isoOf } from '../lib/format.js'
import { t } from '../lib/i18n.js'
// points: [{ t: ms, y: num, d?: iso }] sorted by t. opts: { h, unit, color, axes, goal }
export default function LineChart({ points, h = 150, unit = '', color = 'var(--acc)', axes = true, goal = null }) {
const svgRef = useRef(null)
const [hover, setHover] = useState(null) // { x, y, iso, v }
if (!points || points.length === 0) return <div className="empty small">No data yet</div>
if (!points || points.length === 0) return <div className="empty small">{t('No data yet')}</div>
const W = 340, H = h
const P = { l: axes ? 34 : 8, r: 12, t: 10, b: axes ? 22 : 8 }
const single = points.length === 1
@@ -36,11 +37,11 @@ export default function LineChart({ points, h = 150, unit = '', color = 'var(--a
const d0 = new Date(t0), d1 = new Date(t1)
const ticks = []
let m = new Date(d0.getFullYear(), d0.getMonth() + 1, 1)
while (m <= d1) { ticks.push({ t: +m, txt: MONTHS[m.getMonth()] }); m = new Date(m.getFullYear(), m.getMonth() + 1, 1) }
while (m <= d1) { ticks.push({ t: +m, txt: t(MONTHS[m.getMonth()]) }); m = new Date(m.getFullYear(), m.getMonth() + 1, 1) }
if (ticks.length === 0 && !single) {
for (let i = 0; i <= 2; i++) {
const t = t0 + (t1 - t0) * i / 2, dd = new Date(t)
ticks.push({ t, txt: dd.getDate() + ' ' + MONTHS[dd.getMonth()], anchor: i === 0 ? 'start' : i === 2 ? 'end' : 'middle' })
const tv = t0 + (t1 - t0) * i / 2, dd = new Date(tv)
ticks.push({ t: tv, txt: dd.getDate() + ' ' + t(MONTHS[dd.getMonth()]), anchor: i === 0 ? 'start' : i === 2 ? 'end' : 'middle' })
}
}
const every = Math.max(1, Math.ceil(ticks.length / 7))
+5 -1
View File
@@ -1,17 +1,21 @@
import { useState } from 'react'
import { imgSrc, gifSrc } from '../lib/exercises.js'
import { t } from '../lib/i18n.js'
// Big autoplaying animation; tap toggles to the still frame. `compact` shrinks it (superset cards).
// Custom exercises have no media — the animation stays blank by design (issue #11).
export default function Media({ ex, id, compact }) {
const [playing, setPlaying] = useState(true)
if (!ex.gif) return null
return (
<div className={'exmedia' + (compact ? ' compact' : '')} id={id} onClick={() => setPlaying(p => !p)}>
<img decoding="async" src={playing ? gifSrc(ex) : imgSrc(ex)} alt={ex.n} />
<span className="gifhint">{playing ? '⏸ tap to pause' : '▶ tap to play'}</span>
<span className="gifhint">{playing ? '⏸ ' + t('tap to pause') : '▶ ' + t('tap to play')}</span>
</div>
)
}
export function Thumb({ ex }) {
if (!ex.img) return <div className="thumb thumb-x">🏋️</div>
return <img className="thumb" loading="lazy" decoding="async" src={imgSrc(ex)} alt="" />
}
+31
View File
@@ -0,0 +1,31 @@
import { useRef, useState } from 'react'
// Numeric input that accepts "," as decimal separator — iOS decimal keypads in many
// locales only offer a comma, and type="number" reports "" for it (value snaps to 0).
// Keeps a local string draft while focused so partial input like "33," survives typing.
export default function NumField({ value, onChange, decimal = true, ...rest }) {
const [draft, setDraft] = useState(null)
const committed = useRef(null)
// external change (e.g. −/+ buttons) while a draft is showing → drop the draft
if (draft !== null && committed.current !== value) { setDraft(null); committed.current = null }
const commit = raw => {
let s = raw.replace(/,/g, '.').replace(/[^0-9.]/g, '')
const i = s.indexOf('.')
if (i !== -1) s = decimal ? s.slice(0, i + 1) + s.slice(i + 1).replace(/\./g, '') : s.slice(0, i)
const n = s === '' || s === '.' ? 0 : Math.max(0, parseFloat(s))
committed.current = n
setDraft(s)
onChange(n)
}
return (
<input
type="text"
inputMode={decimal ? 'decimal' : 'numeric'}
value={draft ?? (value ?? '')}
onFocus={e => e.target.select()}
onChange={e => commit(e.target.value)}
onBlur={() => { setDraft(null); committed.current = null }}
{...rest}
/>
)
}
+2 -1
View File
@@ -1,4 +1,5 @@
import { useUI } from '../store/useUI.js'
import { t } from '../lib/i18n.js'
export default function RestTimer() {
const timer = useUI(s => s.timer)
const { addRest, stopRest } = useUI()
@@ -10,7 +11,7 @@ export default function RestTimer() {
<div className="t">{m}:{s}</div>
<div className="bar"><i style={{ width: pct + '%' }} /></div>
<button className="btn sm" onClick={() => addRest(15)}>+15s</button>
<button className="btn sm primary" onClick={stopRest}>Skip</button>
<button className="btn sm primary" onClick={stopRest}>{t('Skip')}</button>
</div>
)
}
+3 -7
View File
@@ -1,16 +1,12 @@
import NumField from './NumField.jsx'
// Number field with −/+ buttons; tapping the field selects its content so typing replaces.
export default function Stepper({ value, step = 1, onChange, decimal = true, className = '', label }) {
const set = v => onChange(Math.max(0, Math.round((v || 0) * 100) / 100))
const inner = (
<div className={'step ' + className}>
<button onClick={() => set((+value || 0) - step)}>−</button>
<input
type="number"
inputMode={decimal ? 'decimal' : 'numeric'}
value={value}
onFocus={e => e.target.select()}
onChange={e => onChange(e.target.value === '' ? 0 : Math.max(0, parseFloat(e.target.value) || 0))}
/>
<NumField value={value} decimal={decimal} onChange={onChange} />
<button onClick={() => set((+value || 0) + step)}>+</button>
</div>
)
+6 -5
View File
@@ -2,6 +2,7 @@ import { useLocation, useNavigate } from 'react-router-dom'
import { useStore } from '../store/useStore.js'
import { effectiveRoutine } from '../lib/history.js'
import { todayISO } from '../lib/format.js'
import { t } from '../lib/i18n.js'
const ICONS = {
home: <path d="M3 10.5 12 3l9 7.5M5 9.5V21h14V9.5" />,
@@ -31,14 +32,14 @@ export default function TabBar({ onStart }) {
return (
<nav id="tabbar">
<button className={on('home') ? 'on' : ''} onClick={() => nav('/home')}><Icon k="home" /><span>Home</span></button>
<button className={on('plan') ? 'on' : ''} onClick={() => nav('/plan')}><Icon k="plan" /><span>Plan</span></button>
<button className={on('home') ? 'on' : ''} onClick={() => nav('/home')}><Icon k="home" /><span>{t('Home')}</span></button>
<button className={on('plan') ? 'on' : ''} onClick={() => nav('/plan')}><Icon k="plan" /><span>{t('Plan')}</span></button>
<button className={'start' + (S.active ? ' rec' : '')} onClick={startWorkout}>
<span className="cir"><svg viewBox="0 0 24 24"><path d="M6.5 6.5v11M17.5 6.5v11M2.5 9.5v5M21.5 9.5v5M6.5 12h11" /></svg></span>
<span>{S.active ? 'Resume' : 'Start'}</span>
<span>{S.active ? t('Resume') : t('Start')}</span>
</button>
<button className={on('stats') ? 'on' : ''} onClick={() => nav('/stats')}><Icon k="stats" /><span>Stats</span></button>
<button className={on('library') ? 'on' : ''} onClick={() => nav('/library')}><Icon k="library" /><span>Exercises</span></button>
<button className={on('stats') ? 'on' : ''} onClick={() => nav('/stats')}><Icon k="stats" /><span>{t('Stats')}</span></button>
<button className={on('library') ? 'on' : ''} onClick={() => nav('/library')}><Icon k="library" /><span>{t('Exercises')}</span></button>
</nav>
)
}
+12 -2
View File
@@ -29,11 +29,11 @@ button,.chip,.tile,.item,.wday,.cal-d,.ck,.swatch,.emoji-cell,.hm-c,#tabbar,.ste
@media (prefers-reduced-motion: reduce){*{animation:none!important;transition:none!important}}
/* html carries the theme background too, so the iOS scroll-lock (position:fixed on body)
can never expose a grey strip below the app when a modal opens */
html{font-size:16px;background:var(--bg);overscroll-behavior:none}
html{font-size:16px;background:var(--bg);overscroll-behavior:none;overflow-x:clip}
body{
background:var(--bg); color:var(--txt);
font-family:-apple-system,BlinkMacSystemFont,'SF Pro Text','Segoe UI',Roboto,sans-serif;
min-height:100vh; overscroll-behavior-y:none;
min-height:100vh; overscroll-behavior-y:none; overflow-x:clip;
-webkit-font-smoothing:antialiased; touch-action:manipulation;
}
button{font:inherit;color:inherit;background:none;border:none;cursor:pointer}
@@ -114,6 +114,7 @@ a{color:var(--acc)}
border-radius:14px;padding:12px;min-height:60px}
.item:active{background:var(--card2)}
.thumb{width:52px;height:52px;border-radius:10px;object-fit:cover;background:#fff;flex:none}
.thumb-x{display:flex;align-items:center;justify-content:center;font-size:1.4rem;background:var(--bg2)}
.item .tt{font-weight:600;font-size:.93rem;line-height:1.25;text-transform:capitalize}
.item .ss{color:var(--mut);font-size:.78rem;margin-top:2px;text-transform:capitalize}
.item .grow{flex:1;min-width:0}
@@ -133,6 +134,9 @@ a{color:var(--acc)}
.input{width:100%;background:var(--bg2);border:1px solid var(--line);border-radius:12px;
padding:13px 14px;font-size:1rem;outline:none}
.input:focus{border-color:var(--acc)}
textarea.input{min-height:88px;resize:vertical;line-height:1.45}
.exnote{background:var(--bg2);border-radius:12px;padding:12px 14px;line-height:1.5;
white-space:pre-wrap;font-size:.92rem;margin-bottom:10px}
.search{position:relative}
.search .input{padding-left:40px}
.search svg{position:absolute;left:13px;top:50%;transform:translateY(-50%);width:17px;height:17px;
@@ -144,6 +148,12 @@ a{color:var(--acc)}
.step input{width:58px;text-align:center;background:none;border:none;font-size:1.05rem;font-weight:700;outline:none;
-moz-appearance:textfield;appearance:textfield}
.step input::-webkit-inner-spin-button{display:none}
/* exercise-config sheet: three steppers side by side must shrink to fit narrow phones */
.cfgrow{gap:8px}
.cfgrow>div{flex:1;min-width:0}
.cfgrow .step button{width:32px}
.cfgrow .step input{width:100%;min-width:0}
.cfgrow .small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* ---------- workout ---------- */
.wprog{height:5px;background:var(--bg2);border-radius:99px;overflow:hidden;margin-bottom:14px}
+2
View File
@@ -0,0 +1,2 @@
// generated by scripts/build-instructions.mjs — do not edit
export default {"1000":["Ponte de pie con los pies separados a la altura de las caderas y coloca la banda alrededor de la base de los dedos del pie.","Sujétate de un objeto estable para mantener el equilibrio.","Levanta lentamente el talón del suelo, llevando el peso del cuerpo hacia la punta del pie.","Haz una pausa por un momento en la parte superior, luego baja lentamente el talón de vuelta a la posición inicial.","Repite el número de repeticiones deseado, luego cambia a la otra pierna."],"1001":["Ponte de pie con los pies separados a la altura de las caderas y coloca una banda elástica alrededor de los tobillos.","Da un paso grande hacia adelante con el pie derecho y un paso más pequeño hacia atrás con el pie izquierdo.","Flexiona las rodillas y baja el cuerpo hasta que el muslo derecho quede paralelo al suelo, manteniendo la rodilla izquierda ligeramente por encima del suelo.","Empuja con el talón derecho para regresar a la posición inicial.","Repite del otro lado."],"1002":["Túmbate sobre tu espalda con las piernas rectas y los pies juntos.","Coloca la banda alrededor de los arcos de los pies y sostén los extremos de la banda con las manos.","Activando el abdomen, levanta ambas piernas del suelo hasta que queden perpendiculares al suelo.","Haz una pausa por un momento en la parte superior, luego baja lentamente las piernas de vuelta a la posición inicial.","Repite el número de repeticiones deseado."],"1003":["Sujeta la banda a un punto de anclaje resistente a la altura de la cintura.","Ponte de pie frente al punto de anclaje con los pies separados a la altura de los hombros.","Sostén las agarraderas de la banda con las palmas mirándose entre sí y los brazos extendidos frente a ti.","Flexiona las rodillas y baja a una posición de sentadilla, manteniendo la espalda recta y el pecho elevado.","Desde la posición de sentadilla, tira de las agarraderas de la banda hacia el cuerpo, juntando los omóplatos.","Haz una pausa por un momento en la parte superior, luego suelta lentamente la tensión y regresa a la posición inicial.","Repite el número de repeticiones deseado."],"1004":["Ponte de pie con los pies separados a la altura de los hombros, con la banda colocada justo por encima de las rodillas.","Manteniendo el pecho arriba y el core activado, lleva las caderas hacia atrás y flexiona las rodillas para bajar a una posición de sentadilla.","Asegúrate de que las rodillas se alineen con los dedos de los pies y de que el peso recaiga en los talones.","Haz una pausa por un momento en la parte inferior, luego empuja con los talones para regresar a la posición inicial.","Repite el número de repeticiones deseado."],"1005":["Sujeta la banda a un punto de anclaje resistente a la altura de la cintura.","Ponte de pie de espaldas al punto de anclaje con los pies separados a la altura de los hombros.","Sostén la banda con ambas manos y llévala hacia el pecho, manteniendo los codos flexionados y cerca del cuerpo.","Activa el abdomen y flexiona lentamente el torso hacia adelante, llevando el pecho hacia las rodillas.","Haz una pausa por un momento en la parte más alta del movimiento, luego regresa lentamente a la posición inicial.","Repite el número de repeticiones deseado."],"1007":["Ponte de pie con los pies separados a la altura de los hombros y coloca la banda alrededor de la parte superior de la espalda, cruzándola frente al pecho.","Sujeta los extremos de la banda con las manos, manteniendo los codos flexionados y cerca de los costados.","Activa el abdomen y gira el torso hacia un lado, llevando el codo hacia la rodilla opuesta.","Haz una pausa breve y luego vuelve a la posición inicial.","Repite del otro lado.","Continúa alternando lados durante el número de repeticiones deseado."],"1008":["Coloca una banda alrededor de los muslos, justo por encima de las rodillas.","Ponte de pie frente a un escalón o plataforma con los pies separados a la altura de las caderas.","Sube a la plataforma con el pie derecho, empujando con el talón.","Extiende la pierna izquierda hacia atrás, manteniéndola recta.","Baja el pie izquierdo de nuevo hasta el suelo.","Repite subiendo a la plataforma con el pie izquierdo.","Continúa alternando las piernas durante el número de repeticiones deseado."],"1009":["Ponte de pie con los pies separados a la altura de los hombros y coloca la banda alrededor de los tobillos.","Sujeta la banda con ambas manos frente a los muslos, con las palmas mirando hacia el cuerpo.","Manteniendo la espalda recta y el core activado, flexiona las caderas y baja lentamente la parte superior del cuerpo hacia el suelo.","Mientras bajas, empuja las caderas hacia atrás y deja que las rodillas se flexionen ligeramente.","Baja la banda hacia el suelo, sintiendo un estiramiento en los isquiotibiales.","Haz una pausa breve en la posición baja, luego activa los glúteos y los isquiotibiales para levantar la parte superior del cuerpo de vuelta a la posición inicial.","Repite el númerLine truncated
+2
View File
@@ -0,0 +1,2 @@
// generated by scripts/build-instructions.mjs — do not edit
export default {"1000":["Tiens-toi les pieds écartés à la largeur des hanches et place l'élastique autour de la pointe de ton pied.","Tiens-toi à un objet stable pour l'équilibre.","Soulève lentement ton talon du sol, en élevant le poids de ton corps sur la pointe du pied.","Marque une pause en haut, puis abaisse lentement ton talon pour revenir à la position de départ.","Répète le nombre de répétitions souhaité, puis passe à l'autre jambe."],"1001":["Tiens-toi les pieds écartés à la largeur des hanches et place un élastique autour de tes chevilles.","Fais un grand pas en avant avec le pied droit et un plus petit pas en arrière avec le pied gauche.","Fléchis les genoux et abaisse ton corps jusqu'à ce que ta cuisse droite soit parallèle au sol, en gardant ton genou gauche légèrement au-dessus du sol.","Pousse à travers ton talon droit pour revenir à la position de départ.","Répète de l'autre côté."],"1002":["Allonge-toi sur le dos, les jambes tendues et les pieds joints.","Place l'élastique autour de la voûte plantaire de tes pieds et tiens les extrémités de l'élastique avec tes mains.","En gainant tes abdominaux, soulève les deux jambes du sol jusqu'à ce qu'elles soient perpendiculaires au sol.","Marque une pause en haut, puis abaisse lentement tes jambes pour revenir à la position de départ.","Répète le nombre de répétitions souhaité."],"1003":["Fixe l'élastique à un point d'ancrage solide à hauteur de la taille.","Tiens-toi face au point d'ancrage, les pieds écartés à la largeur des épaules.","Tiens les poignées de l'élastique, les paumes tournées l'une vers l'autre et les bras étendus devant toi.","Fléchis les genoux et descends en position accroupie en gardant le dos droit et la poitrine relevée.","Depuis la position de squat, tire les poignées de l'élastique vers ton corps, en resserrant tes omoplates.","Marque une pause en haut, puis relâche lentement la tension et reviens à la position de départ.","Répète le nombre de répétitions souhaité."],"1004":["Tiens-toi debout, les pieds écartés à la largeur des épaules, l'élastique placé juste au-dessus de tes genoux.","En gardant la poitrine relevée et la sangle abdominale gainée, pousse tes hanches vers l'arrière et fléchis tes genoux pour descendre en position de squat.","Assure-toi que tes genoux sont alignés au-dessus de tes orteils et que ton poids repose sur tes talons.","Marque une pause en bas, puis pousse sur tes talons pour revenir à la position de départ.","Répète le nombre de répétitions souhaité."],"1005":["Fixe l'élastique à un point d'ancrage solide à hauteur de la taille.","Tiens-toi dos au point d'ancrage, les pieds écartés à la largeur des épaules.","Tiens l'élastique des deux mains et amène-le vers ta poitrine, en gardant tes coudes fléchis et près de ton corps.","Gaine tes abdominaux et enroule-toi lentement vers l'avant, en amenant ta poitrine vers tes genoux.","Marque une pause en haut du crunch, puis reviens lentement à la position de départ.","Répète le nombre de répétitions souhaité."],"1007":["Tiens-toi debout, les pieds écartés à la largeur des épaules et place l'élastique autour du haut de ton dos, en le croisant devant ta poitrine.","Tiens les extrémités de l'élastique avec tes mains, en gardant tes coudes fléchis et près de tes côtés.","Gaine tes abdominaux et fais pivoter ton torse d'un côté, en amenant ton coude vers le genou opposé.","Marque une pause, puis reviens à la position de départ.","Répète de l'autre côté.","Continue à alterner les côtés pour le nombre de répétitions souhaité."],"1008":["Place un élastique autour de tes cuisses, juste au-dessus de tes genoux.","Tiens-toi face à une marche ou une plateforme, les pieds écartés à la largeur des hanches.","Monte sur la plateforme avec le pied droit, en poussant sur ton talon.","Étends ta jambe gauche derrière toi, en la gardant tendue.","Repose ton pied gauche au sol.","Répète avec ton pied gauche en montant sur la plateforme.","Continue à alterner les jambes pour le nombre de répétitions souhaité."],"1009":["Tiens-toi debout, les pieds écartés à la largeur des épaules et place l'élastique autour de tes chevilles.","Tiens l'élastique des deux mains devant tes cuisses, les paumes tournées vers ton corps.","En gardant le dos droit et ta sangle abdominale gainée, bascule au niveau des hanches et abaisse lentement le haut de ton corps vers le sol.","En descendant, pousse tes hanches vers l'arrière et laisse tes genoux fléchir légèrement.","Abaisse l'élastique vers le sol, en ressentant un étirement dans tes ischio-jambiers.","Marque une pause en bas, puis contracte tes fessiers et tes ischio-jambiers pour relever le haut de ton corps jusqu'à la position de départ.","Répète le nombre de répétitions souhaité."],"1010":["Tiens-toi debout, les pieds écartés à la largeur des épaules et place l'élastique autourLine truncated
+2
View File
@@ -0,0 +1,2 @@
// generated by scripts/build-instructions.mjs — do not edit
export default {"1000":["अपने पैरों को कूल्हे-चौड़ाई से अलग करके खड़े हो जाएं और बैंड को अपने पैर की गेंद के चारों ओर रखें।","संतुलन के लिए किसी स्थिर वस्तु को पकड़ें।","धीरे-धीरे अपनी एड़ी को जमीन से ऊपर उठाएं, अपने शरीर का वजन अपने पैर की गेंद पर उठाएं।","शीर्ष पर एक पल के लिए रुकें, फिर धीरे-धीरे अपनी एड़ी को वापस प्रारंभिक स्थिति में ले आएं।","दोहराव की वांछित संख्या के लिए दोहराएँ, फिर दूसरे चरण पर जाएँ।"],"1001":["अपने पैरों को कूल्हे-चौड़ाई से अलग करके खड़े हो जाएं और अपनी एड़ियों के चारों ओर एक प्रतिरोध बैंड लगाएं।","अपने दाहिने पैर से एक बड़ा कदम आगे बढ़ाएं और अपने बाएं पैर से एक छोटा कदम पीछे लें।","अपने घुटनों को मोड़ें और अपने शरीर को तब तक नीचे रखें जब तक कि आपकी दाहिनी जांघ जमीन के समानांतर न हो जाए, अपने बाएं घुटने को जमीन से थोड़ा ऊपर रखें।","प्रारंभिक स्थिति में लौटने के लिए अपनी दाहिनी एड़ी को धक्का दें।","दूसरी तरफ दोहराएं।"],"1002":["अपनी पीठ के बल लेट जाएं और अपने पैरों को सीधा रखें और पैरों को एक साथ रखें।","बैंड को अपने पैरों के आर्च के चारों ओर रखें और बैंड के सिरों को अपने हाथों से पकड़ें।","अपने पेट को संलग्न करते हुए, दोनों पैरों को जमीन से ऊपर उठाएं जब तक कि वे फर्श से लंबवत न हो जाएं।","शीर्ष पर एक पल के लिए रुकें, फिर धीरे-धीरे अपने पैरों को वापस प्रारंभिक स्थिति में ले आएं।","दोहराव की वांछित संख्या के लिए दोहराएँ।"],"1003":["बैंड को कमर की ऊंचाई पर एक मजबूत एंकर पॉइंट से जोड़ें।","अपने पैरों को कंधे की चौड़ाई से अलग रखते हुए एंकर पॉइंट की ओर मुंह करके खड़े हो जाएं।","अपनी हथेलियों को एक-दूसरे के सामने रखते हुए और अपनी बाहों को अपने सामने फैलाकर बैंड के हैंडल को पकड़ें।","अपने घुटनों को मोड़ें और स्क्वाट स्थिति में आ जाएं, अपनी पीठ सीधी रखें और छाती ऊपर उठाएं।","स्क्वाट स्थिति से, अपने कंधे के ब्लेड को एक साथ निचोड़ते हुए, बैंड के हैंडल को अपने शरीर की ओर खींचें।","शीर्ष पर एक पल के लिए रुकें, फिर धीरे-धीरे तनाव छोड़ें और प्रारंभिक स्थिति में लौट आएं।","दोहराव की वांछित संख्या के लिए दोहराएँ।"],"1004":["अपने पैरों को कंधे की चौड़ाई पर फैलाकर खड़े रहें और बैंड को अपने घुटनों के ठीक ऊपर रखें।","अपनी छाती को ऊपर और मुख्य भाग को ऊपर रखते हुए, अपने कूलLine truncated
+2
View File
@@ -0,0 +1,2 @@
// generated by scripts/build-instructions.mjs — do not edit
export default {"1000":["Stai con i piedi alla larghezza dei fianchi e posiziona la fascia attorno alla pianta del piede.","Aggrapparsi a un oggetto stabile per mantenere l'equilibrio.","Solleva lentamente il tallone da terra, sollevando il peso del corpo sulla pianta del piede.","Fai una pausa per un momento in alto, quindi abbassa lentamente il tallone fino alla posizione iniziale.","Ripeti per il numero di ripetizioni desiderato, quindi passa all'altra gamba."],"1001":["Stare con i piedi alla larghezza dei fianchi e posizionare una fascia di resistenza attorno alle caviglie.","Fai un grande passo avanti con il piede destro e un piccolo passo indietro con il piede sinistro.","Piega le ginocchia e abbassa il corpo finché la coscia destra non è parallela al suolo, mantenendo il ginocchio sinistro leggermente sopra il suolo.","Spingi attraverso il tallone destro per tornare alla posizione di partenza.","Ripeti dall'altra parte."],"1002":["Sdraiati sulla schiena con le gambe dritte e i piedi uniti.","Posiziona la fascia attorno all'arco dei piedi e tieni le estremità della fascia con le mani.","Coinvolgendo gli addominali, solleva entrambe le gambe da terra finché non sono perpendicolari al pavimento.","Fai una pausa per un momento in alto, quindi abbassa lentamente le gambe fino alla posizione di partenza.","Ripetere per il numero di ripetizioni desiderato."],"1003":["Attacca la fascia a un punto di ancoraggio robusto all'altezza della vita.","Stai di fronte al punto di ancoraggio con i piedi alla larghezza delle spalle.","Tieni le maniglie della fascia con i palmi delle mani uno di fronte all'altro e le braccia distese davanti a te.","Piega le ginocchia e abbassati in posizione tozza, mantenendo la schiena dritta e il petto sollevato.","Dalla posizione tozza, tira le maniglie della fascia verso il tuo corpo, stringendo insieme le scapole.","Fermati per un momento in alto, quindi rilascia lentamente la tensione e torna alla posizione di partenza.","Ripetere per il numero di ripetizioni desiderato."],"1004":["Stai con i piedi alla larghezza delle spalle, con la fascia posizionata appena sopra le ginocchia.","Mantenendo il petto in alto e il core impegnato, spingi i fianchi indietro e piega le ginocchia per abbassarti in una posizione tozza.","Assicurati che le ginocchia seguano le dita dei piedi e che il peso sia sui talloni.","Fai una pausa per un momento in fondo, quindi spingi i talloni per tornare alla posizione di partenza.","Ripetere per il numero di ripetizioni desiderato."],"1005":["Attacca la fascia a un punto di ancoraggio robusto all'altezza della vita.","Stai di fronte al punto di ancoraggio con i piedi alla larghezza delle spalle.","Tieni la fascia con entrambe le mani e portala al petto, mantenendo i gomiti piegati e vicini al corpo.","Coinvolgi gli addominali e esegui lentamente uno scricchiolio in avanti, portando il petto verso le ginocchia.","Fermati per un momento al culmine del crunch, quindi torna lentamente alla posizione di partenza.","Ripetere per il numero di ripetizioni desiderato."],"1007":["Stare con i piedi alla larghezza delle spalle e posizionare la fascia attorno alla parte superiore della schiena, incrociandola davanti al petto.","Tieni le estremità della fascia con le mani, mantenendo i gomiti piegati e vicini ai fianchi.","Contrai gli addominali e ruota il busto da un lato, portando il gomito verso il ginocchio opposto.","Fare una pausa per un momento, quindi tornare alla posizione di partenza.","Ripeti dall'altra parte.","Continua ad alternare i lati per il numero di ripetizioni desiderato."],"1008":["Metti una fascia intorno alle cosce, appena sopra le ginocchia.","Mettiti di fronte a un gradino o a una piattaforma con i piedi alla larghezza dei fianchi.","Sali sulla piattaforma con il piede destro, spingendo attraverso il tallone.","Estendi la gamba sinistra dietro di te, mantenendola dritta.","Abbassa di nuovo il piede sinistro a terra.","Ripeti con il piede sinistro salendo sulla piattaforma.","Continua ad alternare le gambe per il numero di ripetizioni desiderato."],"1009":["Stai con i piedi alla larghezza delle spalle e posiziona la fascia attorno alle caviglie.","Tieni la fascia con entrambe le mani davanti alle cosce, con i palmi rivolti verso il corpo.","Tenendo la schiena dritta e il core impegnato, fai perno sui fianchi e abbassa lentamente la parte superiore del corpo verso terra.","Mentre ti abbassi, spingi indietro i fianchi e lascia che le ginocchia si pieghino leggermente.","Abbassa la fascia verso terra, sentendo l'allungamento dei muscoli posteriori della coscia.","Fai una pausa per un momento in fondo, quindi coinvolgi i glutei e i muscoli posteriori della coscia per riportare la parte superiore del corpo alla posizione iniziale.","Ripetere per il numero di ripetizioni desiderato."],"1010":["Stare con i piedi alla larghezza delle spalle e posizionare la fascia attorno ai piedi.","Tieni la fascia con entrambe le mani, i palmi rivolti verso il corpo eLine truncated
+2
View File
@@ -0,0 +1,2 @@
// generated by scripts/build-instructions.mjs — do not edit
export default {"1000":["엉덩이 너비로 발을 벌리고 서서 밴드를 발 앞부분에 감습니다.","안정성을 위해 견고한 물체를 잡습니다.","천천히 발꿈치를 지면에서 들어 발 앞부분에 체중을 올립니다.","맨 위에서 잠시 멈춘 후, 천천히 발꿈치를 원래 위치로 내립니다.","원하는 횟수만큼 반복한 후 다른 다리로 전환합니다."],"1001":["엉덩이 너비로 발을 벌리고 서서 저항 밴드를 발목 주위에 감습니다.","오른쪽 발로 크게 한 발 앞으로 나가고 왼쪽 발로는 작게 뒤로 물러나갑니다.","무릎을 구부려 몸을 내리면서 오른쪽 넓적다리가 지면과 평행하게 되고 왼쪽 무릎은 약간 지면 위에 있도록 합니다.","오른쪽 발꿈치를 통해 밀어 원래 위치로 돌아옵니다.","다른 쪽에서 반복합니다."],"1002":["등을 바닥에 대고 누워 다리는 곧게 펼치고 발을 함께 모읍니다.","발의 아치 부분에 밴드를 감고 양손으로 밴드의 끝을 잡습니다.","복부에 힘을 주고 양다리를 바닥에서 들어올려 바닥과 수직이 되게 합니다.","꼭짓점에서 잠깐 멈춘 후 천천히 다리를 시작 자세로 내립니다.","원하는 반복 횟수만큼 반복합니다."],"1003":["밴드를 허리 높이의 견고한 고정점에 부착합니다.","고정점을 향해 어깨 너비로 발을 벌리고 서서 밴드를 직면합니다.","밴드 손잡이를 손바닥이 서로 마주 보도록 잡고 팔을 앞으로 쭉 뻗습니다.","무릎을 구부려 스쿼트 자세로 내리면서 등을 곧게 펴고 가슴을 들어 올립니다.","스쿼트 위치에서 밴드 손잡이를 몸 쪽으로 당기며 어깨날을 조입니다.","맨 위에서 잠시 멈춘 후, 천천히 장력을 풀고 원래 위치로 돌아옵니다.","원하는 횟수만큼 반복합니다."],"1004":["어깨 너비로 발을 벌리고 서서 밴드를 무릎 바로 위에 배치합니다.","가슴을 펴고 코어를 활성화하면서 엉덩이를 뒤로 밀고 무릎을 구부려 스쿼트 자세로 내립니다.","무릎이 발가락 위로 정렬되고 체중이 발꿈치에 있는지 확인합니다.","맨 아래에서 잠시 멈춘 후, 발꿈치를 통해 밀어 원래 위치로 돌아옵니다.","원하는 횟수만큼 반복합니다."],"1005":["밴드를 허리 높이의 견고한 고정점에 부착합니다.","고정점에서 등을 돌려 어깨 너비로 발을 벌리고 서서 밴드를 직면합니다.","밴드를 양손으로 잡고 가슴 높이로 가져오되 팔꿈치를 구부려 몸에 가깝게 유지합니다.","복근을 활성화하고 천천히 앞으로 구부려 가슴을 무릎 쪽으로 향하게 합니다.","크런치의 최상단에서 잠시 멈춘 후, 천천히 원래 위치로 돌아옵니다.","원하는 횟수만큼 반복합니다."],"1007":["어깨 너비로 발을 벌리고 서서 밴드를 등 위쪽에 감아 가슴 앞에서 교차하게 합니다.","밴드 끝을 손으로 잡되 팔꿈치를 구부려 몸 옆에 가깝게 유지합니다.","복근을 활성화하고 몸통을 한쪽으로 비틀면서 팔꿈치를 반대쪽 무릎 쪽으로 가져옵니다.","잠시 멈춘 후, 원래 위치로 돌아옵니다.","다른 쪽에서 반복합니다.","양쪽을 번갈아 계속합니다."],"1008":["밴드를 무릎 바로 위 넓적다리 주위에 감습니다.","계단이나 플랫폼을 향해 엉덩이 너비로 발을 벌리고 섭니다.","오른쪽 발로 플랫폼에 올라가면서 발꿈치를 통해 밀어냅니다.","왼쪽 다리를 뒤로 곧게 뻗습니다.","왼쪽 발을 땅에 내립니다.","왼쪽 발로 플랫폼에 올라가도록 반복합니다.","원하는 횟수만큼 다리를 번갈아 계속합니다."],"1009":["어깨 너비로 발을 벌리고 서서 밴드를 발목 주위에 감습니다.","밴드를 양손으로 넓적다리 앞에 잡되 손바닥이 몸을 향하도록 합니다.","등을 곧게 펴고 코어를 활성화한 상태에서 허리에서 천천히 앞으로 숙입니다.","내리면서 엉덩이를 뒤로 밀고 무릎을 약간 구부립니다.","밴드를 지면 쪽으로 내리며 햄스트링에서 스트레칭을 느낍니다.","맨 아래에서 잠시 멈춘 후, 둔근과 햄스트링을 활성화하여 몸을 원래 위치로 들어 올립니다.","원하는 횟수만큼 반복합니다."],"1010":["어깨 너비로 발을 벌리고 서서 밴드를 발 주위에 감습니다.","밴드를 양손으로 잡되 손바닥이 몸을 향하고 팔을 곧게 펴서 유지합니다.","코어를 활성화하고 무릎을 약간만 구부려서 유지합니다.","허리에서 천천히 앞으로 숙이되 등을 곧게 펴고 가슴을 든 상태를 유지합니다.","다리를 곧게 펼친 상태로 밴드를 지면 쪽으로 내립니다.","맨 아래에서 잠시 멈춘 후, 둔근과 햄스트링을 조여 원래 Line truncated
+2
View File
@@ -0,0 +1,2 @@
// generated by scripts/build-instructions.mjs — do not edit
export default {"1000":["Stań w rozkroku na szerokość bioder i umieść taśmę wokół podeszwy stopy.","Chwyć się stabilnego obiektu dla równowagi.","Powoli unieś piętę nad podłogę, przenosząc ciężar ciała na przednią część stopy.","Zatrzymaj się na chwilę w górnej pozycji, a następnie powoli opuść piętę z powrotem do pozycji wyjściowej.","Powtórz zalecaną liczbę razy, a następnie zmień nogę."],"1001":["Stań w rozkroku na szerokość bioder i umieść taśmę oporową wokół kostek.","Zrób duży krok do przodu prawą stopą i mniejszy krok do tyłu lewą stopą.","Ugnij kolana i opuść ciało, aż prawe udo będzie równoległe do podłogi, utrzymując lewe kolano lekko nad podłogą.","Odepchnij się prawą piętą, aby wrócić do pozycji wyjściowej.","Powtórz po drugiej stronie."],"1002":["Połóż się płasko na plecach z prostymi nogami i stopami razem.","Umieść taśmę wokół podeszw stóp i trzymaj końce taśmy dłońmi.","Angażując mięśnie brzucha, unieś obie nogi nad podłogę, aż będą prostopadłe do podłogi.","Zatrzymaj się na chwilę w górnej pozycji, a następnie powoli opuść nogi z powrotem do pozycji wyjściowej.","Powtórz zalecaną liczbę razy."],"1003":["Przymocuj taśmę do stabilnego punktu zaczepienia na wysokości talii.","Stań przodem do punktu zaczepienia, stopy w rozkroku na szerokość barków.","Trzymaj uchwyty taśmy dłońmi zwróconymi do siebie, ramiona wyciągnięte przed sobą.","Ugnij kolana i opuść się do pozycji przysiadu, utrzymując proste plecy i uniesioną klatkę piersiową.","Z pozycji przysiadu przyciągnij uchwyty taśmy w kierunku ciała, ściskając łopatki.","Zatrzymaj się na chwilę w górnej pozycji, a następnie powoli zwolnij napięcie i wróć do pozycji wyjściowej.","Powtórz zalecaną liczbę razy."],"1004":["Stań w rozkroku na szerokość barków, z taśmą umieszczoną tuż nad kolanami.","Utrzymując wypiętą klatkę piersiową i napięty brzuch, wypchnij biodra do tyłu i ugnij kolana, opuszczając ciało do pozycji przysiadu.","Upewnij się, że kolana podążają w linii z palcami stóp, a ciężar ciała spoczywa na piętach.","Zatrzymaj się na chwilę w dolnej pozycji, a następnie odepchnij się piętami, aby wrócić do pozycji wyjściowej.","Powtórz zalecaną liczbę razy."],"1005":["Przymocuj taśmę do stabilnego punktu zaczepienia na wysokości talii.","Stań tyłem do punktu zaczepienia, stopy w rozkroku na szerokość barków.","Trzymaj taśmę obiema rękami i przyciągnij ją do klatki piersiowej, utrzymując łokcie ugięte i blisko ciała.","Napnij mięśnie brzucha i powoli wykonaj skłon do przodu, przyciągając klatkę piersiową w kierunku kolan.","Zatrzymaj się na chwilę w górnej fazie skłonu, a następnie powoli wróć do pozycji wyjściowej.","Powtórz zalecaną liczbę razy."],"1007":["Stań w rozkroku na szerokość barków i umieść taśmę na górnej części pleców, krzyżując ją przed klatką piersiową.","Trzymaj końce taśmy dłońmi, utrzymując łokcie ugięte i blisko boków ciała.","Napnij mięśnie brzucha i skręć tułów w jedną stronę, przyciągając łokieć w kierunku przeciwległego kolana.","Zatrzymaj się na chwilę, a następnie wróć do pozycji wyjściowej.","Powtórz po drugiej stronie.","Kontynuuj naprzemienne wykonywanie ruchu na obie strony przez zalecaną liczbę powtórzeń."],"1008":["Umieść taśmę wokół ud, tuż nad kolanami.","Stań przodem do stopnia lub platformy, stopy w rozkroku na szerokość bioder.","Wejdź na platformę prawą stopą, odpychając się piętą.","Wyprostuj lewą nogę za sobą, utrzymując ją prostą.","Opuść lewą stopę z powrotem na podłogę.","Powtórz, wchodząc na platformę lewą stopą.","Kontynuuj naprzemienne wykonywanie ruchu przez zalecaną liczbę powtórzeń."],"1009":["Stań w rozkroku na szerokość barków i umieść taśmę wokół kostek.","Trzymaj taśmę obiema rękami przed udami, dłonie skierowane do ciała.","Utrzymując proste plecy i napięty brzuch, pochyl się w biodrach i powoli opuść górną część ciała w kierunku podłogi.","Opuszczając się, wypchnij biodra do tyłu i pozwól kolanom lekko się ugiąć.","Opuść taśmę w kierunku podłogi, odczuwając rozciąganie w mięśniach dwugłowych uda.","Zatrzymaj się na chwilę w dolnej pozycji, a następnie napnij pośladki i mięśnie dwugłowe uda, aby unieść górną część ciała z powrotem do pozycji wyjściowej.","Powtórz zalecaną liczbę razy."],"1010":["Stań w rozkroku na szerokość barków i umieść taśmę wokół stóp.","Trzymaj taśmę obiema rękami, dłonie skierowane do ciała, ramiona proste.","Napnij mięśnie brzucha i utrzymuj lekkie ugięcie kolan.","Powoli pochyl się do przodu w biodrach, utrzymując proste plecy i uniesioną klatkę piersiową.","Opuść taśmę w kierunku podłogi, utrzymując nogi proste.","Zatrzymaj się na chwilę w dolnej pozycji, a nastLine truncated
+2
View File
@@ -0,0 +1,2 @@
// generated by scripts/build-instructions.mjs — do not edit
export default {"1000":["Встаньте, ноги на ширине плеч, и наденьте ленту на подушечку стопы.","Держитесь за устойчивый предмет для равновесия.","Медленно поднимите пятку от земли, перенеся вес тела на подушечки стопы.","Задержитесь на мгновение в верхней точке, затем медленно опустите пятку обратно в исходное положение.","Повторите желаемое количество повторений, затем переключитесь на другую ногу."],"1001":["Встаньте, ноги на ширине плеч, и наденьте эластичную ленту на лодыжки.","Сделайте большой шаг вперед правой ногой и маленький шаг назад левой ногой.","Согните колени и опустите тело до тех пор, пока правое бедро не станет параллельно земле, сохраняя левое колено немного выше земли.","Оттолкнитесь правой пяткой, чтобы вернуться в исходное положение.","Повторите с другой стороны."],"1002":["Лягте на спину, ноги прямые, ступни вместе.","Оберните ленту вокруг сводов стоп и возьмитесь за концы ленты руками.","Включив пресс, поднимите обе ноги от земли, пока они не станут перпендикулярны полу.","Задержитесь на мгновение в верхней точке, затем медленно опустите ноги обратно в исходное положение.","Повторите необходимое количество повторений."],"1003":["Прикрепите ремешок к прочной точке крепления на высоте талии.","Встаньте лицом к точке крепления, поставив ноги на ширине плеч.","Держите ручки лент ладонями друг к другу, а руки вытянуты перед собой.","Согните колени и опуститесь в присед, сохраняя спину прямой и грудь поднятой.","Из положения приседа потяните ручки лент к себе, сжимая лопатки вместе.","Задержитесь на мгновение в верхней точке, затем медленно ослабьте напряжение и вернитесь в исходное положение.","Повторите необходимое количество повторений."],"1004":["Встаньте, поставив ноги на ширине плеч, расположив ленту чуть выше колен.","Удерживая грудь поднятой и напряженным корпус, отведите бедра назад и согните колени, чтобы опуститься в присед.","Убедитесь, что ваши колени касаются пальцев ног, а ваш вес приходится на пятки.","Задержитесь на мгновение внизу, затем оттолкнитесь пятками, чтобы вернуться в исходное положение.","Повторите необходимое количество повторений."],"1005":["Прикрепите ремешок к прочной точке крепления на высоте талии.","Встаньте лицом от точки крепления, поставив ноги на ширине плеч.","Возьмите ленту обеими руками и поднесите ее к груди, держа локти согнутыми и близко к телу.","Напрягите пресс и медленно наклонитесь вперед, приближая грудь к коленям.","Сделайте паузу на мгновение в верхней точке скручивания, затем медленно вернитесь в исходное положение.","Повторите необходимое количество повторений."],"1007":["Встаньте, расставив ноги на ширине плеч, и оберните ленту вокруг верхней части спины, пересекая ее перед грудью.","Возьмите концы ленты руками, держа локти согнутыми и прижатыми к бокам.","Напрягите пресс и поверLine truncated
+2
View File
@@ -0,0 +1,2 @@
// generated by scripts/build-instructions.mjs — do not edit
export default {"1000":["Ayaklarınızı kalça genişliğinde açın ve bandı ayak parmaklarınızın etrafına yerleştirin.","Denge için sabit bir nesneye tutunun.","Vücut ağırlığınızı ayak parmaklarınızın ucuna vererek topuğunuzu yavaşça yerden kaldırın.","Tepe noktasında bir an duraklayın, ardından topuğunuzu yavaşça başlangıç ​​pozisyonuna indirin.","İstenilen tekrar sayısı kadar tekrarlayın, ardından diğer bacağa geçin."],"1001":["Ayaklarınızı kalça genişliğinde açın ve ayak bileklerinizin etrafına bir direnç bandı yerleştirin.","Sağ ayağınızla ileriye doğru büyük bir adım atın ve sol ayağınızla geriye doğru daha küçük bir adım atın.","Dizlerinizi bükün ve sağ uyluğunuz yere paralel oluncaya kadar vücudunuzu indirin, sol dizinizi yerden biraz yukarıda tutun.","Başlangıç ​​pozisyonuna dönmek için sağ topuğunuzu itin.","Diğer tarafta tekrarlayın."],"1002":["Bacaklarınız düz ve ayaklarınız bitişik olacak şekilde sırt üstü uzanın.","Bandı ayak kavislerinizin etrafına yerleştirin ve bandın uçlarını ellerinizle tutun.","Karın kaslarınızı devreye sokarak her iki bacağınızı da yere dik olana kadar yerden kaldırın.","Tepe noktasında bir an duraklayın, ardından bacaklarınızı yavaşça başlangıç ​​pozisyonuna indirin.","İstenilen sayıda tekrar için tekrarlayın."],"1003":["Bandı bel yüksekliğinde sağlam bir bağlantı noktasına takın.","Ayaklarınız omuz genişliğinde açık olacak şekilde bağlantı noktasına bakacak şekilde durun.","Bandın saplarını avuçlarınız birbirine bakacak ve kollarınız önünüzde uzatılmış şekilde tutun.","Dizlerinizi bükün ve çömelme pozisyonuna alçaltın, sırtınızı düz ve göğsünüzü yukarıda tutun.","Çömelme pozisyonundan, kürek kemiklerinizi birbirine doğru sıkıştırarak bandın saplarını vücudunuza doğru çekin.","Tepe noktasında bir an duraklayın, ardından yavaşça gerilimi bırakın ve başlangıç ​​pozisyonuna dönün.","İstenilen sayıda tekrar için tekrarlayın."],"1004":["Ayaklarınız omuz genişliğinde açık, bant dizlerinizin hemen üzerine gelecek şekilde ayakta durun.","Göğsünüzü yukarıda ve göbek bölgenizi meşgul tutarak kalçalarınızı geriye doğru itin ve dizlerinizi bükerek çömelme pozisyonuna gelin.","Dizlerinizin ayak parmaklarınızın üzerinde olduğundan ve ağırlığınızın topuklarınızda olduğundan emin olun.","Altta bir an duraklayın, ardından başlangıç ​​pozisyonuna dönmek için topuklarınızı itin.","İstenilen sayıda tekrar için tekrarlayın."],"1005":["Bandı bel yüksekliğinde sağlam bir bağlantı noktasına takın.","Ayaklarınız omuz genişliğinde açık olacak şekilde, bağlantı noktasından uzağa bakacak şekilde durun.","Bandı iki elinizle tutun ve dirseklerinizi bükülü ve vücudunuza yakın tutarak göğsünüze doğru kaldırın.","Karın kaslarınızı devreye sokun ve yavaşça öne doğru çömelerek göğsünüzü dizlerinize doğru getirin.","Çıtırlığın zirvesinde bir an duraklayın, ardından yavaşça başlangıç ​​pozisyonuna dönün.","İstenilen sayıda tekrar için tekrarlayın."],"1007":["Ayaklarınızı omuz genişliğinde açın ve bandı sırtınızın üst kısmına, göğsünüzün önünden geçecek şekilde yerleştirin.","Bandın uçlarını ellerinizle tutun, dirseklerinizi bükülü ve yanlarınıza yakın tutun.","Karın kaslarınızı devreye sokun ve gövdenizi bir tarafa doğru çevirin, dirseğinizi karşı dizinize doğru getirin.","Bir an duraklayın, ardından başlangıç ​​pozisyonuna dönün.","Diğer tarafta tekrarlayın.","İstenilen tekrar sayısı için alternatif taraflara devam edin."],"1008":["Bir bandı uyluklarınızın çevresine, dizlerinizin hemen üstüne yerleştirin.","Ayaklarınız kalça genişliğinde açık olacak şekilde bir basamağa veya platforma dönük durun.","Sağ ayağınızla topuğunuzu iterek platforma çıkın.","Sol bacağınızı düz tutarak arkanıza doğru uzatın.","Sol ayağınızı tekrar yere indirin.","Sol ayağınızla platforma adım atarak tekrarlayın.","İstenilen sayıda tekrar için bacakları değiştirerek devam edin."],"1009":["Ayaklarınızı omuz genişliğinde açın ve bandı ayak bileklerinizin etrafına yerleştirin.","Bandı iki elinizle uyluklarınızın önünde, avuçlarınız vücudunuza bakacak şekilde tutun.","Sırtınızı düz ve merkez bölgenizi meşgul tutarak kalçalarınıza yaslanın ve üst vücudunuzu yavaşça yere doğru indirin.","Alçalırken kalçalarınızı geriye doğru itin ve dizlerinizin hafifçe bükülmesine izin verin.","Diz arkası kirişlerinizde bir gerginlik hissederek bandı yere doğru indirin.","Altta bir an duraklayın, ardından kalça kaslarınızı ve diz arkası kaslarınızı çalıştırarak üst vücudunuzu başlangıç ​​pozisyonuna kaldırın.","İstLine truncated
+2
View File
@@ -0,0 +1,2 @@
// generated by scripts/build-instructions.mjs — do not edit
export default {"1000":["双脚分开站立,与臀部同宽,将弹力带放在脚掌周围。","抓住稳定的物体以保持平衡。","慢慢地将脚跟抬离地面,将身体重量转移到脚掌上。","在顶部暂停片刻,然后慢慢将脚跟放回起始位置。","重复所需的重复次数,然后换另一条腿。"],"1001":["双脚分开站立,与臀部同宽,将阻力带绕在脚踝上。","右脚向前迈一大步,左脚向后退一小步。","弯曲膝盖并降低身体,直到右大腿与地面平行,保持左膝盖略高于地面。","推动右脚跟回到起始位置。","在另一侧重复。"],"1002":["平躺,双腿伸直,双脚并拢。","将带子放在脚弓周围,并用手握住带子的末端。","收紧腹肌,将双腿抬离地面,直到它们垂直于地板。","在顶部暂停片刻,然后慢慢将双腿放回起始位置。","重复所需的重复次数。"],"1003":["将带子固定在腰部高度的坚固锚点上。","面向锚点站立,双脚分开与肩同宽。","双手握住弹力带手柄,手掌相对,双臂向前伸展。","弯曲膝盖并蹲下,保持背部挺直,挺胸。","从蹲姿开始,将弹力带手柄拉向身体,将肩胛骨挤压在一起。","在最高点停顿片刻,然后慢慢释放张力,回到起始位置。","重复所需的重复次数。"],"1004":["双脚分开站立,与肩同宽,弹力带放在膝盖上方。","保持挺胸、核心收紧,将臀部向后推,弯曲膝盖,形成下蹲姿势。","确保膝盖位于脚趾上方,并且重量位于脚后跟。","在底部停顿片刻,然后推动脚后跟回到起始位置。","重复所需的重复次数。"],"1005":["将带子固定在腰部高度的坚固锚点上。","背对锚点站立,双脚与肩同宽。","用双手握住弹力带并将其举至胸前,保持肘部弯曲并靠近身体。","收紧腹肌,慢慢向前挺胸,使胸部靠近膝盖。","在卷腹的最高点暂停片刻,然后慢慢回到起始位置。","重复所需的重复次数。"],"1007":["双脚分开与肩同宽站立,将弹力带绕在上背部,穿过胸前。","用手握住带子的末端,保持肘部弯曲并靠近身体两侧。","收紧腹肌并将躯干向一侧扭转,将肘部移向另一侧的膝盖。","暂停片刻,然后回到起始位置。","在另一侧重复。","继续交替进行所需的重复次数。"],"1008":["将一条带子绕在大腿上,就在膝盖上方。","面向台阶或平台站立,双脚分开与臀部同宽。","用右脚踩上平台,用脚后跟推动。","将左腿伸到身后,保持伸直。","将左脚放回地面。","重复左脚踩上平台的动作。","继续交替双腿达到所需的重复次数。"],"1009":["双脚分开站立,与肩同宽,将弹力带绕在脚踝上。","用双手将弹力带放在大腿前面,手掌朝向身体。","保持背部挺直,核心收紧,铰接臀部,慢慢将上半身降低到地面。","当你降低时,将臀部向后推,并让膝盖稍微弯曲。","将弹力带降低至地面,感受腿筋的拉伸。","在底部暂停片刻,然后启动臀肌和腿筋,将上半身抬回到起始位置。","重复所需的重复次数。"],"1010":["双脚分开与肩同宽站立,将弹力带绕在脚上。","双手握住弹力带,手掌朝向身体,手臂伸直。","收紧核心并保持膝盖轻微弯曲。","慢慢地以臀部为中心向前转动,保持背部挺直,挺胸。","将弹力带降低至地面,同时保持双腿伸直。","在底部暂停片刻,然后挤压臀肌和腿筋,回到起始位置。","重复所需的重复次数。"],"1011":["坐在地上,双腿向前伸展,背部挺直。","将带子绕在腰上,并用双手握住两端。","收紧腹肌,慢慢将躯干扭向一侧,保持背部挺直,双脚着地。","扭转结束时暂停片刻,然后慢慢回到起始位置。","重复扭转到另一侧。","继续交替进行所需的重复次数。"],"1012":["双脚分开与肩同宽站立,将弹力带放在脚下。","将弹力带手柄保持在与肩同高的位置,手掌朝前。","启动你的核心并将弹力带压过头顶,充分伸展你的手臂。","当你按压时,将你的躯干扭转到一侧,保持臀部稳定。","在顶部暂停片刻,然后回到起始位置。","在另一侧重复按压和扭转。","继续交替进行所需的重复次数。"],"1013":["将弹力带固定在较高的锚点上,例如上拉杆或坚固的横梁。","面向锚点站立,双脚分开与肩同宽。","反手握住弹力带,双手间距略宽于肩宽。","将手臂完全伸过头顶,保持肘部稍微弯曲。","收紧背阔肌,将弹力带向下拉向胸部,将肩胛骨挤压在一起。","在动作底部停顿片刻,然后慢慢释放张力,回到起始位置。","重复所需的重复次数。"],"1014":["平躺,双腿伸直,手臂伸过头顶,握住弹力带。","收紧腹肌,同时Line truncated
+11
View File
@@ -5,6 +5,17 @@ export const EXIDX = {}
EXDB.forEach(e => { EXIDX[e.id] = e })
export const BODYPARTS = [...new Set(EXDB.map(e => e.bp))].sort()
// Custom (user-created) exercises live in synced state S.customEx (issue #11) and are
// merged into the id index here so every EXIDX[id] lookup keeps working unchanged.
let customIds = []
export function registerCustom(list) {
customIds.forEach(id => delete EXIDX[id])
customIds = (list || []).map(e => e.id)
;(list || []).forEach(e => { EXIDX[e.id] = e })
}
// Full searchable catalogue — customs first so your own exercises are easy to find.
export const allExercises = st => [...(st.customEx || []), ...EXDB]
export const imgSrc = ex => 'img/' + ex.img
export const gifSrc = ex => 'gif/' + ex.gif
+4 -1
View File
@@ -1,4 +1,5 @@
// Formatting + date helpers (ported from the vanilla app, unit taken from the store where needed).
import { dateLocale } from './i18n.js'
export const todayISO = () => {
const d = new Date()
return d.getFullYear() + '-' + String(d.getMonth() + 1).padStart(2, '0') + '-' + String(d.getDate()).padStart(2, '0')
@@ -13,7 +14,7 @@ export const MONTHS_LONG = ['January', 'February', 'March', 'April', 'May', 'Jun
export function fmtDate(iso, long) {
const d = new Date(iso + 'T12:00:00')
return d.toLocaleDateString('en-GB', long ? { weekday: 'short', day: 'numeric', month: 'short' } : { day: 'numeric', month: 'short' })
return d.toLocaleDateString(dateLocale(), long ? { weekday: 'short', day: 'numeric', month: 'short' } : { day: 'numeric', month: 'short' })
}
export function fmtDur(ms) {
const m = Math.floor(ms / 60000)
@@ -31,5 +32,7 @@ export function weekKey(d) {
return dt.getFullYear() + '-' + week
}
export const localTZ = () => { try { return Intl.DateTimeFormat().resolvedOptions().timeZone || 'UTC' } catch { return 'UTC' } }
export const uid = () => Date.now().toString(36) + Math.random().toString(36).slice(2, 7)
export const ACCENTS = { lime: '#a3e635', sky: '#38bdf8', orange: '#fb923c', violet: '#a78bfa', pink: '#f472b6', red: '#f87171', teal: '#2dd4bf', gold: '#fbbf24' }
+6
View File
@@ -11,6 +11,12 @@ export function setLabel(id, s) {
export function defaultConfig(id) {
return isCardio(id) ? { sets: 1, min: 20, speed: 8 } : { sets: 3, reps: 10, weight: 0 }
}
// Drop superset ids that no longer have an adjacent partner (after unlink/reorder/remove).
export function cleanupSg(ex) {
ex.forEach((e, i) => {
if (e.sg && !(ex[i - 1]?.sg === e.sg || ex[i + 1]?.sg === e.sg)) delete e.sg
})
}
export function lastEntryFor(S, exId) {
for (let i = S.workouts.length - 1; i >= 0; i--) {
+56
View File
@@ -0,0 +1,56 @@
// Tiny dependency-free i18n. English source strings are the keys; locale files in
// src/locales/ map them to translations and are lazy-loaded (Vite code-splits each
// import.meta.glob entry), so the initial bundle stays English-only.
// Exercise instructions come from separately generated packs in src/instr/ (one per
// language, from the upstream dataset) — also lazy-loaded on language switch.
import { useSyncExternalStore } from 'react'
// UI languages. de/pt have no instruction pack upstream — instructions fall back to English.
export const LANGS = {
en: 'English', de: 'Deutsch', es: 'Español', fr: 'Français', it: 'Italiano',
pt: 'Português', pl: 'Polski', tr: 'Türkçe', ru: 'Русский', zh: '中文',
ko: '한국어', hi: 'हिन्दी'
}
export const INSTR_LANGS = ['en', 'es', 'fr', 'it', 'tr', 'ru', 'zh', 'hi', 'pl', 'ko']
const DATE_LOCALES = {
en: 'en-GB', de: 'de-DE', es: 'es-ES', fr: 'fr-FR', it: 'it-IT', pt: 'pt-PT',
pl: 'pl-PL', tr: 'tr-TR', ru: 'ru-RU', zh: 'zh-CN', ko: 'ko-KR', hi: 'hi-IN'
}
const localePacks = import.meta.glob('../locales/*.js')
const instrPacks = import.meta.glob('../instr/*.js')
let lang = 'en'
let dict = {}
let instr = null // { exId: [steps] } for the current language, null = English
let version = 0
const subs = new Set()
const notify = () => { version++; subs.forEach(f => f()) }
export const getLang = () => lang
export const dateLocale = () => DATE_LOCALES[lang] || 'en-GB'
// Translate a source string; {0},{1}… are replaced with args (also on the English fallback).
export function t(s, ...args) {
let v = dict[s] || s
for (let i = 0; i < args.length; i++) v = v.replaceAll('{' + i + '}', args[i])
return v
}
// Instructions for an exercise in the current language (English steps as fallback).
export const instrFor = ex => (instr && instr[ex.id]) || ex.st || []
export async function setLang(l) {
if (!LANGS[l]) l = 'en'
if (l === lang && version > 0) return
lang = l
try {
dict = l === 'en' ? {} : (await localePacks['../locales/' + l + '.js']()).default
instr = l === 'en' || !INSTR_LANGS.includes(l) ? null : (await instrPacks['../instr/' + l + '.js']()).default
} catch (e) { dict = {}; instr = null }
notify()
}
// Re-renders the subscribing component (and its children) whenever the language changes.
export function useLang() {
return useSyncExternalStore(fn => { subs.add(fn); return () => subs.delete(fn) }, () => version)
}
+354
View File
@@ -0,0 +1,354 @@
// German UI strings. Keys are the English source strings (see lib/i18n.js).
export default {
// --- generic ---
'Confirm': 'Bestätigen',
'Cancel': 'Abbrechen',
'Delete': 'Löschen',
'Save': 'Speichern',
'Import': 'Importieren',
'Discard': 'Verwerfen',
'All': 'Alle',
'Rest': 'Pause',
'On': 'An',
'Off': 'Aus',
'On 🔔': 'An 🔔',
'Off 🔕': 'Aus 🔕',
'Skip': 'Überspringen',
'New': 'Neu',
'Log': 'Eintragen',
'Goal': 'Ziel',
'Plan': 'Plan',
'Today': 'Heute',
'Home': 'Start',
'Start': 'Los',
'Resume': 'Weiter',
'Stats': 'Statistik',
'Exercises': 'Übungen',
'History': 'Verlauf',
'Settings': 'Einstellungen',
'Freestyle': 'Freies Training',
'Routine': 'Routine',
'routine': 'Routine',
'Cardio': 'Cardio',
'Superset': 'Supersatz',
'last': 'zuletzt',
'rescheduled': 'verschoben',
'Prev': 'Zurück',
'Next': 'Weiter',
// --- days & months ---
'Sunday': 'Sonntag', 'Monday': 'Montag', 'Tuesday': 'Dienstag', 'Wednesday': 'Mittwoch',
'Thursday': 'Donnerstag', 'Friday': 'Freitag', 'Saturday': 'Samstag',
'Su': 'So', 'Mo': 'Mo', 'Tu': 'Di', 'We': 'Mi', 'Th': 'Do', 'Fr': 'Fr', 'Sa': 'Sa',
'Mon': 'Mo', 'Wed': 'Mi', 'Fri': 'Fr',
'Jan': 'Jan', 'Feb': 'Feb', 'Mar': 'Mär', 'Apr': 'Apr', 'May': 'Mai', 'Jun': 'Jun',
'Jul': 'Jul', 'Aug': 'Aug', 'Sep': 'Sep', 'Oct': 'Okt', 'Nov': 'Nov', 'Dec': 'Dez',
'January': 'Januar', 'February': 'Februar', 'March': 'März', 'April': 'April',
'June': 'Juni', 'July': 'Juli', 'August': 'August', 'September': 'September',
'October': 'Oktober', 'November': 'November', 'December': 'Dezember',
// --- body weight & goal ---
'Quick check-in ⚖️': 'Kurzer Check-in ⚖️',
'Log body weight': 'Körpergewicht eintragen',
'Slide or tap to set your weight — tracked before every workout so your curve stays honest.': 'Schieben oder tippen, um dein Gewicht zu setzen — vor jedem Training erfasst, damit deine Kurve ehrlich bleibt.',
'Save & start workout': 'Speichern & Training starten',
'Skip today': 'Heute überspringen',
'↺ Choose a different workout': '↺ Anderes Training wählen',
'Recent weigh-ins': 'Letzte Messungen',
'Enter a valid weight': 'Gib ein gültiges Gewicht ein',
'Weight saved ✓': 'Gewicht gespeichert ✓',
'Target weight 🎯': 'Zielgewicht 🎯',
'Your goal is drawn as a line through the weight charts, and gains/losses are colored by whether they move toward it.': 'Dein Ziel wird als Linie in den Gewichts-Charts angezeigt, und Zu-/Abnahmen werden danach eingefärbt, ob sie darauf zusteuern.',
'Save goal': 'Ziel speichern',
'Goal set: {0}': 'Ziel gesetzt: {0}',
'{0} to go': 'noch {0}',
'Goal removed': 'Ziel entfernt',
'Remove goal': 'Ziel entfernen',
'Body weight': 'Körpergewicht',
'reached! 🎉': 'erreicht! 🎉',
'{0} to gain': 'noch {0} zunehmen',
'{0} to lose': 'noch {0} abnehmen',
"No entries yet — log your weight to start the curve. It's also asked before every workout.": 'Noch keine Einträge — trag dein Gewicht ein, um die Kurve zu starten. Es wird auch vor jedem Training abgefragt.',
// --- exercise detail / picker / config ---
'Best:': 'Bestwert:',
'+ Add to my plan': '+ Zu meinem Plan',
'How to': 'Ausführung',
'instructions in English': 'Anleitung auf Englisch',
'New routine': 'Neue Routine',
'Add “{0}”': '„{0}“ hinzufügen',
'“{0}” added to {1} ✓': '„{0}“ zu {1} hinzugefügt ✓',
'Pick a routine — sets, reps & weight come next.': 'Wähle eine Routine — Sätze, Wiederholungen & Gewicht kommen gleich.',
'{0} exercises': '{0} Übungen',
'already in': 'schon drin',
'Create one and start with this exercise': 'Erstelle eine und starte mit dieser Übung',
'Add exercise': 'Übung hinzufügen',
'Search {0} exercises…': '{0} Übungen durchsuchen…',
'Chosen': 'Gewählt',
'Nothing chosen yet — add exercises and they’ll show up here.': 'Noch nichts gewählt — füge Übungen hinzu, dann erscheinen sie hier.',
'No match 🤷': 'Kein Treffer 🤷',
'Show more': 'Mehr anzeigen',
'Intervals': 'Intervalle',
'Minutes': 'Minuten',
'Speed (km/h)': 'Tempo (km/h)',
'Sets': 'Sätze',
'Reps': 'Wdh.',
'Weight ({0})': 'Gewicht ({0})',
'Add to routine': 'Zur Routine hinzufügen',
'Remove exercise': 'Übung entfernen',
'Pick an emoji': 'Emoji auswählen',
// --- day planning / calendar ---
'Back to weekly plan': 'Zurück zum Wochenplan',
'{0} set to rest': '{0} als Pausentag gesetzt',
'{0} planned for {1} ✓': '{0} für {1} geplant ✓',
'Weekly plan:': 'Wochenplan:',
'changed for this day': 'für diesen Tag geändert',
'Sick, missed a day or want a different session? Pick what to train instead.': 'Krank, Tag verpasst oder Lust auf was anderes? Wähle, was du stattdessen trainierst.',
'Rest / skip this day': 'Pause / Tag überspringen',
'Rest day': 'Pausentag',
'{0} workout': '{0} Training',
'{0} workouts': '{0} Trainings',
'No workouts this month': 'Keine Trainings in diesem Monat',
'Trained': 'Trainiert',
'Planned': 'Geplant',
'Rescheduled': 'Verschoben',
'Tap a trained day for details · tap any other day to plan a session': 'Tippe auf einen trainierten Tag für Details · tippe auf jeden anderen Tag, um zu planen',
// --- workout lifecycle ---
'{0} sets': '{0} Sätze',
'no sets': 'keine Sätze',
'Delete workout?': 'Training löschen?',
'This removes it from your history for good.': 'Das entfernt es endgültig aus deinem Verlauf.',
'Workout deleted': 'Training gelöscht',
'Delete workout': 'Training löschen',
'{0} done': '{0} geschafft',
'Confirm the weight you worked with — your highest becomes the default next time.': 'Bestätige das Gewicht, mit dem du trainiert hast — dein höchstes wird beim nächsten Mal vorausgefüllt.',
'Then finish the superset partner.': 'Dann den Supersatz-Partner abschliessen.',
'Previous best:': 'Bisheriger Bestwert:',
'new record! 🏆': 'neuer Rekord! 🏆',
'Save ✓': 'Speichern ✓',
'Save & next exercise ›': 'Speichern & nächste Übung ›',
'Just close': 'Nur schliessen',
'Save weight': 'Gewicht speichern',
'Tracked — next time starts at {0} 📈': 'Gespeichert — nächstes Mal startest du bei {0} 📈',
"That's the whole workout!": 'Das war das ganze Training!',
'Every exercise done — great work. Finish up, or keep going and add another exercise.': 'Alle Übungen geschafft — stark! Schliesse ab oder mach weiter und füge eine Übung hinzu.',
'Finish workout 🏁': 'Training beenden 🏁',
'Continue workout': 'Weitertrainieren',
'Keep going 💪 — tap “+ Add exercise” below': 'Weiter so 💪 — tippe unten auf „+ Übung hinzufügen“',
'Workout complete!': 'Training abgeschlossen!',
'Duration': 'Dauer',
'Volume': 'Volumen',
'PRs': 'Rekorde',
'New PR:': 'Neuer Rekord:',
'Nice! 💪': 'Stark! 💪',
'Nothing logged yet': 'Noch nichts eingetragen',
'You haven’t checked off any sets. Finish the workout anyway?': 'Du hast noch keine Sätze abgehakt. Training trotzdem beenden?',
'Finish anyway': 'Trotzdem beenden',
'Finish early?': 'Früher beenden?',
'{0} set still unchecked. Finish the workout now?': '{0} Satz noch offen. Training jetzt beenden?',
'{0} sets still unchecked. Finish the workout now?': '{0} Sätze noch offen. Training jetzt beenden?',
'Finish workout': 'Training beenden',
// --- workout view ---
'Start workout': 'Training starten',
'today is {0}': 'heute ist {0}',
'rest day, but no one’s stopping you': 'Pausentag — aber niemand hält dich auf',
"Today's plan": 'Heutiger Plan',
'Start {0} ▶': '{0} starten ▶',
'Other routines': 'Andere Routinen',
'Start ▶': 'Start ▶',
'Freestyle workout (pick as you go)': 'Freies Training (Übungen unterwegs wählen)',
'Build a plan first': 'Erst einen Plan erstellen',
'Duration (min)': 'Dauer (min)',
'Last time': 'Letztes Mal',
'Last time you hit all reps — try {0}': 'Letztes Mal alle Wdh. geschafft — versuch {0}',
'Weights bumped to {0} 💪': 'Gewichte auf {0} erhöht 💪',
'Remove set': 'Satz entfernen',
'Add set': 'Satz hinzufügen',
'Cardio logged 🏃': 'Cardio eingetragen 🏃',
'Discard workout?': 'Training verwerfen?',
'The sets you logged in this session will be lost.': 'Die in dieser Einheit eingetragenen Sätze gehen verloren.',
'Superset {0} / {1}': 'Supersatz {0} / {1}',
'Exercise {0} / {1}': 'Übung {0} / {1}',
'Superset · do these back-to-back, rest after both': 'Supersatz · direkt nacheinander, Pause erst danach',
'Freestyle workout — add your first exercise.': 'Freies Training — füge deine erste Übung hinzu.',
'Finish workout early · {0} exercises': 'Training vorzeitig beenden · {0} Übungen',
'Rest over — next set! 💪': 'Pause vorbei — nächster Satz! 💪',
// --- home ---
'Hi {0} 💪': 'Hi {0} 💪',
'This week': 'Diese Woche',
'{0} — in progress': '{0} — läuft',
'Resume ▶': 'Weiter ▶',
'Welcome! 👋': 'Willkommen! 👋',
'Set up your weekly routine to get going — or load a ready-made Push / Pull / Legs plan.': 'Richte deinen Wochenplan ein — oder lade einen fertigen Push-/Pull-/Beine-Plan.',
'Load starter plan (PPL)': 'Starterplan laden (PPL)',
'Build my own plan': 'Eigenen Plan erstellen',
'{0} week streak': '{0} Wochen Serie',
'this week': 'diese Woche',
'{0} workout total': 'insgesamt {0} Training',
'{0} workouts total': 'insgesamt {0} Trainings',
// --- stats ---
'Progress & history': 'Fortschritt & Verlauf',
'Workouts': 'Trainings',
'This month': 'Dieser Monat',
'Week streak': 'Wochen-Serie',
'Weight 30d': 'Gewicht 30 T.',
'Activity — last 12 months': 'Aktivität — letzte 12 Monate',
'by time trained': 'nach Trainingszeit',
'Exercise progress': 'Übungs-Fortschritt',
'Top speed per workout': 'Top-Tempo pro Training',
'Best set weight per workout': 'Bestes Satzgewicht pro Training',
'Finish your first workout to see progress curves here. 📈': 'Schliess dein erstes Training ab, um hier Fortschrittskurven zu sehen. 📈',
'Recent workouts': 'Letzte Trainings',
'Less time': 'Weniger',
'More time': 'Mehr',
'No data yet': 'Noch keine Daten',
// --- plan view ---
'Your weekly routine': 'Deine Wochenroutine',
'Week schedule': 'Wochenplan',
'Routines': 'Routinen',
'No routines yet.': 'Noch keine Routinen.',
'Create one or load the starter plan.': 'Erstelle eine oder lade den Starterplan.',
'Load starter plan (Push / Pull / Legs)': 'Starterplan laden (Push / Pull / Beine)',
// --- routine edit ---
'Superset with exercise above': 'Supersatz mit der Übung darüber',
'No exercises yet — add your first one.': 'Noch keine Übungen — füge deine erste hinzu.',
'Tip: tap 🔗 on an exercise to superset it with the one above — you’ll do them back-to-back.': 'Tipp: Tippe bei einer Übung auf 🔗, um sie mit der darüber zum Supersatz zu verbinden — du machst sie direkt nacheinander.',
'Delete routine?': 'Routine löschen?',
'“{0}” and its exercises will be removed.': '„{0}“ und ihre Übungen werden entfernt.',
'Delete routine': 'Routine löschen',
// --- library / history ---
'{0} exercises with animations': '{0} Übungen mit Animationen',
'Search…': 'Suchen…',
'No workouts yet.': 'Noch keine Trainings.',
'Starter plan loaded — Mon Push · Wed Pull · Fri Legs': 'Starterplan geladen — Mo Push · Mi Pull · Fr Beine',
// --- login / account ---
'Enter a name': 'Gib einen Namen ein',
'Profile created — data from this device moved into it ✓': 'Profil erstellt — Daten von diesem Gerät wurden übernommen ✓',
'Profile created — data moved into it ✓': 'Profil erstellt — Daten übernommen ✓',
'Welcome, {0} 💪': 'Willkommen, {0} 💪',
'Welcome back, {0} 💪': 'Willkommen zurück, {0} 💪',
'Registration failed': 'Registrierung fehlgeschlagen',
'Sign-in failed': 'Anmeldung fehlgeschlagen',
'Create your profile ✨': 'Erstelle dein Profil ✨',
'Pick a name, then confirm with {0}. The passkey is saved in your device — no password needed.': 'Wähle einen Namen und bestätige mit {0}. Der Passkey wird auf deinem Gerät gespeichert — kein Passwort nötig.',
'Pick a name, then confirm with your device.': 'Wähle einen Namen und bestätige mit deinem Gerät.',
'Your name': 'Dein Name',
'Create passkey': 'Passkey erstellen',
'Your workouts. Your weights. Your profile.': 'Deine Trainings. Deine Gewichte. Dein Profil.',
'Sign in with passkey': 'Mit Passkey anmelden',
'Create new profile': 'Neues Profil erstellen',
"This browser doesn't support passkeys — you can still use openGym locally on this device.": 'Dieser Browser unterstützt keine Passkeys — du kannst openGym trotzdem lokal auf diesem Gerät nutzen.',
'Continue without account': 'Ohne Konto fortfahren',
'Passkeys use {0} — no passwords.': 'Passkeys nutzen {0} — keine Passwörter.',
'Each profile keeps its own plan, workouts & body weight.': 'Jedes Profil hat seinen eigenen Plan, Trainings & Körpergewicht.',
// --- settings ---
'Account': 'Konto',
'Signed in with passkey — data syncs to this profile.': 'Mit Passkey angemeldet — Daten werden mit diesem Profil synchronisiert.',
'Sign out?': 'Abmelden?',
'Your data is synced to your profile first, then cleared from this device.': 'Deine Daten werden erst mit dem Profil synchronisiert, dann von diesem Gerät entfernt.',
'Sign out': 'Abmelden',
'Guest mode — data lives only in this browser. Create a passkey profile to keep it safe and separate per person.': 'Gastmodus — Daten liegen nur in diesem Browser. Erstelle ein Passkey-Profil, um sie zu sichern und pro Person zu trennen.',
'Create passkey profile': 'Passkey-Profil erstellen',
'Passkeys not supported in this browser.': 'Passkeys werden in diesem Browser nicht unterstützt.',
'Appearance': 'Aussehen',
'synced with your profile': 'mit deinem Profil synchronisiert',
'Language': 'Sprache',
"Exercise instructions aren't available in this language yet — they stay in English.": 'Übungsanleitungen gibt es in dieser Sprache noch nicht — sie bleiben auf Englisch.',
'Theme': 'Design',
'Dark': 'Dunkel',
'Light': 'Hell',
'Accent color': 'Akzentfarbe',
'Units & timer': 'Einheiten & Timer',
'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.',
'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.',
'Delete everything': 'Alles löschen',
'All data reset': 'Alle Daten zurückgesetzt',
'Backup exported ✓': 'Backup exportiert ✓',
'Import backup?': 'Backup importieren?',
'This replaces all current data with the backup file.': 'Das ersetzt alle aktuellen Daten durch die Backup-Datei.',
'Backup imported ✓': 'Backup importiert ✓',
'Import failed: {0}': 'Import fehlgeschlagen: {0}',
'Tip': 'Tipp',
'In Chrome: ⋮ menu → Add to Home screen': 'In Chrome: ⋮-Menü → Zum Startbildschirm hinzufügen',
'In Safari: Share → Add to Home Screen': 'In Safari: Teilen → Zum Home-Bildschirm',
'to install openGym as a full-screen app.': 'um openGym als Vollbild-App zu installieren.',
'Your data syncs with your profile — sign in anywhere to see it.': 'Deine Daten synchronisieren mit deinem Profil — melde dich überall an, um sie zu sehen.',
'Guest data stays on this device — export a backup now and then!': 'Gastdaten bleiben auf diesem Gerät — exportiere ab und zu ein Backup!',
'free & open source (AGPL v3)': 'kostenlos & Open Source (AGPL v3)',
'Notifications': 'Benachrichtigungen',
'Not supported in this browser.': 'In diesem Browser nicht unterstützt.',
'Push notifications': 'Push-Benachrichtigungen',
'Rest-timer alerts, even if openGym is closed.': 'Pausen-Timer-Alarm, auch wenn openGym geschlossen ist.',
'Workout day reminder': 'Trainingstag-Erinnerung',
'Reminder time': 'Erinnerungszeit',
"Only sent on days you have a routine planned and haven't logged a workout yet.": 'Wird nur an Tagen gesendet, an denen ein Training geplant und noch keins eingetragen ist.',
'Timezone: {0} (auto-detected, updates if you travel).': 'Zeitzone: {0} (automatisch erkannt, aktualisiert sich beim Reisen).',
'Send test notification': 'Test-Benachrichtigung senden',
'Test sent — should arrive any second': 'Test gesendet — sollte jeden Moment ankommen',
'Test failed': 'Test fehlgeschlagen',
'Notifications off': 'Benachrichtigungen aus',
'Notifications on 🔔': 'Benachrichtigungen an 🔔',
'Could not change notification settings': 'Benachrichtigungs-Einstellungen konnten nicht geändert werden',
// --- media ---
'tap to pause': 'Tippen zum Pausieren',
'tap to play': 'Tippen zum Abspielen',
// --- data terms: body parts ---
'back': 'Rücken', 'cardio': 'Cardio', 'chest': 'Brust', 'lower arms': 'Unterarme',
'lower legs': 'Unterschenkel', 'neck': 'Nacken', 'shoulders': 'Schultern',
'upper arms': 'Oberarme', 'upper legs': 'Oberschenkel', 'waist': 'Rumpf',
// --- data terms: equipment ---
'assisted': 'assistiert', 'band': 'Band', 'barbell': 'Langhantel', 'body weight': 'Körpergewicht',
'bosu ball': 'Bosu-Ball', 'cable': 'Kabelzug', 'dumbbell': 'Kurzhantel',
'elliptical machine': 'Crosstrainer', 'ez barbell': 'SZ-Stange', 'hammer': 'Hammer',
'kettlebell': 'Kettlebell', 'leverage machine': 'Hebelmaschine', 'medicine ball': 'Medizinball',
'olympic barbell': 'Olympia-Langhantel', 'resistance band': 'Widerstandsband', 'roller': 'Rolle',
'rope': 'Seil', 'skierg machine': 'SkiErg', 'sled machine': 'Schlitten',
'smith machine': 'Multipresse', 'stability ball': 'Gymnastikball', 'stationary bike': 'Ergometer',
'stepmill machine': 'Treppenmaschine', 'tire': 'Reifen', 'trap bar': 'Trap-Stange',
'upper body ergometer': 'Oberkörper-Ergometer', 'weighted': 'mit Zusatzgewicht', 'wheel roller': 'Bauchroller',
// --- data terms: targets & muscles ---
'abductors': 'Abduktoren', 'abs': 'Bauch', 'adductors': 'Adduktoren', 'biceps': 'Bizeps',
'calves': 'Waden', 'cardiovascular system': 'Herz-Kreislauf', 'delts': 'Schultern',
'forearms': 'Unterarme', 'glutes': 'Gesäss', 'hamstrings': 'Beinbeuger', 'lats': 'Latissimus',
'levator scapulae': 'Schulterblattheber', 'pectorals': 'Brustmuskeln', 'quads': 'Beinstrecker',
'serratus anterior': 'Sägemuskel', 'spine': 'Wirbelsäule', 'traps': 'Trapezmuskel',
'triceps': 'Trizeps', 'upper back': 'oberer Rücken',
'abdominals': 'Bauchmuskeln', 'ankle stabilizers': 'Sprunggelenk-Stabilisatoren', 'ankles': 'Sprunggelenke',
'brachialis': 'Armbeuger', 'core': 'Rumpf', 'deltoids': 'Deltamuskeln', 'feet': 'Füsse',
'grip muscles': 'Griffkraft', 'groin': 'Leiste', 'hands': 'Hände', 'hip flexors': 'Hüftbeuger',
'inner thighs': 'Innenschenkel', 'latissimus dorsi': 'Latissimus', 'lower abs': 'unterer Bauch',
'lower back': 'unterer Rücken', 'obliques': 'seitliche Bauchmuskeln', 'quadriceps': 'Beinstrecker',
'rear deltoids': 'hintere Schulter', 'rhomboids': 'Rhomboiden', 'rotator cuff': 'Rotatorenmanschette',
'shins': 'Schienbeine', 'soleus': 'Schollenmuskel', 'sternocleidomastoid': 'Kopfwender',
'trapezius': 'Trapezmuskel', 'upper chest': 'obere Brust', 'wrist extensors': 'Handstrecker',
'wrist flexors': 'Handbeuger', 'wrists': 'Handgelenke',
// --- custom exercises (#11) ---
'Create your own exercise': 'Eigene Übung erstellen',
'Edit custom exercise': 'Eigene Übung bearbeiten',
'Name it and pick a body part — it behaves like any other exercise, just without an animation.': 'Name und Körperpartie festlegen — die Übung verhält sich wie jede andere, nur ohne Animation.',
'Exercise name': 'Übungsname',
'name + body part, no animation': 'Name + Körperpartie, ohne Animation',
'Create exercise': 'Übung erstellen',
'Give it a name': 'Gib ihr einen Namen',
'Pick a body part': 'Wähle eine Körperpartie',
'“{0}” already exists': '„{0}“ existiert bereits',
'“{0}” created ✓': '„{0}“ erstellt ✓',
'Cardio exercises log time + speed instead of weight × reps.': 'Cardio-Übungen erfassen Zeit + Tempo statt Gewicht × Wdh.',
'custom': 'eigene',
'Edit': 'Bearbeiten',
'Saved ✓': 'Gespeichert ✓',
'Delete “{0}”?': '„{0}“ löschen?',
'It will be removed from your routines. Already-logged workouts keep their sets.': 'Sie wird aus deinen Routinen entfernt. Bereits geloggte Workouts behalten ihre Sätze.',
'Exercise deleted': 'Übung gelöscht',
'Finish your current workout first': 'Beende zuerst dein laufendes Workout',
'Description (optional) — setup, cues, anything you want to remember': 'Beschreibung (optional) — Aufbau, Hinweise, was du dir merken willst',
'Delete exercise': 'Übung löschen',
'Edit or delete this exercise': 'Übung bearbeiten oder löschen',
'Remove from routine': 'Aus Routine entfernen'
}
+336
View File
@@ -0,0 +1,336 @@
// Spanish UI strings. Keys are the English source strings (see lib/i18n.js).
export default {
'Confirm': 'Confirmar',
'Cancel': 'Cancelar',
'Delete': 'Eliminar',
'Save': 'Guardar',
'Import': 'Importar',
'Discard': 'Descartar',
'All': 'Todo',
'Rest': 'Descanso',
'On': 'Sí',
'Off': 'No',
'On 🔔': 'Sí 🔔',
'Off 🔕': 'No 🔕',
'Skip': 'Saltar',
'New': 'Nueva',
'Log': 'Registrar',
'Goal': 'Meta',
'Plan': 'Plan',
'Today': 'Hoy',
'Home': 'Inicio',
'Start': 'Empezar',
'Resume': 'Seguir',
'Stats': 'Progreso',
'Exercises': 'Ejercicios',
'History': 'Historial',
'Settings': 'Ajustes',
'Freestyle': 'Libre',
'Routine': 'Rutina',
'routine': 'rutina',
'Cardio': 'Cardio',
'Superset': 'Superserie',
'last': 'último',
'rescheduled': 'reprogramado',
'Prev': 'Anterior',
'Next': 'Siguiente',
'Sunday': 'Domingo', 'Monday': 'Lunes', 'Tuesday': 'Martes', 'Wednesday': 'Miércoles',
'Thursday': 'Jueves', 'Friday': 'Viernes', 'Saturday': 'Sábado',
'Su': 'Do', 'Mo': 'Lu', 'Tu': 'Ma', 'We': 'Mi', 'Th': 'Ju', 'Fr': 'Vi', 'Sa': 'Sá',
'Mon': 'Lun', 'Wed': 'Mié', 'Fri': 'Vie',
'Jan': 'Ene', 'Feb': 'Feb', 'Mar': 'Mar', 'Apr': 'Abr', 'May': 'May', 'Jun': 'Jun',
'Jul': 'Jul', 'Aug': 'Ago', 'Sep': 'Sep', 'Oct': 'Oct', 'Nov': 'Nov', 'Dec': 'Dic',
'January': 'Enero', 'February': 'Febrero', 'March': 'Marzo', 'April': 'Abril',
'June': 'Junio', 'July': 'Julio', 'August': 'Agosto', 'September': 'Septiembre',
'October': 'Octubre', 'November': 'Noviembre', 'December': 'Diciembre',
'Quick check-in ⚖️': 'Chequeo rápido ⚖️',
'Log body weight': 'Registrar peso corporal',
'Slide or tap to set your weight — tracked before every workout so your curve stays honest.': 'Desliza o toca para fijar tu peso — se registra antes de cada entrenamiento para que tu curva sea honesta.',
'Save & start workout': 'Guardar y empezar',
'Skip today': 'Saltar hoy',
'↺ Choose a different workout': '↺ Elegir otro entrenamiento',
'Recent weigh-ins': 'Pesajes recientes',
'Enter a valid weight': 'Introduce un peso válido',
'Weight saved ✓': 'Peso guardado ✓',
'Target weight 🎯': 'Peso objetivo 🎯',
'Your goal is drawn as a line through the weight charts, and gains/losses are colored by whether they move toward it.': 'Tu meta se dibuja como una línea en las gráficas de peso, y las subidas/bajadas se colorean según se acerquen a ella.',
'Save goal': 'Guardar meta',
'Goal set: {0}': 'Meta fijada: {0}',
'{0} to go': 'faltan {0}',
'Goal removed': 'Meta eliminada',
'Remove goal': 'Eliminar meta',
'Body weight': 'Peso corporal',
'reached! 🎉': '¡conseguido! 🎉',
'{0} to gain': '{0} por ganar',
'{0} to lose': '{0} por perder',
"No entries yet — log your weight to start the curve. It's also asked before every workout.": 'Sin registros aún — apunta tu peso para empezar la curva. También se pide antes de cada entrenamiento.',
'Best:': 'Mejor:',
'+ Add to my plan': '+ Añadir a mi plan',
'How to': 'Cómo hacerlo',
'instructions in English': 'instrucciones en inglés',
'New routine': 'Nueva rutina',
'Add “{0}”': 'Añadir «{0}»',
'“{0}” added to {1} ✓': '«{0}» añadido a {1} ✓',
'Pick a routine — sets, reps & weight come next.': 'Elige una rutina — series, repeticiones y peso vienen después.',
'{0} exercises': '{0} ejercicios',
'already in': 'ya incluido',
'Create one and start with this exercise': 'Crea una y empieza con este ejercicio',
'Add exercise': 'Añadir ejercicio',
'Search {0} exercises…': 'Buscar entre {0} ejercicios…',
'Chosen': 'Elegidos',
'Nothing chosen yet — add exercises and they’ll show up here.': 'Nada elegido aún — añade ejercicios y aparecerán aquí.',
'No match 🤷': 'Sin resultados 🤷',
'Show more': 'Mostrar más',
'Intervals': 'Intervalos',
'Minutes': 'Minutos',
'Speed (km/h)': 'Velocidad (km/h)',
'Sets': 'Series',
'Reps': 'Reps',
'Weight ({0})': 'Peso ({0})',
'Add to routine': 'Añadir a la rutina',
'Remove exercise': 'Quitar ejercicio',
'Pick an emoji': 'Elige un emoji',
'Back to weekly plan': 'Volver al plan semanal',
'{0} set to rest': '{0} marcado como descanso',
'{0} planned for {1} ✓': '{0} planificado para {1} ✓',
'Weekly plan:': 'Plan semanal:',
'changed for this day': 'cambiado para este día',
'Sick, missed a day or want a different session? Pick what to train instead.': '¿Enfermo, te saltaste un día o quieres otra sesión? Elige qué entrenar en su lugar.',
'Rest / skip this day': 'Descansar / saltar este día',
'Rest day': 'Día de descanso',
'{0} workout': '{0} entrenamiento',
'{0} workouts': '{0} entrenamientos',
'No workouts this month': 'Sin entrenamientos este mes',
'Trained': 'Entrenado',
'Planned': 'Planificado',
'Rescheduled': 'Reprogramado',
'Tap a trained day for details · tap any other day to plan a session': 'Toca un día entrenado para ver detalles · toca cualquier otro día para planificar',
'{0} sets': '{0} series',
'no sets': 'sin series',
'Delete workout?': '¿Eliminar entrenamiento?',
'This removes it from your history for good.': 'Se elimina de tu historial para siempre.',
'Workout deleted': 'Entrenamiento eliminado',
'Delete workout': 'Eliminar entrenamiento',
'{0} done': '{0} hecho',
'Confirm the weight you worked with — your highest becomes the default next time.': 'Confirma el peso con el que trabajaste — el más alto será el predeterminado la próxima vez.',
'Then finish the superset partner.': 'Luego termina el otro ejercicio de la superserie.',
'Previous best:': 'Mejor anterior:',
'new record! 🏆': '¡nuevo récord! 🏆',
'Save ✓': 'Guardar ✓',
'Save & next exercise ›': 'Guardar y siguiente ejercicio ›',
'Just close': 'Solo cerrar',
'Save weight': 'Guardar peso',
'Tracked — next time starts at {0} 📈': 'Registrado — la próxima vez empiezas en {0} 📈',
"That's the whole workout!": '¡Ese era todo el entrenamiento!',
'Every exercise done — great work. Finish up, or keep going and add another exercise.': 'Todos los ejercicios hechos — ¡buen trabajo! Termina, o sigue y añade otro ejercicio.',
'Finish workout 🏁': 'Terminar entrenamiento 🏁',
'Continue workout': 'Continuar entrenamiento',
'Keep going 💪 — tap “+ Add exercise” below': 'Sigue así 💪 — toca «+ Añadir ejercicio» abajo',
'Workout complete!': '¡Entrenamiento completado!',
'Duration': 'Duración',
'Volume': 'Volumen',
'PRs': 'Récords',
'New PR:': 'Nuevo récord:',
'Nice! 💪': '¡Genial! 💪',
'Nothing logged yet': 'Nada registrado aún',
'You haven’t checked off any sets. Finish the workout anyway?': 'No has marcado ninguna serie. ¿Terminar el entrenamiento igualmente?',
'Finish anyway': 'Terminar igualmente',
'Finish early?': '¿Terminar antes?',
'{0} set still unchecked. Finish the workout now?': 'Queda {0} serie sin marcar. ¿Terminar ahora?',
'{0} sets still unchecked. Finish the workout now?': 'Quedan {0} series sin marcar. ¿Terminar ahora?',
'Finish workout': 'Terminar entrenamiento',
'Start workout': 'Empezar entrenamiento',
'today is {0}': 'hoy toca {0}',
'rest day, but no one’s stopping you': 'día de descanso, pero nadie te lo impide',
"Today's plan": 'Plan de hoy',
'Start {0} ▶': 'Empezar {0} ▶',
'Other routines': 'Otras rutinas',
'Start ▶': 'Empezar ▶',
'Freestyle workout (pick as you go)': 'Entrenamiento libre (elige sobre la marcha)',
'Build a plan first': 'Crea primero un plan',
'Duration (min)': 'Duración (min)',
'Last time': 'La última vez',
'Last time you hit all reps — try {0}': 'La última vez completaste todas las reps — prueba {0}',
'Weights bumped to {0} 💪': 'Pesos subidos a {0} 💪',
'Remove set': 'Quitar serie',
'Add set': 'Añadir serie',
'Cardio logged 🏃': 'Cardio registrado 🏃',
'Discard workout?': '¿Descartar entrenamiento?',
'The sets you logged in this session will be lost.': 'Las series registradas en esta sesión se perderán.',
'Superset {0} / {1}': 'Superserie {0} / {1}',
'Exercise {0} / {1}': 'Ejercicio {0} / {1}',
'Superset · do these back-to-back, rest after both': 'Superserie · hazlos seguidos, descansa después de ambos',
'Freestyle workout — add your first exercise.': 'Entrenamiento libre — añade tu primer ejercicio.',
'Finish workout early · {0} exercises': 'Terminar antes · {0} ejercicios',
'Rest over — next set! 💪': '¡Descanso terminado — siguiente serie! 💪',
'Hi {0} 💪': 'Hola {0} 💪',
'This week': 'Esta semana',
'{0} — in progress': '{0} — en curso',
'Resume ▶': 'Seguir ▶',
'Welcome! 👋': '¡Bienvenido! 👋',
'Set up your weekly routine to get going — or load a ready-made Push / Pull / Legs plan.': 'Configura tu rutina semanal para empezar — o carga un plan Push / Pull / Piernas ya hecho.',
'Load starter plan (PPL)': 'Cargar plan inicial (PPL)',
'Build my own plan': 'Crear mi propio plan',
'{0} week streak': 'racha de {0} semanas',
'this week': 'esta semana',
'{0} workout total': '{0} entrenamiento en total',
'{0} workouts total': '{0} entrenamientos en total',
'Progress & history': 'Progreso e historial',
'Workouts': 'Entrenos',
'This month': 'Este mes',
'Week streak': 'Racha semanal',
'Weight 30d': 'Peso 30 d',
'Activity — last 12 months': 'Actividad — últimos 12 meses',
'by time trained': 'por tiempo entrenado',
'Exercise progress': 'Progreso por ejercicio',
'Top speed per workout': 'Velocidad máxima por entrenamiento',
'Best set weight per workout': 'Mejor peso por entrenamiento',
'Finish your first workout to see progress curves here. 📈': 'Termina tu primer entrenamiento para ver curvas de progreso aquí. 📈',
'Recent workouts': 'Entrenamientos recientes',
'Less time': 'Menos',
'More time': 'Más',
'No data yet': 'Aún sin datos',
'Your weekly routine': 'Tu rutina semanal',
'Week schedule': 'Horario semanal',
'Routines': 'Rutinas',
'No routines yet.': 'Aún no hay rutinas.',
'Create one or load the starter plan.': 'Crea una o carga el plan inicial.',
'Load starter plan (Push / Pull / Legs)': 'Cargar plan inicial (Push / Pull / Piernas)',
'Superset with exercise above': 'Superserie con el ejercicio de arriba',
'No exercises yet — add your first one.': 'Aún no hay ejercicios — añade el primero.',
'Tip: tap 🔗 on an exercise to superset it with the one above — you’ll do them back-to-back.': 'Consejo: toca 🔗 en un ejercicio para hacer superserie con el de arriba — los harás seguidos.',
'Delete routine?': '¿Eliminar rutina?',
'“{0}” and its exercises will be removed.': '«{0}» y sus ejercicios se eliminarán.',
'Delete routine': 'Eliminar rutina',
'{0} exercises with animations': '{0} ejercicios con animaciones',
'Search…': 'Buscar…',
'No workouts yet.': 'Aún no hay entrenamientos.',
'Starter plan loaded — Mon Push · Wed Pull · Fri Legs': 'Plan inicial cargado — Lun Push · Mié Pull · Vie Piernas',
'Enter a name': 'Introduce un nombre',
'Profile created — data from this device moved into it ✓': 'Perfil creado — los datos de este dispositivo se han movido a él ✓',
'Profile created — data moved into it ✓': 'Perfil creado — datos movidos a él ✓',
'Welcome, {0} 💪': 'Bienvenido, {0} 💪',
'Welcome back, {0} 💪': 'Bienvenido de nuevo, {0} 💪',
'Registration failed': 'Registro fallido',
'Sign-in failed': 'Inicio de sesión fallido',
'Create your profile ✨': 'Crea tu perfil ✨',
'Pick a name, then confirm with {0}. The passkey is saved in your device — no password needed.': 'Elige un nombre y confirma con {0}. La passkey se guarda en tu dispositivo — sin contraseñas.',
'Pick a name, then confirm with your device.': 'Elige un nombre y confirma con tu dispositivo.',
'Your name': 'Tu nombre',
'Create passkey': 'Crear passkey',
'Your workouts. Your weights. Your profile.': 'Tus entrenamientos. Tus pesos. Tu perfil.',
'Sign in with passkey': 'Iniciar sesión con passkey',
'Create new profile': 'Crear perfil nuevo',
"This browser doesn't support passkeys — you can still use openGym locally on this device.": 'Este navegador no admite passkeys — aun así puedes usar openGym localmente en este dispositivo.',
'Continue without account': 'Continuar sin cuenta',
'Passkeys use {0} — no passwords.': 'Las passkeys usan {0} — sin contraseñas.',
'Each profile keeps its own plan, workouts & body weight.': 'Cada perfil guarda su propio plan, entrenamientos y peso corporal.',
'Account': 'Cuenta',
'Signed in with passkey — data syncs to this profile.': 'Sesión iniciada con passkey — los datos se sincronizan con este perfil.',
'Sign out?': '¿Cerrar sesión?',
'Your data is synced to your profile first, then cleared from this device.': 'Tus datos se sincronizan primero con tu perfil y luego se borran de este dispositivo.',
'Sign out': 'Cerrar sesión',
'Guest mode — data lives only in this browser. Create a passkey profile to keep it safe and separate per person.': 'Modo invitado — los datos viven solo en este navegador. Crea un perfil con passkey para protegerlos y separarlos por persona.',
'Create passkey profile': 'Crear perfil con passkey',
'Passkeys not supported in this browser.': 'Passkeys no compatibles con este navegador.',
'Appearance': 'Apariencia',
'synced with your profile': 'sincronizado con tu perfil',
'Language': 'Idioma',
"Exercise instructions aren't available in this language yet — they stay in English.": 'Las instrucciones de los ejercicios aún no están en este idioma — se muestran en inglés.',
'Theme': 'Tema',
'Dark': 'Oscuro',
'Light': 'Claro',
'Accent color': 'Color de acento',
'Units & timer': 'Unidades y temporizador',
'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.',
'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.',
'Delete everything': 'Eliminar todo',
'All data reset': 'Todos los datos restablecidos',
'Backup exported ✓': 'Copia exportada ✓',
'Import backup?': '¿Importar copia?',
'This replaces all current data with the backup file.': 'Esto sustituye todos los datos actuales por el archivo de copia.',
'Backup imported ✓': 'Copia importada ✓',
'Import failed: {0}': 'Importación fallida: {0}',
'Tip': 'Consejo',
'In Chrome: ⋮ menu → Add to Home screen': 'En Chrome: menú ⋮ → Añadir a pantalla de inicio',
'In Safari: Share → Add to Home Screen': 'En Safari: Compartir → Añadir a pantalla de inicio',
'to install openGym as a full-screen app.': 'para instalar openGym como app a pantalla completa.',
'Your data syncs with your profile — sign in anywhere to see it.': 'Tus datos se sincronizan con tu perfil — inicia sesión donde sea para verlos.',
'Guest data stays on this device — export a backup now and then!': 'Los datos de invitado se quedan en este dispositivo — ¡exporta una copia de vez en cuando!',
'free & open source (AGPL v3)': 'gratis y de código abierto (AGPL v3)',
'Notifications': 'Notificaciones',
'Not supported in this browser.': 'No compatible con este navegador.',
'Push notifications': 'Notificaciones push',
'Rest-timer alerts, even if openGym is closed.': 'Avisos del temporizador de descanso, incluso con openGym cerrado.',
'Workout day reminder': 'Recordatorio de día de entrenamiento',
'Reminder time': 'Hora del recordatorio',
"Only sent on days you have a routine planned and haven't logged a workout yet.": 'Solo se envía los días con rutina planificada y sin entrenamiento registrado.',
'Timezone: {0} (auto-detected, updates if you travel).': 'Zona horaria: {0} (detectada automáticamente, se actualiza si viajas).',
'Send test notification': 'Enviar notificación de prueba',
'Test sent — should arrive any second': 'Prueba enviada — debería llegar en segundos',
'Test failed': 'Prueba fallida',
'Notifications off': 'Notificaciones desactivadas',
'Notifications on 🔔': 'Notificaciones activadas 🔔',
'Could not change notification settings': 'No se pudo cambiar la configuración de notificaciones',
'tap to pause': 'toca para pausar',
'tap to play': 'toca para reproducir',
'back': 'espalda', 'cardio': 'cardio', 'chest': 'pecho', 'lower arms': 'antebrazos',
'lower legs': 'pantorrillas', 'neck': 'cuello', 'shoulders': 'hombros',
'upper arms': 'brazos', 'upper legs': 'piernas', 'waist': 'abdomen',
'assisted': 'asistido', 'band': 'banda', 'barbell': 'barra', 'body weight': 'peso corporal',
'bosu ball': 'bosu', 'cable': 'polea', 'dumbbell': 'mancuerna',
'elliptical machine': 'elíptica', 'ez barbell': 'barra EZ', 'hammer': 'martillo',
'kettlebell': 'kettlebell', 'leverage machine': 'máquina de palanca', 'medicine ball': 'balón medicinal',
'olympic barbell': 'barra olímpica', 'resistance band': 'banda de resistencia', 'roller': 'rodillo',
'rope': 'cuerda', 'skierg machine': 'SkiErg', 'sled machine': 'trineo',
'smith machine': 'máquina Smith', 'stability ball': 'fitball', 'stationary bike': 'bici estática',
'stepmill machine': 'escaladora', 'tire': 'neumático', 'trap bar': 'barra hexagonal',
'upper body ergometer': 'ergómetro de brazos', 'weighted': 'con lastre', 'wheel roller': 'rueda abdominal',
'abductors': 'abductores', 'abs': 'abdominales', 'adductors': 'aductores', 'biceps': 'bíceps',
'calves': 'gemelos', 'cardiovascular system': 'sistema cardiovascular', 'delts': 'deltoides',
'forearms': 'antebrazos', 'glutes': 'glúteos', 'hamstrings': 'isquiotibiales', 'lats': 'dorsales',
'levator scapulae': 'elevador de la escápula', 'pectorals': 'pectorales', 'quads': 'cuádriceps',
'serratus anterior': 'serrato anterior', 'spine': 'columna', 'traps': 'trapecios',
'triceps': 'tríceps', 'upper back': 'espalda alta',
'abdominals': 'abdominales', 'ankle stabilizers': 'estabilizadores de tobillo', 'ankles': 'tobillos',
'brachialis': 'braquial', 'core': 'core', 'deltoids': 'deltoides', 'feet': 'pies',
'grip muscles': 'agarre', 'groin': 'ingle', 'hands': 'manos', 'hip flexors': 'flexores de cadera',
'inner thighs': 'cara interna del muslo', 'latissimus dorsi': 'dorsal ancho', 'lower abs': 'abdominales inferiores',
'lower back': 'zona lumbar', 'obliques': 'oblicuos', 'quadriceps': 'cuádriceps',
'rear deltoids': 'deltoides posterior', 'rhomboids': 'romboides', 'rotator cuff': 'manguito rotador',
'shins': 'espinillas', 'soleus': 'sóleo', 'sternocleidomastoid': 'esternocleidomastoideo',
'trapezius': 'trapecio', 'upper chest': 'pecho superior', 'wrist extensors': 'extensores de muñeca',
'wrist flexors': 'flexores de muñeca', 'wrists': 'muñecas',
// --- custom exercises (#11) ---
'Create your own exercise': 'Crea tu propio ejercicio',
'Edit custom exercise': 'Editar ejercicio propio',
'Name it and pick a body part — it behaves like any other exercise, just without an animation.': 'Ponle nombre y elige una parte del cuerpo — funciona como cualquier otro ejercicio, solo que sin animación.',
'Exercise name': 'Nombre del ejercicio',
'name + body part, no animation': 'nombre + parte del cuerpo, sin animación',
'Create exercise': 'Crear ejercicio',
'Give it a name': 'Ponle un nombre',
'Pick a body part': 'Elige una parte del cuerpo',
'“{0}” already exists': '«{0}» ya existe',
'“{0}” created ✓': '«{0}» creado ✓',
'Cardio exercises log time + speed instead of weight × reps.': 'Los ejercicios de cardio registran tiempo + velocidad en vez de peso × reps.',
'custom': 'propio',
'Edit': 'Editar',
'Saved ✓': 'Guardado ✓',
'Delete “{0}”?': '¿Eliminar «{0}»?',
'It will be removed from your routines. Already-logged workouts keep their sets.': 'Se quitará de tus rutinas. Los entrenamientos ya registrados conservan sus series.',
'Exercise deleted': 'Ejercicio eliminado',
'Finish your current workout first': 'Termina primero tu entrenamiento actual',
'Description (optional) — setup, cues, anything you want to remember': 'Descripción (opcional) — preparación, consejos, lo que quieras recordar',
'Delete exercise': 'Eliminar ejercicio',
'Edit or delete this exercise': 'Editar o eliminar este ejercicio',
'Remove from routine': 'Quitar de la rutina'
}
+336
View File
@@ -0,0 +1,336 @@
// French UI strings. Keys are the English source strings (see lib/i18n.js).
export default {
'Confirm': 'Confirmer',
'Cancel': 'Annuler',
'Delete': 'Supprimer',
'Save': 'Enregistrer',
'Import': 'Importer',
'Discard': 'Abandonner',
'All': 'Tout',
'Rest': 'Repos',
'On': 'Oui',
'Off': 'Non',
'On 🔔': 'Oui 🔔',
'Off 🔕': 'Non 🔕',
'Skip': 'Passer',
'New': 'Nouvelle',
'Log': 'Noter',
'Goal': 'Objectif',
'Plan': 'Plan',
'Today': "Aujourd'hui",
'Home': 'Accueil',
'Start': 'Démarrer',
'Resume': 'Reprendre',
'Stats': 'Stats',
'Exercises': 'Exercices',
'History': 'Historique',
'Settings': 'Réglages',
'Freestyle': 'Libre',
'Routine': 'Routine',
'routine': 'routine',
'Cardio': 'Cardio',
'Superset': 'Superset',
'last': 'dernier',
'rescheduled': 'reprogrammé',
'Prev': 'Préc.',
'Next': 'Suiv.',
'Sunday': 'Dimanche', 'Monday': 'Lundi', 'Tuesday': 'Mardi', 'Wednesday': 'Mercredi',
'Thursday': 'Jeudi', 'Friday': 'Vendredi', 'Saturday': 'Samedi',
'Su': 'Di', 'Mo': 'Lu', 'Tu': 'Ma', 'We': 'Me', 'Th': 'Je', 'Fr': 'Ve', 'Sa': 'Sa',
'Mon': 'Lun', 'Wed': 'Mer', 'Fri': 'Ven',
'Jan': 'Jan', 'Feb': 'Fév', 'Mar': 'Mar', 'Apr': 'Avr', 'May': 'Mai', 'Jun': 'Juin',
'Jul': 'Juil', 'Aug': 'Août', 'Sep': 'Sep', 'Oct': 'Oct', 'Nov': 'Nov', 'Dec': 'Déc',
'January': 'Janvier', 'February': 'Février', 'March': 'Mars', 'April': 'Avril',
'June': 'Juin', 'July': 'Juillet', 'August': 'Août', 'September': 'Septembre',
'October': 'Octobre', 'November': 'Novembre', 'December': 'Décembre',
'Quick check-in ⚖️': 'Pesée rapide ⚖️',
'Log body weight': 'Noter le poids corporel',
'Slide or tap to set your weight — tracked before every workout so your curve stays honest.': 'Glisse ou tape pour régler ton poids — noté avant chaque séance pour que ta courbe reste honnête.',
'Save & start workout': 'Enregistrer et démarrer',
'Skip today': "Passer aujourd'hui",
'↺ Choose a different workout': '↺ Choisir une autre séance',
'Recent weigh-ins': 'Pesées récentes',
'Enter a valid weight': 'Entre un poids valide',
'Weight saved ✓': 'Poids enregistré ✓',
'Target weight 🎯': 'Poids cible 🎯',
'Your goal is drawn as a line through the weight charts, and gains/losses are colored by whether they move toward it.': "Ton objectif apparaît comme une ligne sur les graphiques de poids, et les variations sont colorées selon qu'elles s'en rapprochent.",
'Save goal': "Enregistrer l'objectif",
'Goal set: {0}': 'Objectif fixé : {0}',
'{0} to go': 'encore {0}',
'Goal removed': 'Objectif supprimé',
'Remove goal': "Supprimer l'objectif",
'Body weight': 'Poids corporel',
'reached! 🎉': 'atteint ! 🎉',
'{0} to gain': '{0} à prendre',
'{0} to lose': '{0} à perdre',
"No entries yet — log your weight to start the curve. It's also asked before every workout.": "Aucune entrée — note ton poids pour démarrer la courbe. Il est aussi demandé avant chaque séance.",
'Best:': 'Record :',
'+ Add to my plan': '+ Ajouter à mon plan',
'How to': 'Exécution',
'instructions in English': 'instructions en anglais',
'New routine': 'Nouvelle routine',
'Add “{0}”': 'Ajouter « {0} »',
'“{0}” added to {1} ✓': '« {0} » ajouté à {1} ✓',
'Pick a routine — sets, reps & weight come next.': 'Choisis une routine — séries, répétitions et poids viennent ensuite.',
'{0} exercises': '{0} exercices',
'already in': 'déjà dedans',
'Create one and start with this exercise': 'Crées-en une et commence avec cet exercice',
'Add exercise': 'Ajouter un exercice',
'Search {0} exercises…': 'Rechercher parmi {0} exercices…',
'Chosen': 'Choisis',
'Nothing chosen yet — add exercises and they’ll show up here.': 'Rien de choisi — ajoute des exercices et ils apparaîtront ici.',
'No match 🤷': 'Aucun résultat 🤷',
'Show more': 'Afficher plus',
'Intervals': 'Intervalles',
'Minutes': 'Minutes',
'Speed (km/h)': 'Vitesse (km/h)',
'Sets': 'Séries',
'Reps': 'Reps',
'Weight ({0})': 'Poids ({0})',
'Add to routine': 'Ajouter à la routine',
'Remove exercise': "Retirer l'exercice",
'Pick an emoji': 'Choisis un emoji',
'Back to weekly plan': 'Retour au plan hebdo',
'{0} set to rest': '{0} passé en repos',
'{0} planned for {1} ✓': '{0} prévu pour {1} ✓',
'Weekly plan:': 'Plan hebdo :',
'changed for this day': 'modifié pour ce jour',
'Sick, missed a day or want a different session? Pick what to train instead.': 'Malade, jour manqué ou envie d’autre chose ? Choisis quoi entraîner à la place.',
'Rest / skip this day': 'Repos / sauter ce jour',
'Rest day': 'Jour de repos',
'{0} workout': '{0} séance',
'{0} workouts': '{0} séances',
'No workouts this month': 'Aucune séance ce mois-ci',
'Trained': 'Entraîné',
'Planned': 'Prévu',
'Rescheduled': 'Reprogrammé',
'Tap a trained day for details · tap any other day to plan a session': 'Tape un jour entraîné pour les détails · tape un autre jour pour planifier',
'{0} sets': '{0} séries',
'no sets': 'aucune série',
'Delete workout?': 'Supprimer la séance ?',
'This removes it from your history for good.': 'Elle sera retirée de ton historique pour de bon.',
'Workout deleted': 'Séance supprimée',
'Delete workout': 'Supprimer la séance',
'{0} done': '{0} terminé',
'Confirm the weight you worked with — your highest becomes the default next time.': 'Confirme le poids utilisé — le plus élevé devient la valeur par défaut la prochaine fois.',
'Then finish the superset partner.': 'Puis termine le partenaire du superset.',
'Previous best:': 'Ancien record :',
'new record! 🏆': 'nouveau record ! 🏆',
'Save ✓': 'Enregistrer ✓',
'Save & next exercise ›': 'Enregistrer et exercice suivant ›',
'Just close': 'Juste fermer',
'Save weight': 'Enregistrer le poids',
'Tracked — next time starts at {0} 📈': 'Noté — la prochaine fois tu démarres à {0} 📈',
"That's the whole workout!": 'C’était toute la séance !',
'Every exercise done — great work. Finish up, or keep going and add another exercise.': 'Tous les exercices faits — bravo ! Termine, ou continue et ajoute un exercice.',
'Finish workout 🏁': 'Terminer la séance 🏁',
'Continue workout': 'Continuer la séance',
'Keep going 💪 — tap “+ Add exercise” below': 'Continue 💪 — tape « + Ajouter un exercice » en bas',
'Workout complete!': 'Séance terminée !',
'Duration': 'Durée',
'Volume': 'Volume',
'PRs': 'Records',
'New PR:': 'Nouveau record :',
'Nice! 💪': 'Bien joué ! 💪',
'Nothing logged yet': 'Rien de noté',
'You haven’t checked off any sets. Finish the workout anyway?': 'Tu n’as coché aucune série. Terminer la séance quand même ?',
'Finish anyway': 'Terminer quand même',
'Finish early?': 'Terminer plus tôt ?',
'{0} set still unchecked. Finish the workout now?': '{0} série non cochée. Terminer maintenant ?',
'{0} sets still unchecked. Finish the workout now?': '{0} séries non cochées. Terminer maintenant ?',
'Finish workout': 'Terminer la séance',
'Start workout': 'Démarrer la séance',
'today is {0}': "aujourd'hui c'est {0}",
'rest day, but no one’s stopping you': 'jour de repos, mais personne ne t’arrête',
"Today's plan": "Plan du jour",
'Start {0} ▶': 'Démarrer {0} ▶',
'Other routines': 'Autres routines',
'Start ▶': 'Démarrer ▶',
'Freestyle workout (pick as you go)': 'Séance libre (choisis au fil de la séance)',
'Build a plan first': "Crée d'abord un plan",
'Duration (min)': 'Durée (min)',
'Last time': 'La dernière fois',
'Last time you hit all reps — try {0}': 'Toutes les reps réussies la dernière fois — essaie {0}',
'Weights bumped to {0} 💪': 'Poids montés à {0} 💪',
'Remove set': 'Retirer une série',
'Add set': 'Ajouter une série',
'Cardio logged 🏃': 'Cardio noté 🏃',
'Discard workout?': 'Abandonner la séance ?',
'The sets you logged in this session will be lost.': 'Les séries notées dans cette session seront perdues.',
'Superset {0} / {1}': 'Superset {0} / {1}',
'Exercise {0} / {1}': 'Exercice {0} / {1}',
'Superset · do these back-to-back, rest after both': 'Superset · enchaîne-les, repos après les deux',
'Freestyle workout — add your first exercise.': 'Séance libre — ajoute ton premier exercice.',
'Finish workout early · {0} exercises': 'Terminer plus tôt · {0} exercices',
'Rest over — next set! 💪': 'Repos fini — série suivante ! 💪',
'Hi {0} 💪': 'Salut {0} 💪',
'This week': 'Cette semaine',
'{0} — in progress': '{0} — en cours',
'Resume ▶': 'Reprendre ▶',
'Welcome! 👋': 'Bienvenue ! 👋',
'Set up your weekly routine to get going — or load a ready-made Push / Pull / Legs plan.': 'Configure ta routine hebdo pour commencer — ou charge un plan Push / Pull / Jambes tout prêt.',
'Load starter plan (PPL)': 'Charger le plan de départ (PPL)',
'Build my own plan': 'Créer mon propre plan',
'{0} week streak': 'série de {0} semaines',
'this week': 'cette semaine',
'{0} workout total': '{0} séance au total',
'{0} workouts total': '{0} séances au total',
'Progress & history': 'Progression et historique',
'Workouts': 'Séances',
'This month': 'Ce mois-ci',
'Week streak': 'Série hebdo',
'Weight 30d': 'Poids 30 j',
'Activity — last 12 months': 'Activité — 12 derniers mois',
'by time trained': "par temps d'entraînement",
'Exercise progress': 'Progression par exercice',
'Top speed per workout': 'Vitesse max par séance',
'Best set weight per workout': 'Meilleur poids par séance',
'Finish your first workout to see progress curves here. 📈': 'Termine ta première séance pour voir tes courbes de progression ici. 📈',
'Recent workouts': 'Séances récentes',
'Less time': 'Moins',
'More time': 'Plus',
'No data yet': 'Pas encore de données',
'Your weekly routine': 'Ta routine hebdomadaire',
'Week schedule': 'Planning de la semaine',
'Routines': 'Routines',
'No routines yet.': 'Aucune routine pour l’instant.',
'Create one or load the starter plan.': 'Crées-en une ou charge le plan de départ.',
'Load starter plan (Push / Pull / Legs)': 'Charger le plan de départ (Push / Pull / Jambes)',
'Superset with exercise above': "Superset avec l'exercice au-dessus",
'No exercises yet — add your first one.': 'Aucun exercice — ajoute le premier.',
'Tip: tap 🔗 on an exercise to superset it with the one above — you’ll do them back-to-back.': 'Astuce : tape 🔗 sur un exercice pour le mettre en superset avec celui au-dessus — tu les feras enchaînés.',
'Delete routine?': 'Supprimer la routine ?',
'“{0}” and its exercises will be removed.': '« {0} » et ses exercices seront supprimés.',
'Delete routine': 'Supprimer la routine',
'{0} exercises with animations': '{0} exercices avec animations',
'Search…': 'Rechercher…',
'No workouts yet.': 'Aucune séance pour l’instant.',
'Starter plan loaded — Mon Push · Wed Pull · Fri Legs': 'Plan de départ chargé — Lun Push · Mer Pull · Ven Jambes',
'Enter a name': 'Entre un nom',
'Profile created — data from this device moved into it ✓': 'Profil créé — les données de cet appareil y ont été transférées ✓',
'Profile created — data moved into it ✓': 'Profil créé — données transférées ✓',
'Welcome, {0} 💪': 'Bienvenue, {0} 💪',
'Welcome back, {0} 💪': 'Content de te revoir, {0} 💪',
'Registration failed': 'Échec de l’inscription',
'Sign-in failed': 'Échec de la connexion',
'Create your profile ✨': 'Crée ton profil ✨',
'Pick a name, then confirm with {0}. The passkey is saved in your device — no password needed.': 'Choisis un nom, puis confirme avec {0}. La passkey est enregistrée sur ton appareil — pas de mot de passe.',
'Pick a name, then confirm with your device.': 'Choisis un nom, puis confirme avec ton appareil.',
'Your name': 'Ton nom',
'Create passkey': 'Créer une passkey',
'Your workouts. Your weights. Your profile.': 'Tes séances. Tes charges. Ton profil.',
'Sign in with passkey': 'Se connecter avec une passkey',
'Create new profile': 'Créer un nouveau profil',
"This browser doesn't support passkeys — you can still use openGym locally on this device.": 'Ce navigateur ne prend pas en charge les passkeys — tu peux quand même utiliser openGym localement sur cet appareil.',
'Continue without account': 'Continuer sans compte',
'Passkeys use {0} — no passwords.': 'Les passkeys utilisent {0} — pas de mots de passe.',
'Each profile keeps its own plan, workouts & body weight.': 'Chaque profil garde son plan, ses séances et son poids corporel.',
'Account': 'Compte',
'Signed in with passkey — data syncs to this profile.': 'Connecté avec passkey — les données se synchronisent avec ce profil.',
'Sign out?': 'Se déconnecter ?',
'Your data is synced to your profile first, then cleared from this device.': 'Tes données sont d’abord synchronisées avec ton profil, puis effacées de cet appareil.',
'Sign out': 'Se déconnecter',
'Guest mode — data lives only in this browser. Create a passkey profile to keep it safe and separate per person.': 'Mode invité — les données ne vivent que dans ce navigateur. Crée un profil passkey pour les protéger et les séparer par personne.',
'Create passkey profile': 'Créer un profil passkey',
'Passkeys not supported in this browser.': 'Passkeys non prises en charge par ce navigateur.',
'Appearance': 'Apparence',
'synced with your profile': 'synchronisé avec ton profil',
'Language': 'Langue',
"Exercise instructions aren't available in this language yet — they stay in English.": 'Les instructions des exercices ne sont pas encore disponibles dans cette langue — elles restent en anglais.',
'Theme': 'Thème',
'Dark': 'Sombre',
'Light': 'Clair',
'Accent color': "Couleur d'accent",
'Units & timer': 'Unités et minuteur',
'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.',
'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.',
'Delete everything': 'Tout supprimer',
'All data reset': 'Toutes les données réinitialisées',
'Backup exported ✓': 'Sauvegarde exportée ✓',
'Import backup?': 'Importer la sauvegarde ?',
'This replaces all current data with the backup file.': 'Cela remplace toutes les données actuelles par le fichier de sauvegarde.',
'Backup imported ✓': 'Sauvegarde importée ✓',
'Import failed: {0}': 'Échec de l’import : {0}',
'Tip': 'Astuce',
'In Chrome: ⋮ menu → Add to Home screen': 'Dans Chrome : menu ⋮ → Ajouter à l’écran d’accueil',
'In Safari: Share → Add to Home Screen': 'Dans Safari : Partager → Sur l’écran d’accueil',
'to install openGym as a full-screen app.': 'pour installer openGym en app plein écran.',
'Your data syncs with your profile — sign in anywhere to see it.': 'Tes données se synchronisent avec ton profil — connecte-toi n’importe où pour les voir.',
'Guest data stays on this device — export a backup now and then!': 'Les données invité restent sur cet appareil — exporte une sauvegarde de temps en temps !',
'free & open source (AGPL v3)': 'gratuit et open source (AGPL v3)',
'Notifications': 'Notifications',
'Not supported in this browser.': 'Non pris en charge par ce navigateur.',
'Push notifications': 'Notifications push',
'Rest-timer alerts, even if openGym is closed.': 'Alertes du minuteur de repos, même si openGym est fermé.',
'Workout day reminder': 'Rappel des jours d’entraînement',
'Reminder time': 'Heure du rappel',
"Only sent on days you have a routine planned and haven't logged a workout yet.": 'Envoyé uniquement les jours où une routine est prévue et aucune séance notée.',
'Timezone: {0} (auto-detected, updates if you travel).': 'Fuseau horaire : {0} (détecté automatiquement, mis à jour si tu voyages).',
'Send test notification': 'Envoyer une notification test',
'Test sent — should arrive any second': 'Test envoyé — il devrait arriver d’une seconde à l’autre',
'Test failed': 'Échec du test',
'Notifications off': 'Notifications désactivées',
'Notifications on 🔔': 'Notifications activées 🔔',
'Could not change notification settings': 'Impossible de modifier les réglages de notification',
'tap to pause': 'toucher pour mettre en pause',
'tap to play': 'toucher pour lire',
'back': 'dos', 'cardio': 'cardio', 'chest': 'pectoraux', 'lower arms': 'avant-bras',
'lower legs': 'mollets', 'neck': 'cou', 'shoulders': 'épaules',
'upper arms': 'bras', 'upper legs': 'cuisses', 'waist': 'abdos',
'assisted': 'assisté', 'band': 'élastique', 'barbell': 'barre', 'body weight': 'poids du corps',
'bosu ball': 'bosu', 'cable': 'poulie', 'dumbbell': 'haltère',
'elliptical machine': 'vélo elliptique', 'ez barbell': 'barre EZ', 'hammer': 'marteau',
'kettlebell': 'kettlebell', 'leverage machine': 'machine à levier', 'medicine ball': 'médecine-ball',
'olympic barbell': 'barre olympique', 'resistance band': 'bande de résistance', 'roller': 'rouleau',
'rope': 'corde', 'skierg machine': 'SkiErg', 'sled machine': 'traîneau',
'smith machine': 'machine Smith', 'stability ball': 'swiss ball', 'stationary bike': 'vélo stationnaire',
'stepmill machine': 'escalier d’exercice', 'tire': 'pneu', 'trap bar': 'barre hexagonale',
'upper body ergometer': 'ergomètre à bras', 'weighted': 'lesté', 'wheel roller': 'roue abdominale',
'abductors': 'abducteurs', 'abs': 'abdos', 'adductors': 'adducteurs', 'biceps': 'biceps',
'calves': 'mollets', 'cardiovascular system': 'système cardiovasculaire', 'delts': 'deltoïdes',
'forearms': 'avant-bras', 'glutes': 'fessiers', 'hamstrings': 'ischio-jambiers', 'lats': 'dorsaux',
'levator scapulae': 'élévateur de la scapula', 'pectorals': 'pectoraux', 'quads': 'quadriceps',
'serratus anterior': 'dentelé antérieur', 'spine': 'colonne', 'traps': 'trapèzes',
'triceps': 'triceps', 'upper back': 'haut du dos',
'abdominals': 'abdominaux', 'ankle stabilizers': 'stabilisateurs de cheville', 'ankles': 'chevilles',
'brachialis': 'brachial', 'core': 'gainage', 'deltoids': 'deltoïdes', 'feet': 'pieds',
'grip muscles': 'muscles de la prise', 'groin': 'aine', 'hands': 'mains', 'hip flexors': 'fléchisseurs de hanche',
'inner thighs': 'intérieur des cuisses', 'latissimus dorsi': 'grand dorsal', 'lower abs': 'bas des abdos',
'lower back': 'lombaires', 'obliques': 'obliques', 'quadriceps': 'quadriceps',
'rear deltoids': 'deltoïdes postérieurs', 'rhomboids': 'rhomboïdes', 'rotator cuff': 'coiffe des rotateurs',
'shins': 'tibias', 'soleus': 'soléaire', 'sternocleidomastoid': 'sterno-cléido-mastoïdien',
'trapezius': 'trapèze', 'upper chest': 'haut des pectoraux', 'wrist extensors': 'extenseurs du poignet',
'wrist flexors': 'fléchisseurs du poignet', 'wrists': 'poignets',
// --- custom exercises (#11) ---
'Create your own exercise': 'Créer votre propre exercice',
'Edit custom exercise': 'Modifier l’exercice personnalisé',
'Name it and pick a body part — it behaves like any other exercise, just without an animation.': 'Nommez-le et choisissez une partie du corps — il se comporte comme tout autre exercice, mais sans animation.',
'Exercise name': 'Nom de l’exercice',
'name + body part, no animation': 'nom + partie du corps, sans animation',
'Create exercise': 'Créer l’exercice',
'Give it a name': 'Donnez-lui un nom',
'Pick a body part': 'Choisissez une partie du corps',
'“{0}” already exists': '« {0} » existe déjà',
'“{0}” created ✓': '« {0} » créé ✓',
'Cardio exercises log time + speed instead of weight × reps.': 'Les exercices cardio enregistrent temps + vitesse au lieu de poids × reps.',
'custom': 'perso',
'Edit': 'Modifier',
'Saved ✓': 'Enregistré ✓',
'Delete “{0}”?': 'Supprimer « {0} » ?',
'It will be removed from your routines. Already-logged workouts keep their sets.': 'Il sera retiré de vos routines. Les séances déjà enregistrées gardent leurs séries.',
'Exercise deleted': 'Exercice supprimé',
'Finish your current workout first': 'Terminez d’abord votre séance en cours',
'Description (optional) — setup, cues, anything you want to remember': 'Description (facultatif) — installation, conseils, ce que vous voulez retenir',
'Delete exercise': 'Supprimer l’exercice',
'Edit or delete this exercise': 'Modifier ou supprimer cet exercice',
'Remove from routine': 'Retirer de la routine'
}
+336
View File
@@ -0,0 +1,336 @@
// Hindi UI strings. Keys are the English source strings (see lib/i18n.js).
export default {
'Confirm': 'पुष्टि करें',
'Cancel': 'रद्द करें',
'Delete': 'हटाएँ',
'Save': 'सहेजें',
'Import': 'आयात करें',
'Discard': 'छोड़ें',
'All': 'सभी',
'Rest': 'आराम',
'On': 'चालू',
'Off': 'बंद',
'On 🔔': 'चालू 🔔',
'Off 🔕': 'बंद 🔕',
'Skip': 'छोड़ें',
'New': 'नई',
'Log': 'दर्ज करें',
'Goal': 'लक्ष्य',
'Plan': 'योजना',
'Today': 'आज',
'Home': 'होम',
'Start': 'शुरू',
'Resume': 'जारी रखें',
'Stats': 'आँकड़े',
'Exercises': 'व्यायाम',
'History': 'इतिहास',
'Settings': 'सेटिंग्स',
'Freestyle': 'फ्रीस्टाइल',
'Routine': 'रूटीन',
'routine': 'रूटीन',
'Cardio': 'कार्डियो',
'Superset': 'सुपरसेट',
'last': 'पिछली बार',
'rescheduled': 'बदला गया',
'Prev': 'पिछला',
'Next': 'अगला',
'Sunday': 'रविवार', 'Monday': 'सोमवार', 'Tuesday': 'मंगलवार', 'Wednesday': 'बुधवार',
'Thursday': 'गुरुवार', 'Friday': 'शुक्रवार', 'Saturday': 'शनिवार',
'Su': 'र', 'Mo': 'सो', 'Tu': 'मं', 'We': 'बु', 'Th': 'गु', 'Fr': 'शु', 'Sa': 'श',
'Mon': 'सोम', 'Wed': 'बुध', 'Fri': 'शुक्र',
'Jan': 'जन', 'Feb': 'फ़र', 'Mar': 'मार्च', 'Apr': 'अप्रै', 'May': 'मई', 'Jun': 'जून',
'Jul': 'जुला', 'Aug': 'अग', 'Sep': 'सित', 'Oct': 'अक्टू', 'Nov': 'नव', 'Dec': 'दिस',
'January': 'जनवरी', 'February': 'फ़रवरी', 'March': 'मार्च', 'April': 'अप्रैल',
'June': 'जून', 'July': 'जुलाई', 'August': 'अगस्त', 'September': 'सितंबर',
'October': 'अक्टूबर', 'November': 'नवंबर', 'December': 'दिसंबर',
'Quick check-in ⚖️': 'झटपट वज़न चेक ⚖️',
'Log body weight': 'शरीर का वज़न दर्ज करें',
'Slide or tap to set your weight — tracked before every workout so your curve stays honest.': 'वज़न सेट करने के लिए स्लाइड या टैप करें — हर वर्कआउट से पहले दर्ज होता है ताकि आपका ग्राफ़ सही रहे।',
'Save & start workout': 'सहेजें और वर्कआउट शुरू करें',
'Skip today': 'आज छोड़ें',
'↺ Choose a different workout': '↺ दूसरा वर्कआउट चुनें',
'Recent weigh-ins': 'हाल के वज़न',
'Enter a valid weight': 'सही वज़न दर्ज करें',
'Weight saved ✓': 'वज़न सहेजा गया ✓',
'Target weight 🎯': 'लक्ष्य वज़न 🎯',
'Your goal is drawn as a line through the weight charts, and gains/losses are colored by whether they move toward it.': 'आपका लक्ष्य वज़न चार्ट में एक रेखा के रूप में दिखता है, और बढ़त/घटत को इस आधार पर रंगा जाता है कि वे लक्ष्य की ओर जा रहे हैं या नहीं।',
'Save goal': 'लक्ष्य सहेजें',
'Goal set: {0}': 'लक्ष्य सेट: {0}',
'{0} to go': '{0} बाकी',
'Goal removed': 'लक्ष्य हटाया गया',
'Remove goal': 'लक्ष्य हटाएँ',
'Body weight': 'शरीर का वज़न',
'reached! 🎉': 'पूरा हुआ! 🎉',
'{0} to gain': '{0} बढ़ाना बाकी',
'{0} to lose': '{0} घटाना बाकी',
"No entries yet — log your weight to start the curve. It's also asked before every workout.": 'अभी कोई एंट्री नहीं — ग्राफ़ शुरू करने के लिए वज़न दर्ज करें। हर वर्कआउट से पहले भी पूछा जाता है।',
'Best:': 'सर्वश्रेष्ठ:',
'+ Add to my plan': '+ मेरी योजना में जोड़ें',
'How to': 'कैसे करें',
'instructions in English': 'निर्देश अंग्रेज़ी में',
'New routine': 'नया रूटीन',
'Add “{0}”': '"{0}" जोड़ें',
'“{0}” added to {1} ✓': '"{0}" को {1} में जोड़ा गया ✓',
'Pick a routine — sets, reps & weight come next.': 'एक रूटीन चुनें — सेट, रेप्स और वज़न आगे आते हैं।',
'{0} exercises': '{0} व्यायाम',
'already in': 'पहले से है',
'Create one and start with this exercise': 'नया बनाएँ और इस व्यायाम से शुरू करें',
'Add exercise': 'व्यायाम जोड़ें',
'Search {0} exercises…': '{0} व्यायामों में खोजें…',
'Chosen': 'चुने हुए',
'Nothing chosen yet — add exercises and they’ll show up here.': 'अभी कुछ नहीं चुना — व्यायाम जोड़ें तो वे यहाँ दिखेंगे।',
'No match 🤷': 'कोई परिणाम नहीं 🤷',
'Show more': 'और दिखाएँ',
'Intervals': 'इंटरवल',
'Minutes': 'मिनट',
'Speed (km/h)': 'गति (किमी/घं)',
'Sets': 'सेट',
'Reps': 'रेप्स',
'Weight ({0})': 'वज़न ({0})',
'Add to routine': 'रूटीन में जोड़ें',
'Remove exercise': 'व्यायाम हटाएँ',
'Pick an emoji': 'इमोजी चुनें',
'Back to weekly plan': 'साप्ताहिक योजना पर वापस',
'{0} set to rest': '{0} आराम के लिए सेट',
'{0} planned for {1} ✓': '{0} को {1} के लिए तय किया ✓',
'Weekly plan:': 'साप्ताहिक योजना:',
'changed for this day': 'इस दिन के लिए बदला गया',
'Sick, missed a day or want a different session? Pick what to train instead.': 'बीमार हैं, दिन छूट गया या कुछ और करना है? चुनें कि इसके बदले क्या ट्रेन करें।',
'Rest / skip this day': 'आराम / यह दिन छोड़ें',
'Rest day': 'आराम का दिन',
'{0} workout': '{0} वर्कआउट',
'{0} workouts': '{0} वर्कआउट',
'No workouts this month': 'इस महीने कोई वर्कआउट नहीं',
'Trained': 'ट्रेन किया',
'Planned': 'नियोजित',
'Rescheduled': 'बदला गया',
'Tap a trained day for details · tap any other day to plan a session': 'विवरण के लिए ट्रेन किए दिन पर टैप करें · योजना बनाने के लिए किसी और दिन पर टैप करें',
'{0} sets': '{0} सेट',
'no sets': 'कोई सेट नहीं',
'Delete workout?': 'वर्कआउट हटाएँ?',
'This removes it from your history for good.': 'यह आपके इतिहास से हमेशा के लिए हट जाएगा।',
'Workout deleted': 'वर्कआउट हटाया गया',
'Delete workout': 'वर्कआउट हटाएँ',
'{0} done': '{0} पूरा',
'Confirm the weight you worked with — your highest becomes the default next time.': 'जिस वज़न से काम किया उसकी पुष्टि करें — सबसे ज़्यादा वज़न अगली बार डिफ़ॉल्ट बन जाएगा।',
'Then finish the superset partner.': 'फिर सुपरसेट का दूसरा व्यायाम पूरा करें।',
'Previous best:': 'पिछला सर्वश्रेष्ठ:',
'new record! 🏆': 'नया रिकॉर्ड! 🏆',
'Save ✓': 'सहेजें ✓',
'Save & next exercise ›': 'सहेजें और अगला व्यायाम ›',
'Just close': 'बस बंद करें',
'Save weight': 'वज़न सहेजें',
'Tracked — next time starts at {0} 📈': 'दर्ज हुआ — अगली बार {0} से शुरू होगा 📈',
"That's the whole workout!": 'पूरा वर्कआउट हो गया!',
'Every exercise done — great work. Finish up, or keep going and add another exercise.': 'सारे व्यायाम पूरे — बढ़िया काम! समाप्त करें, या जारी रखें और एक और व्यायाम जोड़ें।',
'Finish workout 🏁': 'वर्कआउट समाप्त करें 🏁',
'Continue workout': 'वर्कआउट जारी रखें',
'Keep going 💪 — tap “+ Add exercise” below': 'जारी रखें 💪 — नीचे "+ व्यायाम जोड़ें" पर टैप करें',
'Workout complete!': 'वर्कआउट पूरा!',
'Duration': 'अवधि',
'Volume': 'वॉल्यूम',
'PRs': 'रिकॉर्ड',
'New PR:': 'नया रिकॉर्ड:',
'Nice! 💪': 'बहुत बढ़िया! 💪',
'Nothing logged yet': 'अभी कुछ दर्ज नहीं',
'You haven’t checked off any sets. Finish the workout anyway?': 'आपने कोई सेट चेक नहीं किया। फिर भी वर्कआउट समाप्त करें?',
'Finish anyway': 'फिर भी समाप्त करें',
'Finish early?': 'जल्दी समाप्त करें?',
'{0} set still unchecked. Finish the workout now?': '{0} सेट अभी बाकी है। अभी समाप्त करें?',
'{0} sets still unchecked. Finish the workout now?': '{0} सेट अभी बाकी हैं। अभी समाप्त करें?',
'Finish workout': 'वर्कआउट समाप्त करें',
'Start workout': 'वर्कआउट शुरू करें',
'today is {0}': 'आज {0} है',
'rest day, but no one’s stopping you': 'आराम का दिन, पर आपको कोई नहीं रोक रहा',
"Today's plan": 'आज की योजना',
'Start {0} ▶': '{0} शुरू करें ▶',
'Other routines': 'अन्य रूटीन',
'Start ▶': 'शुरू ▶',
'Freestyle workout (pick as you go)': 'फ्रीस्टाइल वर्कआउट (चलते-चलते चुनें)',
'Build a plan first': 'पहले योजना बनाएँ',
'Duration (min)': 'अवधि (मिनट)',
'Last time': 'पिछली बार',
'Last time you hit all reps — try {0}': 'पिछली बार सारे रेप्स पूरे किए — {0} आज़माएँ',
'Weights bumped to {0} 💪': 'वज़न बढ़ाकर {0} किया 💪',
'Remove set': 'सेट हटाएँ',
'Add set': 'सेट जोड़ें',
'Cardio logged 🏃': 'कार्डियो दर्ज हुआ 🏃',
'Discard workout?': 'वर्कआउट छोड़ें?',
'The sets you logged in this session will be lost.': 'इस सत्र में दर्ज किए सेट खो जाएँगे।',
'Superset {0} / {1}': 'सुपरसेट {0} / {1}',
'Exercise {0} / {1}': 'व्यायाम {0} / {1}',
'Superset · do these back-to-back, rest after both': 'सुपरसेट · इन्हें लगातार करें, दोनों के बाद आराम',
'Freestyle workout — add your first exercise.': 'फ्रीस्टाइल वर्कआउट — पहला व्यायाम जोड़ें।',
'Finish workout early · {0} exercises': 'जल्दी समाप्त करें · {0} व्यायाम',
'Rest over — next set! 💪': 'आराम खत्म — अगला सेट! 💪',
'Hi {0} 💪': 'नमस्ते {0} 💪',
'This week': 'इस हफ़्ते',
'{0} — in progress': '{0} — चल रहा है',
'Resume ▶': 'जारी रखें ▶',
'Welcome! 👋': 'स्वागत है! 👋',
'Set up your weekly routine to get going — or load a ready-made Push / Pull / Legs plan.': 'शुरू करने के लिए अपना साप्ताहिक रूटीन बनाएँ — या बना-बनाया पुश / पुल / लेग्स प्लान लोड करें।',
'Load starter plan (PPL)': 'स्टार्टर प्लान लोड करें (PPL)',
'Build my own plan': 'अपनी योजना बनाएँ',
'{0} week streak': '{0} हफ़्तों की स्ट्रीक',
'this week': 'इस हफ़्ते',
'{0} workout total': 'कुल {0} वर्कआउट',
'{0} workouts total': 'कुल {0} वर्कआउट',
'Progress & history': 'प्रगति और इतिहास',
'Workouts': 'वर्कआउट',
'This month': 'इस महीने',
'Week streak': 'हफ़्तों की स्ट्रीक',
'Weight 30d': 'वज़न 30 दिन',
'Activity — last 12 months': 'गतिविधि — पिछले 12 महीने',
'by time trained': 'ट्रेनिंग समय के अनुसार',
'Exercise progress': 'व्यायाम की प्रगति',
'Top speed per workout': 'हर वर्कआउट की अधिकतम गति',
'Best set weight per workout': 'हर वर्कआउट का सर्वश्रेष्ठ सेट वज़न',
'Finish your first workout to see progress curves here. 📈': 'प्रगति ग्राफ़ देखने के लिए पहला वर्कआउट पूरा करें। 📈',
'Recent workouts': 'हाल के वर्कआउट',
'Less time': 'कम',
'More time': 'ज़्यादा',
'No data yet': 'अभी डेटा नहीं',
'Your weekly routine': 'आपका साप्ताहिक रूटीन',
'Week schedule': 'हफ़्ते का कार्यक्रम',
'Routines': 'रूटीन',
'No routines yet.': 'अभी कोई रूटीन नहीं।',
'Create one or load the starter plan.': 'एक बनाएँ या स्टार्टर प्लान लोड करें।',
'Load starter plan (Push / Pull / Legs)': 'स्टार्टर प्लान लोड करें (पुश / पुल / लेग्स)',
'Superset with exercise above': 'ऊपर वाले व्यायाम के साथ सुपरसेट',
'No exercises yet — add your first one.': 'अभी कोई व्यायाम नहीं — पहला जोड़ें।',
'Tip: tap 🔗 on an exercise to superset it with the one above — you’ll do them back-to-back.': 'सुझाव: किसी व्यायाम पर 🔗 टैप करें ताकि वह ऊपर वाले के साथ सुपरसेट बने — आप इन्हें लगातार करेंगे।',
'Delete routine?': 'रूटीन हटाएँ?',
'“{0}” and its exercises will be removed.': '"{0}" और उसके व्यायाम हटा दिए जाएँगे।',
'Delete routine': 'रूटीन हटाएँ',
'{0} exercises with animations': 'एनिमेशन के साथ {0} व्यायाम',
'Search…': 'खोजें…',
'No workouts yet.': 'अभी कोई वर्कआउट नहीं।',
'Starter plan loaded — Mon Push · Wed Pull · Fri Legs': 'स्टार्टर प्लान लोड हुआ — सोम पुश · बुध पुल · शुक्र लेग्स',
'Enter a name': 'नाम दर्ज करें',
'Profile created — data from this device moved into it ✓': 'प्रोफ़ाइल बनी — इस डिवाइस का डेटा उसमें चला गया ✓',
'Profile created — data moved into it ✓': 'प्रोफ़ाइल बनी — डेटा स्थानांतरित ✓',
'Welcome, {0} 💪': 'स्वागत है, {0} 💪',
'Welcome back, {0} 💪': 'वापसी पर स्वागत है, {0} 💪',
'Registration failed': 'पंजीकरण विफल',
'Sign-in failed': 'साइन-इन विफल',
'Create your profile ✨': 'अपनी प्रोफ़ाइल बनाएँ ✨',
'Pick a name, then confirm with {0}. The passkey is saved in your device — no password needed.': 'नाम चुनें, फिर {0} से पुष्टि करें। पासकी आपके डिवाइस में सहेजी जाती है — पासवर्ड की ज़रूरत नहीं।',
'Pick a name, then confirm with your device.': 'नाम चुनें, फिर अपने डिवाइस से पुष्टि करें।',
'Your name': 'आपका नाम',
'Create passkey': 'पासकी बनाएँ',
'Your workouts. Your weights. Your profile.': 'आपके वर्कआउट। आपके वज़न। आपकी प्रोफ़ाइल।',
'Sign in with passkey': 'पासकी से साइन इन करें',
'Create new profile': 'नई प्रोफ़ाइल बनाएँ',
"This browser doesn't support passkeys — you can still use openGym locally on this device.": 'यह ब्राउज़र पासकी सपोर्ट नहीं करता — फिर भी आप इस डिवाइस पर openGym लोकली इस्तेमाल कर सकते हैं।',
'Continue without account': 'बिना खाते के जारी रखें',
'Passkeys use {0} — no passwords.': 'पासकी {0} का उपयोग करती हैं — कोई पासवर्ड नहीं।',
'Each profile keeps its own plan, workouts & body weight.': 'हर प्रोफ़ाइल की अपनी योजना, वर्कआउट और वज़न होते हैं।',
'Account': 'खाता',
'Signed in with passkey — data syncs to this profile.': 'पासकी से साइन इन — डेटा इस प्रोफ़ाइल से सिंक होता है।',
'Sign out?': 'साइन आउट करें?',
'Your data is synced to your profile first, then cleared from this device.': 'डेटा पहले प्रोफ़ाइल से सिंक होता है, फिर इस डिवाइस से हटता है।',
'Sign out': 'साइन आउट',
'Guest mode — data lives only in this browser. Create a passkey profile to keep it safe and separate per person.': 'गेस्ट मोड — डेटा केवल इस ब्राउज़र में रहता है। सुरक्षित रखने और हर व्यक्ति के लिए अलग रखने हेतु पासकी प्रोफ़ाइल बनाएँ।',
'Create passkey profile': 'पासकी प्रोफ़ाइल बनाएँ',
'Passkeys not supported in this browser.': 'इस ब्राउज़र में पासकी समर्थित नहीं।',
'Appearance': 'दिखावट',
'synced with your profile': 'प्रोफ़ाइल से सिंक',
'Language': 'भाषा',
"Exercise instructions aren't available in this language yet — they stay in English.": 'व्यायाम निर्देश अभी इस भाषा में उपलब्ध नहीं — वे अंग्रेज़ी में रहेंगे।',
'Theme': 'थीम',
'Dark': 'डार्क',
'Light': 'लाइट',
'Accent color': 'एक्सेंट रंग',
'Units & timer': 'इकाइयाँ और टाइमर',
'Weight unit': 'वज़न की इकाई',
'Rest timer': 'आराम टाइमर',
'Sounds': 'ध्वनियाँ',
'Note: switching units only changes the label — logged numbers are not converted.': 'नोट: इकाई बदलने से केवल लेबल बदलता है — दर्ज संख्याएँ परिवर्तित नहीं होतीं।',
'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.': 'इस डिवाइस पर आपकी योजना, वर्कआउट और वज़न हट जाएँगे। इसे पूर्ववत नहीं किया जा सकता।',
'Delete everything': 'सब हटाएँ',
'All data reset': 'सारा डेटा रीसेट',
'Backup exported ✓': 'बैकअप निर्यात हुआ ✓',
'Import backup?': 'बैकअप आयात करें?',
'This replaces all current data with the backup file.': 'यह वर्तमान सारा डेटा बैकअप फ़ाइल से बदल देगा।',
'Backup imported ✓': 'बैकअप आयात हुआ ✓',
'Import failed: {0}': 'आयात विफल: {0}',
'Tip': 'सुझाव',
'In Chrome: ⋮ menu → Add to Home screen': 'Chrome में: ⋮ मेनू → होम स्क्रीन पर जोड़ें',
'In Safari: Share → Add to Home Screen': 'Safari में: शेयर → होम स्क्रीन पर जोड़ें',
'to install openGym as a full-screen app.': 'से openGym को फुल-स्क्रीन ऐप के रूप में इंस्टॉल करें।',
'Your data syncs with your profile — sign in anywhere to see it.': 'डेटा प्रोफ़ाइल से सिंक होता है — कहीं भी साइन इन कर देखें।',
'Guest data stays on this device — export a backup now and then!': 'गेस्ट डेटा इसी डिवाइस पर रहता है — कभी-कभी बैकअप निर्यात करें!',
'free & open source (AGPL v3)': 'मुफ़्त और ओपन सोर्स (AGPL v3)',
'Notifications': 'सूचनाएँ',
'Not supported in this browser.': 'इस ब्राउज़र में समर्थित नहीं।',
'Push notifications': 'पुश सूचनाएँ',
'Rest-timer alerts, even if openGym is closed.': 'आराम टाइमर अलर्ट, openGym बंद होने पर भी।',
'Workout day reminder': 'वर्कआउट दिवस अनुस्मारक',
'Reminder time': 'अनुस्मारक समय',
"Only sent on days you have a routine planned and haven't logged a workout yet.": 'केवल उन्हीं दिनों भेजा जाता है जब रूटीन तय है और वर्कआउट दर्ज नहीं हुआ।',
'Timezone: {0} (auto-detected, updates if you travel).': 'समय क्षेत्र: {0} (स्वतः पहचाना गया, यात्रा पर अपडेट होता है)।',
'Send test notification': 'परीक्षण सूचना भेजें',
'Test sent — should arrive any second': 'परीक्षण भेजा — किसी भी क्षण पहुँचेगा',
'Test failed': 'परीक्षण विफल',
'Notifications off': 'सूचनाएँ बंद',
'Notifications on 🔔': 'सूचनाएँ चालू 🔔',
'Could not change notification settings': 'सूचना सेटिंग नहीं बदल सके',
'tap to pause': 'रोकने के लिए टैप करें',
'tap to play': 'चलाने के लिए टैप करें',
'back': 'पीठ', 'cardio': 'कार्डियो', 'chest': 'छाती', 'lower arms': 'अग्रबाहु',
'lower legs': 'पिंडलियाँ', 'neck': 'गर्दन', 'shoulders': 'कंधे',
'upper arms': 'बाजू', 'upper legs': 'जाँघें', 'waist': 'पेट',
'assisted': 'सहायता प्राप्त', 'band': 'बैंड', 'barbell': 'बारबेल', 'body weight': 'शरीर का वज़न',
'bosu ball': 'बोसु बॉल', 'cable': 'केबल', 'dumbbell': 'डम्बल',
'elliptical machine': 'एलिप्टिकल मशीन', 'ez barbell': 'EZ बारबेल', 'hammer': 'हैमर',
'kettlebell': 'केटलबेल', 'leverage machine': 'लीवरेज मशीन', 'medicine ball': 'मेडिसिन बॉल',
'olympic barbell': 'ओलंपिक बारबेल', 'resistance band': 'रेज़िस्टेंस बैंड', 'roller': 'रोलर',
'rope': 'रस्सी', 'skierg machine': 'स्कीअर्ग', 'sled machine': 'स्लेड मशीन',
'smith machine': 'स्मिथ मशीन', 'stability ball': 'स्टेबिलिटी बॉल', 'stationary bike': 'स्थिर साइकिल',
'stepmill machine': 'स्टेपमिल', 'tire': 'टायर', 'trap bar': 'ट्रैप बार',
'upper body ergometer': 'अपर बॉडी एर्गोमीटर', 'weighted': 'वज़न सहित', 'wheel roller': 'एब व्हील',
'abductors': 'एब्डक्टर', 'abs': 'पेट की मांसपेशियाँ', 'adductors': 'एडक्टर', 'biceps': 'बाइसेप्स',
'calves': 'पिंडलियाँ', 'cardiovascular system': 'हृदय प्रणाली', 'delts': 'कंधे की मांसपेशियाँ',
'forearms': 'अग्रबाहु', 'glutes': 'नितंब', 'hamstrings': 'हैमस्ट्रिंग', 'lats': 'लैट्स',
'levator scapulae': 'लेवेटर स्कैपुले', 'pectorals': 'छाती की मांसपेशियाँ', 'quads': 'क्वाड्स',
'serratus anterior': 'सेराटस एंटीरियर', 'spine': 'रीढ़', 'traps': 'ट्रैप्स',
'triceps': 'ट्राइसेप्स', 'upper back': 'ऊपरी पीठ',
'abdominals': 'पेट की मांसपेशियाँ', 'ankle stabilizers': 'टखना स्थिरक', 'ankles': 'टखने',
'brachialis': 'ब्रेकियालिस', 'core': 'कोर', 'deltoids': 'डेल्टॉइड', 'feet': 'पैर',
'grip muscles': 'पकड़ की मांसपेशियाँ', 'groin': 'कमर', 'hands': 'हाथ', 'hip flexors': 'हिप फ्लेक्सर',
'inner thighs': 'भीतरी जाँघें', 'latissimus dorsi': 'लैटिसिमस डॉर्सी', 'lower abs': 'निचला पेट',
'lower back': 'निचली पीठ', 'obliques': 'तिरछी मांसपेशियाँ', 'quadriceps': 'क्वाड्रिसेप्स',
'rear deltoids': 'पीछे के डेल्टॉइड', 'rhomboids': 'रॉम्बॉइड', 'rotator cuff': 'रोटेटर कफ',
'shins': 'पिंडली की हड्डी', 'soleus': 'सोलियस', 'sternocleidomastoid': 'स्टर्नोक्लाइडोमैस्टॉइड',
'trapezius': 'ट्रेपेज़ियस', 'upper chest': 'ऊपरी छाती', 'wrist extensors': 'कलाई विस्तारक',
'wrist flexors': 'कलाई मोड़क', 'wrists': 'कलाइयाँ',
// --- custom exercises (#11) ---
'Create your own exercise': 'अपनी एक्सरसाइज़ बनाएं',
'Edit custom exercise': 'कस्टम एक्सरसाइज़ संपादित करें',
'Name it and pick a body part — it behaves like any other exercise, just without an animation.': 'नाम दें और बॉडी पार्ट चुनें — यह बाकी एक्सरसाइज़ की तरह ही काम करती है, बस एनिमेशन नहीं होता।',
'Exercise name': 'एक्सरसाइज़ का नाम',
'name + body part, no animation': 'नाम + बॉडी पार्ट, बिना एनिमेशन',
'Create exercise': 'एक्सरसाइज़ बनाएं',
'Give it a name': 'कोई नाम दें',
'Pick a body part': 'एक बॉडी पार्ट चुनें',
'“{0}” already exists': '“{0}” पहले से मौजूद है',
'“{0}” created ✓': '“{0}” बन गई ✓',
'Cardio exercises log time + speed instead of weight × reps.': 'कार्डियो एक्सरसाइज़ में वज़न × रेप्स की जगह समय + गति दर्ज होती है।',
'custom': 'कस्टम',
'Edit': 'संपादित करें',
'Saved ✓': 'सहेजा गया ✓',
'Delete “{0}”?': '“{0}” हटाएं?',
'It will be removed from your routines. Already-logged workouts keep their sets.': 'यह आपकी रूटीन से हट जाएगी। दर्ज की गई वर्कआउट में सेट बने रहेंगे।',
'Exercise deleted': 'एक्सरसाइज़ हटाई गई',
'Finish your current workout first': 'पहले चल रही वर्कआउट पूरी करें',
'Description (optional) — setup, cues, anything you want to remember': 'विवरण (वैकल्पिक) — सेटअप, संकेत, जो कुछ भी याद रखना चाहें',
'Delete exercise': 'एक्सरसाइज़ हटाएं',
'Edit or delete this exercise': 'इस एक्सरसाइज़ को संपादित या हटाएं',
'Remove from routine': 'रूटीन से हटाएं'
}
+336
View File
@@ -0,0 +1,336 @@
// Italian UI strings. Keys are the English source strings (see lib/i18n.js).
export default {
'Confirm': 'Conferma',
'Cancel': 'Annulla',
'Delete': 'Elimina',
'Save': 'Salva',
'Import': 'Importa',
'Discard': 'Scarta',
'All': 'Tutti',
'Rest': 'Riposo',
'On': 'Sì',
'Off': 'No',
'On 🔔': 'Sì 🔔',
'Off 🔕': 'No 🔕',
'Skip': 'Salta',
'New': 'Nuova',
'Log': 'Registra',
'Goal': 'Obiettivo',
'Plan': 'Piano',
'Today': 'Oggi',
'Home': 'Home',
'Start': 'Inizia',
'Resume': 'Riprendi',
'Stats': 'Statistiche',
'Exercises': 'Esercizi',
'History': 'Cronologia',
'Settings': 'Impostazioni',
'Freestyle': 'Libero',
'Routine': 'Routine',
'routine': 'routine',
'Cardio': 'Cardio',
'Superset': 'Superset',
'last': 'ultimo',
'rescheduled': 'riprogrammato',
'Prev': 'Prec.',
'Next': 'Succ.',
'Sunday': 'Domenica', 'Monday': 'Lunedì', 'Tuesday': 'Martedì', 'Wednesday': 'Mercoledì',
'Thursday': 'Giovedì', 'Friday': 'Venerdì', 'Saturday': 'Sabato',
'Su': 'Do', 'Mo': 'Lu', 'Tu': 'Ma', 'We': 'Me', 'Th': 'Gi', 'Fr': 'Ve', 'Sa': 'Sa',
'Mon': 'Lun', 'Wed': 'Mer', 'Fri': 'Ven',
'Jan': 'Gen', 'Feb': 'Feb', 'Mar': 'Mar', 'Apr': 'Apr', 'May': 'Mag', 'Jun': 'Giu',
'Jul': 'Lug', 'Aug': 'Ago', 'Sep': 'Set', 'Oct': 'Ott', 'Nov': 'Nov', 'Dec': 'Dic',
'January': 'Gennaio', 'February': 'Febbraio', 'March': 'Marzo', 'April': 'Aprile',
'June': 'Giugno', 'July': 'Luglio', 'August': 'Agosto', 'September': 'Settembre',
'October': 'Ottobre', 'November': 'Novembre', 'December': 'Dicembre',
'Quick check-in ⚖️': 'Check-in veloce ⚖️',
'Log body weight': 'Registra peso corporeo',
'Slide or tap to set your weight — tracked before every workout so your curve stays honest.': 'Scorri o tocca per impostare il peso — registrato prima di ogni allenamento così la tua curva resta onesta.',
'Save & start workout': 'Salva e inizia',
'Skip today': 'Salta oggi',
'↺ Choose a different workout': '↺ Scegli un altro allenamento',
'Recent weigh-ins': 'Pesate recenti',
'Enter a valid weight': 'Inserisci un peso valido',
'Weight saved ✓': 'Peso salvato ✓',
'Target weight 🎯': 'Peso obiettivo 🎯',
'Your goal is drawn as a line through the weight charts, and gains/losses are colored by whether they move toward it.': 'Il tuo obiettivo appare come una linea nei grafici del peso, e aumenti/cali sono colorati a seconda che vi si avvicinino.',
'Save goal': 'Salva obiettivo',
'Goal set: {0}': 'Obiettivo impostato: {0}',
'{0} to go': 'mancano {0}',
'Goal removed': 'Obiettivo rimosso',
'Remove goal': 'Rimuovi obiettivo',
'Body weight': 'Peso corporeo',
'reached! 🎉': 'raggiunto! 🎉',
'{0} to gain': '{0} da prendere',
'{0} to lose': '{0} da perdere',
"No entries yet — log your weight to start the curve. It's also asked before every workout.": 'Nessun dato — registra il tuo peso per iniziare la curva. Viene chiesto anche prima di ogni allenamento.',
'Best:': 'Record:',
'+ Add to my plan': '+ Aggiungi al mio piano',
'How to': 'Esecuzione',
'instructions in English': 'istruzioni in inglese',
'New routine': 'Nuova routine',
'Add “{0}”': 'Aggiungi «{0}»',
'“{0}” added to {1} ✓': '«{0}» aggiunto a {1} ✓',
'Pick a routine — sets, reps & weight come next.': 'Scegli una routine — serie, ripetizioni e peso arrivano dopo.',
'{0} exercises': '{0} esercizi',
'already in': 'già incluso',
'Create one and start with this exercise': 'Creane una e inizia con questo esercizio',
'Add exercise': 'Aggiungi esercizio',
'Search {0} exercises…': 'Cerca tra {0} esercizi…',
'Chosen': 'Scelti',
'Nothing chosen yet — add exercises and they’ll show up here.': 'Ancora niente — aggiungi esercizi e appariranno qui.',
'No match 🤷': 'Nessun risultato 🤷',
'Show more': 'Mostra altro',
'Intervals': 'Intervalli',
'Minutes': 'Minuti',
'Speed (km/h)': 'Velocità (km/h)',
'Sets': 'Serie',
'Reps': 'Rip.',
'Weight ({0})': 'Peso ({0})',
'Add to routine': 'Aggiungi alla routine',
'Remove exercise': 'Rimuovi esercizio',
'Pick an emoji': 'Scegli un emoji',
'Back to weekly plan': 'Torna al piano settimanale',
'{0} set to rest': '{0} impostato a riposo',
'{0} planned for {1} ✓': '{0} pianificato per {1} ✓',
'Weekly plan:': 'Piano settimanale:',
'changed for this day': 'modificato per questo giorno',
'Sick, missed a day or want a different session? Pick what to train instead.': 'Malato, giorno saltato o voglia di altro? Scegli cosa allenare al suo posto.',
'Rest / skip this day': 'Riposo / salta questo giorno',
'Rest day': 'Giorno di riposo',
'{0} workout': '{0} allenamento',
'{0} workouts': '{0} allenamenti',
'No workouts this month': 'Nessun allenamento questo mese',
'Trained': 'Allenato',
'Planned': 'Pianificato',
'Rescheduled': 'Riprogrammato',
'Tap a trained day for details · tap any other day to plan a session': 'Tocca un giorno allenato per i dettagli · tocca un altro giorno per pianificare',
'{0} sets': '{0} serie',
'no sets': 'nessuna serie',
'Delete workout?': 'Eliminare allenamento?',
'This removes it from your history for good.': 'Verrà rimosso per sempre dalla cronologia.',
'Workout deleted': 'Allenamento eliminato',
'Delete workout': 'Elimina allenamento',
'{0} done': '{0} fatto',
'Confirm the weight you worked with — your highest becomes the default next time.': 'Conferma il peso usato — il più alto diventa il predefinito la prossima volta.',
'Then finish the superset partner.': "Poi completa l'altro esercizio del superset.",
'Previous best:': 'Record precedente:',
'new record! 🏆': 'nuovo record! 🏆',
'Save ✓': 'Salva ✓',
'Save & next exercise ›': 'Salva e prossimo esercizio ›',
'Just close': 'Chiudi soltanto',
'Save weight': 'Salva peso',
'Tracked — next time starts at {0} 📈': 'Registrato — la prossima volta parti da {0} 📈',
"That's the whole workout!": 'Allenamento completato!',
'Every exercise done — great work. Finish up, or keep going and add another exercise.': 'Tutti gli esercizi fatti — ottimo lavoro! Concludi, o continua e aggiungi un altro esercizio.',
'Finish workout 🏁': 'Termina allenamento 🏁',
'Continue workout': 'Continua allenamento',
'Keep going 💪 — tap “+ Add exercise” below': 'Continua così 💪 — tocca «+ Aggiungi esercizio» in basso',
'Workout complete!': 'Allenamento completato!',
'Duration': 'Durata',
'Volume': 'Volume',
'PRs': 'Record',
'New PR:': 'Nuovo record:',
'Nice! 💪': 'Grande! 💪',
'Nothing logged yet': 'Niente registrato',
'You haven’t checked off any sets. Finish the workout anyway?': 'Non hai spuntato nessuna serie. Terminare comunque?',
'Finish anyway': 'Termina comunque',
'Finish early?': 'Terminare in anticipo?',
'{0} set still unchecked. Finish the workout now?': '{0} serie non spuntata. Terminare ora?',
'{0} sets still unchecked. Finish the workout now?': '{0} serie non spuntate. Terminare ora?',
'Finish workout': 'Termina allenamento',
'Start workout': 'Inizia allenamento',
'today is {0}': 'oggi tocca {0}',
'rest day, but no one’s stopping you': 'giorno di riposo, ma nessuno ti ferma',
"Today's plan": 'Piano di oggi',
'Start {0} ▶': 'Inizia {0} ▶',
'Other routines': 'Altre routine',
'Start ▶': 'Inizia ▶',
'Freestyle workout (pick as you go)': 'Allenamento libero (scegli man mano)',
'Build a plan first': 'Crea prima un piano',
'Duration (min)': 'Durata (min)',
'Last time': "L'ultima volta",
'Last time you hit all reps — try {0}': "L'ultima volta hai completato tutte le rip. — prova {0}",
'Weights bumped to {0} 💪': 'Pesi aumentati a {0} 💪',
'Remove set': 'Rimuovi serie',
'Add set': 'Aggiungi serie',
'Cardio logged 🏃': 'Cardio registrato 🏃',
'Discard workout?': 'Scartare allenamento?',
'The sets you logged in this session will be lost.': 'Le serie registrate in questa sessione andranno perse.',
'Superset {0} / {1}': 'Superset {0} / {1}',
'Exercise {0} / {1}': 'Esercizio {0} / {1}',
'Superset · do these back-to-back, rest after both': 'Superset · falli uno dopo l’altro, riposo dopo entrambi',
'Freestyle workout — add your first exercise.': 'Allenamento libero — aggiungi il primo esercizio.',
'Finish workout early · {0} exercises': 'Termina in anticipo · {0} esercizi',
'Rest over — next set! 💪': 'Riposo finito — prossima serie! 💪',
'Hi {0} 💪': 'Ciao {0} 💪',
'This week': 'Questa settimana',
'{0} — in progress': '{0} — in corso',
'Resume ▶': 'Riprendi ▶',
'Welcome! 👋': 'Benvenuto! 👋',
'Set up your weekly routine to get going — or load a ready-made Push / Pull / Legs plan.': 'Imposta la tua routine settimanale — o carica un piano Push / Pull / Gambe già pronto.',
'Load starter plan (PPL)': 'Carica piano iniziale (PPL)',
'Build my own plan': 'Crea il mio piano',
'{0} week streak': 'serie di {0} settimane',
'this week': 'questa settimana',
'{0} workout total': '{0} allenamento in totale',
'{0} workouts total': '{0} allenamenti in totale',
'Progress & history': 'Progressi e cronologia',
'Workouts': 'Allenamenti',
'This month': 'Questo mese',
'Week streak': 'Serie settimanale',
'Weight 30d': 'Peso 30 g',
'Activity — last 12 months': 'Attività — ultimi 12 mesi',
'by time trained': 'per tempo di allenamento',
'Exercise progress': 'Progressi per esercizio',
'Top speed per workout': 'Velocità massima per allenamento',
'Best set weight per workout': 'Miglior peso per allenamento',
'Finish your first workout to see progress curves here. 📈': 'Completa il primo allenamento per vedere qui le curve dei progressi. 📈',
'Recent workouts': 'Allenamenti recenti',
'Less time': 'Meno',
'More time': 'Più',
'No data yet': 'Ancora nessun dato',
'Your weekly routine': 'La tua routine settimanale',
'Week schedule': 'Programma settimanale',
'Routines': 'Routine',
'No routines yet.': 'Ancora nessuna routine.',
'Create one or load the starter plan.': 'Creane una o carica il piano iniziale.',
'Load starter plan (Push / Pull / Legs)': 'Carica piano iniziale (Push / Pull / Gambe)',
'Superset with exercise above': "Superset con l'esercizio sopra",
'No exercises yet — add your first one.': 'Ancora nessun esercizio — aggiungi il primo.',
'Tip: tap 🔗 on an exercise to superset it with the one above — you’ll do them back-to-back.': 'Suggerimento: tocca 🔗 su un esercizio per farne un superset con quello sopra — li farai uno dopo l’altro.',
'Delete routine?': 'Eliminare routine?',
'“{0}” and its exercises will be removed.': '«{0}» e i suoi esercizi verranno rimossi.',
'Delete routine': 'Elimina routine',
'{0} exercises with animations': '{0} esercizi con animazioni',
'Search…': 'Cerca…',
'No workouts yet.': 'Ancora nessun allenamento.',
'Starter plan loaded — Mon Push · Wed Pull · Fri Legs': 'Piano iniziale caricato — Lun Push · Mer Pull · Ven Gambe',
'Enter a name': 'Inserisci un nome',
'Profile created — data from this device moved into it ✓': 'Profilo creato — i dati di questo dispositivo sono stati trasferiti ✓',
'Profile created — data moved into it ✓': 'Profilo creato — dati trasferiti ✓',
'Welcome, {0} 💪': 'Benvenuto, {0} 💪',
'Welcome back, {0} 💪': 'Bentornato, {0} 💪',
'Registration failed': 'Registrazione fallita',
'Sign-in failed': 'Accesso fallito',
'Create your profile ✨': 'Crea il tuo profilo ✨',
'Pick a name, then confirm with {0}. The passkey is saved in your device — no password needed.': 'Scegli un nome e conferma con {0}. La passkey viene salvata sul tuo dispositivo — nessuna password.',
'Pick a name, then confirm with your device.': 'Scegli un nome e conferma con il tuo dispositivo.',
'Your name': 'Il tuo nome',
'Create passkey': 'Crea passkey',
'Your workouts. Your weights. Your profile.': 'I tuoi allenamenti. I tuoi pesi. Il tuo profilo.',
'Sign in with passkey': 'Accedi con passkey',
'Create new profile': 'Crea nuovo profilo',
"This browser doesn't support passkeys — you can still use openGym locally on this device.": 'Questo browser non supporta le passkey — puoi comunque usare openGym localmente su questo dispositivo.',
'Continue without account': 'Continua senza account',
'Passkeys use {0} — no passwords.': 'Le passkey usano {0} — niente password.',
'Each profile keeps its own plan, workouts & body weight.': 'Ogni profilo ha il proprio piano, allenamenti e peso corporeo.',
'Account': 'Account',
'Signed in with passkey — data syncs to this profile.': 'Accesso con passkey — i dati si sincronizzano con questo profilo.',
'Sign out?': 'Uscire?',
'Your data is synced to your profile first, then cleared from this device.': 'I dati vengono prima sincronizzati col profilo, poi rimossi da questo dispositivo.',
'Sign out': 'Esci',
'Guest mode — data lives only in this browser. Create a passkey profile to keep it safe and separate per person.': 'Modalità ospite — i dati vivono solo in questo browser. Crea un profilo passkey per proteggerli e separarli per persona.',
'Create passkey profile': 'Crea profilo passkey',
'Passkeys not supported in this browser.': 'Passkey non supportate in questo browser.',
'Appearance': 'Aspetto',
'synced with your profile': 'sincronizzato col tuo profilo',
'Language': 'Lingua',
"Exercise instructions aren't available in this language yet — they stay in English.": 'Le istruzioni degli esercizi non sono ancora in questa lingua — restano in inglese.',
'Theme': 'Tema',
'Dark': 'Scuro',
'Light': 'Chiaro',
'Accent color': 'Colore accento',
'Units & timer': 'Unità e timer',
'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.',
'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.',
'Delete everything': 'Elimina tutto',
'All data reset': 'Tutti i dati azzerati',
'Backup exported ✓': 'Backup esportato ✓',
'Import backup?': 'Importare backup?',
'This replaces all current data with the backup file.': 'Sostituisce tutti i dati attuali con il file di backup.',
'Backup imported ✓': 'Backup importato ✓',
'Import failed: {0}': 'Import fallito: {0}',
'Tip': 'Suggerimento',
'In Chrome: ⋮ menu → Add to Home screen': 'In Chrome: menu ⋮ → Aggiungi a schermata Home',
'In Safari: Share → Add to Home Screen': 'In Safari: Condividi → Aggiungi a Home',
'to install openGym as a full-screen app.': 'per installare openGym come app a schermo intero.',
'Your data syncs with your profile — sign in anywhere to see it.': 'I tuoi dati si sincronizzano col profilo — accedi ovunque per vederli.',
'Guest data stays on this device — export a backup now and then!': 'I dati ospite restano su questo dispositivo — esporta un backup ogni tanto!',
'free & open source (AGPL v3)': 'gratuito e open source (AGPL v3)',
'Notifications': 'Notifiche',
'Not supported in this browser.': 'Non supportato in questo browser.',
'Push notifications': 'Notifiche push',
'Rest-timer alerts, even if openGym is closed.': 'Avvisi del timer di riposo, anche con openGym chiuso.',
'Workout day reminder': 'Promemoria giorno di allenamento',
'Reminder time': 'Orario promemoria',
"Only sent on days you have a routine planned and haven't logged a workout yet.": 'Inviato solo nei giorni con una routine pianificata e nessun allenamento registrato.',
'Timezone: {0} (auto-detected, updates if you travel).': 'Fuso orario: {0} (rilevato automaticamente, si aggiorna se viaggi).',
'Send test notification': 'Invia notifica di prova',
'Test sent — should arrive any second': 'Prova inviata — dovrebbe arrivare a momenti',
'Test failed': 'Prova fallita',
'Notifications off': 'Notifiche disattivate',
'Notifications on 🔔': 'Notifiche attivate 🔔',
'Could not change notification settings': 'Impossibile modificare le impostazioni delle notifiche',
'tap to pause': 'tocca per mettere in pausa',
'tap to play': 'tocca per riprodurre',
'back': 'schiena', 'cardio': 'cardio', 'chest': 'petto', 'lower arms': 'avambracci',
'lower legs': 'polpacci', 'neck': 'collo', 'shoulders': 'spalle',
'upper arms': 'braccia', 'upper legs': 'gambe', 'waist': 'addome',
'assisted': 'assistito', 'band': 'elastico', 'barbell': 'bilanciere', 'body weight': 'corpo libero',
'bosu ball': 'bosu', 'cable': 'cavo', 'dumbbell': 'manubrio',
'elliptical machine': 'ellittica', 'ez barbell': 'bilanciere EZ', 'hammer': 'martello',
'kettlebell': 'kettlebell', 'leverage machine': 'macchina a leva', 'medicine ball': 'palla medica',
'olympic barbell': 'bilanciere olimpico', 'resistance band': 'banda elastica', 'roller': 'rullo',
'rope': 'corda', 'skierg machine': 'SkiErg', 'sled machine': 'slitta',
'smith machine': 'macchina Smith', 'stability ball': 'fitball', 'stationary bike': 'cyclette',
'stepmill machine': 'scala mobile', 'tire': 'pneumatico', 'trap bar': 'trap bar',
'upper body ergometer': 'ergometro per braccia', 'weighted': 'zavorrato', 'wheel roller': 'ruota per addominali',
'abductors': 'abduttori', 'abs': 'addominali', 'adductors': 'adduttori', 'biceps': 'bicipiti',
'calves': 'polpacci', 'cardiovascular system': 'sistema cardiovascolare', 'delts': 'deltoidi',
'forearms': 'avambracci', 'glutes': 'glutei', 'hamstrings': 'femorali', 'lats': 'dorsali',
'levator scapulae': 'elevatore della scapola', 'pectorals': 'pettorali', 'quads': 'quadricipiti',
'serratus anterior': 'dentato anteriore', 'spine': 'colonna', 'traps': 'trapezi',
'triceps': 'tricipiti', 'upper back': 'parte alta della schiena',
'abdominals': 'addominali', 'ankle stabilizers': 'stabilizzatori della caviglia', 'ankles': 'caviglie',
'brachialis': 'brachiale', 'core': 'core', 'deltoids': 'deltoidi', 'feet': 'piedi',
'grip muscles': 'presa', 'groin': 'inguine', 'hands': 'mani', 'hip flexors': "flessori dell'anca",
'inner thighs': 'interno coscia', 'latissimus dorsi': 'gran dorsale', 'lower abs': 'addominali bassi',
'lower back': 'zona lombare', 'obliques': 'obliqui', 'quadriceps': 'quadricipiti',
'rear deltoids': 'deltoidi posteriori', 'rhomboids': 'romboidi', 'rotator cuff': 'cuffia dei rotatori',
'shins': 'stinchi', 'soleus': 'soleo', 'sternocleidomastoid': 'sternocleidomastoideo',
'trapezius': 'trapezio', 'upper chest': 'petto alto', 'wrist extensors': 'estensori del polso',
'wrist flexors': 'flessori del polso', 'wrists': 'polsi',
// --- custom exercises (#11) ---
'Create your own exercise': 'Crea il tuo esercizio',
'Edit custom exercise': 'Modifica esercizio personalizzato',
'Name it and pick a body part — it behaves like any other exercise, just without an animation.': 'Dagli un nome e scegli una parte del corpo — funziona come qualsiasi altro esercizio, solo senza animazione.',
'Exercise name': 'Nome esercizio',
'name + body part, no animation': 'nome + parte del corpo, senza animazione',
'Create exercise': 'Crea esercizio',
'Give it a name': 'Dagli un nome',
'Pick a body part': 'Scegli una parte del corpo',
'“{0}” already exists': '«{0}» esiste già',
'“{0}” created ✓': '«{0}» creato ✓',
'Cardio exercises log time + speed instead of weight × reps.': 'Gli esercizi cardio registrano tempo + velocità invece di peso × rip.',
'custom': 'personale',
'Edit': 'Modifica',
'Saved ✓': 'Salvato ✓',
'Delete “{0}”?': 'Eliminare «{0}»?',
'It will be removed from your routines. Already-logged workouts keep their sets.': 'Verrà rimosso dalle tue routine. Gli allenamenti già registrati mantengono le loro serie.',
'Exercise deleted': 'Esercizio eliminato',
'Finish your current workout first': 'Prima concludi l’allenamento in corso',
'Description (optional) — setup, cues, anything you want to remember': 'Descrizione (facoltativa) — setup, spunti, quello che vuoi ricordare',
'Delete exercise': 'Elimina esercizio',
'Edit or delete this exercise': 'Modifica o elimina questo esercizio',
'Remove from routine': 'Rimuovi dalla routine'
}
+336
View File
@@ -0,0 +1,336 @@
// Korean UI strings. Keys are the English source strings (see lib/i18n.js).
export default {
'Confirm': '확인',
'Cancel': '취소',
'Delete': '삭제',
'Save': '저장',
'Import': '가져오기',
'Discard': '버리기',
'All': '전체',
'Rest': '휴식',
'On': '켬',
'Off': '끔',
'On 🔔': '켬 🔔',
'Off 🔕': '끔 🔕',
'Skip': '건너뛰기',
'New': '새로 만들기',
'Log': '기록',
'Goal': '목표',
'Plan': '계획',
'Today': '오늘',
'Home': '홈',
'Start': '시작',
'Resume': '이어하기',
'Stats': '통계',
'Exercises': '운동',
'History': '기록',
'Settings': '설정',
'Freestyle': '자유 운동',
'Routine': '루틴',
'routine': '루틴',
'Cardio': '유산소',
'Superset': '슈퍼세트',
'last': '지난번',
'rescheduled': '변경됨',
'Prev': '이전',
'Next': '다음',
'Sunday': '일요일', 'Monday': '월요일', 'Tuesday': '화요일', 'Wednesday': '수요일',
'Thursday': '목요일', 'Friday': '금요일', 'Saturday': '토요일',
'Su': '일', 'Mo': '월', 'Tu': '화', 'We': '수', 'Th': '목', 'Fr': '금', 'Sa': '토',
'Mon': '월', 'Wed': '수', 'Fri': '금',
'Jan': '1월', 'Feb': '2월', 'Mar': '3월', 'Apr': '4월', 'May': '5월', 'Jun': '6월',
'Jul': '7월', 'Aug': '8월', 'Sep': '9월', 'Oct': '10월', 'Nov': '11월', 'Dec': '12월',
'January': '1월', 'February': '2월', 'March': '3월', 'April': '4월',
'June': '6월', 'July': '7월', 'August': '8월', 'September': '9월',
'October': '10월', 'November': '11월', 'December': '12월',
'Quick check-in ⚖️': '빠른 체중 체크 ⚖️',
'Log body weight': '체중 기록',
'Slide or tap to set your weight — tracked before every workout so your curve stays honest.': '슬라이드하거나 탭해서 체중을 설정하세요 — 매 운동 전에 기록되어 그래프가 정직하게 유지됩니다.',
'Save & start workout': '저장하고 운동 시작',
'Skip today': '오늘은 건너뛰기',
'↺ Choose a different workout': '↺ 다른 운동 선택',
'Recent weigh-ins': '최근 체중 기록',
'Enter a valid weight': '올바른 무게를 입력하세요',
'Weight saved ✓': '체중 저장됨 ✓',
'Target weight 🎯': '목표 체중 🎯',
'Your goal is drawn as a line through the weight charts, and gains/losses are colored by whether they move toward it.': '목표가 체중 그래프에 선으로 표시되며, 증감은 목표에 가까워지는지에 따라 색이 입혀집니다.',
'Save goal': '목표 저장',
'Goal set: {0}': '목표 설정: {0}',
'{0} to go': '{0} 남음',
'Goal removed': '목표 삭제됨',
'Remove goal': '목표 삭제',
'Body weight': '체중',
'reached! 🎉': '달성! 🎉',
'{0} to gain': '{0} 증량 남음',
'{0} to lose': '{0} 감량 남음',
"No entries yet — log your weight to start the curve. It's also asked before every workout.": '아직 기록이 없어요 — 체중을 기록해 그래프를 시작하세요. 매 운동 전에도 물어봅니다.',
'Best:': '최고 기록:',
'+ Add to my plan': '+ 내 계획에 추가',
'How to': '운동 방법',
'instructions in English': '설명은 영어로 제공',
'New routine': '새 루틴',
'Add “{0}”': '"{0}" 추가',
'“{0}” added to {1} ✓': '"{0}"이(가) {1}에 추가됨 ✓',
'Pick a routine — sets, reps & weight come next.': '루틴을 선택하세요 — 세트, 횟수, 무게는 다음 단계입니다.',
'{0} exercises': '운동 {0}개',
'already in': '이미 있음',
'Create one and start with this exercise': '새로 만들어 이 운동으로 시작',
'Add exercise': '운동 추가',
'Search {0} exercises…': '{0}개 운동 검색…',
'Chosen': '즐겨찾기',
'Nothing chosen yet — add exercises and they’ll show up here.': '아직 없어요 — 운동을 추가하면 여기에 표시됩니다.',
'No match 🤷': '검색 결과 없음 🤷',
'Show more': '더 보기',
'Intervals': '인터벌',
'Minutes': '분',
'Speed (km/h)': '속도 (km/h)',
'Sets': '세트',
'Reps': '횟수',
'Weight ({0})': '무게 ({0})',
'Add to routine': '루틴에 추가',
'Remove exercise': '운동 제거',
'Pick an emoji': '이모지 선택',
'Back to weekly plan': '주간 계획으로 복귀',
'{0} set to rest': '{0}을(를) 휴식일로 설정',
'{0} planned for {1} ✓': '{1}에 {0} 예정됨 ✓',
'Weekly plan:': '주간 계획:',
'changed for this day': '이 날만 변경됨',
'Sick, missed a day or want a different session? Pick what to train instead.': '아프거나, 하루를 놓쳤거나, 다른 운동이 하고 싶나요? 대신 할 운동을 선택하세요.',
'Rest / skip this day': '휴식 / 이 날 건너뛰기',
'Rest day': '휴식일',
'{0} workout': '운동 {0}회',
'{0} workouts': '운동 {0}회',
'No workouts this month': '이번 달 운동 없음',
'Trained': '운동함',
'Planned': '예정됨',
'Rescheduled': '변경됨',
'Tap a trained day for details · tap any other day to plan a session': '운동한 날을 탭하면 상세 정보 · 다른 날을 탭하면 계획 설정',
'{0} sets': '{0}세트',
'no sets': '세트 없음',
'Delete workout?': '운동을 삭제할까요?',
'This removes it from your history for good.': '기록에서 영구히 삭제됩니다.',
'Workout deleted': '운동 삭제됨',
'Delete workout': '운동 삭제',
'{0} done': '{0} 완료',
'Confirm the weight you worked with — your highest becomes the default next time.': '사용한 무게를 확인하세요 — 최고 무게가 다음번 기본값이 됩니다.',
'Then finish the superset partner.': '그다음 슈퍼세트 짝 운동을 마무리하세요.',
'Previous best:': '이전 최고 기록:',
'new record! 🏆': '신기록! 🏆',
'Save ✓': '저장 ✓',
'Save & next exercise ›': '저장하고 다음 운동 ›',
'Just close': '그냥 닫기',
'Save weight': '무게 저장',
'Tracked — next time starts at {0} 📈': '기록됨 — 다음번엔 {0}부터 시작합니다 📈',
"That's the whole workout!": '오늘 운동 전부 끝!',
'Every exercise done — great work. Finish up, or keep going and add another exercise.': '모든 운동 완료 — 수고했어요! 마무리하거나, 계속해서 운동을 추가하세요.',
'Finish workout 🏁': '운동 마치기 🏁',
'Continue workout': '운동 계속하기',
'Keep going 💪 — tap “+ Add exercise” below': '계속 가요 💪 — 아래 "+ 운동 추가"를 탭하세요',
'Workout complete!': '운동 완료!',
'Duration': '시간',
'Volume': '볼륨',
'PRs': '신기록',
'New PR:': '신기록:',
'Nice! 💪': '좋아요! 💪',
'Nothing logged yet': '아직 기록 없음',
'You haven’t checked off any sets. Finish the workout anyway?': '체크한 세트가 없어요. 그래도 운동을 마칠까요?',
'Finish anyway': '그래도 마치기',
'Finish early?': '일찍 마칠까요?',
'{0} set still unchecked. Finish the workout now?': '아직 {0}세트가 남았어요. 지금 마칠까요?',
'{0} sets still unchecked. Finish the workout now?': '아직 {0}세트가 남았어요. 지금 마칠까요?',
'Finish workout': '운동 마치기',
'Start workout': '운동 시작',
'today is {0}': '오늘은 {0}',
'rest day, but no one’s stopping you': '휴식일이지만, 아무도 말리지 않아요',
"Today's plan": '오늘의 계획',
'Start {0} ▶': '{0} 시작 ▶',
'Other routines': '다른 루틴',
'Start ▶': '시작 ▶',
'Freestyle workout (pick as you go)': '자유 운동 (하면서 고르기)',
'Build a plan first': '먼저 계획 만들기',
'Duration (min)': '시간 (분)',
'Last time': '지난번',
'Last time you hit all reps — try {0}': '지난번에 모든 횟수를 채웠어요 — {0}에 도전해 보세요',
'Weights bumped to {0} 💪': '무게를 {0}(으)로 올렸어요 💪',
'Remove set': '세트 빼기',
'Add set': '세트 추가',
'Cardio logged 🏃': '유산소 기록됨 🏃',
'Discard workout?': '운동을 버릴까요?',
'The sets you logged in this session will be lost.': '이 세션에서 기록한 세트가 사라집니다.',
'Superset {0} / {1}': '슈퍼세트 {0} / {1}',
'Exercise {0} / {1}': '운동 {0} / {1}',
'Superset · do these back-to-back, rest after both': '슈퍼세트 · 연달아 수행하고, 둘 다 끝난 뒤 휴식',
'Freestyle workout — add your first exercise.': '자유 운동 — 첫 운동을 추가하세요.',
'Finish workout early · {0} exercises': '일찍 마치기 · 운동 {0}개',
'Rest over — next set! 💪': '휴식 끝 — 다음 세트! 💪',
'Hi {0} 💪': '안녕하세요 {0} 💪',
'This week': '이번 주',
'{0} — in progress': '{0} — 진행 중',
'Resume ▶': '이어하기 ▶',
'Welcome! 👋': '환영합니다! 👋',
'Set up your weekly routine to get going — or load a ready-made Push / Pull / Legs plan.': '주간 루틴을 설정해 시작하세요 — 또는 미리 만들어진 푸시 / 풀 / 레그 계획을 불러오세요.',
'Load starter plan (PPL)': '스타터 계획 불러오기 (PPL)',
'Build my own plan': '내 계획 만들기',
'{0} week streak': '{0}주 연속',
'this week': '이번 주',
'{0} workout total': '총 운동 {0}회',
'{0} workouts total': '총 운동 {0}회',
'Progress & history': '진행 상황과 기록',
'Workouts': '운동 수',
'This month': '이번 달',
'Week streak': '연속 주',
'Weight 30d': '체중 30일',
'Activity — last 12 months': '활동 — 최근 12개월',
'by time trained': '운동 시간 기준',
'Exercise progress': '운동별 진행 상황',
'Top speed per workout': '운동별 최고 속도',
'Best set weight per workout': '운동별 최고 세트 무게',
'Finish your first workout to see progress curves here. 📈': '첫 운동을 마치면 여기에 진행 그래프가 표시됩니다. 📈',
'Recent workouts': '최근 운동',
'Less time': '적음',
'More time': '많음',
'No data yet': '데이터 없음',
'Your weekly routine': '주간 루틴',
'Week schedule': '주간 일정',
'Routines': '루틴',
'No routines yet.': '아직 루틴이 없어요.',
'Create one or load the starter plan.': '루틴을 만들거나 스타터 계획을 불러오세요.',
'Load starter plan (Push / Pull / Legs)': '스타터 계획 불러오기 (푸시 / 풀 / 레그)',
'Superset with exercise above': '위 운동과 슈퍼세트',
'No exercises yet — add your first one.': '아직 운동이 없어요 — 첫 운동을 추가하세요.',
'Tip: tap 🔗 on an exercise to superset it with the one above — you’ll do them back-to-back.': '팁: 운동의 🔗를 탭하면 위 운동과 슈퍼세트가 됩니다 — 연달아 수행하게 돼요.',
'Delete routine?': '루틴을 삭제할까요?',
'“{0}” and its exercises will be removed.': '"{0}"과(와) 그 운동들이 삭제됩니다.',
'Delete routine': '루틴 삭제',
'{0} exercises with animations': '애니메이션이 있는 운동 {0}개',
'Search…': '검색…',
'No workouts yet.': '아직 운동 기록이 없어요.',
'Starter plan loaded — Mon Push · Wed Pull · Fri Legs': '스타터 계획 불러옴 — 월 푸시 · 수 풀 · 금 레그',
'Enter a name': '이름을 입력하세요',
'Profile created — data from this device moved into it ✓': '프로필 생성됨 — 이 기기의 데이터가 이동됨 ✓',
'Profile created — data moved into it ✓': '프로필 생성됨 — 데이터 이동됨 ✓',
'Welcome, {0} 💪': '환영합니다, {0} 💪',
'Welcome back, {0} 💪': '다시 오셨네요, {0} 💪',
'Registration failed': '등록 실패',
'Sign-in failed': '로그인 실패',
'Create your profile ✨': '프로필 만들기 ✨',
'Pick a name, then confirm with {0}. The passkey is saved in your device — no password needed.': '이름을 정한 뒤 {0}(으)로 확인하세요. 패스키는 기기에 저장됩니다 — 비밀번호가 필요 없어요.',
'Pick a name, then confirm with your device.': '이름을 정한 뒤 기기로 확인하세요.',
'Your name': '이름',
'Create passkey': '패스키 만들기',
'Your workouts. Your weights. Your profile.': '당신의 운동. 당신의 무게. 당신의 프로필.',
'Sign in with passkey': '패스키로 로그인',
'Create new profile': '새 프로필 만들기',
"This browser doesn't support passkeys — you can still use openGym locally on this device.": '이 브라우저는 패스키를 지원하지 않아요 — 그래도 이 기기에서 openGym을 로컬로 사용할 수 있습니다.',
'Continue without account': '계정 없이 계속',
'Passkeys use {0} — no passwords.': '패스키는 {0}을(를) 사용합니다 — 비밀번호 없음.',
'Each profile keeps its own plan, workouts & body weight.': '프로필마다 자신의 계획, 운동, 체중을 보관합니다.',
'Account': '계정',
'Signed in with passkey — data syncs to this profile.': '패스키로 로그인됨 — 데이터가 이 프로필과 동기화됩니다.',
'Sign out?': '로그아웃할까요?',
'Your data is synced to your profile first, then cleared from this device.': '데이터를 먼저 프로필에 동기화한 뒤 이 기기에서 지웁니다.',
'Sign out': '로그아웃',
'Guest mode — data lives only in this browser. Create a passkey profile to keep it safe and separate per person.': '게스트 모드 — 데이터가 이 브라우저에만 저장됩니다. 패스키 프로필을 만들어 안전하게 보관하고 사람별로 분리하세요.',
'Create passkey profile': '패스키 프로필 만들기',
'Passkeys not supported in this browser.': '이 브라우저는 패스키를 지원하지 않습니다.',
'Appearance': '화면',
'synced with your profile': '프로필과 동기화됨',
'Language': '언어',
"Exercise instructions aren't available in this language yet — they stay in English.": '운동 설명은 아직 이 언어로 제공되지 않아 영어로 표시됩니다.',
'Theme': '테마',
'Dark': '다크',
'Light': '라이트',
'Accent color': '강조 색상',
'Units & timer': '단위와 타이머',
'Weight unit': '무게 단위',
'Rest timer': '휴식 타이머',
'Sounds': '소리',
'Note: switching units only changes the label — logged numbers are not converted.': '참고: 단위 변경은 표기만 바꿉니다 — 기록된 숫자는 환산되지 않아요.',
'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.': '이 기기의 계획, 운동, 체중을 삭제합니다. 되돌릴 수 없어요.',
'Delete everything': '전부 삭제',
'All data reset': '모든 데이터 초기화됨',
'Backup exported ✓': '백업 내보냄 ✓',
'Import backup?': '백업을 가져올까요?',
'This replaces all current data with the backup file.': '현재 모든 데이터가 백업 파일로 대체됩니다.',
'Backup imported ✓': '백업 가져옴 ✓',
'Import failed: {0}': '가져오기 실패: {0}',
'Tip': '팁',
'In Chrome: ⋮ menu → Add to Home screen': 'Chrome에서: ⋮ 메뉴 → 홈 화면에 추가',
'In Safari: Share → Add to Home Screen': 'Safari에서: 공유 → 홈 화면에 추가',
'to install openGym as a full-screen app.': '하면 openGym을 전체 화면 앱으로 설치할 수 있어요.',
'Your data syncs with your profile — sign in anywhere to see it.': '데이터가 프로필과 동기화됩니다 — 어디서든 로그인해 확인하세요.',
'Guest data stays on this device — export a backup now and then!': '게스트 데이터는 이 기기에만 있어요 — 가끔 백업을 내보내세요!',
'free & open source (AGPL v3)': '무료 오픈소스 (AGPL v3)',
'Notifications': '알림',
'Not supported in this browser.': '이 브라우저에서는 지원되지 않아요.',
'Push notifications': '푸시 알림',
'Rest-timer alerts, even if openGym is closed.': 'openGym이 닫혀 있어도 휴식 타이머 알림을 받아요.',
'Workout day reminder': '운동일 리마인더',
'Reminder time': '리마인더 시간',
"Only sent on days you have a routine planned and haven't logged a workout yet.": '루틴이 예정되어 있고 아직 운동을 기록하지 않은 날에만 전송됩니다.',
'Timezone: {0} (auto-detected, updates if you travel).': '시간대: {0} (자동 감지, 여행 시 업데이트됨).',
'Send test notification': '테스트 알림 보내기',
'Test sent — should arrive any second': '테스트 전송됨 — 곧 도착합니다',
'Test failed': '테스트 실패',
'Notifications off': '알림 꺼짐',
'Notifications on 🔔': '알림 켜짐 🔔',
'Could not change notification settings': '알림 설정을 변경할 수 없었어요',
'tap to pause': '탭하여 일시정지',
'tap to play': '탭하여 재생',
'back': '등', 'cardio': '유산소', 'chest': '가슴', 'lower arms': '전완',
'lower legs': '종아리', 'neck': '목', 'shoulders': '어깨',
'upper arms': '팔', 'upper legs': '허벅지', 'waist': '복부',
'assisted': '보조', 'band': '밴드', 'barbell': '바벨', 'body weight': '맨몸',
'bosu ball': '보수볼', 'cable': '케이블', 'dumbbell': '덤벨',
'elliptical machine': '일립티컬', 'ez barbell': 'EZ바', 'hammer': '해머',
'kettlebell': '케틀벨', 'leverage machine': '레버리지 머신', 'medicine ball': '메디신볼',
'olympic barbell': '올림픽 바벨', 'resistance band': '저항 밴드', 'roller': '롤러',
'rope': '로프', 'skierg machine': '스키에르그', 'sled machine': '슬레드',
'smith machine': '스미스 머신', 'stability ball': '짐볼', 'stationary bike': '실내 자전거',
'stepmill machine': '스텝밀', 'tire': '타이어', 'trap bar': '트랩바',
'upper body ergometer': '상체 에르고미터', 'weighted': '중량', 'wheel roller': 'AB휠',
'abductors': '외전근', 'abs': '복근', 'adductors': '내전근', 'biceps': '이두',
'calves': '종아리', 'cardiovascular system': '심혈관계', 'delts': '삼각근',
'forearms': '전완', 'glutes': '둔근', 'hamstrings': '햄스트링', 'lats': '광배근',
'levator scapulae': '견갑거근', 'pectorals': '흉근', 'quads': '대퇴사두',
'serratus anterior': '전거근', 'spine': '척추', 'traps': '승모근',
'triceps': '삼두', 'upper back': '등 상부',
'abdominals': '복근', 'ankle stabilizers': '발목 안정근', 'ankles': '발목',
'brachialis': '상완근', 'core': '코어', 'deltoids': '삼각근', 'feet': '발',
'grip muscles': '악력 근육', 'groin': '서혜부', 'hands': '손', 'hip flexors': '고관절 굴곡근',
'inner thighs': '허벅지 안쪽', 'latissimus dorsi': '광배근', 'lower abs': '하복부',
'lower back': '허리', 'obliques': '복사근', 'quadriceps': '대퇴사두',
'rear deltoids': '후면 삼각근', 'rhomboids': '능형근', 'rotator cuff': '회전근개',
'shins': '정강이', 'soleus': '가자미근', 'sternocleidomastoid': '흉쇄유돌근',
'trapezius': '승모근', 'upper chest': '윗가슴', 'wrist extensors': '손목 신전근',
'wrist flexors': '손목 굴곡근', 'wrists': '손목',
// --- custom exercises (#11) ---
'Create your own exercise': '나만의 운동 만들기',
'Edit custom exercise': '커스텀 운동 편집',
'Name it and pick a body part — it behaves like any other exercise, just without an animation.': '이름을 정하고 부위를 선택하세요 — 애니메이션만 없을 뿐 다른 운동과 똑같이 사용됩니다.',
'Exercise name': '운동 이름',
'name + body part, no animation': '이름 + 부위, 애니메이션 없음',
'Create exercise': '운동 만들기',
'Give it a name': '이름을 입력하세요',
'Pick a body part': '부위를 선택하세요',
'“{0}” already exists': '“{0}”은(는) 이미 있습니다',
'“{0}” created ✓': '“{0}” 생성됨 ✓',
'Cardio exercises log time + speed instead of weight × reps.': '유산소 운동은 무게 × 횟수 대신 시간 + 속도를 기록합니다.',
'custom': '커스텀',
'Edit': '편집',
'Saved ✓': '저장됨 ✓',
'Delete “{0}”?': '“{0}” 삭제할까요?',
'It will be removed from your routines. Already-logged workouts keep their sets.': '루틴에서 제거됩니다. 이미 기록된 운동은 세트를 유지합니다.',
'Exercise deleted': '운동 삭제됨',
'Finish your current workout first': '진행 중인 운동을 먼저 마치세요',
'Description (optional) — setup, cues, anything you want to remember': '설명 (선택) — 세팅, 큐, 기억하고 싶은 모든 것',
'Delete exercise': '운동 삭제',
'Edit or delete this exercise': '이 운동 편집 또는 삭제',
'Remove from routine': '루틴에서 제거'
}
+336
View File
@@ -0,0 +1,336 @@
// Polish UI strings. Keys are the English source strings (see lib/i18n.js).
export default {
'Confirm': 'Potwierdź',
'Cancel': 'Anuluj',
'Delete': 'Usuń',
'Save': 'Zapisz',
'Import': 'Importuj',
'Discard': 'Odrzuć',
'All': 'Wszystkie',
'Rest': 'Odpoczynek',
'On': 'Wł.',
'Off': 'Wył.',
'On 🔔': 'Wł. 🔔',
'Off 🔕': 'Wył. 🔕',
'Skip': 'Pomiń',
'New': 'Nowa',
'Log': 'Zapisz',
'Goal': 'Cel',
'Plan': 'Plan',
'Today': 'Dziś',
'Home': 'Start',
'Start': 'Trenuj',
'Resume': 'Wznów',
'Stats': 'Statystyki',
'Exercises': 'Ćwiczenia',
'History': 'Historia',
'Settings': 'Ustawienia',
'Freestyle': 'Dowolny',
'Routine': 'Plan treningowy',
'routine': 'planu',
'Cardio': 'Cardio',
'Superset': 'Superseria',
'last': 'ostatnio',
'rescheduled': 'przełożono',
'Prev': 'Wstecz',
'Next': 'Dalej',
'Sunday': 'Niedziela', 'Monday': 'Poniedziałek', 'Tuesday': 'Wtorek', 'Wednesday': 'Środa',
'Thursday': 'Czwartek', 'Friday': 'Piątek', 'Saturday': 'Sobota',
'Su': 'Nd', 'Mo': 'Pn', 'Tu': 'Wt', 'We': 'Śr', 'Th': 'Cz', 'Fr': 'Pt', 'Sa': 'So',
'Mon': 'Pon', 'Wed': 'Śro', 'Fri': 'Pią',
'Jan': 'Sty', 'Feb': 'Lut', 'Mar': 'Mar', 'Apr': 'Kwi', 'May': 'Maj', 'Jun': 'Cze',
'Jul': 'Lip', 'Aug': 'Sie', 'Sep': 'Wrz', 'Oct': 'Paź', 'Nov': 'Lis', 'Dec': 'Gru',
'January': 'Styczeń', 'February': 'Luty', 'March': 'Marzec', 'April': 'Kwiecień',
'June': 'Czerwiec', 'July': 'Lipiec', 'August': 'Sierpień', 'September': 'Wrzesień',
'October': 'Październik', 'November': 'Listopad', 'December': 'Grudzień',
'Quick check-in ⚖️': 'Szybkie ważenie ⚖️',
'Log body weight': 'Zapisz masę ciała',
'Slide or tap to set your weight — tracked before every workout so your curve stays honest.': 'Przesuń lub dotknij, aby ustawić wagę — zapisywana przed każdym treningiem, żeby krzywa była uczciwa.',
'Save & start workout': 'Zapisz i zacznij trening',
'Skip today': 'Pomiń dziś',
'↺ Choose a different workout': '↺ Wybierz inny trening',
'Recent weigh-ins': 'Ostatnie ważenia',
'Enter a valid weight': 'Podaj prawidłową wagę',
'Weight saved ✓': 'Waga zapisana ✓',
'Target weight 🎯': 'Waga docelowa 🎯',
'Your goal is drawn as a line through the weight charts, and gains/losses are colored by whether they move toward it.': 'Twój cel jest rysowany jako linia na wykresach wagi, a zmiany są kolorowane zależnie od tego, czy się do niego zbliżają.',
'Save goal': 'Zapisz cel',
'Goal set: {0}': 'Cel ustawiony: {0}',
'{0} to go': 'zostało {0}',
'Goal removed': 'Cel usunięty',
'Remove goal': 'Usuń cel',
'Body weight': 'Masa ciała',
'reached! 🎉': 'osiągnięty! 🎉',
'{0} to gain': '{0} do przybrania',
'{0} to lose': '{0} do zrzucenia',
"No entries yet — log your weight to start the curve. It's also asked before every workout.": 'Brak wpisów — zapisz wagę, aby zacząć krzywą. Pytamy o nią też przed każdym treningiem.',
'Best:': 'Rekord:',
'+ Add to my plan': '+ Dodaj do mojego planu',
'How to': 'Wykonanie',
'instructions in English': 'instrukcje po angielsku',
'New routine': 'Nowy plan treningowy',
'Add “{0}”': 'Dodaj „{0}”',
'“{0}” added to {1} ✓': '„{0}” dodano do {1} ✓',
'Pick a routine — sets, reps & weight come next.': 'Wybierz plan — serie, powtórzenia i ciężar będą dalej.',
'{0} exercises': '{0} ćwiczeń',
'already in': 'już jest',
'Create one and start with this exercise': 'Utwórz nowy i zacznij od tego ćwiczenia',
'Add exercise': 'Dodaj ćwiczenie',
'Search {0} exercises…': 'Szukaj wśród {0} ćwiczeń…',
'Chosen': 'Wybrane',
'Nothing chosen yet — add exercises and they’ll show up here.': 'Nic nie wybrano — dodaj ćwiczenia, a pojawią się tutaj.',
'No match 🤷': 'Brak wyników 🤷',
'Show more': 'Pokaż więcej',
'Intervals': 'Interwały',
'Minutes': 'Minuty',
'Speed (km/h)': 'Prędkość (km/h)',
'Sets': 'Serie',
'Reps': 'Powt.',
'Weight ({0})': 'Ciężar ({0})',
'Add to routine': 'Dodaj do planu',
'Remove exercise': 'Usuń ćwiczenie',
'Pick an emoji': 'Wybierz emoji',
'Back to weekly plan': 'Wróć do planu tygodnia',
'{0} set to rest': '{0} ustawiono jako odpoczynek',
'{0} planned for {1} ✓': '{0} zaplanowano na {1} ✓',
'Weekly plan:': 'Plan tygodnia:',
'changed for this day': 'zmieniono na ten dzień',
'Sick, missed a day or want a different session? Pick what to train instead.': 'Choroba, opuszczony dzień albo ochota na coś innego? Wybierz, co trenować zamiast tego.',
'Rest / skip this day': 'Odpoczynek / pomiń ten dzień',
'Rest day': 'Dzień odpoczynku',
'{0} workout': '{0} trening',
'{0} workouts': '{0} treningów',
'No workouts this month': 'Brak treningów w tym miesiącu',
'Trained': 'Trenowano',
'Planned': 'Zaplanowano',
'Rescheduled': 'Przełożono',
'Tap a trained day for details · tap any other day to plan a session': 'Dotknij dnia z treningiem, aby zobaczyć szczegóły · dotknij innego dnia, aby zaplanować',
'{0} sets': '{0} serii',
'no sets': 'brak serii',
'Delete workout?': 'Usunąć trening?',
'This removes it from your history for good.': 'To usunie go z historii na zawsze.',
'Workout deleted': 'Trening usunięty',
'Delete workout': 'Usuń trening',
'{0} done': '{0} — gotowe',
'Confirm the weight you worked with — your highest becomes the default next time.': 'Potwierdź ciężar, z którym pracowałeś — najwyższy będzie domyślny następnym razem.',
'Then finish the superset partner.': 'Potem dokończ drugie ćwiczenie superserii.',
'Previous best:': 'Poprzedni rekord:',
'new record! 🏆': 'nowy rekord! 🏆',
'Save ✓': 'Zapisz ✓',
'Save & next exercise ›': 'Zapisz i następne ćwiczenie ›',
'Just close': 'Tylko zamknij',
'Save weight': 'Zapisz ciężar',
'Tracked — next time starts at {0} 📈': 'Zapisano — następnym razem zaczynasz od {0} 📈',
"That's the whole workout!": 'To cały trening!',
'Every exercise done — great work. Finish up, or keep going and add another exercise.': 'Wszystkie ćwiczenia zrobione — świetna robota! Zakończ albo kontynuuj i dodaj kolejne ćwiczenie.',
'Finish workout 🏁': 'Zakończ trening 🏁',
'Continue workout': 'Kontynuuj trening',
'Keep going 💪 — tap “+ Add exercise” below': 'Tak trzymaj 💪 — dotknij „+ Dodaj ćwiczenie” poniżej',
'Workout complete!': 'Trening ukończony!',
'Duration': 'Czas',
'Volume': 'Objętość',
'PRs': 'Rekordy',
'New PR:': 'Nowy rekord:',
'Nice! 💪': 'Świetnie! 💪',
'Nothing logged yet': 'Nic nie zapisano',
'You haven’t checked off any sets. Finish the workout anyway?': 'Nie odhaczyłeś żadnej serii. Mimo to zakończyć trening?',
'Finish anyway': 'Zakończ mimo to',
'Finish early?': 'Zakończyć wcześniej?',
'{0} set still unchecked. Finish the workout now?': 'Została {0} nieodhaczona seria. Zakończyć teraz?',
'{0} sets still unchecked. Finish the workout now?': 'Nieodhaczone serie: {0}. Zakończyć teraz?',
'Finish workout': 'Zakończ trening',
'Start workout': 'Zacznij trening',
'today is {0}': 'dziś jest {0}',
'rest day, but no one’s stopping you': 'dzień odpoczynku, ale nikt cię nie powstrzymuje',
"Today's plan": 'Plan na dziś',
'Start {0} ▶': 'Zacznij {0} ▶',
'Other routines': 'Inne plany',
'Start ▶': 'Start ▶',
'Freestyle workout (pick as you go)': 'Trening dowolny (wybieraj na bieżąco)',
'Build a plan first': 'Najpierw utwórz plan',
'Duration (min)': 'Czas (min)',
'Last time': 'Ostatnio',
'Last time you hit all reps — try {0}': 'Ostatnio zrobiłeś wszystkie powtórzenia — spróbuj {0}',
'Weights bumped to {0} 💪': 'Ciężary podniesione do {0} 💪',
'Remove set': 'Usuń serię',
'Add set': 'Dodaj serię',
'Cardio logged 🏃': 'Cardio zapisane 🏃',
'Discard workout?': 'Odrzucić trening?',
'The sets you logged in this session will be lost.': 'Serie zapisane w tej sesji zostaną utracone.',
'Superset {0} / {1}': 'Superseria {0} / {1}',
'Exercise {0} / {1}': 'Ćwiczenie {0} / {1}',
'Superset · do these back-to-back, rest after both': 'Superseria · rób jedno po drugim, odpocznij po obu',
'Freestyle workout — add your first exercise.': 'Trening dowolny — dodaj pierwsze ćwiczenie.',
'Finish workout early · {0} exercises': 'Zakończ wcześniej · {0} ćwiczeń',
'Rest over — next set! 💪': 'Koniec przerwy — następna seria! 💪',
'Hi {0} 💪': 'Cześć {0} 💪',
'This week': 'Ten tydzień',
'{0} — in progress': '{0} — w trakcie',
'Resume ▶': 'Wznów ▶',
'Welcome! 👋': 'Witaj! 👋',
'Set up your weekly routine to get going — or load a ready-made Push / Pull / Legs plan.': 'Ustaw swój tygodniowy plan — albo wczytaj gotowy plan Push / Pull / Nogi.',
'Load starter plan (PPL)': 'Wczytaj plan startowy (PPL)',
'Build my own plan': 'Utwórz własny plan',
'{0} week streak': 'seria {0} tyg.',
'this week': 'w tym tygodniu',
'{0} workout total': 'łącznie {0} trening',
'{0} workouts total': 'łącznie {0} treningów',
'Progress & history': 'Postępy i historia',
'Workouts': 'Treningi',
'This month': 'Ten miesiąc',
'Week streak': 'Seria tygodni',
'Weight 30d': 'Waga 30 dni',
'Activity — last 12 months': 'Aktywność — ostatnie 12 miesięcy',
'by time trained': 'wg czasu treningu',
'Exercise progress': 'Postępy w ćwiczeniach',
'Top speed per workout': 'Najwyższa prędkość na trening',
'Best set weight per workout': 'Najlepszy ciężar na trening',
'Finish your first workout to see progress curves here. 📈': 'Ukończ pierwszy trening, aby zobaczyć tu krzywe postępów. 📈',
'Recent workouts': 'Ostatnie treningi',
'Less time': 'Mniej',
'More time': 'Więcej',
'No data yet': 'Brak danych',
'Your weekly routine': 'Twój plan tygodnia',
'Week schedule': 'Harmonogram tygodnia',
'Routines': 'Plany treningowe',
'No routines yet.': 'Brak planów.',
'Create one or load the starter plan.': 'Utwórz plan albo wczytaj startowy.',
'Load starter plan (Push / Pull / Legs)': 'Wczytaj plan startowy (Push / Pull / Nogi)',
'Superset with exercise above': 'Superseria z ćwiczeniem powyżej',
'No exercises yet — add your first one.': 'Brak ćwiczeń — dodaj pierwsze.',
'Tip: tap 🔗 on an exercise to superset it with the one above — you’ll do them back-to-back.': 'Wskazówka: dotknij 🔗 przy ćwiczeniu, aby połączyć je w superserię z tym powyżej — zrobisz je jedno po drugim.',
'Delete routine?': 'Usunąć plan?',
'“{0}” and its exercises will be removed.': '„{0}” i jego ćwiczenia zostaną usunięte.',
'Delete routine': 'Usuń plan',
'{0} exercises with animations': '{0} ćwiczeń z animacjami',
'Search…': 'Szukaj…',
'No workouts yet.': 'Brak treningów.',
'Starter plan loaded — Mon Push · Wed Pull · Fri Legs': 'Plan startowy wczytany — Pn Push · Śr Pull · Pt Nogi',
'Enter a name': 'Podaj imię',
'Profile created — data from this device moved into it ✓': 'Profil utworzony — dane z tego urządzenia zostały przeniesione ✓',
'Profile created — data moved into it ✓': 'Profil utworzony — dane przeniesione ✓',
'Welcome, {0} 💪': 'Witaj, {0} 💪',
'Welcome back, {0} 💪': 'Witaj ponownie, {0} 💪',
'Registration failed': 'Rejestracja nie powiodła się',
'Sign-in failed': 'Logowanie nie powiodło się',
'Create your profile ✨': 'Utwórz swój profil ✨',
'Pick a name, then confirm with {0}. The passkey is saved in your device — no password needed.': 'Wybierz imię i potwierdź przez {0}. Klucz passkey zapisze się na urządzeniu — bez hasła.',
'Pick a name, then confirm with your device.': 'Wybierz imię i potwierdź na urządzeniu.',
'Your name': 'Twoje imię',
'Create passkey': 'Utwórz passkey',
'Your workouts. Your weights. Your profile.': 'Twoje treningi. Twoje ciężary. Twój profil.',
'Sign in with passkey': 'Zaloguj się passkey',
'Create new profile': 'Utwórz nowy profil',
"This browser doesn't support passkeys — you can still use openGym locally on this device.": 'Ta przeglądarka nie obsługuje passkey — mimo to możesz używać openGym lokalnie na tym urządzeniu.',
'Continue without account': 'Kontynuuj bez konta',
'Passkeys use {0} — no passwords.': 'Passkey używa: {0} — bez haseł.',
'Each profile keeps its own plan, workouts & body weight.': 'Każdy profil ma własny plan, treningi i masę ciała.',
'Account': 'Konto',
'Signed in with passkey — data syncs to this profile.': 'Zalogowano przez passkey — dane synchronizują się z tym profilem.',
'Sign out?': 'Wylogować?',
'Your data is synced to your profile first, then cleared from this device.': 'Dane najpierw synchronizują się z profilem, potem są usuwane z urządzenia.',
'Sign out': 'Wyloguj',
'Guest mode — data lives only in this browser. Create a passkey profile to keep it safe and separate per person.': 'Tryb gościa — dane żyją tylko w tej przeglądarce. Utwórz profil passkey, aby je zabezpieczyć i rozdzielić na osoby.',
'Create passkey profile': 'Utwórz profil passkey',
'Passkeys not supported in this browser.': 'Passkey nieobsługiwane w tej przeglądarce.',
'Appearance': 'Wygląd',
'synced with your profile': 'synchronizowane z profilem',
'Language': 'Język',
"Exercise instructions aren't available in this language yet — they stay in English.": 'Instrukcje ćwiczeń nie są jeszcze dostępne w tym języku — pozostają po angielsku.',
'Theme': 'Motyw',
'Dark': 'Ciemny',
'Light': 'Jasny',
'Accent color': 'Kolor akcentu',
'Units & timer': 'Jednostki i minutnik',
'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.',
'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ąć.',
'Delete everything': 'Usuń wszystko',
'All data reset': 'Wszystkie dane zresetowane',
'Backup exported ✓': 'Kopia wyeksportowana ✓',
'Import backup?': 'Importować kopię?',
'This replaces all current data with the backup file.': 'To zastąpi wszystkie obecne dane plikiem kopii.',
'Backup imported ✓': 'Kopia zaimportowana ✓',
'Import failed: {0}': 'Import nie powiódł się: {0}',
'Tip': 'Wskazówka',
'In Chrome: ⋮ menu → Add to Home screen': 'W Chrome: menu ⋮ → Dodaj do ekranu głównego',
'In Safari: Share → Add to Home Screen': 'W Safari: Udostępnij → Do ekranu początkowego',
'to install openGym as a full-screen app.': 'aby zainstalować openGym jako aplikację pełnoekranową.',
'Your data syncs with your profile — sign in anywhere to see it.': 'Dane synchronizują się z profilem — zaloguj się gdziekolwiek, aby je zobaczyć.',
'Guest data stays on this device — export a backup now and then!': 'Dane gościa zostają na tym urządzeniu — eksportuj kopię od czasu do czasu!',
'free & open source (AGPL v3)': 'darmowy i open source (AGPL v3)',
'Notifications': 'Powiadomienia',
'Not supported in this browser.': 'Nieobsługiwane w tej przeglądarce.',
'Push notifications': 'Powiadomienia push',
'Rest-timer alerts, even if openGym is closed.': 'Alerty minutnika przerwy, nawet gdy openGym jest zamknięty.',
'Workout day reminder': 'Przypomnienie o dniu treningu',
'Reminder time': 'Godzina przypomnienia',
"Only sent on days you have a routine planned and haven't logged a workout yet.": 'Wysyłane tylko w dni z zaplanowanym planem i bez zapisanego treningu.',
'Timezone: {0} (auto-detected, updates if you travel).': 'Strefa czasowa: {0} (wykrywana automatycznie, aktualizuje się w podróży).',
'Send test notification': 'Wyślij testowe powiadomienie',
'Test sent — should arrive any second': 'Test wysłany — powinien dotrzeć lada moment',
'Test failed': 'Test nie powiódł się',
'Notifications off': 'Powiadomienia wyłączone',
'Notifications on 🔔': 'Powiadomienia włączone 🔔',
'Could not change notification settings': 'Nie udało się zmienić ustawień powiadomień',
'tap to pause': 'dotknij, aby wstrzymać',
'tap to play': 'dotknij, aby odtworzyć',
'back': 'plecy', 'cardio': 'cardio', 'chest': 'klatka', 'lower arms': 'przedramiona',
'lower legs': 'łydki', 'neck': 'kark', 'shoulders': 'barki',
'upper arms': 'ramiona', 'upper legs': 'uda', 'waist': 'brzuch',
'assisted': 'z asystą', 'band': 'guma', 'barbell': 'sztanga', 'body weight': 'masa ciała',
'bosu ball': 'bosu', 'cable': 'wyciąg', 'dumbbell': 'hantla',
'elliptical machine': 'orbitrek', 'ez barbell': 'sztanga łamana', 'hammer': 'młot',
'kettlebell': 'kettlebell', 'leverage machine': 'maszyna dźwigniowa', 'medicine ball': 'piłka lekarska',
'olympic barbell': 'sztanga olimpijska', 'resistance band': 'guma oporowa', 'roller': 'wałek',
'rope': 'lina', 'skierg machine': 'SkiErg', 'sled machine': 'sanie',
'smith machine': 'maszyna Smitha', 'stability ball': 'piłka gimnastyczna', 'stationary bike': 'rower stacjonarny',
'stepmill machine': 'schodołaz', 'tire': 'opona', 'trap bar': 'trap bar',
'upper body ergometer': 'ergometr ręczny', 'weighted': 'z obciążeniem', 'wheel roller': 'kółko do brzucha',
'abductors': 'odwodziciele', 'abs': 'brzuch', 'adductors': 'przywodziciele', 'biceps': 'biceps',
'calves': 'łydki', 'cardiovascular system': 'układ krążenia', 'delts': 'barki',
'forearms': 'przedramiona', 'glutes': 'pośladki', 'hamstrings': 'dwugłowe uda', 'lats': 'najszersze grzbietu',
'levator scapulae': 'dźwigacz łopatki', 'pectorals': 'mięśnie piersiowe', 'quads': 'czworogłowe uda',
'serratus anterior': 'zębaty przedni', 'spine': 'kręgosłup', 'traps': 'kaptury',
'triceps': 'triceps', 'upper back': 'górna część pleców',
'abdominals': 'mięśnie brzucha', 'ankle stabilizers': 'stabilizatory kostki', 'ankles': 'kostki',
'brachialis': 'ramienny', 'core': 'core', 'deltoids': 'naramienne', 'feet': 'stopy',
'grip muscles': 'mięśnie chwytu', 'groin': 'pachwina', 'hands': 'dłonie', 'hip flexors': 'zginacze bioder',
'inner thighs': 'wewnętrzne uda', 'latissimus dorsi': 'najszerszy grzbietu', 'lower abs': 'dolny brzuch',
'lower back': 'odcinek lędźwiowy', 'obliques': 'skośne brzucha', 'quadriceps': 'czworogłowe uda',
'rear deltoids': 'tylne aktony barków', 'rhomboids': 'równoległoboczne', 'rotator cuff': 'stożek rotatorów',
'shins': 'piszczele', 'soleus': 'płaszczkowaty', 'sternocleidomastoid': 'mostkowo-obojczykowo-sutkowy',
'trapezius': 'czworoboczny', 'upper chest': 'górna klatka', 'wrist extensors': 'prostowniki nadgarstka',
'wrist flexors': 'zginacze nadgarstka', 'wrists': 'nadgarstki',
// --- custom exercises (#11) ---
'Create your own exercise': 'Stwórz własne ćwiczenie',
'Edit custom exercise': 'Edytuj własne ćwiczenie',
'Name it and pick a body part — it behaves like any other exercise, just without an animation.': 'Nadaj nazwę i wybierz partię ciała — działa jak każde inne ćwiczenie, tylko bez animacji.',
'Exercise name': 'Nazwa ćwiczenia',
'name + body part, no animation': 'nazwa + partia ciała, bez animacji',
'Create exercise': 'Utwórz ćwiczenie',
'Give it a name': 'Nadaj mu nazwę',
'Pick a body part': 'Wybierz partię ciała',
'“{0}” already exists': '„{0}” już istnieje',
'“{0}” created ✓': '„{0}” utworzono ✓',
'Cardio exercises log time + speed instead of weight × reps.': 'Ćwiczenia cardio zapisują czas + prędkość zamiast ciężaru × powt.',
'custom': 'własne',
'Edit': 'Edytuj',
'Saved ✓': 'Zapisano ✓',
'Delete “{0}”?': 'Usunąć „{0}”?',
'It will be removed from your routines. Already-logged workouts keep their sets.': 'Zostanie usunięte z twoich planów. Zapisane treningi zachowają swoje serie.',
'Exercise deleted': 'Ćwiczenie usunięte',
'Finish your current workout first': 'Najpierw zakończ bieżący trening',
'Description (optional) — setup, cues, anything you want to remember': 'Opis (opcjonalnie) — ustawienie, wskazówki, co chcesz zapamiętać',
'Delete exercise': 'Usuń ćwiczenie',
'Edit or delete this exercise': 'Edytuj lub usuń to ćwiczenie',
'Remove from routine': 'Usuń z planu'
}
+336
View File
@@ -0,0 +1,336 @@
// Portuguese UI strings. Keys are the English source strings (see lib/i18n.js).
export default {
'Confirm': 'Confirmar',
'Cancel': 'Cancelar',
'Delete': 'Eliminar',
'Save': 'Guardar',
'Import': 'Importar',
'Discard': 'Descartar',
'All': 'Todos',
'Rest': 'Descanso',
'On': 'Sim',
'Off': 'Não',
'On 🔔': 'Sim 🔔',
'Off 🔕': 'Não 🔕',
'Skip': 'Saltar',
'New': 'Nova',
'Log': 'Registar',
'Goal': 'Meta',
'Plan': 'Plano',
'Today': 'Hoje',
'Home': 'Início',
'Start': 'Começar',
'Resume': 'Retomar',
'Stats': 'Estatísticas',
'Exercises': 'Exercícios',
'History': 'Histórico',
'Settings': 'Definições',
'Freestyle': 'Livre',
'Routine': 'Rotina',
'routine': 'rotina',
'Cardio': 'Cardio',
'Superset': 'Supersérie',
'last': 'último',
'rescheduled': 'reagendado',
'Prev': 'Anterior',
'Next': 'Seguinte',
'Sunday': 'Domingo', 'Monday': 'Segunda-feira', 'Tuesday': 'Terça-feira', 'Wednesday': 'Quarta-feira',
'Thursday': 'Quinta-feira', 'Friday': 'Sexta-feira', 'Saturday': 'Sábado',
'Su': 'Do', 'Mo': 'Se', 'Tu': 'Te', 'We': 'Qa', 'Th': 'Qi', 'Fr': 'Sx', 'Sa': 'Sá',
'Mon': 'Seg', 'Wed': 'Qua', 'Fri': 'Sex',
'Jan': 'Jan', 'Feb': 'Fev', 'Mar': 'Mar', 'Apr': 'Abr', 'May': 'Mai', 'Jun': 'Jun',
'Jul': 'Jul', 'Aug': 'Ago', 'Sep': 'Set', 'Oct': 'Out', 'Nov': 'Nov', 'Dec': 'Dez',
'January': 'Janeiro', 'February': 'Fevereiro', 'March': 'Março', 'April': 'Abril',
'June': 'Junho', 'July': 'Julho', 'August': 'Agosto', 'September': 'Setembro',
'October': 'Outubro', 'November': 'Novembro', 'December': 'Dezembro',
'Quick check-in ⚖️': 'Check-in rápido ⚖️',
'Log body weight': 'Registar peso corporal',
'Slide or tap to set your weight — tracked before every workout so your curve stays honest.': 'Desliza ou toca para definir o teu peso — registado antes de cada treino para a tua curva ser honesta.',
'Save & start workout': 'Guardar e começar treino',
'Skip today': 'Saltar hoje',
'↺ Choose a different workout': '↺ Escolher outro treino',
'Recent weigh-ins': 'Pesagens recentes',
'Enter a valid weight': 'Introduz um peso válido',
'Weight saved ✓': 'Peso guardado ✓',
'Target weight 🎯': 'Peso alvo 🎯',
'Your goal is drawn as a line through the weight charts, and gains/losses are colored by whether they move toward it.': 'A tua meta aparece como uma linha nos gráficos de peso, e ganhos/perdas são coloridos consoante se aproximam dela.',
'Save goal': 'Guardar meta',
'Goal set: {0}': 'Meta definida: {0}',
'{0} to go': 'faltam {0}',
'Goal removed': 'Meta removida',
'Remove goal': 'Remover meta',
'Body weight': 'Peso corporal',
'reached! 🎉': 'alcançado! 🎉',
'{0} to gain': '{0} por ganhar',
'{0} to lose': '{0} por perder',
"No entries yet — log your weight to start the curve. It's also asked before every workout.": 'Ainda sem registos — regista o teu peso para começar a curva. Também é pedido antes de cada treino.',
'Best:': 'Melhor:',
'+ Add to my plan': '+ Adicionar ao meu plano',
'How to': 'Como fazer',
'instructions in English': 'instruções em inglês',
'New routine': 'Nova rotina',
'Add “{0}”': 'Adicionar «{0}»',
'“{0}” added to {1} ✓': '«{0}» adicionado a {1} ✓',
'Pick a routine — sets, reps & weight come next.': 'Escolhe uma rotina — séries, repetições e peso vêm a seguir.',
'{0} exercises': '{0} exercícios',
'already in': 'já incluído',
'Create one and start with this exercise': 'Cria uma e começa com este exercício',
'Add exercise': 'Adicionar exercício',
'Search {0} exercises…': 'Pesquisar {0} exercícios…',
'Chosen': 'Escolhidos',
'Nothing chosen yet — add exercises and they’ll show up here.': 'Ainda nada escolhido — adiciona exercícios e eles aparecem aqui.',
'No match 🤷': 'Sem resultados 🤷',
'Show more': 'Mostrar mais',
'Intervals': 'Intervalos',
'Minutes': 'Minutos',
'Speed (km/h)': 'Velocidade (km/h)',
'Sets': 'Séries',
'Reps': 'Reps',
'Weight ({0})': 'Peso ({0})',
'Add to routine': 'Adicionar à rotina',
'Remove exercise': 'Remover exercício',
'Pick an emoji': 'Escolhe um emoji',
'Back to weekly plan': 'Voltar ao plano semanal',
'{0} set to rest': '{0} marcado como descanso',
'{0} planned for {1} ✓': '{0} planeado para {1} ✓',
'Weekly plan:': 'Plano semanal:',
'changed for this day': 'alterado para este dia',
'Sick, missed a day or want a different session? Pick what to train instead.': 'Doente, falhaste um dia ou queres outra sessão? Escolhe o que treinar em vez disso.',
'Rest / skip this day': 'Descansar / saltar este dia',
'Rest day': 'Dia de descanso',
'{0} workout': '{0} treino',
'{0} workouts': '{0} treinos',
'No workouts this month': 'Sem treinos este mês',
'Trained': 'Treinado',
'Planned': 'Planeado',
'Rescheduled': 'Reagendado',
'Tap a trained day for details · tap any other day to plan a session': 'Toca num dia treinado para detalhes · toca noutro dia para planear',
'{0} sets': '{0} séries',
'no sets': 'sem séries',
'Delete workout?': 'Eliminar treino?',
'This removes it from your history for good.': 'Isto remove-o do histórico para sempre.',
'Workout deleted': 'Treino eliminado',
'Delete workout': 'Eliminar treino',
'{0} done': '{0} feito',
'Confirm the weight you worked with — your highest becomes the default next time.': 'Confirma o peso com que trabalhaste — o mais alto fica predefinido na próxima vez.',
'Then finish the superset partner.': 'Depois termina o par da supersérie.',
'Previous best:': 'Melhor anterior:',
'new record! 🏆': 'novo recorde! 🏆',
'Save ✓': 'Guardar ✓',
'Save & next exercise ›': 'Guardar e próximo exercício ›',
'Just close': 'Apenas fechar',
'Save weight': 'Guardar peso',
'Tracked — next time starts at {0} 📈': 'Registado — da próxima vez começas em {0} 📈',
"That's the whole workout!": 'Era o treino todo!',
'Every exercise done — great work. Finish up, or keep going and add another exercise.': 'Todos os exercícios feitos — bom trabalho! Termina, ou continua e adiciona outro exercício.',
'Finish workout 🏁': 'Terminar treino 🏁',
'Continue workout': 'Continuar treino',
'Keep going 💪 — tap “+ Add exercise” below': 'Continua 💪 — toca em «+ Adicionar exercício» em baixo',
'Workout complete!': 'Treino concluído!',
'Duration': 'Duração',
'Volume': 'Volume',
'PRs': 'Recordes',
'New PR:': 'Novo recorde:',
'Nice! 💪': 'Boa! 💪',
'Nothing logged yet': 'Ainda nada registado',
'You haven’t checked off any sets. Finish the workout anyway?': 'Não marcaste nenhuma série. Terminar o treino mesmo assim?',
'Finish anyway': 'Terminar mesmo assim',
'Finish early?': 'Terminar mais cedo?',
'{0} set still unchecked. Finish the workout now?': 'Falta {0} série por marcar. Terminar agora?',
'{0} sets still unchecked. Finish the workout now?': 'Faltam {0} séries por marcar. Terminar agora?',
'Finish workout': 'Terminar treino',
'Start workout': 'Começar treino',
'today is {0}': 'hoje é {0}',
'rest day, but no one’s stopping you': 'dia de descanso, mas ninguém te impede',
"Today's plan": 'Plano de hoje',
'Start {0} ▶': 'Começar {0} ▶',
'Other routines': 'Outras rotinas',
'Start ▶': 'Começar ▶',
'Freestyle workout (pick as you go)': 'Treino livre (escolhe à medida que treinas)',
'Build a plan first': 'Cria primeiro um plano',
'Duration (min)': 'Duração (min)',
'Last time': 'Da última vez',
'Last time you hit all reps — try {0}': 'Da última vez completaste todas as reps — tenta {0}',
'Weights bumped to {0} 💪': 'Pesos aumentados para {0} 💪',
'Remove set': 'Remover série',
'Add set': 'Adicionar série',
'Cardio logged 🏃': 'Cardio registado 🏃',
'Discard workout?': 'Descartar treino?',
'The sets you logged in this session will be lost.': 'As séries registadas nesta sessão vão perder-se.',
'Superset {0} / {1}': 'Supersérie {0} / {1}',
'Exercise {0} / {1}': 'Exercício {0} / {1}',
'Superset · do these back-to-back, rest after both': 'Supersérie · faz seguidos, descansa depois de ambos',
'Freestyle workout — add your first exercise.': 'Treino livre — adiciona o teu primeiro exercício.',
'Finish workout early · {0} exercises': 'Terminar mais cedo · {0} exercícios',
'Rest over — next set! 💪': 'Descanso terminado — próxima série! 💪',
'Hi {0} 💪': 'Olá {0} 💪',
'This week': 'Esta semana',
'{0} — in progress': '{0} — em curso',
'Resume ▶': 'Retomar ▶',
'Welcome! 👋': 'Bem-vindo! 👋',
'Set up your weekly routine to get going — or load a ready-made Push / Pull / Legs plan.': 'Configura a tua rotina semanal — ou carrega um plano Push / Pull / Pernas já feito.',
'Load starter plan (PPL)': 'Carregar plano inicial (PPL)',
'Build my own plan': 'Criar o meu próprio plano',
'{0} week streak': 'sequência de {0} semanas',
'this week': 'esta semana',
'{0} workout total': '{0} treino no total',
'{0} workouts total': '{0} treinos no total',
'Progress & history': 'Progresso e histórico',
'Workouts': 'Treinos',
'This month': 'Este mês',
'Week streak': 'Sequência semanal',
'Weight 30d': 'Peso 30 d',
'Activity — last 12 months': 'Atividade — últimos 12 meses',
'by time trained': 'por tempo de treino',
'Exercise progress': 'Progresso por exercício',
'Top speed per workout': 'Velocidade máxima por treino',
'Best set weight per workout': 'Melhor peso por treino',
'Finish your first workout to see progress curves here. 📈': 'Termina o teu primeiro treino para veres aqui as curvas de progresso. 📈',
'Recent workouts': 'Treinos recentes',
'Less time': 'Menos',
'More time': 'Mais',
'No data yet': 'Ainda sem dados',
'Your weekly routine': 'A tua rotina semanal',
'Week schedule': 'Horário semanal',
'Routines': 'Rotinas',
'No routines yet.': 'Ainda sem rotinas.',
'Create one or load the starter plan.': 'Cria uma ou carrega o plano inicial.',
'Load starter plan (Push / Pull / Legs)': 'Carregar plano inicial (Push / Pull / Pernas)',
'Superset with exercise above': 'Supersérie com o exercício acima',
'No exercises yet — add your first one.': 'Ainda sem exercícios — adiciona o primeiro.',
'Tip: tap 🔗 on an exercise to superset it with the one above — you’ll do them back-to-back.': 'Dica: toca em 🔗 num exercício para o juntar em supersérie com o de cima — fazes os dois seguidos.',
'Delete routine?': 'Eliminar rotina?',
'“{0}” and its exercises will be removed.': '«{0}» e os seus exercícios serão removidos.',
'Delete routine': 'Eliminar rotina',
'{0} exercises with animations': '{0} exercícios com animações',
'Search…': 'Pesquisar…',
'No workouts yet.': 'Ainda sem treinos.',
'Starter plan loaded — Mon Push · Wed Pull · Fri Legs': 'Plano inicial carregado — Seg Push · Qua Pull · Sex Pernas',
'Enter a name': 'Introduz um nome',
'Profile created — data from this device moved into it ✓': 'Perfil criado — os dados deste dispositivo foram movidos para ele ✓',
'Profile created — data moved into it ✓': 'Perfil criado — dados movidos ✓',
'Welcome, {0} 💪': 'Bem-vindo, {0} 💪',
'Welcome back, {0} 💪': 'Bem-vindo de volta, {0} 💪',
'Registration failed': 'Registo falhou',
'Sign-in failed': 'Início de sessão falhou',
'Create your profile ✨': 'Cria o teu perfil ✨',
'Pick a name, then confirm with {0}. The passkey is saved in your device — no password needed.': 'Escolhe um nome e confirma com {0}. A passkey fica guardada no teu dispositivo — sem palavras-passe.',
'Pick a name, then confirm with your device.': 'Escolhe um nome e confirma com o teu dispositivo.',
'Your name': 'O teu nome',
'Create passkey': 'Criar passkey',
'Your workouts. Your weights. Your profile.': 'Os teus treinos. Os teus pesos. O teu perfil.',
'Sign in with passkey': 'Entrar com passkey',
'Create new profile': 'Criar novo perfil',
"This browser doesn't support passkeys — you can still use openGym locally on this device.": 'Este navegador não suporta passkeys — ainda assim podes usar o openGym localmente neste dispositivo.',
'Continue without account': 'Continuar sem conta',
'Passkeys use {0} — no passwords.': 'As passkeys usam {0} — sem palavras-passe.',
'Each profile keeps its own plan, workouts & body weight.': 'Cada perfil guarda o seu plano, treinos e peso corporal.',
'Account': 'Conta',
'Signed in with passkey — data syncs to this profile.': 'Sessão iniciada com passkey — os dados sincronizam com este perfil.',
'Sign out?': 'Terminar sessão?',
'Your data is synced to your profile first, then cleared from this device.': 'Os teus dados são primeiro sincronizados com o perfil e depois apagados deste dispositivo.',
'Sign out': 'Terminar sessão',
'Guest mode — data lives only in this browser. Create a passkey profile to keep it safe and separate per person.': 'Modo convidado — os dados vivem só neste navegador. Cria um perfil com passkey para os proteger e separar por pessoa.',
'Create passkey profile': 'Criar perfil com passkey',
'Passkeys not supported in this browser.': 'Passkeys não suportadas neste navegador.',
'Appearance': 'Aparência',
'synced with your profile': 'sincronizado com o teu perfil',
'Language': 'Idioma',
"Exercise instructions aren't available in this language yet — they stay in English.": 'As instruções dos exercícios ainda não existem neste idioma — ficam em inglês.',
'Theme': 'Tema',
'Dark': 'Escuro',
'Light': 'Claro',
'Accent color': 'Cor de destaque',
'Units & timer': 'Unidades e temporizador',
'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.',
'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.',
'Delete everything': 'Eliminar tudo',
'All data reset': 'Todos os dados repostos',
'Backup exported ✓': 'Cópia exportada ✓',
'Import backup?': 'Importar cópia?',
'This replaces all current data with the backup file.': 'Isto substitui todos os dados atuais pelo ficheiro de cópia.',
'Backup imported ✓': 'Cópia importada ✓',
'Import failed: {0}': 'Importação falhou: {0}',
'Tip': 'Dica',
'In Chrome: ⋮ menu → Add to Home screen': 'No Chrome: menu ⋮ → Adicionar ao ecrã principal',
'In Safari: Share → Add to Home Screen': 'No Safari: Partilhar → Adicionar ao ecrã principal',
'to install openGym as a full-screen app.': 'para instalar o openGym como app em ecrã inteiro.',
'Your data syncs with your profile — sign in anywhere to see it.': 'Os teus dados sincronizam com o perfil — inicia sessão em qualquer lado para os veres.',
'Guest data stays on this device — export a backup now and then!': 'Os dados de convidado ficam neste dispositivo — exporta uma cópia de vez em quando!',
'free & open source (AGPL v3)': 'gratuito e open source (AGPL v3)',
'Notifications': 'Notificações',
'Not supported in this browser.': 'Não suportado neste navegador.',
'Push notifications': 'Notificações push',
'Rest-timer alerts, even if openGym is closed.': 'Alertas do temporizador de descanso, mesmo com o openGym fechado.',
'Workout day reminder': 'Lembrete de dia de treino',
'Reminder time': 'Hora do lembrete',
"Only sent on days you have a routine planned and haven't logged a workout yet.": 'Enviado apenas nos dias com rotina planeada e sem treino registado.',
'Timezone: {0} (auto-detected, updates if you travel).': 'Fuso horário: {0} (detetado automaticamente, atualiza-se se viajares).',
'Send test notification': 'Enviar notificação de teste',
'Test sent — should arrive any second': 'Teste enviado — deve chegar a qualquer segundo',
'Test failed': 'Teste falhou',
'Notifications off': 'Notificações desativadas',
'Notifications on 🔔': 'Notificações ativadas 🔔',
'Could not change notification settings': 'Não foi possível alterar as definições de notificações',
'tap to pause': 'toca para pausar',
'tap to play': 'toca para reproduzir',
'back': 'costas', 'cardio': 'cardio', 'chest': 'peito', 'lower arms': 'antebraços',
'lower legs': 'gémeos', 'neck': 'pescoço', 'shoulders': 'ombros',
'upper arms': 'braços', 'upper legs': 'pernas', 'waist': 'abdómen',
'assisted': 'assistido', 'band': 'banda', 'barbell': 'barra', 'body weight': 'peso corporal',
'bosu ball': 'bosu', 'cable': 'cabo', 'dumbbell': 'haltere',
'elliptical machine': 'elíptica', 'ez barbell': 'barra EZ', 'hammer': 'martelo',
'kettlebell': 'kettlebell', 'leverage machine': 'máquina de alavanca', 'medicine ball': 'bola medicinal',
'olympic barbell': 'barra olímpica', 'resistance band': 'banda de resistência', 'roller': 'rolo',
'rope': 'corda', 'skierg machine': 'SkiErg', 'sled machine': 'trenó',
'smith machine': 'máquina Smith', 'stability ball': 'bola de estabilidade', 'stationary bike': 'bicicleta estática',
'stepmill machine': 'escadora', 'tire': 'pneu', 'trap bar': 'barra hexagonal',
'upper body ergometer': 'ergómetro de braços', 'weighted': 'com peso extra', 'wheel roller': 'roda abdominal',
'abductors': 'abdutores', 'abs': 'abdominais', 'adductors': 'adutores', 'biceps': 'bíceps',
'calves': 'gémeos', 'cardiovascular system': 'sistema cardiovascular', 'delts': 'deltoides',
'forearms': 'antebraços', 'glutes': 'glúteos', 'hamstrings': 'isquiotibiais', 'lats': 'dorsais',
'levator scapulae': 'elevador da escápula', 'pectorals': 'peitorais', 'quads': 'quadríceps',
'serratus anterior': 'serrátil anterior', 'spine': 'coluna', 'traps': 'trapézios',
'triceps': 'tríceps', 'upper back': 'costas superiores',
'abdominals': 'abdominais', 'ankle stabilizers': 'estabilizadores do tornozelo', 'ankles': 'tornozelos',
'brachialis': 'braquial', 'core': 'core', 'deltoids': 'deltoides', 'feet': 'pés',
'grip muscles': 'músculos de preensão', 'groin': 'virilha', 'hands': 'mãos', 'hip flexors': 'flexores da anca',
'inner thighs': 'interior das coxas', 'latissimus dorsi': 'grande dorsal', 'lower abs': 'abdominais inferiores',
'lower back': 'zona lombar', 'obliques': 'oblíquos', 'quadriceps': 'quadríceps',
'rear deltoids': 'deltoides posteriores', 'rhomboids': 'romboides', 'rotator cuff': 'coifa dos rotadores',
'shins': 'canelas', 'soleus': 'solear', 'sternocleidomastoid': 'esternocleidomastóideo',
'trapezius': 'trapézio', 'upper chest': 'peito superior', 'wrist extensors': 'extensores do punho',
'wrist flexors': 'flexores do punho', 'wrists': 'punhos',
// --- custom exercises (#11) ---
'Create your own exercise': 'Cria o teu próprio exercício',
'Edit custom exercise': 'Editar exercício personalizado',
'Name it and pick a body part — it behaves like any other exercise, just without an animation.': 'Dá-lhe um nome e escolhe uma parte do corpo — funciona como qualquer outro exercício, só que sem animação.',
'Exercise name': 'Nome do exercício',
'name + body part, no animation': 'nome + parte do corpo, sem animação',
'Create exercise': 'Criar exercício',
'Give it a name': 'Dá-lhe um nome',
'Pick a body part': 'Escolhe uma parte do corpo',
'“{0}” already exists': '«{0}» já existe',
'“{0}” created ✓': '«{0}» criado ✓',
'Cardio exercises log time + speed instead of weight × reps.': 'Exercícios de cardio registam tempo + velocidade em vez de peso × reps.',
'custom': 'próprio',
'Edit': 'Editar',
'Saved ✓': 'Guardado ✓',
'Delete “{0}”?': 'Eliminar «{0}»?',
'It will be removed from your routines. Already-logged workouts keep their sets.': 'Será removido das tuas rotinas. Os treinos já registados mantêm as suas séries.',
'Exercise deleted': 'Exercício eliminado',
'Finish your current workout first': 'Termina primeiro o treino atual',
'Description (optional) — setup, cues, anything you want to remember': 'Descrição (opcional) — preparação, dicas, o que quiseres lembrar',
'Delete exercise': 'Eliminar exercício',
'Edit or delete this exercise': 'Editar ou eliminar este exercício',
'Remove from routine': 'Remover da rotina'
}
+336
View File
@@ -0,0 +1,336 @@
// Russian UI strings. Keys are the English source strings (see lib/i18n.js).
export default {
'Confirm': 'Подтвердить',
'Cancel': 'Отмена',
'Delete': 'Удалить',
'Save': 'Сохранить',
'Import': 'Импорт',
'Discard': 'Отменить',
'All': 'Все',
'Rest': 'Отдых',
'On': 'Вкл',
'Off': 'Выкл',
'On 🔔': 'Вкл 🔔',
'Off 🔕': 'Выкл 🔕',
'Skip': 'Пропустить',
'New': 'Новая',
'Log': 'Записать',
'Goal': 'Цель',
'Plan': 'План',
'Today': 'Сегодня',
'Home': 'Главная',
'Start': 'Старт',
'Resume': 'Продолжить',
'Stats': 'Статистика',
'Exercises': 'Упражнения',
'History': 'История',
'Settings': 'Настройки',
'Freestyle': 'Свободная',
'Routine': 'Программа',
'routine': 'программу',
'Cardio': 'Кардио',
'Superset': 'Суперсет',
'last': 'последний раз',
'rescheduled': 'перенесено',
'Prev': 'Назад',
'Next': 'Далее',
'Sunday': 'Воскресенье', 'Monday': 'Понедельник', 'Tuesday': 'Вторник', 'Wednesday': 'Среда',
'Thursday': 'Четверг', 'Friday': 'Пятница', 'Saturday': 'Суббота',
'Su': 'Вс', 'Mo': 'Пн', 'Tu': 'Вт', 'We': 'Ср', 'Th': 'Чт', 'Fr': 'Пт', 'Sa': 'Сб',
'Mon': 'Пн', 'Wed': 'Ср', 'Fri': 'Пт',
'Jan': 'Янв', 'Feb': 'Фев', 'Mar': 'Мар', 'Apr': 'Апр', 'May': 'Май', 'Jun': 'Июн',
'Jul': 'Июл', 'Aug': 'Авг', 'Sep': 'Сен', 'Oct': 'Окт', 'Nov': 'Ноя', 'Dec': 'Дек',
'January': 'Январь', 'February': 'Февраль', 'March': 'Март', 'April': 'Апрель',
'June': 'Июнь', 'July': 'Июль', 'August': 'Август', 'September': 'Сентябрь',
'October': 'Октябрь', 'November': 'Ноябрь', 'December': 'Декабрь',
'Quick check-in ⚖️': 'Быстрое взвешивание ⚖️',
'Log body weight': 'Записать вес тела',
'Slide or tap to set your weight — tracked before every workout so your curve stays honest.': 'Сдвинь или коснись, чтобы указать вес — он записывается перед каждой тренировкой, чтобы кривая была честной.',
'Save & start workout': 'Сохранить и начать тренировку',
'Skip today': 'Пропустить сегодня',
'↺ Choose a different workout': '↺ Выбрать другую тренировку',
'Recent weigh-ins': 'Последние взвешивания',
'Enter a valid weight': 'Введите корректный вес',
'Weight saved ✓': 'Вес сохранён ✓',
'Target weight 🎯': 'Целевой вес 🎯',
'Your goal is drawn as a line through the weight charts, and gains/losses are colored by whether they move toward it.': 'Цель показана линией на графиках веса, а изменения окрашиваются в зависимости от того, приближают ли они к ней.',
'Save goal': 'Сохранить цель',
'Goal set: {0}': 'Цель установлена: {0}',
'{0} to go': 'осталось {0}',
'Goal removed': 'Цель удалена',
'Remove goal': 'Удалить цель',
'Body weight': 'Вес тела',
'reached! 🎉': 'достигнута! 🎉',
'{0} to gain': 'набрать {0}',
'{0} to lose': 'сбросить {0}',
"No entries yet — log your weight to start the curve. It's also asked before every workout.": 'Записей пока нет — внеси вес, чтобы начать кривую. Он также запрашивается перед каждой тренировкой.',
'Best:': 'Рекорд:',
'+ Add to my plan': '+ Добавить в мой план',
'How to': 'Техника выполнения',
'instructions in English': 'инструкции на английском',
'New routine': 'Новая программа',
'Add “{0}”': 'Добавить «{0}»',
'“{0}” added to {1} ✓': '«{0}» добавлено в {1} ✓',
'Pick a routine — sets, reps & weight come next.': 'Выбери программу — подходы, повторения и вес будут дальше.',
'{0} exercises': 'Упражнений: {0}',
'already in': 'уже есть',
'Create one and start with this exercise': 'Создай новую и начни с этого упражнения',
'Add exercise': 'Добавить упражнение',
'Search {0} exercises…': 'Поиск среди {0} упражнений…',
'Chosen': 'Избранные',
'Nothing chosen yet — add exercises and they’ll show up here.': 'Пока ничего нет — добавляй упражнения, и они появятся здесь.',
'No match 🤷': 'Ничего не найдено 🤷',
'Show more': 'Показать ещё',
'Intervals': 'Интервалы',
'Minutes': 'Минуты',
'Speed (km/h)': 'Скорость (км/ч)',
'Sets': 'Подходы',
'Reps': 'Повт.',
'Weight ({0})': 'Вес ({0})',
'Add to routine': 'Добавить в программу',
'Remove exercise': 'Убрать упражнение',
'Pick an emoji': 'Выбери эмодзи',
'Back to weekly plan': 'Вернуться к недельному плану',
'{0} set to rest': '{0} — теперь день отдыха',
'{0} planned for {1} ✓': '{0} запланировано на {1} ✓',
'Weekly plan:': 'Недельный план:',
'changed for this day': 'изменено для этого дня',
'Sick, missed a day or want a different session? Pick what to train instead.': 'Заболел, пропустил день или хочешь другую тренировку? Выбери, что делать вместо этого.',
'Rest / skip this day': 'Отдых / пропустить день',
'Rest day': 'День отдыха',
'{0} workout': 'Тренировок: {0}',
'{0} workouts': 'Тренировок: {0}',
'No workouts this month': 'В этом месяце тренировок нет',
'Trained': 'Тренировка',
'Planned': 'Запланировано',
'Rescheduled': 'Перенесено',
'Tap a trained day for details · tap any other day to plan a session': 'Нажми на день с тренировкой — детали · на любой другой — планирование',
'{0} sets': 'подходов: {0}',
'no sets': 'нет подходов',
'Delete workout?': 'Удалить тренировку?',
'This removes it from your history for good.': 'Она будет навсегда удалена из истории.',
'Workout deleted': 'Тренировка удалена',
'Delete workout': 'Удалить тренировку',
'{0} done': '{0} — готово',
'Confirm the weight you worked with — your highest becomes the default next time.': 'Подтверди рабочий вес — наибольший станет значением по умолчанию в следующий раз.',
'Then finish the superset partner.': 'Затем доделай второе упражнение суперсета.',
'Previous best:': 'Прежний рекорд:',
'new record! 🏆': 'новый рекорд! 🏆',
'Save ✓': 'Сохранить ✓',
'Save & next exercise ›': 'Сохранить и к следующему ›',
'Just close': 'Просто закрыть',
'Save weight': 'Сохранить вес',
'Tracked — next time starts at {0} 📈': 'Записано — в следующий раз начнёшь с {0} 📈',
"That's the whole workout!": 'Это была вся тренировка!',
'Every exercise done — great work. Finish up, or keep going and add another exercise.': 'Все упражнения выполнены — отличная работа! Завершай или продолжай и добавь ещё упражнение.',
'Finish workout 🏁': 'Завершить тренировку 🏁',
'Continue workout': 'Продолжить тренировку',
'Keep going 💪 — tap “+ Add exercise” below': 'Продолжай 💪 — нажми «+ Добавить упражнение» ниже',
'Workout complete!': 'Тренировка завершена!',
'Duration': 'Время',
'Volume': 'Объём',
'PRs': 'Рекорды',
'New PR:': 'Новый рекорд:',
'Nice! 💪': 'Отлично! 💪',
'Nothing logged yet': 'Пока ничего не записано',
'You haven’t checked off any sets. Finish the workout anyway?': 'Ни один подход не отмечен. Всё равно завершить тренировку?',
'Finish anyway': 'Всё равно завершить',
'Finish early?': 'Завершить раньше?',
'{0} set still unchecked. Finish the workout now?': 'Не отмечен {0} подход. Завершить сейчас?',
'{0} sets still unchecked. Finish the workout now?': 'Не отмечено подходов: {0}. Завершить сейчас?',
'Finish workout': 'Завершить тренировку',
'Start workout': 'Начать тренировку',
'today is {0}': 'сегодня — {0}',
'rest day, but no one’s stopping you': 'день отдыха, но никто тебя не остановит',
"Today's plan": 'План на сегодня',
'Start {0} ▶': 'Начать {0} ▶',
'Other routines': 'Другие программы',
'Start ▶': 'Начать ▶',
'Freestyle workout (pick as you go)': 'Свободная тренировка (выбирай по ходу)',
'Build a plan first': 'Сначала создай план',
'Duration (min)': 'Время (мин)',
'Last time': 'В прошлый раз',
'Last time you hit all reps — try {0}': 'В прошлый раз все повторения сделаны — попробуй {0}',
'Weights bumped to {0} 💪': 'Веса подняты до {0} 💪',
'Remove set': 'Убрать подход',
'Add set': 'Добавить подход',
'Cardio logged 🏃': 'Кардио записано 🏃',
'Discard workout?': 'Отменить тренировку?',
'The sets you logged in this session will be lost.': 'Подходы, записанные в этой сессии, будут потеряны.',
'Superset {0} / {1}': 'Суперсет {0} / {1}',
'Exercise {0} / {1}': 'Упражнение {0} / {1}',
'Superset · do these back-to-back, rest after both': 'Суперсет · выполняй подряд, отдых после обоих',
'Freestyle workout — add your first exercise.': 'Свободная тренировка — добавь первое упражнение.',
'Finish workout early · {0} exercises': 'Завершить раньше · упражнений: {0}',
'Rest over — next set! 💪': 'Отдых окончен — следующий подход! 💪',
'Hi {0} 💪': 'Привет, {0} 💪',
'This week': 'Эта неделя',
'{0} — in progress': '{0} — идёт',
'Resume ▶': 'Продолжить ▶',
'Welcome! 👋': 'Добро пожаловать! 👋',
'Set up your weekly routine to get going — or load a ready-made Push / Pull / Legs plan.': 'Настрой свой недельный план — или загрузи готовый план Push / Pull / Ноги.',
'Load starter plan (PPL)': 'Загрузить стартовый план (PPL)',
'Build my own plan': 'Создать свой план',
'{0} week streak': 'серия: {0} нед.',
'this week': 'на этой неделе',
'{0} workout total': 'всего тренировок: {0}',
'{0} workouts total': 'всего тренировок: {0}',
'Progress & history': 'Прогресс и история',
'Workouts': 'Тренировки',
'This month': 'Этот месяц',
'Week streak': 'Серия недель',
'Weight 30d': 'Вес 30 дн.',
'Activity — last 12 months': 'Активность — последние 12 месяцев',
'by time trained': 'по времени тренировок',
'Exercise progress': 'Прогресс упражнений',
'Top speed per workout': 'Максимальная скорость за тренировку',
'Best set weight per workout': 'Лучший вес за тренировку',
'Finish your first workout to see progress curves here. 📈': 'Заверши первую тренировку, чтобы увидеть здесь кривые прогресса. 📈',
'Recent workouts': 'Недавние тренировки',
'Less time': 'Меньше',
'More time': 'Больше',
'No data yet': 'Данных пока нет',
'Your weekly routine': 'Твой недельный план',
'Week schedule': 'Расписание недели',
'Routines': 'Программы',
'No routines yet.': 'Программ пока нет.',
'Create one or load the starter plan.': 'Создай программу или загрузи стартовый план.',
'Load starter plan (Push / Pull / Legs)': 'Загрузить стартовый план (Push / Pull / Ноги)',
'Superset with exercise above': 'Суперсет с упражнением выше',
'No exercises yet — add your first one.': 'Упражнений пока нет — добавь первое.',
'Tip: tap 🔗 on an exercise to superset it with the one above — you’ll do them back-to-back.': 'Совет: нажми 🔗 у упражнения, чтобы объединить его в суперсет с тем, что выше — будешь делать их подряд.',
'Delete routine?': 'Удалить программу?',
'“{0}” and its exercises will be removed.': '«{0}» и её упражнения будут удалены.',
'Delete routine': 'Удалить программу',
'{0} exercises with animations': '{0} упражнений с анимациями',
'Search…': 'Поиск…',
'No workouts yet.': 'Тренировок пока нет.',
'Starter plan loaded — Mon Push · Wed Pull · Fri Legs': 'Стартовый план загружен — Пн Push · Ср Pull · Пт Ноги',
'Enter a name': 'Введите имя',
'Profile created — data from this device moved into it ✓': 'Профиль создан — данные с этого устройства перенесены в него ✓',
'Profile created — data moved into it ✓': 'Профиль создан — данные перенесены ✓',
'Welcome, {0} 💪': 'Добро пожаловать, {0} 💪',
'Welcome back, {0} 💪': 'С возвращением, {0} 💪',
'Registration failed': 'Регистрация не удалась',
'Sign-in failed': 'Вход не удался',
'Create your profile ✨': 'Создай свой профиль ✨',
'Pick a name, then confirm with {0}. The passkey is saved in your device — no password needed.': 'Выбери имя и подтверди через {0}. Ключ доступа сохраняется на устройстве — пароль не нужен.',
'Pick a name, then confirm with your device.': 'Выбери имя и подтверди на устройстве.',
'Your name': 'Твоё имя',
'Create passkey': 'Создать ключ доступа',
'Your workouts. Your weights. Your profile.': 'Твои тренировки. Твои веса. Твой профиль.',
'Sign in with passkey': 'Войти по ключу доступа',
'Create new profile': 'Создать новый профиль',
"This browser doesn't support passkeys — you can still use openGym locally on this device.": 'Этот браузер не поддерживает ключи доступа — но openGym можно использовать локально на этом устройстве.',
'Continue without account': 'Продолжить без аккаунта',
'Passkeys use {0} — no passwords.': 'Ключи доступа используют {0} — без паролей.',
'Each profile keeps its own plan, workouts & body weight.': 'У каждого профиля свой план, тренировки и вес тела.',
'Account': 'Аккаунт',
'Signed in with passkey — data syncs to this profile.': 'Вход по ключу доступа — данные синхронизируются с этим профилем.',
'Sign out?': 'Выйти?',
'Your data is synced to your profile first, then cleared from this device.': 'Данные сначала синхронизируются с профилем, затем удаляются с устройства.',
'Sign out': 'Выйти',
'Guest mode — data lives only in this browser. Create a passkey profile to keep it safe and separate per person.': 'Гостевой режим — данные живут только в этом браузере. Создай профиль с ключом доступа, чтобы защитить их и разделить по людям.',
'Create passkey profile': 'Создать профиль с ключом доступа',
'Passkeys not supported in this browser.': 'Ключи доступа не поддерживаются в этом браузере.',
'Appearance': 'Внешний вид',
'synced with your profile': 'синхронизируется с профилем',
'Language': 'Язык',
"Exercise instructions aren't available in this language yet — they stay in English.": 'Инструкции к упражнениям на этом языке пока недоступны — они остаются на английском.',
'Theme': 'Тема',
'Dark': 'Тёмная',
'Light': 'Светлая',
'Accent color': 'Акцентный цвет',
'Units & timer': 'Единицы и таймер',
'Weight unit': 'Единица веса',
'Rest timer': 'Таймер отдыха',
'Sounds': 'Звуки',
'Note: switching units only changes the label — logged numbers are not converted.': 'Примечание: смена единиц меняет только подпись — записанные числа не пересчитываются.',
'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.': 'Удаляет план, тренировки и вес тела на этом устройстве. Отменить нельзя.',
'Delete everything': 'Удалить всё',
'All data reset': 'Все данные сброшены',
'Backup exported ✓': 'Копия экспортирована ✓',
'Import backup?': 'Импортировать копию?',
'This replaces all current data with the backup file.': 'Все текущие данные будут заменены файлом резервной копии.',
'Backup imported ✓': 'Копия импортирована ✓',
'Import failed: {0}': 'Импорт не удался: {0}',
'Tip': 'Совет',
'In Chrome: ⋮ menu → Add to Home screen': 'В Chrome: меню ⋮ → Добавить на главный экран',
'In Safari: Share → Add to Home Screen': 'В Safari: Поделиться → На экран «Домой»',
'to install openGym as a full-screen app.': 'чтобы установить openGym как полноэкранное приложение.',
'Your data syncs with your profile — sign in anywhere to see it.': 'Данные синхронизируются с профилем — войди где угодно, чтобы их увидеть.',
'Guest data stays on this device — export a backup now and then!': 'Гостевые данные остаются на этом устройстве — время от времени делай резервную копию!',
'free & open source (AGPL v3)': 'бесплатно и с открытым кодом (AGPL v3)',
'Notifications': 'Уведомления',
'Not supported in this browser.': 'Не поддерживается в этом браузере.',
'Push notifications': 'Push-уведомления',
'Rest-timer alerts, even if openGym is closed.': 'Оповещения таймера отдыха, даже если openGym закрыт.',
'Workout day reminder': 'Напоминание о дне тренировки',
'Reminder time': 'Время напоминания',
"Only sent on days you have a routine planned and haven't logged a workout yet.": 'Отправляется только в дни, когда запланирована программа и тренировка ещё не записана.',
'Timezone: {0} (auto-detected, updates if you travel).': 'Часовой пояс: {0} (определяется автоматически, обновляется в поездках).',
'Send test notification': 'Отправить тестовое уведомление',
'Test sent — should arrive any second': 'Тест отправлен — придёт с секунды на секунду',
'Test failed': 'Тест не удался',
'Notifications off': 'Уведомления выключены',
'Notifications on 🔔': 'Уведомления включены 🔔',
'Could not change notification settings': 'Не удалось изменить настройки уведомлений',
'tap to pause': 'нажми для паузы',
'tap to play': 'нажми для запуска',
'back': 'спина', 'cardio': 'кардио', 'chest': 'грудь', 'lower arms': 'предплечья',
'lower legs': 'голени', 'neck': 'шея', 'shoulders': 'плечи',
'upper arms': 'руки', 'upper legs': 'бёдра', 'waist': 'пресс',
'assisted': 'с поддержкой', 'band': 'лента', 'barbell': 'штанга', 'body weight': 'свой вес',
'bosu ball': 'босу', 'cable': 'блок', 'dumbbell': 'гантель',
'elliptical machine': 'эллипсоид', 'ez barbell': 'EZ-гриф', 'hammer': 'молот',
'kettlebell': 'гиря', 'leverage machine': 'рычажный тренажёр', 'medicine ball': 'медбол',
'olympic barbell': 'олимпийская штанга', 'resistance band': 'эспандер', 'roller': 'ролик',
'rope': 'канат', 'skierg machine': 'SkiErg', 'sled machine': 'сани',
'smith machine': 'машина Смита', 'stability ball': 'фитбол', 'stationary bike': 'велотренажёр',
'stepmill machine': 'степмил', 'tire': 'покрышка', 'trap bar': 'трэп-гриф',
'upper body ergometer': 'ручной эргометр', 'weighted': 'с отягощением', 'wheel roller': 'ролик для пресса',
'abductors': 'отводящие мышцы', 'abs': 'пресс', 'adductors': 'приводящие мышцы', 'biceps': 'бицепс',
'calves': 'икры', 'cardiovascular system': 'сердечно-сосудистая система', 'delts': 'дельты',
'forearms': 'предплечья', 'glutes': 'ягодицы', 'hamstrings': 'бицепс бедра', 'lats': 'широчайшие',
'levator scapulae': 'мышца, поднимающая лопатку', 'pectorals': 'грудные', 'quads': 'квадрицепс',
'serratus anterior': 'передняя зубчатая', 'spine': 'позвоночник', 'traps': 'трапеции',
'triceps': 'трицепс', 'upper back': 'верх спины',
'abdominals': 'мышцы живота', 'ankle stabilizers': 'стабилизаторы голеностопа', 'ankles': 'голеностопы',
'brachialis': 'брахиалис', 'core': 'кор', 'deltoids': 'дельтовидные', 'feet': 'стопы',
'grip muscles': 'мышцы хвата', 'groin': 'пах', 'hands': 'кисти', 'hip flexors': 'сгибатели бедра',
'inner thighs': 'внутренняя поверхность бедра', 'latissimus dorsi': 'широчайшая мышца спины', 'lower abs': 'нижний пресс',
'lower back': 'поясница', 'obliques': 'косые мышцы', 'quadriceps': 'квадрицепс',
'rear deltoids': 'задние дельты', 'rhomboids': 'ромбовидные', 'rotator cuff': 'ротаторная манжета',
'shins': 'голени', 'soleus': 'камбаловидная', 'sternocleidomastoid': 'грудино-ключично-сосцевидная',
'trapezius': 'трапециевидная', 'upper chest': 'верх груди', 'wrist extensors': 'разгибатели запястья',
'wrist flexors': 'сгибатели запястья', 'wrists': 'запястья',
// --- custom exercises (#11) ---
'Create your own exercise': 'Создать своё упражнение',
'Edit custom exercise': 'Изменить своё упражнение',
'Name it and pick a body part — it behaves like any other exercise, just without an animation.': 'Задайте название и выберите часть тела — оно работает как любое другое упражнение, только без анимации.',
'Exercise name': 'Название упражнения',
'name + body part, no animation': 'название + часть тела, без анимации',
'Create exercise': 'Создать упражнение',
'Give it a name': 'Задайте название',
'Pick a body part': 'Выберите часть тела',
'“{0}” already exists': '«{0}» уже существует',
'“{0}” created ✓': '«{0}» создано ✓',
'Cardio exercises log time + speed instead of weight × reps.': 'Кардио-упражнения записывают время + скорость вместо веса × повторов.',
'custom': 'своё',
'Edit': 'Изменить',
'Saved ✓': 'Сохранено ✓',
'Delete “{0}”?': 'Удалить «{0}»?',
'It will be removed from your routines. Already-logged workouts keep their sets.': 'Оно будет убрано из ваших программ. Записанные тренировки сохранят свои подходы.',
'Exercise deleted': 'Упражнение удалено',
'Finish your current workout first': 'Сначала завершите текущую тренировку',
'Description (optional) — setup, cues, anything you want to remember': 'Описание (необязательно) — настройка, подсказки, всё, что хотите запомнить',
'Delete exercise': 'Удалить упражнение',
'Edit or delete this exercise': 'Изменить или удалить это упражнение',
'Remove from routine': 'Убрать из программы'
}
+336
View File
@@ -0,0 +1,336 @@
// Turkish UI strings. Keys are the English source strings (see lib/i18n.js).
export default {
'Confirm': 'Onayla',
'Cancel': 'İptal',
'Delete': 'Sil',
'Save': 'Kaydet',
'Import': 'İçe aktar',
'Discard': 'Vazgeç',
'All': 'Tümü',
'Rest': 'Dinlenme',
'On': 'Açık',
'Off': 'Kapalı',
'On 🔔': 'Açık 🔔',
'Off 🔕': 'Kapalı 🔕',
'Skip': 'Atla',
'New': 'Yeni',
'Log': 'Kaydet',
'Goal': 'Hedef',
'Plan': 'Plan',
'Today': 'Bugün',
'Home': 'Ana sayfa',
'Start': 'Başla',
'Resume': 'Devam et',
'Stats': 'İstatistik',
'Exercises': 'Egzersizler',
'History': 'Geçmiş',
'Settings': 'Ayarlar',
'Freestyle': 'Serbest',
'Routine': 'Rutin',
'routine': 'rutine',
'Cardio': 'Kardiyo',
'Superset': 'Süperset',
'last': 'son',
'rescheduled': 'ertelendi',
'Prev': 'Önceki',
'Next': 'Sonraki',
'Sunday': 'Pazar', 'Monday': 'Pazartesi', 'Tuesday': 'Salı', 'Wednesday': 'Çarşamba',
'Thursday': 'Perşembe', 'Friday': 'Cuma', 'Saturday': 'Cumartesi',
'Su': 'Pz', 'Mo': 'Pt', 'Tu': 'Sa', 'We': 'Ça', 'Th': 'Pe', 'Fr': 'Cu', 'Sa': 'Ct',
'Mon': 'Pzt', 'Wed': 'Çar', 'Fri': 'Cum',
'Jan': 'Oca', 'Feb': 'Şub', 'Mar': 'Mar', 'Apr': 'Nis', 'May': 'May', 'Jun': 'Haz',
'Jul': 'Tem', 'Aug': 'Ağu', 'Sep': 'Eyl', 'Oct': 'Eki', 'Nov': 'Kas', 'Dec': 'Ara',
'January': 'Ocak', 'February': 'Şubat', 'March': 'Mart', 'April': 'Nisan',
'June': 'Haziran', 'July': 'Temmuz', 'August': 'Ağustos', 'September': 'Eylül',
'October': 'Ekim', 'November': 'Kasım', 'December': 'Aralık',
'Quick check-in ⚖️': 'Hızlı tartı ⚖️',
'Log body weight': 'Vücut ağırlığını kaydet',
'Slide or tap to set your weight — tracked before every workout so your curve stays honest.': 'Kilonu ayarlamak için kaydır veya dokun — eğrin dürüst kalsın diye her antrenmandan önce kaydedilir.',
'Save & start workout': 'Kaydet ve antrenmana başla',
'Skip today': 'Bugün atla',
'↺ Choose a different workout': '↺ Farklı bir antrenman seç',
'Recent weigh-ins': 'Son tartılar',
'Enter a valid weight': 'Geçerli bir ağırlık gir',
'Weight saved ✓': 'Ağırlık kaydedildi ✓',
'Target weight 🎯': 'Hedef kilo 🎯',
'Your goal is drawn as a line through the weight charts, and gains/losses are colored by whether they move toward it.': 'Hedefin kilo grafiklerinde bir çizgi olarak gösterilir; artış/azalışlar hedefe yaklaşıp yaklaşmadığına göre renklendirilir.',
'Save goal': 'Hedefi kaydet',
'Goal set: {0}': 'Hedef belirlendi: {0}',
'{0} to go': '{0} kaldı',
'Goal removed': 'Hedef kaldırıldı',
'Remove goal': 'Hedefi kaldır',
'Body weight': 'Vücut ağırlığı',
'reached! 🎉': 'ulaşıldı! 🎉',
'{0} to gain': 'alınacak {0}',
'{0} to lose': 'verilecek {0}',
"No entries yet — log your weight to start the curve. It's also asked before every workout.": 'Henüz kayıt yok — eğriyi başlatmak için kilonu gir. Her antrenmandan önce de sorulur.',
'Best:': 'Rekor:',
'+ Add to my plan': '+ Planıma ekle',
'How to': 'Nasıl yapılır',
'instructions in English': 'talimatlar İngilizce',
'New routine': 'Yeni rutin',
'Add “{0}”': '“{0}” ekle',
'“{0}” added to {1} ✓': '“{0}”, {1} planına eklendi ✓',
'Pick a routine — sets, reps & weight come next.': 'Bir rutin seç — set, tekrar ve ağırlık sonra gelir.',
'{0} exercises': '{0} egzersiz',
'already in': 'zaten var',
'Create one and start with this exercise': 'Bir tane oluştur ve bu egzersizle başla',
'Add exercise': 'Egzersiz ekle',
'Search {0} exercises…': '{0} egzersiz içinde ara…',
'Chosen': 'Seçilenler',
'Nothing chosen yet — add exercises and they’ll show up here.': 'Henüz seçim yok — egzersiz ekledikçe burada görünecekler.',
'No match 🤷': 'Sonuç yok 🤷',
'Show more': 'Daha fazla göster',
'Intervals': 'Aralıklar',
'Minutes': 'Dakika',
'Speed (km/h)': 'Hız (km/sa)',
'Sets': 'Set',
'Reps': 'Tekrar',
'Weight ({0})': 'Ağırlık ({0})',
'Add to routine': 'Rutine ekle',
'Remove exercise': 'Egzersizi kaldır',
'Pick an emoji': 'Bir emoji seç',
'Back to weekly plan': 'Haftalık plana dön',
'{0} set to rest': '{0} dinlenme olarak ayarlandı',
'{0} planned for {1} ✓': '{0}, {1} için planlandı ✓',
'Weekly plan:': 'Haftalık plan:',
'changed for this day': 'bu gün için değiştirildi',
'Sick, missed a day or want a different session? Pick what to train instead.': 'Hasta mısın, gün mü kaçırdın ya da farklı bir seans mı istiyorsun? Yerine ne çalışacağını seç.',
'Rest / skip this day': 'Dinlen / bu günü atla',
'Rest day': 'Dinlenme günü',
'{0} workout': '{0} antrenman',
'{0} workouts': '{0} antrenman',
'No workouts this month': 'Bu ay antrenman yok',
'Trained': 'Yapıldı',
'Planned': 'Planlandı',
'Rescheduled': 'Ertelendi',
'Tap a trained day for details · tap any other day to plan a session': 'Antrenman yapılan güne dokun: detaylar · başka bir güne dokun: planla',
'{0} sets': '{0} set',
'no sets': 'set yok',
'Delete workout?': 'Antrenman silinsin mi?',
'This removes it from your history for good.': 'Geçmişinden kalıcı olarak kaldırılır.',
'Workout deleted': 'Antrenman silindi',
'Delete workout': 'Antrenmanı sil',
'{0} done': '{0} tamamlandı',
'Confirm the weight you worked with — your highest becomes the default next time.': 'Çalıştığın ağırlığı onayla — en yükseği bir dahaki sefer varsayılan olur.',
'Then finish the superset partner.': 'Sonra süpersetin diğer egzersizini bitir.',
'Previous best:': 'Önceki rekor:',
'new record! 🏆': 'yeni rekor! 🏆',
'Save ✓': 'Kaydet ✓',
'Save & next exercise ›': 'Kaydet ve sonraki egzersiz ›',
'Just close': 'Sadece kapat',
'Save weight': 'Ağırlığı kaydet',
'Tracked — next time starts at {0} 📈': 'Kaydedildi — bir dahaki sefer {0} ile başlarsın 📈',
"That's the whole workout!": 'Antrenmanın tamamı buydu!',
'Every exercise done — great work. Finish up, or keep going and add another exercise.': 'Tüm egzersizler bitti — harika iş! Bitir ya da devam edip yeni bir egzersiz ekle.',
'Finish workout 🏁': 'Antrenmanı bitir 🏁',
'Continue workout': 'Antrenmana devam et',
'Keep going 💪 — tap “+ Add exercise” below': 'Devam 💪 — aşağıdaki “+ Egzersiz ekle”ye dokun',
'Workout complete!': 'Antrenman tamamlandı!',
'Duration': 'Süre',
'Volume': 'Hacim',
'PRs': 'Rekorlar',
'New PR:': 'Yeni rekor:',
'Nice! 💪': 'Süper! 💪',
'Nothing logged yet': 'Henüz kayıt yok',
'You haven’t checked off any sets. Finish the workout anyway?': 'Hiç set işaretlemedin. Yine de antrenman bitsin mi?',
'Finish anyway': 'Yine de bitir',
'Finish early?': 'Erken bitir?',
'{0} set still unchecked. Finish the workout now?': '{0} set işaretlenmedi. Şimdi bitirilsin mi?',
'{0} sets still unchecked. Finish the workout now?': '{0} set işaretlenmedi. Şimdi bitirilsin mi?',
'Finish workout': 'Antrenmanı bitir',
'Start workout': 'Antrenmana başla',
'today is {0}': 'bugün {0} günü',
'rest day, but no one’s stopping you': 'dinlenme günü, ama kimse seni durduramaz',
"Today's plan": 'Bugünün planı',
'Start {0} ▶': '{0} başlat ▶',
'Other routines': 'Diğer rutinler',
'Start ▶': 'Başla ▶',
'Freestyle workout (pick as you go)': 'Serbest antrenman (giderken seç)',
'Build a plan first': 'Önce bir plan oluştur',
'Duration (min)': 'Süre (dk)',
'Last time': 'Geçen sefer',
'Last time you hit all reps — try {0}': 'Geçen sefer tüm tekrarları yaptın — {0} dene',
'Weights bumped to {0} 💪': 'Ağırlıklar {0} değerine çıkarıldı 💪',
'Remove set': 'Set kaldır',
'Add set': 'Set ekle',
'Cardio logged 🏃': 'Kardiyo kaydedildi 🏃',
'Discard workout?': 'Antrenman iptal edilsin mi?',
'The sets you logged in this session will be lost.': 'Bu oturumda kaydettiğin setler kaybolacak.',
'Superset {0} / {1}': 'Süperset {0} / {1}',
'Exercise {0} / {1}': 'Egzersiz {0} / {1}',
'Superset · do these back-to-back, rest after both': 'Süperset · art arda yap, ikisinden sonra dinlen',
'Freestyle workout — add your first exercise.': 'Serbest antrenman — ilk egzersizini ekle.',
'Finish workout early · {0} exercises': 'Erken bitir · {0} egzersiz',
'Rest over — next set! 💪': 'Dinlenme bitti — sıradaki set! 💪',
'Hi {0} 💪': 'Selam {0} 💪',
'This week': 'Bu hafta',
'{0} — in progress': '{0} — devam ediyor',
'Resume ▶': 'Devam et ▶',
'Welcome! 👋': 'Hoş geldin! 👋',
'Set up your weekly routine to get going — or load a ready-made Push / Pull / Legs plan.': 'Başlamak için haftalık rutinini kur — ya da hazır bir Push / Pull / Bacak planı yükle.',
'Load starter plan (PPL)': 'Başlangıç planını yükle (PPL)',
'Build my own plan': 'Kendi planımı oluştur',
'{0} week streak': '{0} haftalık seri',
'this week': 'bu hafta',
'{0} workout total': 'toplam {0} antrenman',
'{0} workouts total': 'toplam {0} antrenman',
'Progress & history': 'İlerleme ve geçmiş',
'Workouts': 'Antrenman',
'This month': 'Bu ay',
'Week streak': 'Hafta serisi',
'Weight 30d': 'Kilo 30 g',
'Activity — last 12 months': 'Aktivite — son 12 ay',
'by time trained': 'antrenman süresine göre',
'Exercise progress': 'Egzersiz ilerlemesi',
'Top speed per workout': 'Antrenman başına en yüksek hız',
'Best set weight per workout': 'Antrenman başına en iyi set ağırlığı',
'Finish your first workout to see progress curves here. 📈': 'İlerleme eğrilerini görmek için ilk antrenmanını bitir. 📈',
'Recent workouts': 'Son antrenmanlar',
'Less time': 'Az',
'More time': 'Çok',
'No data yet': 'Henüz veri yok',
'Your weekly routine': 'Haftalık rutinin',
'Week schedule': 'Hafta programı',
'Routines': 'Rutinler',
'No routines yet.': 'Henüz rutin yok.',
'Create one or load the starter plan.': 'Bir tane oluştur ya da başlangıç planını yükle.',
'Load starter plan (Push / Pull / Legs)': 'Başlangıç planını yükle (Push / Pull / Bacak)',
'Superset with exercise above': 'Üstteki egzersizle süperset',
'No exercises yet — add your first one.': 'Henüz egzersiz yok — ilkini ekle.',
'Tip: tap 🔗 on an exercise to superset it with the one above — you’ll do them back-to-back.': 'İpucu: bir egzersizde 🔗 simgesine dokunarak üsttekiyle süperset yap — art arda yaparsın.',
'Delete routine?': 'Rutin silinsin mi?',
'“{0}” and its exercises will be removed.': '“{0}” ve egzersizleri kaldırılacak.',
'Delete routine': 'Rutini sil',
'{0} exercises with animations': 'animasyonlu {0} egzersiz',
'Search…': 'Ara…',
'No workouts yet.': 'Henüz antrenman yok.',
'Starter plan loaded — Mon Push · Wed Pull · Fri Legs': 'Başlangıç planı yüklendi — Pzt Push · Çar Pull · Cum Bacak',
'Enter a name': 'Bir isim gir',
'Profile created — data from this device moved into it ✓': 'Profil oluşturuldu — bu cihazdaki veriler profile taşındı ✓',
'Profile created — data moved into it ✓': 'Profil oluşturuldu — veriler taşındı ✓',
'Welcome, {0} 💪': 'Hoş geldin, {0} 💪',
'Welcome back, {0} 💪': 'Tekrar hoş geldin, {0} 💪',
'Registration failed': 'Kayıt başarısız',
'Sign-in failed': 'Giriş başarısız',
'Create your profile ✨': 'Profilini oluştur ✨',
'Pick a name, then confirm with {0}. The passkey is saved in your device — no password needed.': 'Bir isim seç, sonra {0} ile onayla. Geçiş anahtarı cihazına kaydedilir — şifre gerekmez.',
'Pick a name, then confirm with your device.': 'Bir isim seç, sonra cihazınla onayla.',
'Your name': 'İsmin',
'Create passkey': 'Geçiş anahtarı oluştur',
'Your workouts. Your weights. Your profile.': 'Senin antrenmanların. Senin ağırlıkların. Senin profilin.',
'Sign in with passkey': 'Geçiş anahtarıyla giriş yap',
'Create new profile': 'Yeni profil oluştur',
"This browser doesn't support passkeys — you can still use openGym locally on this device.": 'Bu tarayıcı geçiş anahtarlarını desteklemiyor — yine de openGym’i bu cihazda yerel olarak kullanabilirsin.',
'Continue without account': 'Hesapsız devam et',
'Passkeys use {0} — no passwords.': 'Geçiş anahtarları {0} kullanır — şifre yok.',
'Each profile keeps its own plan, workouts & body weight.': 'Her profilin kendi planı, antrenmanları ve vücut ağırlığı vardır.',
'Account': 'Hesap',
'Signed in with passkey — data syncs to this profile.': 'Geçiş anahtarıyla giriş yapıldı — veriler bu profille eşitlenir.',
'Sign out?': 'Çıkış yapılsın mı?',
'Your data is synced to your profile first, then cleared from this device.': 'Verilerin önce profiline eşitlenir, sonra bu cihazdan silinir.',
'Sign out': 'Çıkış yap',
'Guest mode — data lives only in this browser. Create a passkey profile to keep it safe and separate per person.': 'Misafir modu — veriler sadece bu tarayıcıda yaşar. Güvende tutmak ve kişi başına ayırmak için geçiş anahtarlı profil oluştur.',
'Create passkey profile': 'Geçiş anahtarlı profil oluştur',
'Passkeys not supported in this browser.': 'Bu tarayıcıda geçiş anahtarları desteklenmiyor.',
'Appearance': 'Görünüm',
'synced with your profile': 'profilinle eşitlenir',
'Language': 'Dil',
"Exercise instructions aren't available in this language yet — they stay in English.": 'Egzersiz talimatları bu dilde henüz yok — İngilizce kalır.',
'Theme': 'Tema',
'Dark': 'Koyu',
'Light': 'Açık',
'Accent color': 'Vurgu rengi',
'Units & timer': 'Birimler ve sayaç',
'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.',
'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.',
'Delete everything': 'Her şeyi sil',
'All data reset': 'Tüm veriler sıfırlandı',
'Backup exported ✓': 'Yedek dışa aktarıldı ✓',
'Import backup?': 'Yedek içe aktarılsın mı?',
'This replaces all current data with the backup file.': 'Bu, mevcut tüm verileri yedek dosyasıyla değiştirir.',
'Backup imported ✓': 'Yedek içe aktarıldı ✓',
'Import failed: {0}': 'İçe aktarma başarısız: {0}',
'Tip': 'İpucu',
'In Chrome: ⋮ menu → Add to Home screen': 'Chrome’da: ⋮ menü → Ana ekrana ekle',
'In Safari: Share → Add to Home Screen': 'Safari’de: Paylaş → Ana Ekrana Ekle',
'to install openGym as a full-screen app.': 'ile openGym’i tam ekran uygulama olarak kurabilirsin.',
'Your data syncs with your profile — sign in anywhere to see it.': 'Verilerin profilinle eşitlenir — görmek için herhangi bir yerden giriş yap.',
'Guest data stays on this device — export a backup now and then!': 'Misafir verileri bu cihazda kalır — arada bir yedek al!',
'free & open source (AGPL v3)': 'ücretsiz ve açık kaynak (AGPL v3)',
'Notifications': 'Bildirimler',
'Not supported in this browser.': 'Bu tarayıcıda desteklenmiyor.',
'Push notifications': 'Anlık bildirimler',
'Rest-timer alerts, even if openGym is closed.': 'openGym kapalıyken bile dinlenme sayacı uyarıları.',
'Workout day reminder': 'Antrenman günü hatırlatıcısı',
'Reminder time': 'Hatırlatma saati',
"Only sent on days you have a routine planned and haven't logged a workout yet.": 'Sadece rutin planlanmış ve henüz antrenman kaydedilmemiş günlerde gönderilir.',
'Timezone: {0} (auto-detected, updates if you travel).': 'Saat dilimi: {0} (otomatik algılanır, seyahatte güncellenir).',
'Send test notification': 'Test bildirimi gönder',
'Test sent — should arrive any second': 'Test gönderildi — her an gelebilir',
'Test failed': 'Test başarısız',
'Notifications off': 'Bildirimler kapalı',
'Notifications on 🔔': 'Bildirimler açık 🔔',
'Could not change notification settings': 'Bildirim ayarları değiştirilemedi',
'tap to pause': 'duraklatmak için dokun',
'tap to play': 'oynatmak için dokun',
'back': 'sırt', 'cardio': 'kardiyo', 'chest': 'göğüs', 'lower arms': 'ön kollar',
'lower legs': 'baldırlar', 'neck': 'boyun', 'shoulders': 'omuzlar',
'upper arms': 'üst kollar', 'upper legs': 'bacaklar', 'waist': 'karın',
'assisted': 'destekli', 'band': 'bant', 'barbell': 'halter', 'body weight': 'vücut ağırlığı',
'bosu ball': 'bosu topu', 'cable': 'kablo', 'dumbbell': 'dambıl',
'elliptical machine': 'eliptik bisiklet', 'ez barbell': 'EZ bar', 'hammer': 'çekiç',
'kettlebell': 'kettlebell', 'leverage machine': 'kaldıraçlı makine', 'medicine ball': 'sağlık topu',
'olympic barbell': 'olimpik halter', 'resistance band': 'direnç bandı', 'roller': 'silindir',
'rope': 'ip', 'skierg machine': 'SkiErg', 'sled machine': 'kızak',
'smith machine': 'Smith makinesi', 'stability ball': 'pilates topu', 'stationary bike': 'kondisyon bisikleti',
'stepmill machine': 'merdiven makinesi', 'tire': 'lastik', 'trap bar': 'trap bar',
'upper body ergometer': 'üst vücut ergometresi', 'weighted': 'ağırlıklı', 'wheel roller': 'karın tekeri',
'abductors': 'dış bacak kasları', 'abs': 'karın kasları', 'adductors': 'iç bacak kasları', 'biceps': 'biseps',
'calves': 'baldırlar', 'cardiovascular system': 'kalp-damar sistemi', 'delts': 'omuz kasları',
'forearms': 'ön kollar', 'glutes': 'kalça kasları', 'hamstrings': 'arka bacak kasları', 'lats': 'kanat kasları',
'levator scapulae': 'kürek kaldırıcı kas', 'pectorals': 'göğüs kasları', 'quads': 'ön bacak kasları',
'serratus anterior': 'testere kası', 'spine': 'omurga', 'traps': 'trapez kasları',
'triceps': 'triseps', 'upper back': 'üst sırt',
'abdominals': 'karın kasları', 'ankle stabilizers': 'ayak bileği dengeleyicileri', 'ankles': 'ayak bilekleri',
'brachialis': 'brakiyalis', 'core': 'merkez bölge', 'deltoids': 'deltoidler', 'feet': 'ayaklar',
'grip muscles': 'kavrama kasları', 'groin': 'kasık', 'hands': 'eller', 'hip flexors': 'kalça fleksörleri',
'inner thighs': 'iç uyluklar', 'latissimus dorsi': 'latissimus dorsi', 'lower abs': 'alt karın',
'lower back': 'bel', 'obliques': 'yan karın kasları', 'quadriceps': 'kuadriseps',
'rear deltoids': 'arka omuz', 'rhomboids': 'romboidler', 'rotator cuff': 'rotator manşet',
'shins': 'kaval kemikleri', 'soleus': 'soleus', 'sternocleidomastoid': 'boyun kası',
'trapezius': 'trapez', 'upper chest': 'üst göğüs', 'wrist extensors': 'bilek ekstansörleri',
'wrist flexors': 'bilek fleksörleri', 'wrists': 'bilekler',
// --- custom exercises (#11) ---
'Create your own exercise': 'Kendi egzersizini oluştur',
'Edit custom exercise': 'Özel egzersizi düzenle',
'Name it and pick a body part — it behaves like any other exercise, just without an animation.': 'Bir ad ver ve bölge seç — animasyon dışında diğer egzersizler gibi çalışır.',
'Exercise name': 'Egzersiz adı',
'name + body part, no animation': 'ad + vücut bölgesi, animasyonsuz',
'Create exercise': 'Egzersiz oluştur',
'Give it a name': 'Bir ad ver',
'Pick a body part': 'Bir vücut bölgesi seç',
'“{0}” already exists': '“{0}” zaten var',
'“{0}” created ✓': '“{0}” oluşturuldu ✓',
'Cardio exercises log time + speed instead of weight × reps.': 'Kardiyo egzersizleri ağırlık × tekrar yerine süre + hız kaydeder.',
'custom': 'özel',
'Edit': 'Düzenle',
'Saved ✓': 'Kaydedildi ✓',
'Delete “{0}”?': '“{0}” silinsin mi?',
'It will be removed from your routines. Already-logged workouts keep their sets.': 'Rutinlerinden kaldırılacak. Kayıtlı antrenmanlar setlerini korur.',
'Exercise deleted': 'Egzersiz silindi',
'Finish your current workout first': 'Önce mevcut antrenmanını bitir',
'Description (optional) — setup, cues, anything you want to remember': 'Açıklama (isteğe bağlı) — kurulum, ipuçları, hatırlamak istediklerin',
'Delete exercise': 'Egzersizi sil',
'Edit or delete this exercise': 'Bu egzersizi düzenle veya sil',
'Remove from routine': 'Rutinden çıkar'
}
+336
View File
@@ -0,0 +1,336 @@
// Simplified Chinese UI strings. Keys are the English source strings (see lib/i18n.js).
export default {
'Confirm': '确认',
'Cancel': '取消',
'Delete': '删除',
'Save': '保存',
'Import': '导入',
'Discard': '放弃',
'All': '全部',
'Rest': '休息',
'On': '开',
'Off': '关',
'On 🔔': '开 🔔',
'Off 🔕': '关 🔕',
'Skip': '跳过',
'New': '新建',
'Log': '记录',
'Goal': '目标',
'Plan': '计划',
'Today': '今天',
'Home': '首页',
'Start': '开始',
'Resume': '继续',
'Stats': '统计',
'Exercises': '动作库',
'History': '历史',
'Settings': '设置',
'Freestyle': '自由训练',
'Routine': '训练日',
'routine': '训练日',
'Cardio': '有氧',
'Superset': '超级组',
'last': '上次',
'rescheduled': '已改期',
'Prev': '上一个',
'Next': '下一个',
'Sunday': '星期日', 'Monday': '星期一', 'Tuesday': '星期二', 'Wednesday': '星期三',
'Thursday': '星期四', 'Friday': '星期五', 'Saturday': '星期六',
'Su': '日', 'Mo': '一', 'Tu': '二', 'We': '三', 'Th': '四', 'Fr': '五', 'Sa': '六',
'Mon': '周一', 'Wed': '周三', 'Fri': '周五',
'Jan': '1月', 'Feb': '2月', 'Mar': '3月', 'Apr': '4月', 'May': '5月', 'Jun': '6月',
'Jul': '7月', 'Aug': '8月', 'Sep': '9月', 'Oct': '10月', 'Nov': '11月', 'Dec': '12月',
'January': '一月', 'February': '二月', 'March': '三月', 'April': '四月',
'June': '六月', 'July': '七月', 'August': '八月', 'September': '九月',
'October': '十月', 'November': '十一月', 'December': '十二月',
'Quick check-in ⚖️': '快速称重 ⚖️',
'Log body weight': '记录体重',
'Slide or tap to set your weight — tracked before every workout so your curve stays honest.': '滑动或点按设置体重——每次训练前记录,让你的曲线保持真实。',
'Save & start workout': '保存并开始训练',
'Skip today': '今天跳过',
'↺ Choose a different workout': '↺ 选择其他训练',
'Recent weigh-ins': '最近称重',
'Enter a valid weight': '请输入有效的重量',
'Weight saved ✓': '体重已保存 ✓',
'Target weight 🎯': '目标体重 🎯',
'Your goal is drawn as a line through the weight charts, and gains/losses are colored by whether they move toward it.': '目标会以一条线显示在体重图表中,增减会根据是否朝目标靠近来着色。',
'Save goal': '保存目标',
'Goal set: {0}': '目标已设置:{0}',
'{0} to go': '还差 {0}',
'Goal removed': '目标已移除',
'Remove goal': '移除目标',
'Body weight': '体重',
'reached! 🎉': '已达成!🎉',
'{0} to gain': '还需增重 {0}',
'{0} to lose': '还需减重 {0}',
"No entries yet — log your weight to start the curve. It's also asked before every workout.": '还没有记录——记录体重以开始曲线。每次训练前也会询问。',
'Best:': '最佳:',
'+ Add to my plan': '+ 加入我的计划',
'How to': '动作要领',
'instructions in English': '说明为英文',
'New routine': '新训练日',
'Add “{0}”': '添加“{0}”',
'“{0}” added to {1} ✓': '“{0}”已加入 {1} ✓',
'Pick a routine — sets, reps & weight come next.': '选择一个训练日——组数、次数和重量随后设置。',
'{0} exercises': '{0} 个动作',
'already in': '已包含',
'Create one and start with this exercise': '新建一个并从这个动作开始',
'Add exercise': '添加动作',
'Search {0} exercises…': '搜索 {0} 个动作…',
'Chosen': '常用',
'Nothing chosen yet — add exercises and they’ll show up here.': '还没有常用动作——添加后会显示在这里。',
'No match 🤷': '没有匹配 🤷',
'Show more': '显示更多',
'Intervals': '间歇数',
'Minutes': '分钟',
'Speed (km/h)': '速度(km/h)',
'Sets': '组数',
'Reps': '次数',
'Weight ({0})': '重量({0})',
'Add to routine': '加入训练日',
'Remove exercise': '移除动作',
'Pick an emoji': '选择表情',
'Back to weekly plan': '恢复每周计划',
'{0} set to rest': '{0} 已设为休息',
'{0} planned for {1} ✓': '{0} 已安排在 {1} ✓',
'Weekly plan:': '每周计划:',
'changed for this day': '此日已更改',
'Sick, missed a day or want a different session? Pick what to train instead.': '生病、错过一天或想换个训练?选择改练什么。',
'Rest / skip this day': '休息 / 跳过这天',
'Rest day': '休息日',
'{0} workout': '{0} 次训练',
'{0} workouts': '{0} 次训练',
'No workouts this month': '本月没有训练',
'Trained': '已训练',
'Planned': '已计划',
'Rescheduled': '已改期',
'Tap a trained day for details · tap any other day to plan a session': '点按已训练的日期查看详情 · 点按其他日期安排训练',
'{0} sets': '{0} 组',
'no sets': '无组数',
'Delete workout?': '删除训练?',
'This removes it from your history for good.': '它将从历史中永久删除。',
'Workout deleted': '训练已删除',
'Delete workout': '删除训练',
'{0} done': '{0} 完成',
'Confirm the weight you worked with — your highest becomes the default next time.': '确认你使用的重量——最高值将成为下次的默认值。',
'Then finish the superset partner.': '然后完成超级组的另一个动作。',
'Previous best:': '之前最佳:',
'new record! 🏆': '新纪录!🏆',
'Save ✓': '保存 ✓',
'Save & next exercise ›': '保存并下一个动作 ›',
'Just close': '仅关闭',
'Save weight': '保存重量',
'Tracked — next time starts at {0} 📈': '已记录——下次从 {0} 开始 📈',
"That's the whole workout!": '训练全部完成!',
'Every exercise done — great work. Finish up, or keep going and add another exercise.': '所有动作都完成了——干得漂亮!结束训练,或继续添加新动作。',
'Finish workout 🏁': '结束训练 🏁',
'Continue workout': '继续训练',
'Keep going 💪 — tap “+ Add exercise” below': '继续加油 💪——点按下方“+ 添加动作”',
'Workout complete!': '训练完成!',
'Duration': '时长',
'Volume': '总量',
'PRs': '纪录',
'New PR:': '新纪录:',
'Nice! 💪': '太棒了!💪',
'Nothing logged yet': '还没有记录',
'You haven’t checked off any sets. Finish the workout anyway?': '你还没有勾选任何组。仍要结束训练吗?',
'Finish anyway': '仍然结束',
'Finish early?': '提前结束?',
'{0} set still unchecked. Finish the workout now?': '还有 {0} 组未勾选。现在结束训练吗?',
'{0} sets still unchecked. Finish the workout now?': '还有 {0} 组未勾选。现在结束训练吗?',
'Finish workout': '结束训练',
'Start workout': '开始训练',
'today is {0}': '今天是{0}',
'rest day, but no one’s stopping you': '休息日,但没人拦着你',
"Today's plan": '今日计划',
'Start {0} ▶': '开始{0} ▶',
'Other routines': '其他训练日',
'Start ▶': '开始 ▶',
'Freestyle workout (pick as you go)': '自由训练(边练边选)',
'Build a plan first': '先创建一个计划',
'Duration (min)': '时长(分钟)',
'Last time': '上次',
'Last time you hit all reps — try {0}': '上次完成了所有次数——试试 {0}',
'Weights bumped to {0} 💪': '重量已提升到 {0} 💪',
'Remove set': '减一组',
'Add set': '加一组',
'Cardio logged 🏃': '有氧已记录 🏃',
'Discard workout?': '放弃训练?',
'The sets you logged in this session will be lost.': '本次记录的组数将丢失。',
'Superset {0} / {1}': '超级组 {0} / {1}',
'Exercise {0} / {1}': '动作 {0} / {1}',
'Superset · do these back-to-back, rest after both': '超级组 · 连续完成,两个都做完再休息',
'Freestyle workout — add your first exercise.': '自由训练——添加你的第一个动作。',
'Finish workout early · {0} exercises': '提前结束 · {0} 个动作',
'Rest over — next set! 💪': '休息结束——下一组!💪',
'Hi {0} 💪': '你好,{0} 💪',
'This week': '本周',
'{0} — in progress': '{0}——进行中',
'Resume ▶': '继续 ▶',
'Welcome! 👋': '欢迎!👋',
'Set up your weekly routine to get going — or load a ready-made Push / Pull / Legs plan.': '设置每周计划开始训练——或加载现成的推 / 拉 / 腿计划。',
'Load starter plan (PPL)': '加载入门计划(PPL)',
'Build my own plan': '创建自己的计划',
'{0} week streak': '连续 {0} 周',
'this week': '本周',
'{0} workout total': '共 {0} 次训练',
'{0} workouts total': '共 {0} 次训练',
'Progress & history': '进度与历史',
'Workouts': '训练次数',
'This month': '本月',
'Week streak': '连续周数',
'Weight 30d': '体重 30 天',
'Activity — last 12 months': '活动——近 12 个月',
'by time trained': '按训练时间',
'Exercise progress': '动作进度',
'Top speed per workout': '每次训练最高速度',
'Best set weight per workout': '每次训练最佳组重量',
'Finish your first workout to see progress curves here. 📈': '完成第一次训练后,这里会显示进度曲线。📈',
'Recent workouts': '最近训练',
'Less time': '少',
'More time': '多',
'No data yet': '暂无数据',
'Your weekly routine': '你的每周安排',
'Week schedule': '每周日程',
'Routines': '训练日',
'No routines yet.': '还没有训练日。',
'Create one or load the starter plan.': '创建一个或加载入门计划。',
'Load starter plan (Push / Pull / Legs)': '加载入门计划(推 / 拉 / 腿)',
'Superset with exercise above': '与上面的动作组成超级组',
'No exercises yet — add your first one.': '还没有动作——添加第一个吧。',
'Tip: tap 🔗 on an exercise to superset it with the one above — you’ll do them back-to-back.': '提示:点按动作上的 🔗 可与上面的动作组成超级组——你将连续完成它们。',
'Delete routine?': '删除训练日?',
'“{0}” and its exercises will be removed.': '“{0}”及其动作将被移除。',
'Delete routine': '删除训练日',
'{0} exercises with animations': '{0} 个带动画的动作',
'Search…': '搜索…',
'No workouts yet.': '还没有训练。',
'Starter plan loaded — Mon Push · Wed Pull · Fri Legs': '入门计划已加载——周一推 · 周三拉 · 周五腿',
'Enter a name': '请输入名字',
'Profile created — data from this device moved into it ✓': '档案已创建——本设备数据已转入 ✓',
'Profile created — data moved into it ✓': '档案已创建——数据已转入 ✓',
'Welcome, {0} 💪': '欢迎,{0} 💪',
'Welcome back, {0} 💪': '欢迎回来,{0} 💪',
'Registration failed': '注册失败',
'Sign-in failed': '登录失败',
'Create your profile ✨': '创建你的档案 ✨',
'Pick a name, then confirm with {0}. The passkey is saved in your device — no password needed.': '取个名字,然后用{0}确认。通行密钥保存在你的设备上——无需密码。',
'Pick a name, then confirm with your device.': '取个名字,然后用设备确认。',
'Your name': '你的名字',
'Create passkey': '创建通行密钥',
'Your workouts. Your weights. Your profile.': '你的训练。你的重量。你的档案。',
'Sign in with passkey': '用通行密钥登录',
'Create new profile': '创建新档案',
"This browser doesn't support passkeys — you can still use openGym locally on this device.": '此浏览器不支持通行密钥——你仍可在本设备上本地使用 openGym。',
'Continue without account': '不用账号继续',
'Passkeys use {0} — no passwords.': '通行密钥使用{0}——没有密码。',
'Each profile keeps its own plan, workouts & body weight.': '每个档案有自己的计划、训练和体重。',
'Account': '账号',
'Signed in with passkey — data syncs to this profile.': '已用通行密钥登录——数据同步到此档案。',
'Sign out?': '退出登录?',
'Your data is synced to your profile first, then cleared from this device.': '数据会先同步到档案,然后从本设备清除。',
'Sign out': '退出登录',
'Guest mode — data lives only in this browser. Create a passkey profile to keep it safe and separate per person.': '访客模式——数据只保存在此浏览器。创建通行密钥档案以保护数据并按人区分。',
'Create passkey profile': '创建通行密钥档案',
'Passkeys not supported in this browser.': '此浏览器不支持通行密钥。',
'Appearance': '外观',
'synced with your profile': '与档案同步',
'Language': '语言',
"Exercise instructions aren't available in this language yet — they stay in English.": '动作说明暂无此语言版本——保持英文。',
'Theme': '主题',
'Dark': '深色',
'Light': '浅色',
'Accent color': '强调色',
'Units & timer': '单位与计时',
'Weight unit': '重量单位',
'Rest timer': '休息计时',
'Sounds': '声音',
'Note: switching units only changes the label — logged numbers are not converted.': '注意:切换单位只改变标签——已记录的数字不会换算。',
'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.': '删除本设备上的计划、训练和体重。无法撤销。',
'Delete everything': '全部删除',
'All data reset': '所有数据已重置',
'Backup exported ✓': '备份已导出 ✓',
'Import backup?': '导入备份?',
'This replaces all current data with the backup file.': '这将用备份文件替换当前所有数据。',
'Backup imported ✓': '备份已导入 ✓',
'Import failed: {0}': '导入失败:{0}',
'Tip': '提示',
'In Chrome: ⋮ menu → Add to Home screen': '在 Chrome 中:⋮ 菜单 → 添加到主屏幕',
'In Safari: Share → Add to Home Screen': '在 Safari 中:分享 → 添加到主屏幕',
'to install openGym as a full-screen app.': '即可将 openGym 安装为全屏应用。',
'Your data syncs with your profile — sign in anywhere to see it.': '数据与档案同步——在任何地方登录都能看到。',
'Guest data stays on this device — export a backup now and then!': '访客数据仅保存在本设备——记得时常导出备份!',
'free & open source (AGPL v3)': '免费且开源(AGPL v3)',
'Notifications': '通知',
'Not supported in this browser.': '此浏览器不支持。',
'Push notifications': '推送通知',
'Rest-timer alerts, even if openGym is closed.': '休息计时提醒,即使 openGym 已关闭。',
'Workout day reminder': '训练日提醒',
'Reminder time': '提醒时间',
"Only sent on days you have a routine planned and haven't logged a workout yet.": '仅在安排了训练且尚未记录的日子发送。',
'Timezone: {0} (auto-detected, updates if you travel).': '时区:{0}(自动检测,旅行时自动更新)。',
'Send test notification': '发送测试通知',
'Test sent — should arrive any second': '测试已发送——马上就到',
'Test failed': '测试失败',
'Notifications off': '通知已关闭',
'Notifications on 🔔': '通知已开启 🔔',
'Could not change notification settings': '无法更改通知设置',
'tap to pause': '点按暂停',
'tap to play': '点按播放',
'back': '背部', 'cardio': '有氧', 'chest': '胸部', 'lower arms': '前臂',
'lower legs': '小腿', 'neck': '颈部', 'shoulders': '肩部',
'upper arms': '上臂', 'upper legs': '大腿', 'waist': '腰腹',
'assisted': '辅助', 'band': '弹力带', 'barbell': '杠铃', 'body weight': '自重',
'bosu ball': '波速球', 'cable': '绳索', 'dumbbell': '哑铃',
'elliptical machine': '椭圆机', 'ez barbell': '曲杆杠铃', 'hammer': '锤',
'kettlebell': '壶铃', 'leverage machine': '杠杆器械', 'medicine ball': '药球',
'olympic barbell': '奥杆', 'resistance band': '阻力带', 'roller': '滚轴',
'rope': '绳', 'skierg machine': '滑雪机', 'sled machine': '雪橇',
'smith machine': '史密斯机', 'stability ball': '健身球', 'stationary bike': '动感单车',
'stepmill machine': '爬楼机', 'tire': '轮胎', 'trap bar': '六角杠',
'upper body ergometer': '上肢功率车', 'weighted': '负重', 'wheel roller': '健腹轮',
'abductors': '髋外展肌', 'abs': '腹肌', 'adductors': '髋内收肌', 'biceps': '肱二头肌',
'calves': '小腿肌', 'cardiovascular system': '心血管系统', 'delts': '三角肌',
'forearms': '前臂', 'glutes': '臀肌', 'hamstrings': '腘绳肌', 'lats': '背阔肌',
'levator scapulae': '肩胛提肌', 'pectorals': '胸肌', 'quads': '股四头肌',
'serratus anterior': '前锯肌', 'spine': '脊柱', 'traps': '斜方肌',
'triceps': '肱三头肌', 'upper back': '上背部',
'abdominals': '腹肌', 'ankle stabilizers': '踝关节稳定肌', 'ankles': '脚踝',
'brachialis': '肱肌', 'core': '核心', 'deltoids': '三角肌', 'feet': '脚',
'grip muscles': '握力肌群', 'groin': '腹股沟', 'hands': '手', 'hip flexors': '髋屈肌',
'inner thighs': '大腿内侧', 'latissimus dorsi': '背阔肌', 'lower abs': '下腹',
'lower back': '下背部', 'obliques': '腹斜肌', 'quadriceps': '股四头肌',
'rear deltoids': '三角肌后束', 'rhomboids': '菱形肌', 'rotator cuff': '肩袖',
'shins': '胫部', 'soleus': '比目鱼肌', 'sternocleidomastoid': '胸锁乳突肌',
'trapezius': '斜方肌', 'upper chest': '上胸', 'wrist extensors': '腕伸肌',
'wrist flexors': '腕屈肌', 'wrists': '手腕',
// --- custom exercises (#11) ---
'Create your own exercise': '创建自己的动作',
'Edit custom exercise': '编辑自定义动作',
'Name it and pick a body part — it behaves like any other exercise, just without an animation.': '起个名字并选择身体部位——它和其他动作一样使用,只是没有动画。',
'Exercise name': '动作名称',
'name + body part, no animation': '名称 + 身体部位,无动画',
'Create exercise': '创建动作',
'Give it a name': '请输入名称',
'Pick a body part': '请选择身体部位',
'“{0}” already exists': '「{0}」已存在',
'“{0}” created ✓': '「{0}」已创建 ✓',
'Cardio exercises log time + speed instead of weight × reps.': '有氧动作记录时间 + 速度,而不是重量 × 次数。',
'custom': '自定义',
'Edit': '编辑',
'Saved ✓': '已保存 ✓',
'Delete “{0}”?': '删除「{0}」?',
'It will be removed from your routines. Already-logged workouts keep their sets.': '将从你的计划中移除。已记录的训练会保留其组数。',
'Exercise deleted': '动作已删除',
'Finish your current workout first': '请先完成当前训练',
'Description (optional) — setup, cues, anything you want to remember': '描述(可选)——设置、要点,任何你想记住的内容',
'Delete exercise': '删除动作',
'Edit or delete this exercise': '编辑或删除此动作',
'Remove from routine': '从计划中移除'
}
+192 -109
View File
@@ -1,10 +1,11 @@
import { useEffect, useRef, useState } from 'react'
import { useEffect, useState } from 'react'
import { useStore } from './store/useStore.js'
import { useUI } from './store/useUI.js'
import { EXDB, EXIDX, BODYPARTS, isCardio } from './lib/exercises.js'
import { EXDB, EXIDX, BODYPARTS, isCardio, allExercises } from './lib/exercises.js'
import { fmtDate, fmtNum, fmtVol, fmtDur, todayISO, uid, DAYN, MONTHS_LONG, ACCENTS } from './lib/format.js'
import { lastEntryFor, bestWeightFor, buildSets, effectiveRoutineId, workoutVolume, setsDone, setsDoneActive, lastBW, supersetUnits, unitOf, setLabel, defaultConfig } from './lib/history.js'
import { lastEntryFor, bestWeightFor, buildSets, effectiveRoutineId, workoutVolume, setsDone, setsDoneActive, lastBW, supersetUnits, unitOf, setLabel, defaultConfig, cleanupSg } from './lib/history.js'
import { beep, vibrate } from './lib/sound.js'
import { t, instrFor, getLang, INSTR_LANGS } from './lib/i18n.js'
import { nav } from './lib/nav.js'
import Media, { Thumb } from './components/Media.jsx'
import Stepper from './components/Stepper.jsx'
@@ -20,9 +21,9 @@ function ConfirmDialog({ title, message, confirmText, cancelText, danger, onConf
return <div style={{ textAlign: 'center', padding: '4px 0' }}>
{title && <h3 style={{ marginBottom: 8 }}>{title}</h3>}
<div className="muted" style={{ marginBottom: 18, lineHeight: 1.5 }}>{message}</div>
<button className={'btn ' + (danger ? 'danger' : 'primary')} onClick={() => { close(); onConfirm && onConfirm() }}>{confirmText || 'Confirm'}</button>
<button className={'btn ' + (danger ? 'danger' : 'primary')} onClick={() => { close(); onConfirm && onConfirm() }}>{confirmText || t('Confirm')}</button>
<div style={{ height: 8 }} />
<button className="btn ghost dim" onClick={close}>{cancelText || 'Cancel'}</button>
<button className="btn ghost dim" onClick={close}>{cancelText || t('Cancel')}</button>
</div>
}
// Themed replacement for window.confirm — callback-based (no blocking).
@@ -40,25 +41,34 @@ export function loadStarterPlan() {
st.routines.push(push, pull, legs)
st.week[1] = push.id; st.week[3] = pull.id; st.week[5] = legs.id
})
toast('Starter plan loaded — Mon Push · Wed Pull · Fri Legs')
toast(t('Starter plan loaded — Mon Push · Wed Pull · Fri Legs'))
}
/* ============================ weight picker (shared: body weight + goal) ============================ */
// Fixed range, not a moving window — a window that resizes itself mid-drag (the previous
// attempt) makes the thumb's position unpredictable: every time it grows, everything already
// placed on it shifts toward one side. A static range never has that problem, at the cost of
// coarser precision per pixel — the +/- buttons cover exact values.
const W_LO = 1, W_HI = 300
function WeightInput({ value, setValue, unit }) {
const clamp = x => Math.max(20, Math.min(300, Math.round((x || 0) * 10) / 10))
const range = useRef(null)
if (!range.current) { const s = value || 70; range.current = [Math.max(30, Math.round(s - 20)), Math.min(250, Math.round(s + 20))] }
const [lo, hi] = range.current
const sv = Math.max(lo, Math.min(hi, value))
const pct = ((sv - lo) / (hi - lo)) * 100
const clamp = x => Math.max(W_LO, Math.min(W_HI, Math.round((x || 0) * 10) / 10))
const sv = Math.max(W_LO, Math.min(W_HI, value))
const pct = ((sv - W_LO) / (W_HI - W_LO)) * 100
const onSlide = v => setValue(clamp(v))
return <>
<div className="bwstep">
<button className="bw-pm" onClick={() => setValue(p => clamp(p - 0.1))} aria-label="minus">−</button>
<button className="bw-pm" onClick={() => onSlide(value - 0.1)} aria-label="minus 0.1">−</button>
<div className="bw-read">{fmtNum(value)}<span className="u"> {unit}</span></div>
<button className="bw-pm" onClick={() => setValue(p => clamp(p + 0.1))} aria-label="plus">+</button>
<button className="bw-pm" onClick={() => onSlide(value + 0.1)} aria-label="plus 0.1">+</button>
</div>
<input className="bw-slider" type="range" min={lo} max={hi} step="0.1" value={sv}
onChange={e => setValue(clamp(parseFloat(e.target.value)))}
<div className="chips" style={{ justifyContent: 'center', margin: '8px 0' }}>
<button className="chip" onClick={() => onSlide(value - 1)}>−1</button>
<button className="chip" onClick={() => onSlide(value - 0.5)}>−0.5</button>
<button className="chip" onClick={() => onSlide(value + 0.5)}>+0.5</button>
<button className="chip" onClick={() => onSlide(value + 1)}>+1</button>
</div>
<input className="bw-slider" type="range" min={W_LO} max={W_HI} step="0.5" value={sv}
onChange={e => onSlide(parseFloat(e.target.value))}
style={{ '--track': `linear-gradient(90deg, var(--acc) ${pct}%, var(--bg2) ${pct}%)` }} />
</>
}
@@ -71,7 +81,7 @@ function BwSheet({ required, onDone, close }) {
const [v, setV] = useState(bw ? bw.w : 70)
const save = () => {
const n = Math.round((v || 0) * 10) / 10
if (!n || n <= 0) { toast('Enter a valid weight'); return }
if (!n || n <= 0) { toast(t('Enter a valid weight')); return }
update(s => {
const iso = todayISO()
const ex = s.bodyweight.find(b => b.d === iso)
@@ -79,22 +89,22 @@ function BwSheet({ required, onDone, close }) {
s.bodyweight.sort((a, b) => (a.d < b.d ? -1 : 1))
})
close()
if (onDone) onDone(n); else toast('Weight saved ✓')
if (onDone) onDone(n); else toast(t('Weight saved ✓'))
}
const recent = [...st.bodyweight].reverse().slice(0, 3)
const delEntry = d => update(s => { s.bodyweight = s.bodyweight.filter(b => b.d !== d) })
return <>
<h3>{required ? 'Quick check-in ⚖️' : 'Log body weight'}</h3>
<div className="muted small">{required ? 'Slide or tap to set your weight — tracked before every workout so your curve stays honest.' : 'Today, ' + fmtDate(todayISO(), true)}</div>
<h3>{required ? t('Quick check-in ⚖️') : t('Log body weight')}</h3>
<div className="muted small">{required ? t('Slide or tap to set your weight — tracked before every workout so your curve stays honest.') : t('Today') + ', ' + fmtDate(todayISO(), true)}</div>
<WeightInput value={v} setValue={setV} unit={unit} />
<div style={{ height: 14 }} />
<button className="btn primary" onClick={save}>{required ? 'Save & start workout' : 'Save'}</button>
<button className="btn primary" onClick={save}>{required ? t('Save & start workout') : t('Save')}</button>
{required && <>
<div style={{ height: 8 }} /><button className="btn ghost dim" onClick={() => { close(); onDone && onDone(null) }}>Skip today</button>
<div style={{ height: 2 }} /><button className="btn ghost dim" onClick={() => { close(); nav('/workout') }}>↺ Choose a different workout</button>
<div style={{ height: 8 }} /><button className="btn ghost dim" onClick={() => { close(); onDone && onDone(null) }}>{t('Skip today')}</button>
<div style={{ height: 2 }} /><button className="btn ghost dim" onClick={() => { close(); nav('/workout') }}>{t('↺ Choose a different workout')}</button>
</>}
{!required && recent.length > 0 && <>
<h4 className="sec">Recent weigh-ins</h4>
<h4 className="sec">{t('Recent weigh-ins')}</h4>
<div className="list" style={{ gap: 0 }}>
{recent.map(b => <div key={b.d} className="row between" style={{ padding: '9px 2px', borderBottom: '1px solid var(--bg2)' }}>
<span className="small muted">{fmtDate(b.d, true)}</span>
@@ -122,23 +132,23 @@ function GoalSheet({ close }) {
const bw = lastBW(st)
const [v, setV] = useState(st.targetW || (bw ? bw.w : 70))
return <>
<h3>Target weight 🎯</h3>
<div className="muted small">Your goal is drawn as a line through the weight charts, and gains/losses are colored by whether they move toward it.</div>
<h3>{t('Target weight 🎯')}</h3>
<div className="muted small">{t('Your goal is drawn as a line through the weight charts, and gains/losses are colored by whether they move toward it.')}</div>
<WeightInput value={v} setValue={setV} unit={st.unit} />
<div style={{ height: 14 }} />
<button className="btn primary" onClick={() => {
const n = Math.round((v || 0) * 10) / 10
if (!n || n <= 0) { toast('Enter a valid weight'); return }
if (!n || n <= 0) { toast(t('Enter a valid weight')); return }
update(s => { s.targetW = n }); close()
const b = lastBW(S()); toast('Goal set: ' + fmtNum(n) + ' ' + st.unit + (b ? ' (' + fmtNum(Math.abs(n - b.w)) + ' to go)' : ''))
}}>Save goal</button>
{st.targetW && <><div style={{ height: 8 }} /><button className="btn danger" onClick={() => { update(s => { s.targetW = null }); close(); toast('Goal removed') }}>Remove goal</button></>}
const b = lastBW(S()); toast(t('Goal set: {0}', fmtNum(n) + ' ' + st.unit) + (b ? ' (' + t('{0} to go', fmtNum(Math.abs(n - b.w))) + ')' : ''))
}}>{t('Save goal')}</button>
{st.targetW && <><div style={{ height: 8 }} /><button className="btn danger" onClick={() => { update(s => { s.targetW = null }); close(); toast(t('Goal removed')) }}>{t('Remove goal')}</button></>}
</>
}
export const goalSheet = () => ui().openSheet(close => <GoalSheet close={close} />)
/* ============================ exercise detail ============================ */
function ExerciseDetail({ ex }) {
function ExerciseDetail({ ex, close }) {
const st = useStore(s => s.S)
const last = lastEntryFor(st, ex.id)
const best = bestWeightFor(st, ex.id)
@@ -146,17 +156,22 @@ function ExerciseDetail({ ex }) {
<h3 className="capitalize">{ex.n}</h3>
<Media ex={ex} />
<div className="row" style={{ gap: 6, flexWrap: 'wrap', margin: '10px 0' }}>
<span className="tag acc">{ex.bp}</span>
{ex.tg && <span className="tag">🎯 {ex.tg}</span>}
<span className="tag">🛠 {ex.eq}</span>
{(ex.sm || []).slice(0, 3).map((s, i) => <span key={i} className="tag">{s}</span>)}
<span className="tag acc">{t(ex.bp)}</span>
{ex.tg && <span className="tag">🎯 {t(ex.tg)}</span>}
<span className="tag">🛠 {t(ex.eq)}</span>
{(ex.sm || []).slice(0, 3).map((s, i) => <span key={i} className="tag">{t(s)}</span>)}
</div>
{best > 0 && <div className="small" style={{ marginBottom: 6 }}>🏆 Best: <b className="accent">{fmtNum(best)} {st.unit}</b>{last ? ` · last ${fmtDate(last.d)}: ${last.sets.map(s => setLabel(ex.id, s)).join(', ')}` : ''}</div>}
<button className="btn primary" style={{ margin: '10px 0 4px' }} onClick={() => addToRoutineSheet(ex)}>+ Add to my plan</button>
{ex.st && ex.st.length > 0 && <><h4 className="sec">How to</h4><ol className="steps-list">{ex.st.map((s, i) => <li key={i}>{s}</li>)}</ol></>}
{ex.desc && <div className="exnote">{ex.desc}</div>}
{best > 0 && <div className="small" style={{ marginBottom: 6 }}>🏆 {t('Best:')} <b className="accent">{fmtNum(best)} {st.unit}</b>{last ? ` · ${t('last')} ${fmtDate(last.d)}: ${last.sets.map(s => setLabel(ex.id, s)).join(', ')}` : ''}</div>}
<button className="btn primary" style={{ margin: '10px 0 4px' }} onClick={() => addToRoutineSheet(ex)}>{t('+ Add to my plan')}</button>
{ex.custom && <div className="row" style={{ gap: 8, marginTop: 8 }}>
<button className="btn" style={{ flex: 1 }} onClick={() => { close(); customExSheet(ex) }}>✏️ {t('Edit')}</button>
<button className="btn danger" style={{ flex: 1 }} onClick={() => deleteCustomEx(ex, close)}>🗑 {t('Delete')}</button>
</div>}
{instrFor(ex).length > 0 && <><h4 className="sec">{t('How to')}{!INSTR_LANGS.includes(getLang()) && <span className="dim" style={{ textTransform: 'none', letterSpacing: 0 }}> · {t('instructions in English')}</span>}</h4><ol className="steps-list">{instrFor(ex).map((s, i) => <li key={i}>{s}</li>)}</ol></>}
</>
}
export const exerciseDetailSheet = ex => ui().openSheet(() => <ExerciseDetail ex={ex} />)
export const exerciseDetailSheet = ex => ui().openSheet(close => <ExerciseDetail ex={ex} close={close} />)
/* ============================ add to routine ============================ */
function AddToRoutine({ ex, close }) {
@@ -166,31 +181,92 @@ function AddToRoutine({ ex, close }) {
const isNew = rid === '_new'
exConfigSheet(ex, null, cfg => {
update(s => {
let r = isNew ? { id: uid(), name: 'New routine', emoji: '💪', ex: [] } : s.routines.find(x => x.id === rid)
let r = isNew ? { id: uid(), name: t('New routine'), emoji: '💪', ex: [] } : s.routines.find(x => x.id === rid)
if (isNew) s.routines.push(r)
if (r) r.ex.push({ id: ex.id, ...cfg })
})
const r = isNew ? S().routines[S().routines.length - 1] : st.routines.find(x => x.id === rid)
toast('“' + ex.n + '” added to ' + (r ? r.name : 'routine') + ' ✓')
toast(t('“{0}” added to {1} ✓', ex.n, r ? r.name : t('routine')))
if (isNew && r) nav('/plan/r/' + r.id)
})
}
return <>
<h3 className="capitalize">Add “{ex.n}”</h3>
<div className="muted small" style={{ marginBottom: 12 }}>Pick a routine — sets, reps & weight come next.</div>
<h3 className="capitalize">{t('Add “{0}”', ex.n)}</h3>
<div className="muted small" style={{ marginBottom: 12 }}>{t('Pick a routine — sets, reps & weight come next.')}</div>
<div className="list">
{st.routines.map(r => <div key={r.id} className="item" onClick={() => pick(r.id)}>
<div style={{ fontSize: '1.3rem', flex: 'none' }}>{r.emoji || '💪'}</div>
<div className="grow"><div className="tt">{r.name}</div><div className="ss">{r.ex.length} exercises</div></div>
{r.ex.some(e => e.id === ex.id) && <span className="tag">already in</span>}<span className="chev">+</span>
<div className="grow"><div className="tt">{r.name}</div><div className="ss">{t('{0} exercises', r.ex.length)}</div></div>
{r.ex.some(e => e.id === ex.id) && <span className="tag">{t('already in')}</span>}<span className="chev">+</span>
</div>)}
<div className="item" onClick={() => pick('_new')}><div style={{ fontSize: '1.3rem', flex: 'none' }}>✨</div>
<div className="grow"><div className="tt">New routine</div><div className="ss">Create one and start with this exercise</div></div><span className="chev">+</span></div>
<div className="grow"><div className="tt">{t('New routine')}</div><div className="ss">{t('Create one and start with this exercise')}</div></div><span className="chev">+</span></div>
</div>
</>
}
export const addToRoutineSheet = ex => ui().openSheet(close => <AddToRoutine ex={ex} close={close} />)
/* ============================ custom exercises (issue #11) ============================ */
// Name + body part is all it takes — the exercise then behaves like any built-in one
// (planning, logging, PRs, stats), just without an animation.
function CustomExForm({ existing, prefill, onDone, close }) {
const [n, setN] = useState(existing ? existing.n : (prefill || ''))
const [bp, setBp] = useState(existing ? existing.bp : '')
const [desc, setDesc] = useState(existing ? (existing.desc || '') : '')
const save = () => {
const name = n.trim()
if (!name) { toast(t('Give it a name')); return }
if (!bp) { toast(t('Pick a body part')); return }
const dup = allExercises(S()).find(e => e.n.toLowerCase() === name.toLowerCase() && e.id !== (existing || {}).id)
if (dup) { toast(t('“{0}” already exists', dup.n)); return }
const d = desc.trim().slice(0, 1000)
let id = existing && existing.id
if (existing) update(s => { const c = (s.customEx || []).find(x => x.id === id); if (c) { c.n = name; c.bp = bp; c.desc = d } })
else {
id = 'c' + uid()
update(s => { (s.customEx = s.customEx || []).push({ id, n: name, bp, desc: d, tg: '', eq: 'custom', custom: true }) })
}
close()
toast(existing ? t('Saved ✓') : t('“{0}” created ✓', name))
onDone && onDone(EXIDX[id])
}
return <>
<h3>{existing ? t('Edit custom exercise') : t('Create your own exercise')}</h3>
<div className="muted small" style={{ marginBottom: 12 }}>{t('Name it and pick a body part — it behaves like any other exercise, just without an animation.')}</div>
<input className="input" placeholder={t('Exercise name')} value={n} onChange={e => setN(e.target.value)} />
<div className="chips" style={{ margin: '12px 0' }}>
{BODYPARTS.map(b => <button key={b} className={'chip' + (bp === b ? ' on' : '')} onClick={() => setBp(b)}>{t(b)}</button>)}
</div>
{bp === 'cardio' && <div className="small dim" style={{ marginBottom: 10 }}>🏃 {t('Cardio exercises log time + speed instead of weight × reps.')}</div>}
<textarea className="input" rows={4} maxLength={1000} placeholder={t('Description (optional) — setup, cues, anything you want to remember')}
value={desc} onChange={e => setDesc(e.target.value)} />
<div style={{ height: 14 }} />
<button className="btn primary" onClick={save}>{existing ? t('Save') : t('Create exercise')}</button>
{existing && <><div style={{ height: 8 }} /><button className="btn danger" onClick={() => { close(); deleteCustomEx(existing) }}>🗑 {t('Delete exercise')}</button></>}
</>
}
export const customExSheet = (existing, onDone, prefill) => ui().openSheet(close => <CustomExForm existing={existing} prefill={prefill} onDone={onDone} close={close} />)
export function deleteCustomEx(ex, afterDelete) {
if (S().active?.entries.some(e => e.id === ex.id)) { toast(t('Finish your current workout first')); return }
confirmSheet({
title: t('Delete “{0}”?', ex.n),
message: t('It will be removed from your routines. Already-logged workouts keep their sets.'),
confirmText: t('Delete'), danger: true,
onConfirm: () => {
update(s => {
s.customEx = (s.customEx || []).filter(x => x.id !== ex.id)
s.routines.forEach(r => { r.ex = r.ex.filter(e => e.id !== ex.id); cleanupSg(r.ex) })
// stamp the name into history entries so past workouts stay readable
s.workouts.forEach(w => w.entries.forEach(e => { if (e.id === ex.id) e.n = ex.n }))
delete s.exWeights[ex.id]
})
toast(t('Exercise deleted'))
afterDelete && afterDelete()
}
})
}
/* ============================ exercise picker ============================ */
// Exercises already used in your routines or past workouts (for the "Chosen" filter + a marker).
function usageMap(st) {
@@ -206,28 +282,33 @@ function ExercisePicker({ onPick, close }) {
const [bp, setBp] = useState('') // '' = all, '★' = chosen, else a body part
const [shown, setShown] = useState(50)
const ql = q.toLowerCase().trim()
let f = EXDB.filter(e =>
const all = allExercises(st)
let f = all.filter(e =>
(bp === '★' ? usage[e.id] : (!bp || e.bp === bp)) &&
(!ql || e.n.includes(ql) || e.tg.includes(ql) || e.eq.includes(ql)))
(!ql || e.n.toLowerCase().includes(ql) || e.tg.includes(ql) || e.eq.includes(ql) || (e.desc || '').toLowerCase().includes(ql)))
if (bp === '★') f = [...f].sort((a, b) => (usage[b.id] - usage[a.id]) || (a.n < b.n ? -1 : 1))
const chosenCount = Object.keys(usage).length
return <>
<h3>Add exercise</h3>
<h3>{t('Add exercise')}</h3>
<div className="search"><svg viewBox="0 0 24 24"><circle cx="11" cy="11" r="7" /><path d="m21 21-4.3-4.3" /></svg>
<input className="input" placeholder={`Search ${EXDB.length} exercises…`} value={q} onChange={e => { setQ(e.target.value); setShown(50) }} /></div>
<input className="input" placeholder={t('Search {0} exercises…', all.length)} value={q} onChange={e => { setQ(e.target.value); setShown(50) }} /></div>
<div className="chips" style={{ margin: '10px 0' }}>
{chosenCount > 0 && <button className={'chip' + (bp === '★' ? ' on' : '')} onClick={() => { setBp('★'); setShown(50) }}>⭐ Chosen ({chosenCount})</button>}
<button className={'chip' + (!bp ? ' on' : '')} onClick={() => { setBp(''); setShown(50) }}>All</button>
{BODYPARTS.map(b => <button key={b} className={'chip' + (bp === b ? ' on' : '')} onClick={() => { setBp(b); setShown(50) }}>{b}</button>)}
{chosenCount > 0 && <button className={'chip' + (bp === '★' ? ' on' : '')} onClick={() => { setBp('★'); setShown(50) }}>⭐ {t('Chosen')} ({chosenCount})</button>}
<button className={'chip' + (!bp ? ' on' : '')} onClick={() => { setBp(''); setShown(50) }}>{t('All')}</button>
{BODYPARTS.map(b => <button key={b} className={'chip' + (bp === b ? ' on' : '')} onClick={() => { setBp(b); setShown(50) }}>{t(b)}</button>)}
</div>
<div className="list">
{bp !== '★' && <div className="item" onClick={() => customExSheet(null, ex => onPick(ex), q.trim())}>
<div className="thumb thumb-x">✨</div>
<div className="grow"><div className="tt">{t('Create your own exercise')}</div><div className="ss">{t('name + body part, no animation')}</div></div><span className="chev">+</span>
</div>}
{f.slice(0, shown).map(e => <div key={e.id} className="item" onClick={() => onPick(e)}>
<Thumb ex={e} /><div className="grow"><div className="tt">{e.n}</div><div className="ss">{(e.tg || e.bp)} · {e.eq}</div></div>
<Thumb ex={e} /><div className="grow"><div className="tt">{e.n}</div><div className="ss">{t(e.tg || e.bp)} · {t(e.eq)}</div></div>
{usage[e.id] && <span className="tag acc">⭐</span>}<span className="chev">+</span>
</div>)}
{f.length === 0 && <div className="empty">{bp === '★' ? 'Nothing chosen yet — add exercises and they’ll show up here.' : 'No match 🤷'}</div>}
{f.length === 0 && bp === '★' && <div className="empty">{t('Nothing chosen yet — add exercises and they’ll show up here.')}</div>}
</div>
{f.length > shown && <><div style={{ height: 8 }} /><button className="btn" onClick={() => setShown(s => s + 50)}>Show more</button></>}
{f.length > shown && <><div style={{ height: 8 }} /><button className="btn" onClick={() => setShown(s => s + 50)}>{t('Show more')}</button></>}
</>
}
export const exercisePicker = onPick => ui().openSheet(close => <ExercisePicker onPick={onPick} close={close} />)
@@ -246,22 +327,24 @@ function ExConfig({ ex, existing, onSave, onDelete, close }) {
<h3 className="capitalize">{ex.n}</h3>
<Media ex={ex} />
<div className="row" style={{ gap: 6, flexWrap: 'wrap', margin: '10px 0 14px' }}>
{cardio && <span className="tag acc">🏃 Cardio</span>}
<span className="tag">{ex.tg || ex.bp}</span><span className="tag">{ex.eq}</span>
{cardio && <span className="tag acc">🏃 {t('Cardio')}</span>}
<span className="tag">{t(ex.tg || ex.bp)}</span><span className="tag">{t(ex.eq)}</span>
</div>
<div className="row" style={{ justifyContent: 'space-around', marginBottom: 18 }}>
{ex.desc && <div className="exnote">{ex.desc}</div>}
<div className="row cfgrow" style={{ marginBottom: 18 }}>
{cardio ? <>
<Stepper label="Intervals" value={c.sets} step={1} decimal={false} onChange={v => setC(x => ({ ...x, sets: v }))} />
<Stepper label="Minutes" value={c.min} step={1} decimal={false} onChange={v => setC(x => ({ ...x, min: v }))} />
<Stepper label="Speed (km/h)" value={c.speed} step={0.5} onChange={v => setC(x => ({ ...x, speed: v }))} />
<Stepper label={t('Intervals')} value={c.sets} step={1} decimal={false} onChange={v => setC(x => ({ ...x, sets: v }))} />
<Stepper label={t('Minutes')} value={c.min} step={1} decimal={false} onChange={v => setC(x => ({ ...x, min: v }))} />
<Stepper label={t('Speed (km/h)')} value={c.speed} step={0.5} onChange={v => setC(x => ({ ...x, speed: v }))} />
</> : <>
<Stepper label="Sets" value={c.sets} step={1} decimal={false} onChange={v => setC(x => ({ ...x, sets: v }))} />
<Stepper label="Reps" value={c.reps} step={1} decimal={false} onChange={v => setC(x => ({ ...x, reps: v }))} />
<Stepper label={'Weight (' + st.unit + ')'} value={c.weight} step={2.5} onChange={v => setC(x => ({ ...x, weight: v }))} />
<Stepper label={t('Sets')} value={c.sets} step={1} decimal={false} onChange={v => setC(x => ({ ...x, sets: v }))} />
<Stepper label={t('Reps')} value={c.reps} step={1} decimal={false} onChange={v => setC(x => ({ ...x, reps: v }))} />
<Stepper label={t('Weight ({0})', st.unit)} value={c.weight} step={2.5} onChange={v => setC(x => ({ ...x, weight: v }))} />
</>}
</div>
<button className="btn primary" onClick={save}>{existing ? 'Save' : 'Add to routine'}</button>
{onDelete && <><div style={{ height: 8 }} /><button className="btn danger" onClick={() => { close(); onDelete() }}>Remove exercise</button></>}
<button className="btn primary" onClick={save}>{existing ? t('Save') : t('Add to routine')}</button>
{ex.custom && <><div style={{ height: 8 }} /><button className="btn" onClick={() => { close(); customExSheet(ex) }}>✏️ {t('Edit or delete this exercise')}</button></>}
{onDelete && <><div style={{ height: 8 }} /><button className="btn danger" onClick={() => { close(); onDelete() }}>{t('Remove from routine')}</button></>}
</>
}
export const exConfigSheet = (ex, existing, onSave, onDelete) => ui().openSheet(close => <ExConfig ex={ex} existing={existing} onSave={onSave} onDelete={onDelete} close={close} />)
@@ -269,7 +352,7 @@ export const exConfigSheet = (ex, existing, onSave, onDelete) => ui().openSheet(
/* ============================ emoji picker ============================ */
const ROUTINE_EMOJIS = ['💪', '🏋️', '🏋️‍♀️', '🦵', '🦾', '🫸', '🫷', '🔥', '⚡', '💥', '🏃', '🏃‍♀️', '🚴', '🏊', '🤸', '🥊', '🧗', '⛰️', '🏔️', '🚀', '🧘', '🧘‍♀️', '🎯', '🏆', '🥇', '⭐', '🌟', '👑', '🛡️', '⚔️', '🦍', '🐂', '🐻', '🦁', '🐺', '🦈', '😤', '🤖', '🧨', '❤️‍🔥']
export const emojiPicker = (current, onPick) => ui().openSheet(close => <>
<h3>Pick an emoji</h3>
<h3>{t('Pick an emoji')}</h3>
<div className="emoji-grid">{ROUTINE_EMOJIS.map(e => <button key={e} className={'emoji-cell' + (e === current ? ' on' : '')} onClick={() => { close(); onPick(e) }}>{e}</button>)}</div>
</>)
@@ -283,18 +366,18 @@ function DayOverride({ iso, close }) {
const set = v => {
update(s => { if (!v) delete s.dayPlan[iso]; else s.dayPlan[iso] = v })
close()
toast(v === '' ? 'Back to weekly plan' : v === 'rest' ? fmtDate(iso) + ' set to rest' : (st.routines.find(r => r.id === v) || {}).name + ' planned for ' + fmtDate(iso) + ' ✓')
toast(v === '' ? t('Back to weekly plan') : v === 'rest' ? t('{0} set to rest', fmtDate(iso)) : t('{0} planned for {1} ✓', (st.routines.find(r => r.id === v) || {}).name, fmtDate(iso)))
}
return <>
<h3>{fmtDate(iso, true)}</h3>
<div className="muted small" style={{ marginBottom: 12 }}>Weekly plan: {weeklyR ? weeklyR.name : 'Rest'}{hasOvr && <span style={{ color: 'var(--orange)' }}> · changed for this day</span>}<br />Sick, missed a day or want a different session? Pick what to train instead.</div>
<div className="muted small" style={{ marginBottom: 12 }}>{t('Weekly plan:')} {weeklyR ? weeklyR.name : t('Rest')}{hasOvr && <span style={{ color: 'var(--orange)' }}> · {t('changed for this day')}</span>}<br />{t('Sick, missed a day or want a different session? Pick what to train instead.')}</div>
<div className="list">
{st.routines.map(r => <div key={r.id} className="item" onClick={() => set(r.id)}>
<div style={{ fontSize: '1.3rem', flex: 'none' }}>{r.emoji || '💪'}</div>
<div className="grow"><div className="tt">{r.name}</div><div className="ss">{r.ex.length} exercises</div></div>
<div className="grow"><div className="tt">{r.name}</div><div className="ss">{t('{0} exercises', r.ex.length)}</div></div>
{effId === r.id && <span className="accent">✓</span>}</div>)}
<div className="item" onClick={() => set('rest')}><div className="grow"><div className="tt">😌 Rest / skip this day</div></div>{effId === null && <span className="accent">✓</span>}</div>
{hasOvr && <div className="item" onClick={() => set('')}><div className="grow"><div className="tt">↺ Back to weekly plan</div></div></div>}
<div className="item" onClick={() => set('rest')}><div className="grow"><div className="tt">😌 {t('Rest / skip this day')}</div></div>{effId === null && <span className="accent">✓</span>}</div>
{hasOvr && <div className="item" onClick={() => set('')}><div className="grow"><div className="tt">↺ {t('Back to weekly plan')}</div></div></div>}
</div>
</>
}
@@ -304,12 +387,12 @@ function DayAssign({ day, close }) {
const st = useStore(s => s.S)
const set = v => { update(s => { if (v) s.week[day] = v; else delete s.week[day] }); close() }
return <>
<h3>{DAYN[day]}</h3>
<h3>{t(DAYN[day])}</h3>
<div className="list">
<div className="item" onClick={() => set('')}><div className="grow"><div className="tt">😌 Rest day</div></div>{!st.week[day] && <span className="accent">✓</span>}</div>
<div className="item" onClick={() => set('')}><div className="grow"><div className="tt">😌 {t('Rest day')}</div></div>{!st.week[day] && <span className="accent">✓</span>}</div>
{st.routines.map(r => <div key={r.id} className="item" onClick={() => set(r.id)}>
<div style={{ fontSize: '1.3rem', flex: 'none' }}>{r.emoji || '💪'}</div>
<div className="grow"><div className="tt">{r.name}</div><div className="ss">{r.ex.length} exercises</div></div>
<div className="grow"><div className="tt">{r.name}</div><div className="ss">{t('{0} exercises', r.ex.length)}</div></div>
{st.week[day] === r.id && <span className="accent">✓</span>}</div>)}
</div>
</>
@@ -326,11 +409,11 @@ function WorkoutDetail({ w, close }) {
const ex = EXIDX[e.id]
return <div key={i} className="row" style={{ marginBottom: 12, alignItems: 'flex-start' }}>
{ex && <Thumb ex={ex} />}
<div className="grow"><div className="tt capitalize" style={{ fontWeight: 700 }}>{ex ? ex.n : e.id} {w.prs && w.prs.includes(e.id) && <span className="pr">🏆 PR</span>}</div>
<div className="ss">{e.sets.filter(s => s.done).map(s => setLabel(e.id, s)).join(' · ') || 'no sets'}</div></div>
<div className="grow"><div className="tt capitalize" style={{ fontWeight: 700 }}>{ex ? ex.n : (e.n || e.id)} {w.prs && w.prs.includes(e.id) && <span className="pr">🏆 PR</span>}</div>
<div className="ss">{e.sets.filter(s => s.done).map(s => setLabel(e.id, s)).join(' · ') || t('no sets')}</div></div>
</div>
})}
<button className="btn danger" onClick={() => confirmSheet({ title: 'Delete workout?', message: 'This removes it from your history for good.', confirmText: 'Delete', danger: true, onConfirm: () => { update(s => { s.workouts = s.workouts.filter(x => x.id !== w.id) }); close(); toast('Workout deleted') } })}>Delete workout</button>
<button className="btn danger" onClick={() => confirmSheet({ title: t('Delete workout?'), message: t('This removes it from your history for good.'), confirmText: t('Delete'), danger: true, onConfirm: () => { update(s => { s.workouts = s.workouts.filter(x => x.id !== w.id) }); close(); toast(t('Workout deleted')) } })}>{t('Delete workout')}</button>
</>
}
export const workoutDetailSheet = w => ui().openSheet(close => <WorkoutDetail w={w} close={close} />)
@@ -362,17 +445,17 @@ function Calendar({ start, close }) {
return <>
<div className="row between" style={{ marginBottom: 2 }}>
<button className="iconbtn" onClick={() => setCur(new Date(y, mo - 1, 1))}>‹</button>
<h3 style={{ margin: 0 }}>{MONTHS_LONG[mo]} {y}</h3>
<h3 style={{ margin: 0 }}>{t(MONTHS_LONG[mo])} {y}</h3>
<button className="iconbtn" onClick={() => setCur(new Date(y, mo + 1, 1))}>›</button>
</div>
<div className="small muted" style={{ textAlign: 'center' }}>{monthWs.length ? `${monthWs.length} workout${monthWs.length > 1 ? 's' : ''} · ${fmtDur(monthMs)} · ${fmtVol(monthVol, st.unit)}` : 'No workouts this month'}</div>
<div className="cal-grid">{['Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa', 'Su'].map(l => <div key={l} className="cal-h">{l}</div>)}{cells}</div>
<div className="small muted" style={{ textAlign: 'center' }}>{monthWs.length ? `${t(monthWs.length === 1 ? '{0} workout' : '{0} workouts', monthWs.length)} · ${fmtDur(monthMs)} · ${fmtVol(monthVol, st.unit)}` : t('No workouts this month')}</div>
<div className="cal-grid">{['Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa', 'Su'].map(l => <div key={l} className="cal-h">{t(l)}</div>)}{cells}</div>
<div className="cal-legend">
<span><i style={{ background: 'var(--acc)' }} />Trained</span>
<span><i style={{ background: 'var(--blue)' }} />Planned</span>
<span><i style={{ background: 'var(--orange)' }} />Rescheduled</span>
<span><i style={{ background: 'var(--acc)' }} />{t('Trained')}</span>
<span><i style={{ background: 'var(--blue)' }} />{t('Planned')}</span>
<span><i style={{ background: 'var(--orange)' }} />{t('Rescheduled')}</span>
</div>
<div className="small dim" style={{ textAlign: 'center', marginTop: 10 }}>Tap a trained day for details · tap any other day to plan a session</div>
<div className="small dim" style={{ textAlign: 'center', marginTop: 10 }}>{t('Tap a trained day for details · tap any other day to plan a session')}</div>
</>
}
export const calendarSheet = start => ui().openSheet(close => <Calendar start={start} close={close} />)
@@ -384,7 +467,7 @@ export function WorkoutRow({ w, onClick }) {
return <div className="item" onClick={onClick}>
<div style={{ fontSize: '1.5rem', flex: 'none' }}>{emoji}</div>
<div className="grow"><div className="tt">{w.name}</div>
<div className="ss">{fmtDate(w.d, true)} · {fmtDur(w.end - w.start)} · {setsDone(w)} sets · {fmtVol(w.vol, st.unit)}</div></div>
<div className="ss">{fmtDate(w.d, true)} · {fmtDur(w.end - w.start)} · {t('{0} sets', setsDone(w))} · {fmtVol(w.vol, st.unit)}</div></div>
{w.prs && w.prs.length > 0 && <span className="pr">🏆 {w.prs.length} PR</span>}
<span className="chev">›</span>
</div>
@@ -399,7 +482,7 @@ export function beginWorkout(routineId, bw) {
const r = routineId ? st.routines.find(x => x.id === routineId) : null
const entries = (r ? r.ex : []).map(cfg => ({ id: cfg.id, sg: cfg.sg, target: { ...cfg }, sets: buildSets(st, cfg) }))
update(s => {
s.active = { id: uid(), d: todayISO(), start: Date.now(), routineId, name: r ? r.name : 'Freestyle', bw: bw || null, cur: 0, entries }
s.active = { id: uid(), d: todayISO(), start: Date.now(), routineId, name: r ? r.name : t('Freestyle'), bw: bw || null, cur: 0, entries }
})
useUI.getState().stopRest()
nav('/workout')
@@ -421,7 +504,7 @@ function TopWeight({ entryIdx, close }) {
const commit = advance => {
const n = Math.round((v || 0) * 10) / 10
if (!isFinite(n) || n < 0) { toast('Enter a valid weight'); return }
if (!isFinite(n) || n < 0) { toast(t('Enter a valid weight')); return }
update(s => {
s.active.entries[entryIdx].topW = n
const cur = s.exWeights[entry.id]
@@ -431,18 +514,18 @@ function TopWeight({ entryIdx, close }) {
if (advance && unitDone) {
if (isLastUnit) workoutCompleteSheet() // whole workout done → finish/continue prompt
else update(s => { s.active.cur = units[unitIdx + 1][0] })
} else toast('Tracked — next time starts at ' + fmtNum(S().exWeights[entry.id].w) + ' ' + st.unit + ' 📈')
} else toast(t('Tracked — next time starts at {0} 📈', fmtNum(S().exWeights[entry.id].w) + ' ' + st.unit))
}
return <>
<h3 className="capitalize">✅ {ex.n} done</h3>
<div className="muted small">Confirm the weight you worked with — your highest becomes the default next time.{!unitDone && unit.length > 1 ? ' Then finish the superset partner.' : ''}</div>
<h3 className="capitalize">✅ {t('{0} done', ex.n)}</h3>
<div className="muted small">{t('Confirm the weight you worked with — your highest becomes the default next time.')}{!unitDone && unit.length > 1 ? ' ' + t('Then finish the superset partner.') : ''}</div>
<WeightInput value={v} setValue={setV} unit={st.unit} />
<div style={{ height: 10 }} />
{prevBest > 0 ? <div className="small dim" style={{ textAlign: 'center', marginBottom: 12 }}>Previous best: {fmtNum(prevBest)} {st.unit}{maxSet > prevBest && <span style={{ color: 'var(--gold)' }}> — new record! 🏆</span>}</div> : <div style={{ height: 4 }} />}
{prevBest > 0 ? <div className="small dim" style={{ textAlign: 'center', marginBottom: 12 }}>{t('Previous best:')} {fmtNum(prevBest)} {st.unit}{maxSet > prevBest && <span style={{ color: 'var(--gold)' }}> — {t('new record! 🏆')}</span>}</div> : <div style={{ height: 4 }} />}
{unitDone ? <>
<button className="btn primary" onClick={() => commit(true)}>{isLastUnit ? 'Save ✓' : 'Save & next exercise ›'}</button>
<div style={{ height: 8 }} /><button className="btn ghost dim" onClick={() => commit(false)}>Just close</button>
</> : <button className="btn primary" onClick={() => commit(false)}>Save weight</button>}
<button className="btn primary" onClick={() => commit(true)}>{isLastUnit ? t('Save ✓') : t('Save & next exercise ›')}</button>
<div style={{ height: 8 }} /><button className="btn ghost dim" onClick={() => commit(false)}>{t('Just close')}</button>
</> : <button className="btn primary" onClick={() => commit(false)}>{t('Save weight')}</button>}
</>
}
export const topWeightSheet = entryIdx => ui().openSheet(close => <TopWeight entryIdx={entryIdx} close={close} />)
@@ -451,11 +534,11 @@ export const topWeightSheet = entryIdx => ui().openSheet(close => <TopWeight ent
function WorkoutComplete({ close }) {
return <div style={{ textAlign: 'center', padding: '8px 0' }}>
<div style={{ fontSize: '3rem' }}>🎉</div>
<h3 style={{ margin: '8px 0' }}>That's the whole workout!</h3>
<div className="muted small" style={{ marginBottom: 16 }}>Every exercise done — great work. Finish up, or keep going and add another exercise.</div>
<button className="btn primary" onClick={() => { close(); finishWorkout() }}>Finish workout 🏁</button>
<h3 style={{ margin: '8px 0' }}>{t("That's the whole workout!")}</h3>
<div className="muted small" style={{ marginBottom: 16 }}>{t('Every exercise done — great work. Finish up, or keep going and add another exercise.')}</div>
<button className="btn primary" onClick={() => { close(); finishWorkout() }}>{t('Finish workout 🏁')}</button>
<div style={{ height: 8 }} />
<button className="btn" onClick={() => { close(); useUI.getState().toast('Keep going 💪 — tap “+ Add exercise” below') }}>Continue workout</button>
<button className="btn" onClick={() => { close(); useUI.getState().toast(t('Keep going 💪 — tap “+ Add exercise” below')) }}>{t('Continue workout')}</button>
</div>
}
export const workoutCompleteSheet = () => ui().openSheet(close => <WorkoutComplete close={close} />, { kind: 'center' })
@@ -464,15 +547,15 @@ function FinishSummary({ w, prs, close }) {
const st = useStore(s => s.S)
return <div style={{ textAlign: 'center', padding: '8px 0' }}>
<div style={{ fontSize: '3rem' }}>🎉</div>
<h3 style={{ margin: '8px 0' }}>Workout complete!</h3>
<h3 style={{ margin: '8px 0' }}>{t('Workout complete!')}</h3>
<div className="tiles" style={{ textAlign: 'left' }}>
<div className="tile"><div className="l">Duration</div><div className="v" style={{ fontSize: '1.1rem' }}>{fmtDur(w.end - w.start)}</div></div>
<div className="tile"><div className="l">Volume</div><div className="v" style={{ fontSize: '1.1rem' }}>{fmtVol(w.vol, st.unit)}</div></div>
<div className="tile"><div className="l">Sets</div><div className="v" style={{ fontSize: '1.1rem' }}>{setsDone(w)}</div></div>
<div className="tile"><div className="l">PRs</div><div className="v" style={{ fontSize: '1.1rem' }}>{prs.length ? '🏆 ' + prs.length : '—'}</div></div>
<div className="tile"><div className="l">{t('Duration')}</div><div className="v" style={{ fontSize: '1.1rem' }}>{fmtDur(w.end - w.start)}</div></div>
<div className="tile"><div className="l">{t('Volume')}</div><div className="v" style={{ fontSize: '1.1rem' }}>{fmtVol(w.vol, st.unit)}</div></div>
<div className="tile"><div className="l">{t('Sets')}</div><div className="v" style={{ fontSize: '1.1rem' }}>{setsDone(w)}</div></div>
<div className="tile"><div className="l">{t('PRs')}</div><div className="v" style={{ fontSize: '1.1rem' }}>{prs.length ? '🏆 ' + prs.length : '—'}</div></div>
</div>
{prs.length > 0 && <div style={{ textAlign: 'left', marginBottom: 12 }}>{prs.map(id => <div key={id} className="small accent capitalize">🏆 New PR: {(EXIDX[id] || {}).n || id}</div>)}</div>}
<button className="btn primary" onClick={() => { close(); nav('/home') }}>Nice! 💪</button>
{prs.length > 0 && <div style={{ textAlign: 'left', marginBottom: 12 }}>{prs.map(id => <div key={id} className="small accent capitalize">🏆 {t('New PR:')} {(EXIDX[id] || {}).n || id}</div>)}</div>}
<button className="btn primary" onClick={() => { close(); nav('/home') }}>{t('Nice! 💪')}</button>
</div>
}
export function finishWorkout() {
@@ -480,8 +563,8 @@ export function finishWorkout() {
if (!A) return
const done = setsDoneActive(A)
const total = A.entries.reduce((n, e) => n + e.sets.length, 0)
if (!done) { confirmSheet({ title: 'Nothing logged yet', message: 'You haven’t checked off any sets. Finish the workout anyway?', confirmText: 'Finish anyway', onConfirm: doFinishWorkout }); return }
if (done < total) { confirmSheet({ title: 'Finish early?', message: `${total - done} set${total - done === 1 ? '' : 's'} still unchecked. Finish the workout now?`, confirmText: 'Finish workout', onConfirm: doFinishWorkout }); return }
if (!done) { confirmSheet({ title: t('Nothing logged yet'), message: t('You haven’t checked off any sets. Finish the workout anyway?'), confirmText: t('Finish anyway'), onConfirm: doFinishWorkout }); return }
if (done < total) { confirmSheet({ title: t('Finish early?'), message: t(total - done === 1 ? '{0} set still unchecked. Finish the workout now?' : '{0} sets still unchecked. Finish the workout now?', total - done), confirmText: t('Finish workout'), onConfirm: doFinishWorkout }); return }
doFinishWorkout()
}
function doFinishWorkout() {
+23 -4
View File
@@ -1,13 +1,15 @@
import { create } from 'zustand'
import { api } from '../lib/api.js'
import { localTZ } from '../lib/format.js'
import { registerCustom } from '../lib/exercises.js'
const KEY = 'gym_state_v1'
export const DEF = {
unit: 'kg', restSec: 90, sound: true,
unit: 'kg', restSec: 90, sound: true, lang: 'en',
theme: 'dark', accent: 'lime', targetW: null,
bodyweight: [], routines: [], week: {}, dayPlan: {},
exWeights: {}, workouts: [], active: null,
reminder: { on: false, time: '08:00' }
exWeights: {}, workouts: [], active: null, customEx: [],
reminder: { on: false, time: '08:00', tz: null }
}
const clone = o => JSON.parse(JSON.stringify(o))
@@ -26,6 +28,7 @@ export const useStore = create((set, get) => {
const persist = (S, push = true) => {
S._ts = Date.now()
registerCustom(S.customEx)
localStorage.setItem(KEY, JSON.stringify(S))
set({ S })
if (push && get().user) {
@@ -34,8 +37,18 @@ export const useStore = create((set, get) => {
}
}
// A setting changed right before switching away/closing the tab must not get lost mid-debounce
// (e.g. setting the reminder time then immediately backgrounding to test it).
document.addEventListener('visibilitychange', () => {
if (document.visibilityState === 'hidden' && pushTm) {
clearTimeout(pushTm)
pushTm = null
get().pushState()
}
})
return {
S: loadState(),
S: (() => { const s = loadState(); registerCustom(s.customEx); return s })(),
user: (() => { try { return JSON.parse(localStorage.getItem('gym_user')) || null } catch { return null } })(),
ready: false,
@@ -91,6 +104,12 @@ export const useStore = create((set, get) => {
const me = await api('/api/me')
get().setUser(me.user)
await get().pullState()
// Re-stamp the reminder's timezone on every load — keeps it correct if you're travelling,
// without needing to revisit Settings.
const tz = localTZ()
if (get().S.reminder?.on && get().S.reminder.tz !== tz) {
get().update(s => { s.reminder = { ...s.reminder, tz } })
}
} catch (e) {
if (e.status === 401) get().setUser(null)
}
+2 -1
View File
@@ -2,6 +2,7 @@ import { create } from 'zustand'
import { uid } from '../lib/format.js'
import { beep, vibrate } from '../lib/sound.js'
import { api } from '../lib/api.js'
import { t } from '../lib/i18n.js'
import { useStore } from './useStore.js'
// Fire-and-forget: lets the server push a "rest over" alert if this tab gets suspended
@@ -46,7 +47,7 @@ export const useUI = create((set, get) => ({
const snd = useStore.getState().S.sound
if (left <= 0) {
beep(snd, 880, 0.15); beep(snd, 880, 0.15, 0.25); beep(snd, 1320, 0.4, 0.5)
vibrate([200, 100, 200]); get().toast('Rest over — next set! 💪'); get().stopRest(); return
vibrate([200, 100, 200]); get().toast(t('Rest over — next set! 💪')); get().stopRest(); return
}
if (left <= 3) beep(snd, 660, 0.1)
set({ timer: { ...t, left } })
+3 -2
View File
@@ -1,5 +1,6 @@
import { useNavigate } from 'react-router-dom'
import { useStore } from '../store/useStore.js'
import { t } from '../lib/i18n.js'
import { WorkoutRow, workoutDetailSheet } from '../sheets.jsx'
export default function History() {
@@ -7,8 +8,8 @@ export default function History() {
const S = useStore(s => s.S)
return <>
<div className="hdr"><button className="iconbtn" onClick={() => nav('/stats')}>‹</button>
<div style={{ flex: 1, marginLeft: 12 }}><h1>History</h1><div className="sub">{S.workouts.length} workouts</div></div></div>
<div style={{ flex: 1, marginLeft: 12 }}><h1>{t('History')}</h1><div className="sub">{t('{0} workouts', S.workouts.length)}</div></div></div>
{S.workouts.length ? <div className="list">{[...S.workouts].reverse().map(w => <WorkoutRow key={w.id} w={w} onClick={() => workoutDetailSheet(w)} />)}</div>
: <div className="empty"><div className="ico">🗂</div>No workouts yet.</div>}
: <div className="empty"><div className="ico">🗂</div>{t('No workouts yet.')}</div>}
</>
}
+19 -18
View File
@@ -3,6 +3,7 @@ import { useNavigate } from 'react-router-dom'
import { useStore } from '../store/useStore.js'
import { effectiveRoutine, effectiveRoutineId, streakWeeks, lastBW, setsDoneActive } from '../lib/history.js'
import { fmtNum, fmtDate, todayISO, isoOf, weekKey, DAYS } from '../lib/format.js'
import { t, dateLocale } from '../lib/i18n.js'
import { bwSheet, goalSheet, dayOverrideSheet, calendarSheet, startFlow, loadStarterPlan, bwDeltaColor } from '../sheets.jsx'
import LineChart from '../components/LineChart.jsx'
@@ -29,10 +30,10 @@ export default function Home() {
const eff = effectiveRoutineId(S, iso), ovr = S.dayPlan[iso] !== undefined, done = doneDays.has(iso)
const dot = done ? ' done' : ovr && eff ? ' ovr' : eff ? ' plan' : ''
strip.push(<div key={i} className={'wday' + (iso === todayISO() ? ' today' : '')} onClick={() => dayOverrideSheet(iso)}>
<div className="lbl">{DAYS[d.getDay()]}</div><div className="num">{d.getDate()}</div><div className={'dot' + dot} /></div>)
<div className="lbl">{t(DAYS[d.getDay()])}</div><div className="num">{d.getDate()}</div><div className={'dot' + dot} /></div>)
}
const sunday = new Date(monday); sunday.setDate(monday.getDate() + 6)
const wkLabel = weekOffset === 0 ? 'This week' : `${monday.getDate()} ${monday.toLocaleDateString('en-GB', { month: 'short' })} – ${sunday.getDate()} ${sunday.toLocaleDateString('en-GB', { month: 'short' })}`
const wkLabel = weekOffset === 0 ? t('This week') : `${monday.getDate()} ${monday.toLocaleDateString(dateLocale(), { month: 'short' })} – ${sunday.getDate()} ${sunday.toLocaleDateString(dateLocale(), { month: 'short' })}`
const wThisWeek = S.workouts.filter(w => weekKey(w.d) === weekKey(todayISO())).length
const plannedPerWeek = Object.keys(S.week).filter(k => S.week[k]).length
@@ -43,7 +44,7 @@ export default function Home() {
return <div className="narrow">
<div className="hdr">
<div><h1>{user ? 'Hi ' + user.name + ' 💪' : 'openGym 🏋️'}</h1><div className="sub">{today.toLocaleDateString('en-GB', { weekday: 'long', day: 'numeric', month: 'long' })}</div></div>
<div><h1>{user ? t('Hi {0} 💪', user.name) : 'openGym 🏋️'}</h1><div className="sub">{today.toLocaleDateString(dateLocale(), { weekday: 'long', day: 'numeric', month: 'long' })}</div></div>
<button className="iconbtn" onClick={() => nav('/settings')}>⚙️</button>
</div>
@@ -58,31 +59,31 @@ export default function Home() {
<div className="row" style={{ gap: 9, minWidth: 0 }}>
<span style={{ fontSize: '1.35rem', flex: 'none' }}>{S.active ? '⏱️' : routine ? (routine.emoji || '💪') : '😌'}</span>
<div style={{ minWidth: 0 }}>
<div className="lbl2">Today</div>
<div className="ttl">{S.active ? S.active.name + ' — in progress' : routine ? routine.name : 'Rest day'}{todayOvr && routine ? ' · rescheduled' : ''}</div>
<div className="lbl2">{t('Today')}</div>
<div className="ttl">{S.active ? t('{0} — in progress', S.active.name) : routine ? routine.name : t('Rest day')}{todayOvr && routine ? ' · ' + t('rescheduled') : ''}</div>
</div>
</div>
{S.active ? <span className="tag" style={{ color: 'var(--orange)', borderColor: 'var(--orange)' }}>Resume ▶</span>
: routine ? <span className="tag acc">Start ▶</span>
{S.active ? <span className="tag" style={{ color: 'var(--orange)', borderColor: 'var(--orange)' }}>{t('Resume ▶')}</span>
: routine ? <span className="tag acc">{t('Start ▶')}</span>
: <span className="chev">+</span>}
</div>
</div>
{!S.routines.length && !S.active && (
<div className="card">
<div className="big" style={{ marginBottom: 4 }}>Welcome! 👋</div>
<div className="muted small" style={{ marginBottom: 12 }}>Set up your weekly routine to get going — or load a ready-made Push / Pull / Legs plan.</div>
<button className="btn primary" onClick={loadStarterPlan}>Load starter plan (PPL)</button>
<div style={{ height: 8 }} /><button className="btn" onClick={() => nav('/plan')}>Build my own plan</button>
<div className="big" style={{ marginBottom: 4 }}>{t('Welcome! 👋')}</div>
<div className="muted small" style={{ marginBottom: 12 }}>{t('Set up your weekly routine to get going — or load a ready-made Push / Pull / Legs plan.')}</div>
<button className="btn primary" onClick={loadStarterPlan}>{t('Load starter plan (PPL)')}</button>
<div style={{ height: 8 }} /><button className="btn" onClick={() => nav('/plan')}>{t('Build my own plan')}</button>
</div>
)}
<div className="card">
<div className="row between" style={{ marginBottom: 6 }}>
<h2 style={{ margin: 0 }}>Body weight</h2>
<h2 style={{ margin: 0 }}>{t('Body weight')}</h2>
<div className="row" style={{ gap: 8 }}>
<button className="btn sm" style={S.targetW ? { color: 'var(--gold)' } : undefined} onClick={goalSheet}>🎯 {S.targetW ? fmtNum(S.targetW) : 'Goal'}</button>
<button className="btn sm" onClick={() => bwSheet()}>+ Log</button>
<button className="btn sm" style={S.targetW ? { color: 'var(--gold)' } : undefined} onClick={goalSheet}>🎯 {S.targetW ? fmtNum(S.targetW) : t('Goal')}</button>
<button className="btn sm" onClick={() => bwSheet()}>+ {t('Log')}</button>
</div>
</div>
{bw ? <>
@@ -91,16 +92,16 @@ export default function Home() {
{delta !== null && <span className="small" style={{ fontWeight: 700, color: bwDeltaColor(delta, bw.w) }}>{delta > 0 ? '▲' : delta < 0 ? '▼' : '•'} {fmtNum(Math.abs(delta))}</span>}
<span className="dim small" style={{ marginLeft: 'auto' }}>{fmtDate(bw.d, true)}</span>
</div>
{S.targetW && <div className="small" style={{ color: 'var(--gold)', marginTop: 2 }}>🎯 Goal {fmtNum(S.targetW)} {S.unit} · {Math.abs(S.targetW - bw.w) < 0.05 ? 'reached! 🎉' : fmtNum(Math.abs(S.targetW - bw.w)) + ' ' + S.unit + ' to ' + (S.targetW > bw.w ? 'gain' : 'lose')}</div>}
{S.targetW && <div className="small" style={{ color: 'var(--gold)', marginTop: 2 }}>🎯 {t('Goal')} {fmtNum(S.targetW)} {S.unit} · {Math.abs(S.targetW - bw.w) < 0.05 ? t('reached! 🎉') : t(S.targetW > bw.w ? '{0} to gain' : '{0} to lose', fmtNum(Math.abs(S.targetW - bw.w)) + ' ' + S.unit)}</div>}
<div className="chart" style={{ marginTop: 8 }}><LineChart points={bwPoints} h={130} unit={S.unit} goal={S.targetW} /></div>
</> : <div className="muted small">No entries yet — log your weight to start the curve. It's also asked before every workout.</div>}
</> : <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 tappable" style={{ cursor: 'pointer' }} onClick={() => calendarSheet()}>
<div className="row between">
<div>
<div style={{ fontSize: '1.35rem', fontWeight: 800 }}>🔥 {streakWeeks(S)} week streak</div>
<div className="muted small" style={{ marginTop: 2 }}>{wThisWeek}{plannedPerWeek ? ' / ' + plannedPerWeek : ''} this week · {S.workouts.length} workout{S.workouts.length === 1 ? '' : 's'} total</div>
<div style={{ fontSize: '1.35rem', fontWeight: 800 }}>🔥 {t('{0} week streak', streakWeeks(S))}</div>
<div className="muted small" style={{ marginTop: 2 }}>{wThisWeek}{plannedPerWeek ? ' / ' + plannedPerWeek : ''} {t('this week')} · {t(S.workouts.length === 1 ? '{0} workout total' : '{0} workouts total', S.workouts.length)}</div>
</div>
<span className="chev" style={{ fontSize: '1.4rem' }}>📅</span>
</div>
+16 -11
View File
@@ -1,10 +1,11 @@
import { useState } from 'react'
import { useStore } from '../store/useStore.js'
import { EXDB, BODYPARTS } from '../lib/exercises.js'
import { EXDB, BODYPARTS, allExercises } from '../lib/exercises.js'
import { bestWeightFor } from '../lib/history.js'
import { fmtNum } from '../lib/format.js'
import { t } from '../lib/i18n.js'
import { Thumb } from '../components/Media.jsx'
import { exerciseDetailSheet, addToRoutineSheet } from '../sheets.jsx'
import { exerciseDetailSheet, addToRoutineSheet, customExSheet } from '../sheets.jsx'
export default function Library() {
const S = useStore(s => s.S)
@@ -12,28 +13,32 @@ export default function Library() {
const [bp, setBp] = useState('')
const [shown, setShown] = useState(40)
const ql = q.toLowerCase().trim()
const f = EXDB.filter(e => (!bp || e.bp === bp) && (!ql || e.n.includes(ql) || e.tg.includes(ql) || e.eq.includes(ql)))
const f = allExercises(S).filter(e => (!bp || e.bp === bp) && (!ql || e.n.toLowerCase().includes(ql) || e.tg.includes(ql) || e.eq.includes(ql) || (e.desc || '').toLowerCase().includes(ql)))
return <>
<div className="hdr"><div><h1>Exercises</h1><div className="sub">{EXDB.length} exercises with animations</div></div></div>
<div className="hdr"><div><h1>{t('Exercises')}</h1><div className="sub">{t('{0} exercises with animations', EXDB.length)}</div></div></div>
<div className="search" style={{ marginBottom: 10 }}><svg viewBox="0 0 24 24"><circle cx="11" cy="11" r="7" /><path d="m21 21-4.3-4.3" /></svg>
<input className="input" placeholder="Search…" value={q} onChange={e => { setQ(e.target.value); setShown(40) }} /></div>
<input className="input" placeholder={t('Search…')} value={q} onChange={e => { setQ(e.target.value); setShown(40) }} /></div>
<div className="chips" style={{ marginBottom: 12 }}>
<button className={'chip' + (!bp ? ' on' : '')} onClick={() => { setBp(''); setShown(40) }}>All</button>
{BODYPARTS.map(b => <button key={b} className={'chip' + (bp === b ? ' on' : '')} onClick={() => { setBp(b); setShown(40) }}>{b}</button>)}
<button className={'chip' + (!bp ? ' on' : '')} onClick={() => { setBp(''); setShown(40) }}>{t('All')}</button>
{BODYPARTS.map(b => <button key={b} className={'chip' + (bp === b ? ' on' : '')} onClick={() => { setBp(b); setShown(40) }}>{t(b)}</button>)}
</div>
<div className="list">
<div className="item" onClick={() => customExSheet(null, ex => exerciseDetailSheet(ex), q.trim())}>
<div className="thumb thumb-x">✨</div>
<div className="grow"><div className="tt">{t('Create your own exercise')}</div><div className="ss">{t('name + body part, no animation')}</div></div><span className="chev">+</span>
</div>
{f.slice(0, shown).map(e => {
const best = bestWeightFor(S, e.id)
return <div key={e.id} className="item" onClick={() => exerciseDetailSheet(e)}>
<Thumb ex={e} />
<div className="grow"><div className="tt">{e.n}</div><div className="ss">{(e.tg || e.bp)} · {e.eq}</div></div>
<div className="grow"><div className="tt">{e.n}</div><div className="ss">{t(e.tg || e.bp)} · {t(e.eq)}</div></div>
{best > 0 && <span className="tag acc">{fmtNum(best)}</span>}
<button className="btn sm primary" onClick={ev => { ev.stopPropagation(); addToRoutineSheet(e) }}>+ Plan</button>
<button className="btn sm primary" onClick={ev => { ev.stopPropagation(); addToRoutineSheet(e) }}>+ {t('Plan')}</button>
</div>
})}
{f.length === 0 && <div className="empty">No match 🤷</div>}
{f.length === 0 && <div className="empty">{t('No match 🤷')}</div>}
</div>
{f.length > shown && <><div style={{ height: 10 }} /><button className="btn" onClick={() => setShown(s => s + 40)}>Show more</button></>}
{f.length > shown && <><div style={{ height: 10 }} /><button className="btn" onClick={() => setShown(s => s + 40)}>{t('Show more')}</button></>}
</>
}
+17 -16
View File
@@ -2,6 +2,7 @@ import { useStore } from '../store/useStore.js'
import { useUI } from '../store/useUI.js'
import { webauthnOK, passkeyLogin, passkeyRegister, BIO } from '../lib/api.js'
import { hasData } from '../store/useStore.js'
import { t } from '../lib/i18n.js'
import { useState, useRef, useEffect } from 'react'
function RegisterSheet({ close }) {
@@ -11,42 +12,42 @@ function RegisterSheet({ close }) {
useEffect(() => { setTimeout(() => ref.current?.focus(), 250) }, [])
const go = async () => {
const n = name.trim()
if (!n) { useUI.getState().toast('Enter a name'); return }
if (!n) { useUI.getState().toast(t('Enter a name')); return }
try {
const u = await passkeyRegister(n)
setUser(u); close()
if (hasData(useStore.getState().S)) { await pushState(); useUI.getState().toast('Profile created — data from this device moved into it ✓') }
else { await pullState(); useUI.getState().toast('Welcome, ' + u.name + ' 💪') }
} catch (e) { if (e.name !== 'NotAllowedError' && e.name !== 'AbortError') useUI.getState().toast(e.message || 'Registration failed') }
if (hasData(useStore.getState().S)) { await pushState(); useUI.getState().toast(t('Profile created — data from this device moved into it ✓')) }
else { await pullState(); useUI.getState().toast(t('Welcome, {0} 💪', u.name)) }
} catch (e) { if (e.name !== 'NotAllowedError' && e.name !== 'AbortError') useUI.getState().toast(e.message || t('Registration failed')) }
}
return <>
<h3>Create your profile ✨</h3>
<div className="muted small" style={{ marginBottom: 14 }}>Pick a name, then confirm with {BIO}. The passkey is saved in your device — no password needed.</div>
<input ref={ref} className="input" placeholder="Your name" maxLength={40} value={name} onChange={e => setName(e.target.value)} />
<h3>{t('Create your profile ✨')}</h3>
<div className="muted small" style={{ marginBottom: 14 }}>{t('Pick a name, then confirm with {0}. The passkey is saved in your device — no password needed.', BIO)}</div>
<input ref={ref} className="input" placeholder={t('Your name')} maxLength={40} value={name} onChange={e => setName(e.target.value)} />
<div style={{ height: 12 }} />
<button className="btn primary" onClick={go}>Create passkey</button>
<button className="btn primary" onClick={go}>{t('Create passkey')}</button>
</>
}
export default function Login() {
const { setUser, pullState, setGuest } = useStore()
const signIn = async () => {
try { const u = await passkeyLogin(); setUser(u); await pullState(); useUI.getState().toast('Welcome back, ' + u.name + ' 💪') }
catch (e) { if (e.name !== 'NotAllowedError' && e.name !== 'AbortError') useUI.getState().toast(e.message || 'Sign-in failed') }
try { const u = await passkeyLogin(); setUser(u); await pullState(); useUI.getState().toast(t('Welcome back, {0} 💪', u.name)) }
catch (e) { if (e.name !== 'NotAllowedError' && e.name !== 'AbortError') useUI.getState().toast(e.message || t('Sign-in failed')) }
}
return (
<div className="narrow" style={{ display: 'flex', flexDirection: 'column', justifyContent: 'center', minHeight: '78vh', textAlign: 'center' }}>
<div style={{ fontSize: '4rem' }}>🏋️</div>
<h1 style={{ fontSize: '2.2rem', fontWeight: 800, letterSpacing: '-.02em', margin: '8px 0 4px' }}>openGym</h1>
<div className="muted" style={{ marginBottom: 34 }}>Your workouts. Your weights. Your profile.</div>
<div className="muted" style={{ marginBottom: 34 }}>{t('Your workouts. Your weights. Your profile.')}</div>
{webauthnOK() ? <>
<button className="btn primary" onClick={signIn}>👤 Sign in with passkey</button>
<button className="btn primary" onClick={signIn}>👤 {t('Sign in with passkey')}</button>
<div style={{ height: 10 }} />
<button className="btn" onClick={() => useUI.getState().openSheet(close => <RegisterSheet close={close} />)}>✨ Create new profile</button>
<button className="btn" onClick={() => useUI.getState().openSheet(close => <RegisterSheet close={close} />)}>✨ {t('Create new profile')}</button>
<div style={{ height: 10 }} />
</> : <div className="card small muted" style={{ textAlign: 'left' }}>This browser doesn't support passkeys — you can still use openGym locally on this device.</div>}
<button className="btn ghost dim" onClick={() => setGuest(true)}>Continue without account</button>
<div className="dim small" style={{ marginTop: 26, lineHeight: 1.5 }}>Passkeys use {BIO} — no passwords.<br />Each profile keeps its own plan, workouts & body weight.</div>
</> : <div className="card small muted" style={{ textAlign: 'left' }}>{t("This browser doesn't support passkeys — you can still use openGym locally on this device.")}</div>}
<button className="btn ghost dim" onClick={() => setGuest(true)}>{t('Continue without account')}</button>
<div className="dim small" style={{ marginTop: 26, lineHeight: 1.5 }}>{t('Passkeys use {0} — no passwords.', BIO)}<br />{t('Each profile keeps its own plan, workouts & body weight.')}</div>
</div>
)
}
+11 -10
View File
@@ -1,6 +1,7 @@
import { useNavigate } from 'react-router-dom'
import { useStore } from '../store/useStore.js'
import { DAYN, uid } from '../lib/format.js'
import { t } from '../lib/i18n.js'
import { dayAssignSheet, loadStarterPlan } from '../sheets.jsx'
export default function Plan() {
@@ -9,35 +10,35 @@ export default function Plan() {
const update = useStore(s => s.update)
const addRoutine = () => {
const r = { id: uid(), name: 'New routine', emoji: '💪', ex: [] }
const r = { id: uid(), name: t('New routine'), emoji: '💪', ex: [] }
update(s => { s.routines.push(r) })
nav('/plan/r/' + r.id)
}
return <>
<div className="hdr"><div><h1>Plan</h1><div className="sub">Your weekly routine</div></div></div>
<div className="hdr"><div><h1>{t('Plan')}</h1><div className="sub">{t('Your weekly routine')}</div></div></div>
<div className="cols"><div>
<h4 className="sec">Week schedule</h4>
<h4 className="sec">{t('Week schedule')}</h4>
<div className="list" style={{ display: 'flex', flexDirection: 'column' }}>
{[1, 2, 3, 4, 5, 6, 0].map(d => {
const r = S.routines.find(x => x.id === S.week[d])
return <div key={d} className="item" onClick={() => dayAssignSheet(d)}>
<div className="grow"><div className="tt">{DAYN[d]}</div></div>
{r ? <span className="tag acc">{(r.emoji || '') + ' ' + r.name}</span> : <span className="tag">Rest</span>}
<div className="grow"><div className="tt">{t(DAYN[d])}</div></div>
{r ? <span className="tag acc">{(r.emoji || '') + ' ' + r.name}</span> : <span className="tag">{t('Rest')}</span>}
<span className="chev">›</span></div>
})}
</div>
</div><div>
<div className="row between" style={{ marginTop: 22, marginBottom: 10 }}>
<h4 className="sec" style={{ margin: 0 }}>Routines</h4>
<button className="btn sm primary" onClick={addRoutine}>+ New</button>
<h4 className="sec" style={{ margin: 0 }}>{t('Routines')}</h4>
<button className="btn sm primary" onClick={addRoutine}>+ {t('New')}</button>
</div>
{S.routines.length ? <div className="list">{S.routines.map(r => <div key={r.id} className="item" onClick={() => nav('/plan/r/' + r.id)}>
<div style={{ fontSize: '1.5rem', flex: 'none' }}>{r.emoji || '💪'}</div>
<div className="grow"><div className="tt">{r.name}</div><div className="ss">{r.ex.length} exercises</div></div>
<div className="grow"><div className="tt">{r.name}</div><div className="ss">{t('{0} exercises', r.ex.length)}</div></div>
<span className="chev">›</span></div>)}</div> : <>
<div className="empty"><div className="ico">📋</div>No routines yet.<br />Create one or load the starter plan.</div>
<button className="btn" onClick={loadStarterPlan}>Load starter plan (Push / Pull / Legs)</button>
<div className="empty"><div className="ico">📋</div>{t('No routines yet.')}<br />{t('Create one or load the starter plan.')}</div>
<button className="btn" onClick={loadStarterPlan}>{t('Load starter plan (Push / Pull / Legs)')}</button>
</>}
</div></div>
</>
+10 -16
View File
@@ -3,17 +3,11 @@ import { useEffect } from 'react'
import { useStore } from '../store/useStore.js'
import { EXIDX, isCardio } from '../lib/exercises.js'
import { fmtNum, uid } from '../lib/format.js'
import { supersetUnits } from '../lib/history.js'
import { t } from '../lib/i18n.js'
import { supersetUnits, cleanupSg } from '../lib/history.js'
import { Thumb } from '../components/Media.jsx'
import { emojiPicker, exercisePicker, exConfigSheet, confirmSheet } from '../sheets.jsx'
// drop superset ids that no longer have an adjacent partner (after unlink/reorder)
function cleanupSg(ex) {
ex.forEach((e, i) => {
if (e.sg && !(ex[i - 1]?.sg === e.sg || ex[i + 1]?.sg === e.sg)) delete e.sg
})
}
export default function RoutineEdit() {
const nav = useNavigate()
const { id } = useParams()
@@ -42,7 +36,7 @@ export default function RoutineEdit() {
<button className="iconbtn" onClick={() => nav('/plan')}>‹</button>
<div style={{ flex: 1, margin: '0 12px' }}>
<input className="input" defaultValue={r.name} style={{ fontWeight: 800, fontSize: '1.1rem' }}
onChange={e => update(s => { s.routines.find(x => x.id === id).name = e.target.value.trim() || 'Routine' })} />
onChange={e => update(s => { s.routines.find(x => x.id === id).name = e.target.value.trim() || t('Routine') })} />
</div>
<button className="iconbtn" onClick={() => emojiPicker(r.emoji, emo => update(s => { s.routines.find(x => x.id === id).emoji = emo }))}>{r.emoji || '💪'}</button>
</div>
@@ -51,14 +45,14 @@ export default function RoutineEdit() {
const ex = EXIDX[e.id]; if (!ex) return null
const linkedPrev = i > 0 && e.sg && r.ex[i - 1].sg === e.sg
return <div key={i}>
{unitFirst.has(i) && <div className="ss-label">🔗 Superset</div>}
{unitFirst.has(i) && <div className="ss-label">🔗 {t('Superset')}</div>}
<div className={'item' + (inSS.has(i) ? ' in-ss' : '')} onClick={() => {
exConfigSheet(ex, e, cfg => edit(x => { Object.assign(x[i], cfg) }), () => edit(x => { x.splice(i, 1); cleanupSg(x) }))
}}>
<Thumb ex={ex} />
<div className="grow"><div className="tt">{ex.n}</div><div className="ss">{isCardio(e.id) ? `${e.sets} × ${e.min || 20} min @ ${fmtNum(e.speed || 8)} km/h` : `${e.sets} × ${e.reps}${e.weight ? ' · ' + fmtNum(e.weight) + ' ' + S.unit : ''}`}</div></div>
<div style={{ display: 'flex', flexDirection: 'column', gap: 2, flex: 'none', alignItems: 'center' }}>
{i > 0 && <button className={'iconbtn' + (linkedPrev ? ' on-ss' : '')} title="Superset with exercise above" style={{ width: 34, height: 28, fontSize: '.85rem' }} onClick={ev => { ev.stopPropagation(); toggleLink(i) }}>🔗</button>}
{i > 0 && <button className={'iconbtn' + (linkedPrev ? ' on-ss' : '')} title={t('Superset with exercise above')} style={{ width: 34, height: 28, fontSize: '.85rem' }} onClick={ev => { ev.stopPropagation(); toggleLink(i) }}>🔗</button>}
<div style={{ display: 'flex', gap: 2 }}>
<button className="iconbtn" style={{ width: 28, height: 26, fontSize: '.7rem' }} onClick={ev => { ev.stopPropagation(); move(i, -1) }}>▲</button>
<button className="iconbtn" style={{ width: 28, height: 26, fontSize: '.7rem' }} onClick={ev => { ev.stopPropagation(); move(i, 1) }}>▼</button>
@@ -66,13 +60,13 @@ export default function RoutineEdit() {
</div>
</div>
</div>
})}</div> : <div className="empty"><div className="ico">🏋️</div>No exercises yet — add your first one.</div>}
})}</div> : <div className="empty"><div className="ico">🏋️</div>{t('No exercises yet — add your first one.')}</div>}
<div className="small dim" style={{ margin: '10px 2px' }}>Tip: tap 🔗 on an exercise to superset it with the one above — you’ll do them back-to-back.</div>
<button className="btn primary" onClick={() => exercisePicker(ex => exConfigSheet(ex, null, cfg => edit(x => { x.push({ id: ex.id, ...cfg }) })))}>+ Add exercise</button>
<div className="small dim" style={{ margin: '10px 2px' }}>{t('Tip: tap 🔗 on an exercise to superset it with the one above — you’ll do them back-to-back.')}</div>
<button className="btn primary" onClick={() => exercisePicker(ex => exConfigSheet(ex, null, cfg => edit(x => { x.push({ id: ex.id, ...cfg }) })))}>+ {t('Add exercise')}</button>
<div style={{ height: 10 }} />
<button className="btn danger" onClick={() => confirmSheet({
title: 'Delete routine?', message: `“${r.name}” and its exercises will be removed.`, confirmText: 'Delete', danger: true,
title: t('Delete routine?'), message: t('“{0}” and its exercises will be removed.', r.name), confirmText: t('Delete'), danger: true,
onConfirm: () => {
update(s => {
s.routines = s.routines.filter(x => x.id !== id)
@@ -81,6 +75,6 @@ export default function RoutineEdit() {
})
nav('/plan')
}
})}>Delete routine</button>
})}>{t('Delete routine')}</button>
</div>
}
+67 -56
View File
@@ -2,9 +2,10 @@ import { useEffect, useRef, useState } from 'react'
import { useNavigate } from 'react-router-dom'
import { useStore, DEF, hasData } from '../store/useStore.js'
import { useUI } from '../store/useUI.js'
import { ACCENTS, todayISO } from '../lib/format.js'
import { ACCENTS, todayISO, localTZ } from '../lib/format.js'
import { webauthnOK, passkeyLogin, passkeyRegister, IS_ANDROID } from '../lib/api.js'
import { pushSupported, enablePush, disablePush, sendTestPush } from '../lib/push.js'
import { t, LANGS, INSTR_LANGS } from '../lib/i18n.js'
import { loadStarterPlan, confirmSheet } from '../sheets.jsx'
export default function Settings() {
@@ -18,7 +19,7 @@ export default function Settings() {
const doExport = () => {
const blob = new Blob([JSON.stringify(S, null, 2)], { type: 'application/json' })
const a = document.createElement('a'); a.href = URL.createObjectURL(blob); a.download = 'opengym-backup-' + todayISO() + '.json'; a.click(); URL.revokeObjectURL(a.href)
toast('Backup exported ✓')
toast(t('Backup exported ✓'))
}
const doImport = ev => {
const f = ev.target.files[0]; if (!f) return
@@ -27,77 +28,84 @@ export default function Settings() {
try {
const data = JSON.parse(rd.result)
if (!data.workouts || !data.routines) throw new Error('not an openGym backup')
confirmSheet({ title: 'Import backup?', message: 'This replaces all current data with the backup file.', confirmText: 'Import', danger: true, onConfirm: () => { replaceState(Object.assign(JSON.parse(JSON.stringify(DEF)), data), true); toast('Backup imported ✓') } })
} catch (e) { toast('Import failed: ' + e.message) }
confirmSheet({ title: t('Import backup?'), message: t('This replaces all current data with the backup file.'), confirmText: t('Import'), danger: true, onConfirm: () => { replaceState(Object.assign(JSON.parse(JSON.stringify(DEF)), data), true); toast(t('Backup imported ✓')) } })
} catch (e) { toast(t('Import failed: {0}', e.message)) }
}
rd.readAsText(f)
}
const signInHere = async () => {
try { const u = await passkeyLogin(); setUser(u); await pullState(); toast('Welcome back, ' + u.name + ' 💪') }
catch (e) { if (e.name !== 'NotAllowedError' && e.name !== 'AbortError') toast(e.message || 'Sign-in failed') }
try { const u = await passkeyLogin(); setUser(u); await pullState(); toast(t('Welcome back, {0} 💪', u.name)) }
catch (e) { if (e.name !== 'NotAllowedError' && e.name !== 'AbortError') toast(e.message || t('Sign-in failed')) }
}
const registerHere = () => useUI.getState().openSheet(close => <RegisterInline close={close} setUser={setUser} pushState={pushState} pullState={pullState} toast={toast} />)
return <div className="narrow">
<div className="hdr"><button className="iconbtn" onClick={() => nav('/home')}>‹</button><div style={{ flex: 1, marginLeft: 12 }}><h1>Settings</h1></div></div>
<div className="hdr"><button className="iconbtn" onClick={() => nav('/home')}>‹</button><div style={{ flex: 1, marginLeft: 12 }}><h1>{t('Settings')}</h1></div></div>
<div className="card">
<h2>Account</h2>
<h2>{t('Account')}</h2>
{user ? <div className="row between">
<div><b>{user.name}</b><div className="small muted">Signed in with passkey — data syncs to this profile.</div></div>
<button className="btn sm danger" onClick={() => confirmSheet({ title: 'Sign out?', message: 'Your data is synced to your profile first, then cleared from this device.', confirmText: 'Sign out', danger: true, onConfirm: () => { signOut(); nav('/home') } })}>Sign out</button>
<div><b>{user.name}</b><div className="small muted">{t('Signed in with passkey — data syncs to this profile.')}</div></div>
<button className="btn sm danger" onClick={() => confirmSheet({ title: t('Sign out?'), message: t('Your data is synced to your profile first, then cleared from this device.'), confirmText: t('Sign out'), danger: true, onConfirm: () => { signOut(); nav('/home') } })}>{t('Sign out')}</button>
</div> : <>
<div className="small muted" style={{ marginBottom: 10 }}>Guest mode — data lives only in this browser. Create a passkey profile to keep it safe and separate per person.</div>
<div className="small muted" style={{ marginBottom: 10 }}>{t('Guest mode — data lives only in this browser. Create a passkey profile to keep it safe and separate per person.')}</div>
{webauthnOK() ? <>
<button className="btn primary" onClick={registerHere}>✨ Create passkey profile</button>
<div style={{ height: 8 }} /><button className="btn" onClick={signInHere}>👤 Sign in with passkey</button>
</> : <div className="small dim">Passkeys not supported in this browser.</div>}
<button className="btn primary" onClick={registerHere}>✨ {t('Create passkey profile')}</button>
<div style={{ height: 8 }} /><button className="btn" onClick={signInHere}>👤 {t('Sign in with passkey')}</button>
</> : <div className="small dim">{t('Passkeys not supported in this browser.')}</div>}
</>}
</div>
<div className="card">
<h2>Appearance <span className="dim" style={{ textTransform: 'none', letterSpacing: 0 }}>· synced with your profile</span></h2>
<h2>{t('Appearance')} <span className="dim" style={{ textTransform: 'none', letterSpacing: 0 }}>· {t('synced with your profile')}</span></h2>
<div className="row between" style={{ padding: '8px 0' }}>
<span>Theme</span>
<span>{t('Language')}</span>
<select className="input" style={{ width: 150 }} value={S.lang || 'en'} onChange={e => update(s => { s.lang = e.target.value })}>
{Object.entries(LANGS).map(([k, name]) => <option key={k} value={k}>{name}</option>)}
</select>
</div>
{!INSTR_LANGS.includes(S.lang || 'en') && <div className="small dim" style={{ marginBottom: 6 }}>{t("Exercise instructions aren't available in this language yet — they stay in English.")}</div>}
<div className="row between" style={{ padding: '8px 0' }}>
<span>{t('Theme')}</span>
<div className="chips">
<button className={'chip' + (S.theme !== 'light' ? ' on' : '')} onClick={() => update(s => { s.theme = 'dark' })}>🌙 Dark</button>
<button className={'chip' + (S.theme === 'light' ? ' on' : '')} onClick={() => update(s => { s.theme = 'light' })}>☀️ Light</button>
<button className={'chip' + (S.theme !== 'light' ? ' on' : '')} onClick={() => update(s => { s.theme = 'dark' })}>🌙 {t('Dark')}</button>
<button className={'chip' + (S.theme === 'light' ? ' on' : '')} onClick={() => update(s => { s.theme = 'light' })}>☀️ {t('Light')}</button>
</div>
</div>
<div style={{ padding: '8px 0' }}>
<div style={{ marginBottom: 10 }}>Accent color</div>
<div style={{ marginBottom: 10 }}>{t('Accent color')}</div>
<div className="swatches">{Object.entries(ACCENTS).map(([k, c]) => <button key={k} className={'swatch' + ((S.accent || 'lime') === k ? ' on' : '')} style={{ background: c }} onClick={() => update(s => { s.accent = k })} />)}</div>
</div>
</div>
<div className="card">
<h2>Units & timer</h2>
<div className="row between" style={{ padding: '8px 0' }}><span>Weight unit</span>
<h2>{t('Units & timer')}</h2>
<div className="row between" style={{ padding: '8px 0' }}><span>{t('Weight unit')}</span>
<div className="chips"><button className={'chip' + (S.unit === 'kg' ? ' on' : '')} onClick={() => update(s => { s.unit = 'kg' })}>kg</button>
<button className={'chip' + (S.unit === 'lb' ? ' on' : '')} onClick={() => update(s => { s.unit = 'lb' })}>lb</button></div></div>
<div className="row between" style={{ padding: '8px 0' }}><span>Rest timer</span>
<div className="row between" style={{ padding: '8px 0' }}><span>{t('Rest timer')}</span>
<select className="input" style={{ width: 120 }} value={S.restSec} onChange={e => update(s => { s.restSec = +e.target.value })}>
{[60, 90, 120, 150, 180].map(v => <option key={v} value={v}>{v}s</option>)}</select></div>
<div className="row between" style={{ padding: '8px 0' }}><span>Sounds</span>
<button className={'chip' + (S.sound ? ' on' : '')} onClick={() => update(s => { s.sound = !s.sound })}>{S.sound ? 'On 🔔' : 'Off 🔕'}</button></div>
<div className="small dim" style={{ marginTop: 6 }}>Note: switching units only changes the label — logged numbers are not converted.</div>
<div className="row between" style={{ padding: '8px 0' }}><span>{t('Sounds')}</span>
<button className={'chip' + (S.sound ? ' on' : '')} onClick={() => update(s => { s.sound = !s.sound })}>{S.sound ? t('On 🔔') : t('Off 🔕')}</button></div>
<div className="small dim" style={{ marginTop: 6 }}>{t('Note: switching units only changes the label — logged numbers are not converted.')}</div>
</div>
{user && <NotificationsCard S={S} update={update} toast={toast} />}
<div className="card">
<h2>Data</h2>
<button className="btn" onClick={doExport}>⬇️ Export backup (JSON)</button>
<div style={{ height: 8 }} /><button className="btn" onClick={() => fileRef.current.click()}>⬆️ Import backup</button>
<h2>{t('Data')}</h2>
<button className="btn" onClick={doExport}>⬇️ {t('Export backup (JSON)')}</button>
<div style={{ height: 8 }} /><button className="btn" onClick={() => fileRef.current.click()}>⬆️ {t('Import backup')}</button>
<input ref={fileRef} type="file" accept=".json,application/json" style={{ display: 'none' }} onChange={doImport} />
<div style={{ height: 8 }} /><button className="btn" onClick={loadStarterPlan}>Load starter plan (PPL)</button>
<div style={{ height: 8 }} /><button className="btn danger" onClick={() => confirmSheet({ title: 'Reset everything?', message: 'Deletes your plan, workouts and body weight on this device. This cannot be undone.', confirmText: 'Delete everything', danger: true, onConfirm: () => { replaceState(JSON.parse(JSON.stringify(DEF)), true); nav('/home'); toast('All data reset') } })}>Reset everything</button>
<div style={{ height: 8 }} /><button className="btn" onClick={loadStarterPlan}>{t('Load starter plan (PPL)')}</button>
<div style={{ height: 8 }} /><button className="btn 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')) } })}>{t('Reset everything')}</button>
</div>
<div className="card"><h2>Tip</h2>
<div className="small muted" style={{ lineHeight: 1.5 }}>📱 {IS_ANDROID ? 'In Chrome: ⋮ menu → Add to Home screen' : 'In Safari: Share → Add to Home Screen'} to install openGym as a full-screen app. {user ? 'Your data syncs with your profile — sign in anywhere to see it.' : 'Guest data stays on this device — export a backup now and then!'}</div></div>
<div className="card"><h2>{t('Tip')}</h2>
<div className="small muted" style={{ lineHeight: 1.5 }}>📱 {IS_ANDROID ? t('In Chrome: ⋮ menu → Add to Home screen') : t('In Safari: Share → Add to Home Screen')} {t('to install openGym as a full-screen app.')} {user ? t('Your data syncs with your profile — sign in anywhere to see it.') : t('Guest data stays on this device — export a backup now and then!')}</div></div>
<div className="dim small" style={{ textAlign: 'center', marginTop: 8, lineHeight: 1.6 }}>
openGym · free & open source (AGPL v3)<br />
openGym · {t('free & open source (AGPL v3)')}<br />
<a href="https://github.com/DuarteSantos8/openGym" target="_blank" rel="noopener">source code</a> · exercise data: hasaneyldrm/exercises-dataset (CC)
</div>
</div>
@@ -116,35 +124,38 @@ function NotificationsCard({ S, update, toast }) {
const toggle = async () => {
setBusy(true)
try {
if (on) { await disablePush(); setOn(false); toast('Notifications off') }
else { await enablePush(); setOn(true); toast('Notifications on 🔔') }
} catch (e) { toast(e.message || 'Could not change notification settings') }
if (on) { await disablePush(); setOn(false); toast(t('Notifications off')) }
else { await enablePush(); setOn(true); toast(t('Notifications on 🔔')) }
} catch (e) { toast(e.message || t('Could not change notification settings')) }
setBusy(false)
}
const test = async () => {
try { await sendTestPush(); toast('Test sent — should arrive any second') }
catch (e) { toast(e.message || 'Test failed') }
try { await sendTestPush(); toast(t('Test sent — should arrive any second')) }
catch (e) { toast(e.message || t('Test failed')) }
}
return <div className="card">
<h2>Notifications</h2>
{!supported ? <div className="small dim">Not supported in this browser.</div> : <>
<h2>{t('Notifications')}</h2>
{!supported ? <div className="small dim">{t('Not supported in this browser.')}</div> : <>
<div className="row between" style={{ padding: '8px 0' }}>
<div><span>Push notifications</span><div className="small muted">Rest-timer alerts, even if openGym is closed.</div></div>
<button className={'chip' + (on ? ' on' : '')} disabled={busy} onClick={toggle}>{on ? 'On 🔔' : 'Off 🔕'}</button>
<div><span>{t('Push notifications')}</span><div className="small muted">{t('Rest-timer alerts, even if openGym is closed.')}</div></div>
<button className={'chip' + (on ? ' on' : '')} disabled={busy} onClick={toggle}>{on ? t('On 🔔') : t('Off 🔕')}</button>
</div>
{on && <>
<div className="row between" style={{ padding: '8px 0' }}>
<span>Workout day reminder</span>
<button className={'chip' + (S.reminder?.on ? ' on' : '')} onClick={() => update(s => { s.reminder = { ...(s.reminder || DEF.reminder), on: !s.reminder?.on } })}>{S.reminder?.on ? 'On' : 'Off'}</button>
<span>{t('Workout day reminder')}</span>
<button className={'chip' + (S.reminder?.on ? ' on' : '')} onClick={() => update(s => { s.reminder = { ...(s.reminder || DEF.reminder), on: !s.reminder?.on, tz: localTZ() } })}>{S.reminder?.on ? t('On') : t('Off')}</button>
</div>
{S.reminder?.on && <div className="row between" style={{ padding: '8px 0' }}>
<span>Reminder time</span>
<span>{t('Reminder time')}</span>
<input type="time" className="input" style={{ width: 120 }} value={S.reminder?.time || DEF.reminder.time}
onChange={e => update(s => { s.reminder = { ...(s.reminder || DEF.reminder), time: e.target.value } })} />
onChange={e => update(s => { s.reminder = { ...(s.reminder || DEF.reminder), time: e.target.value, tz: localTZ() } })} />
</div>}
<div className="small dim" style={{ margin: '6px 0' }}>Only sent on days you have a routine planned and haven't logged a workout yet.</div>
<button className="btn sm" onClick={test}>Send test notification</button>
<div className="small dim" style={{ margin: '6px 0' }}>
{t("Only sent on days you have a routine planned and haven't logged a workout yet.")}
{S.reminder?.on && S.reminder?.tz && <> {t('Timezone: {0} (auto-detected, updates if you travel).', S.reminder.tz)}</>}
</div>
<button className="btn sm" onClick={test}>{t('Send test notification')}</button>
</>}
</>}
</div>
@@ -154,17 +165,17 @@ function RegisterInline({ close, setUser, pushState, pullState, toast }) {
const nameRef = useRef(null)
const go = async () => {
const n = (nameRef.current.value || '').trim()
if (!n) { toast('Enter a name'); return }
if (!n) { toast(t('Enter a name')); return }
try {
const u = await passkeyRegister(n); setUser(u); close()
if (hasData(useStore.getState().S)) { await pushState(); toast('Profile created — data moved into it ✓') }
else { await pullState(); toast('Welcome, ' + u.name + ' 💪') }
} catch (e) { if (e.name !== 'NotAllowedError' && e.name !== 'AbortError') toast(e.message || 'Registration failed') }
if (hasData(useStore.getState().S)) { await pushState(); toast(t('Profile created — data moved into it ✓')) }
else { await pullState(); toast(t('Welcome, {0} 💪', u.name)) }
} catch (e) { if (e.name !== 'NotAllowedError' && e.name !== 'AbortError') toast(e.message || t('Registration failed')) }
}
return <>
<h3>Create your profile ✨</h3>
<div className="muted small" style={{ marginBottom: 14 }}>Pick a name, then confirm with your device.</div>
<input ref={nameRef} className="input" placeholder="Your name" maxLength={40} />
<div style={{ height: 12 }} /><button className="btn primary" onClick={go}>Create passkey</button>
<h3>{t('Create your profile ✨')}</h3>
<div className="muted small" style={{ marginBottom: 14 }}>{t('Pick a name, then confirm with your device.')}</div>
<input ref={nameRef} className="input" placeholder={t('Your name')} maxLength={40} />
<div style={{ height: 12 }} /><button className="btn primary" onClick={go}>{t('Create passkey')}</button>
</>
}
+16 -15
View File
@@ -4,6 +4,7 @@ import { useStore } from '../store/useStore.js'
import { EXIDX, isCardio } from '../lib/exercises.js'
import { bestWeightFor, lastBW, streakWeeks, setLabel } from '../lib/history.js'
import { fmtNum, fmtDate, fmtVol, todayISO } from '../lib/format.js'
import { t } from '../lib/i18n.js'
import { bwSheet, goalSheet, calendarSheet, workoutDetailSheet, WorkoutRow, bwDeltaColor } from '../sheets.jsx'
import LineChart from '../components/LineChart.jsx'
import Heatmap from '../components/Heatmap.jsx'
@@ -37,38 +38,38 @@ export default function Stats() {
}
return <>
<div className="hdr"><div><h1>Stats</h1><div className="sub">Progress & history</div></div>
<div className="hdr"><div><h1>{t('Stats')}</h1><div className="sub">{t('Progress & history')}</div></div>
<button className="iconbtn" onClick={() => nav('/history')}>🗂</button></div>
<div className="tiles">
<div className="tile"><div className="l">Workouts</div><div className="v">{S.workouts.length}</div></div>
<div className="tile"><div className="l">This month</div><div className="v">{monthW}</div></div>
<div className="tile"><div className="l">Week streak</div><div className="v">{streakWeeks(S)} 🔥</div></div>
<div className="tile"><div className="l">Weight 30d</div><div className="v" style={{ fontSize: '1.15rem', color: bwDelta30 === null ? 'inherit' : bwDeltaColor(bwDelta30, (lastBW(S) || {}).w || 0) }}>{bwDelta30 === null ? '—' : (bwDelta30 > 0 ? '+' : '') + fmtNum(bwDelta30) + ' ' + S.unit}</div></div>
<div className="tile"><div className="l">{t('Workouts')}</div><div className="v">{S.workouts.length}</div></div>
<div className="tile"><div className="l">{t('This month')}</div><div className="v">{monthW}</div></div>
<div className="tile"><div className="l">{t('Week streak')}</div><div className="v">{streakWeeks(S)} 🔥</div></div>
<div className="tile"><div className="l">{t('Weight 30d')}</div><div className="v" style={{ fontSize: '1.15rem', color: bwDelta30 === null ? 'inherit' : bwDeltaColor(bwDelta30, (lastBW(S) || {}).w || 0) }}>{bwDelta30 === null ? '—' : (bwDelta30 > 0 ? '+' : '') + fmtNum(bwDelta30) + ' ' + S.unit}</div></div>
</div>
<div className="card">
<h2>Activity — last 12 months <span className="dim" style={{ textTransform: 'none', letterSpacing: 0 }}>· by time trained</span></h2>
<h2>{t('Activity — last 12 months')} <span className="dim" style={{ textTransform: 'none', letterSpacing: 0 }}>· {t('by time trained')}</span></h2>
<Heatmap S={S} onDay={iso => { const ws = S.workouts.filter(w => w.d === iso); if (ws.length === 1) workoutDetailSheet(ws[0]); else if (ws.length) calendarSheet(iso) }} />
</div>
<div className="cols">
<div className="card">
<div className="row between" style={{ marginBottom: 8 }}>
<h2 style={{ margin: 0 }}>Body weight</h2>
<h2 style={{ margin: 0 }}>{t('Body weight')}</h2>
<div className="row" style={{ gap: 8 }}>
<button className="btn sm" style={S.targetW ? { color: 'var(--gold)' } : undefined} onClick={goalSheet}>🎯 {S.targetW ? fmtNum(S.targetW) : 'Goal'}</button>
<button className="btn sm" onClick={() => bwSheet()}>+ Log</button>
<button className="btn sm" style={S.targetW ? { color: 'var(--gold)' } : undefined} onClick={goalSheet}>🎯 {S.targetW ? fmtNum(S.targetW) : t('Goal')}</button>
<button className="btn sm" onClick={() => bwSheet()}>+ {t('Log')}</button>
</div>
</div>
<div className="chips" style={{ marginBottom: 8 }}>
{[[30, '1M'], [90, '3M'], [365, '1Y'], [0, 'All']].map(([d, l]) => <button key={l} className={'chip' + (range === d ? ' on' : '')} onClick={() => setRange(d)}>{l}</button>)}
{[[30, '1M'], [90, '3M'], [365, '1Y'], [0, t('All')]].map(([d, l]) => <button key={l} className={'chip' + (range === d ? ' on' : '')} onClick={() => setRange(d)}>{l}</button>)}
</div>
<div className="chart"><LineChart points={bwPts} h={160} unit={S.unit} goal={S.targetW} /></div>
</div>
<div className="card">
<h2>Exercise progress</h2>
<h2>{t('Exercise progress')}</h2>
{exHist.length ? <>
<select className="input capitalize" style={{ marginBottom: 10 }} value={curEx} onChange={e => setExId(e.target.value)}>
{exHist.map(id => <option key={id} value={id}>{EXIDX[id].n}{isCardio(id) ? ' 🏃' : ''}</option>)}
@@ -76,15 +77,15 @@ export default function Stats() {
<div className="chart"><LineChart points={exPts.map(p => ({ t: p.t, y: p.y, d: p.d }))} h={150} unit={exUnit} color="var(--blue)" /></div>
<div style={{ marginTop: 8 }}>{exList.map((p, i) => <div key={i} className="row between small" style={{ padding: '6px 0', borderBottom: '1px solid var(--bg2)' }}>
<span className="muted">{fmtDate(p.d, true)}</span><span>{p.sets.map(s => setLabel(curEx, s)).join(' ')}</span></div>)}</div>
<div className="small dim" style={{ marginTop: 8 }}>{curCardio ? 'Top speed per workout' : 'Best set weight per workout'} · Best: <b className="accent">{fmtNum(exBest)} {exUnit}</b></div>
</> : <div className="muted small">Finish your first workout to see progress curves here. 📈</div>}
<div className="small dim" style={{ marginTop: 8 }}>{curCardio ? t('Top speed per workout') : t('Best set weight per workout')} · {t('Best:')} <b className="accent">{fmtNum(exBest)} {exUnit}</b></div>
</> : <div className="muted small">{t('Finish your first workout to see progress curves here. 📈')}</div>}
</div>
</div>
{S.workouts.length > 0 && <>
<div className="row between" style={{ marginBottom: 10 }}>
<h4 className="sec" style={{ margin: 0 }}>Recent workouts</h4>
<button className="btn sm ghost accent" onClick={() => nav('/history')}>All {S.workouts.length} ›</button>
<h4 className="sec" style={{ margin: 0 }}>{t('Recent workouts')}</h4>
<button className="btn sm ghost accent" onClick={() => nav('/history')}>{t('All')} {S.workouts.length} ›</button>
</div>
<div className="list">{[...S.workouts].reverse().slice(0, 6).map(w => <WorkoutRow key={w.id} w={w} onClick={() => workoutDetailSheet(w)} />)}</div>
</>}
+37 -32
View File
@@ -6,7 +6,9 @@ import { EXIDX, isCardio } from '../lib/exercises.js'
import { effectiveRoutine, lastEntryFor, bestWeightFor, buildSets, setsDoneActive, supersetUnits, unitOf, setLabel } from '../lib/history.js'
import { fmtNum, fmtDate, todayISO, DAYN } from '../lib/format.js'
import { beep, vibrate } from '../lib/sound.js'
import { t } from '../lib/i18n.js'
import Media from '../components/Media.jsx'
import NumField from '../components/NumField.jsx'
import { startFlow, exercisePicker, exConfigSheet, exerciseDetailSheet, topWeightSheet, finishWorkout, workoutCompleteSheet, confirmSheet } from '../sheets.jsx'
/* ---------- start chooser (no active workout) ---------- */
@@ -17,23 +19,23 @@ function StartChooser() {
const todayOvr = S.dayPlan[todayISO()] !== undefined
const others = S.routines.filter(r => r !== todayR)
return <div className="narrow">
<div className="hdr"><div><h1>Start workout</h1><div className="sub">{DAYN[new Date().getDay()]} — {todayR ? 'today is ' + todayR.name : 'rest day, but no one’s stopping you'}</div></div></div>
<div className="hdr"><div><h1>{t('Start workout')}</h1><div className="sub">{t(DAYN[new Date().getDay()])} — {todayR ? t('today is {0}', todayR.name) : t('rest day, but no one’s stopping you')}</div></div></div>
{todayR && <div className="card" style={{ borderColor: 'var(--acc)' }}>
<h2 className="accent">Today's plan{todayOvr ? ' · rescheduled' : ''}</h2>
<h2 className="accent">{t("Today's plan")}{todayOvr ? ' · ' + t('rescheduled') : ''}</h2>
<div className="row between" style={{ marginBottom: 12 }}>
<div><div className="big">{todayR.name}</div><div className="muted small">{todayR.ex.length} exercises</div></div>
<div><div className="big">{todayR.name}</div><div className="muted small">{t('{0} exercises', todayR.ex.length)}</div></div>
<div style={{ fontSize: '2rem' }}>{todayR.emoji || '💪'}</div>
</div>
<button className="btn primary" onClick={() => startFlow(todayR.id)}>Start {todayR.name} ▶</button>
<button className="btn primary" onClick={() => startFlow(todayR.id)}>{t('Start {0} ▶', todayR.name)}</button>
</div>}
{others.length > 0 && <><h4 className="sec">Other routines</h4>
{others.length > 0 && <><h4 className="sec">{t('Other routines')}</h4>
<div className="list">{others.map(r => <div key={r.id} className="item" onClick={() => startFlow(r.id)}>
<div style={{ fontSize: '1.5rem', flex: 'none' }}>{r.emoji || '💪'}</div>
<div className="grow"><div className="tt">{r.name}</div><div className="ss">{r.ex.length} exercises</div></div>
<span className="tag acc">Start ▶</span></div>)}</div></>}
<div className="grow"><div className="tt">{r.name}</div><div className="ss">{t('{0} exercises', r.ex.length)}</div></div>
<span className="tag acc">{t('Start ▶')}</span></div>)}</div></>}
<div style={{ height: 14 }} />
<button className="btn" onClick={() => startFlow(null)}>🎯 Freestyle workout (pick as you go)</button>
{!S.routines.length && <><div style={{ height: 10 }} /><button className="btn primary" onClick={() => nav('/plan')}>Build a plan first</button></>}
<button className="btn" onClick={() => startFlow(null)}>🎯 {t('Freestyle workout (pick as you go)')}</button>
{!S.routines.length && <><div style={{ height: 10 }} /><button className="btn primary" onClick={() => nav('/plan')}>{t('Build a plan first')}</button></>}
</div>
}
@@ -48,7 +50,7 @@ function Elapsed({ start }) {
}
/* ---------- one exercise block (strength: weight×reps · cardio: duration+speed) ---------- */
function ExerciseBlock({ entryIdx, compact, onToggle, onField, onBumpAll, onAddSet }) {
function ExerciseBlock({ entryIdx, compact, onToggle, onField, onBumpAll, onAddSet, onRemoveSet }) {
const S = useStore(s => s.S)
const entry = S.active.entries[entryIdx]
const ex = EXIDX[entry.id]
@@ -57,13 +59,12 @@ function ExerciseBlock({ entryIdx, compact, onToggle, onField, onBumpAll, onAddS
const best = cardio ? 0 : bestWeightFor(S, entry.id)
const hint = !cardio && last && last.sets.length >= (entry.target.sets || 1) && last.sets.every(s => s.r >= entry.target.reps) && last.sets[0].w > 0
? Math.max(...last.sets.map(s => s.w)) + 2.5 : null
const col1 = cardio ? { f: 'min', step: 1, dec: false, hd: 'Duration (min)' } : { f: 'w', step: 2.5, dec: true, hd: `Weight (${S.unit})` }
const col2 = cardio ? { f: 'speed', step: 0.5, dec: true, hd: 'Speed (km/h)' } : { f: 'r', step: 1, dec: false, hd: 'Reps' }
const col1 = cardio ? { f: 'min', step: 1, dec: false, hd: t('Duration (min)') } : { f: 'w', step: 2.5, dec: true, hd: t('Weight ({0})', S.unit) }
const col2 = cardio ? { f: 'speed', step: 0.5, dec: true, hd: t('Speed (km/h)') } : { f: 'r', step: 1, dec: false, hd: t('Reps') }
const cell = (s, i, col, cls) => (
<div className={'step ' + cls}>
<button onClick={() => onField(i, col.f, Math.max(0, Math.round(((s[col.f] || 0) - col.step) * 100) / 100))}>−</button>
<input type="number" inputMode={col.dec ? 'decimal' : 'numeric'} value={s[col.f] ?? ''} onFocus={e => e.target.select()}
onChange={e => onField(i, col.f, e.target.value === '' ? 0 : Math.max(0, (col.dec ? parseFloat(e.target.value) : Math.round(parseFloat(e.target.value))) || 0))} />
<NumField decimal={col.dec} value={s[col.f] ?? ''} onChange={v => onField(i, col.f, v)} />
<button onClick={() => onField(i, col.f, Math.max(0, Math.round(((s[col.f] || 0) + col.step) * 100) / 100))}>+</button>
</div>
)
@@ -74,12 +75,12 @@ function ExerciseBlock({ entryIdx, compact, onToggle, onField, onBumpAll, onAddS
<button className="iconbtn" onClick={() => exerciseDetailSheet(ex)}>ℹ️</button>
</div>
<div className="row" style={{ gap: 6, flexWrap: 'wrap', marginBottom: 8 }}>
{cardio && <span className="tag acc">🏃 Cardio</span>}
<span className="tag">{ex.tg || ex.bp}</span><span className="tag">{ex.eq}</span>
{best > 0 && <span className="tag">Best: {fmtNum(best)} {S.unit}</span>}
{cardio && <span className="tag acc">🏃 {t('Cardio')}</span>}
<span className="tag">{t(ex.tg || ex.bp)}</span><span className="tag">{t(ex.eq)}</span>
{best > 0 && <span className="tag">{t('Best:')} {fmtNum(best)} {S.unit}</span>}
</div>
{last && <div className="small dim" style={{ marginBottom: 4 }}>Last time ({fmtDate(last.d)}): {last.sets.map(s => setLabel(entry.id, s)).join(', ')}</div>}
{hint && <button className="tag acc" style={{ border: 'none' }} onClick={() => { onBumpAll('w', hint); useUI.getState().toast('Weights bumped to ' + fmtNum(hint) + ' ' + S.unit + ' 💪') }}>💡 Last time you hit all reps — try {fmtNum(hint)} {S.unit}</button>}
{last && <div className="small dim" style={{ marginBottom: 4 }}>{t('Last time')} ({fmtDate(last.d)}): {last.sets.map(s => setLabel(entry.id, s)).join(', ')}</div>}
{hint && <button className="tag acc" style={{ border: 'none' }} onClick={() => { onBumpAll('w', hint); useUI.getState().toast(t('Weights bumped to {0} 💪', fmtNum(hint) + ' ' + S.unit)) }}>💡 {t('Last time you hit all reps — try {0}', fmtNum(hint) + ' ' + S.unit)}</button>}
<div className="card" style={{ marginTop: 10, marginBottom: 0 }}>
<div className="sethead"><span className="n-sp" /><span className="w-sp">{col1.hd}</span><span className="r-sp">{col2.hd}</span><span className="ck-sp" /></div>
{entry.sets.map((s, i) => <div key={i} className={'setrow' + (s.done ? ' done' : '')}>
@@ -89,7 +90,10 @@ function ExerciseBlock({ entryIdx, compact, onToggle, onField, onBumpAll, onAddS
<button className={'ck' + (s.done ? ' on' : '')} onClick={() => onToggle(i)}><svg viewBox="0 0 24 24"><path d="m4.5 12.5 5 5 10-11" /></svg></button>
</div>)}
<div style={{ height: 8 }} />
<button className="btn sm" onClick={onAddSet}>+ Add set</button>
<div className="row">
<button className="btn sm" disabled={entry.sets.length <= 1} onClick={onRemoveSet}>− {t('Remove set')}</button>
<button className="btn sm" onClick={onAddSet}>+ {t('Add set')}</button>
</div>
</div>
</>
}
@@ -118,6 +122,7 @@ function ActiveWorkout() {
if (isCardio(e.id)) e.sets.push({ min: l ? l.min : (e.target.min || 20), speed: l ? l.speed : (e.target.speed || 8), done: false })
else e.sets.push({ w: l ? l.w : 0, r: l ? l.r : e.target.reps, done: false })
})
const removeSet = idx => mutEntry(idx, e => { if (e.sets.length > 1) e.sets.pop() })
const toggle = (idx, i) => {
const cardioEntry = isCardio(A.entries[idx].id)
@@ -139,49 +144,49 @@ function ActiveWorkout() {
// cardio or already-confirmed: go straight to the prompt.
if (askTop) topWeightSheet(idx)
else if (workoutDone) workoutCompleteSheet()
else if (exJustDone && cardioEntry) useUI.getState().toast('Cardio logged 🏃')
else if (exJustDone && cardioEntry) useUI.getState().toast(t('Cardio logged 🏃'))
}
return <div className="narrow">
<div className="hdr">
<button className="iconbtn" onClick={() => confirmSheet({ title: 'Discard workout?', message: 'The sets you logged in this session will be lost.', confirmText: 'Discard', danger: true, onConfirm: () => { update(s => { s.active = null }); stopRest(); nav('/home') } })}>✕</button>
<div style={{ textAlign: 'center' }}><div style={{ fontWeight: 800 }}>{A.name}</div><div className="sub"><Elapsed start={A.start} /> · {done}/{total} sets</div></div>
<button className="iconbtn" onClick={() => confirmSheet({ title: t('Discard workout?'), message: t('The sets you logged in this session will be lost.'), confirmText: t('Discard'), danger: true, onConfirm: () => { update(s => { s.active = null }); stopRest(); nav('/home') } })}>✕</button>
<div style={{ textAlign: 'center' }}><div style={{ fontWeight: 800 }}>{A.name}</div><div className="sub"><Elapsed start={A.start} /> · {t('{0} sets', done + '/' + total)}</div></div>
<button className="iconbtn" style={{ color: 'var(--acc)' }} onClick={finishWorkout}>✓</button>
</div>
<div className="wprog"><i style={{ width: (total ? done / total * 100 : 0) + '%' }} /></div>
{A.entries.length ? <>
<div className="muted small" style={{ marginBottom: 6 }}>{isSuperset ? `Superset ${unitIdx + 1} / ${units.length}` : `Exercise ${unitIdx + 1} / ${units.length}`}</div>
<div className="muted small" style={{ marginBottom: 6 }}>{isSuperset ? t('Superset {0} / {1}', unitIdx + 1, units.length) : t('Exercise {0} / {1}', unitIdx + 1, units.length)}</div>
{isSuperset ? (
<div className="ss-card">
<div className="ss-hd">🔗 Superset · do these back-to-back, rest after both</div>
<div className="ss-hd">🔗 {t('Superset · do these back-to-back, rest after both')}</div>
{unit.map((idx, k) => <div key={idx} className="ss-ex">
{k > 0 && <div className="ss-amp">+</div>}
<ExerciseBlock entryIdx={idx} compact
onToggle={i => toggle(idx, i)} onField={(i, f, v) => setField(idx, i, f, v)} onBumpAll={(f, v) => bumpAll(idx, f, v)} onAddSet={() => addSet(idx)} />
onToggle={i => toggle(idx, i)} onField={(i, f, v) => setField(idx, i, f, v)} onBumpAll={(f, v) => bumpAll(idx, f, v)} onAddSet={() => addSet(idx)} onRemoveSet={() => removeSet(idx)} />
</div>)}
</div>
) : (
<ExerciseBlock entryIdx={cur} onToggle={i => toggle(cur, i)} onField={(i, f, v) => setField(cur, i, f, v)} onBumpAll={(f, v) => bumpAll(cur, f, v)} onAddSet={() => addSet(cur)} />
<ExerciseBlock entryIdx={cur} onToggle={i => toggle(cur, i)} onField={(i, f, v) => setField(cur, i, f, v)} onBumpAll={(f, v) => bumpAll(cur, f, v)} onAddSet={() => addSet(cur)} onRemoveSet={() => removeSet(cur)} />
)}
</> : <div className="empty"><div className="ico">🎯</div>Freestyle workout — add your first exercise.</div>}
</> : <div className="empty"><div className="ico">🎯</div>{t('Freestyle workout — add your first exercise.')}</div>}
<div style={{ height: 12 }} />
<div className="row">
<button className="btn" disabled={unitIdx <= 0} onClick={() => update(s => { s.active.cur = units[unitIdx - 1][0] })}>‹ Prev</button>
<button className="btn" disabled={unitIdx < 0 || unitIdx >= units.length - 1} onClick={() => update(s => { s.active.cur = units[unitIdx + 1][0] })}>Next ›</button>
<button className="btn" disabled={unitIdx <= 0} onClick={() => update(s => { s.active.cur = units[unitIdx - 1][0] })}>‹ {t('Prev')}</button>
<button className="btn" disabled={unitIdx < 0 || unitIdx >= units.length - 1} onClick={() => update(s => { s.active.cur = units[unitIdx + 1][0] })}>{t('Next')} ›</button>
</div>
<div style={{ height: 10 }} />
<button className="btn" onClick={() => exercisePicker(ex => exConfigSheet(ex, null, cfg => update(s => {
s.active.entries.push({ id: ex.id, target: { ...cfg }, sets: buildSets(s, { ...cfg, id: ex.id }) })
s.active.cur = s.active.entries.length - 1
})))}>+ Add exercise</button>
})))}>+ {t('Add exercise')}</button>
<div style={{ height: 10 }} />
{(() => {
const exDone = A.entries.filter(e => e.sets.length && e.sets.every(s => s.done)).length
const allDone = A.entries.length > 0 && exDone === A.entries.length
return <button className={allDone ? 'btn primary' : 'btn ghost dim'} onClick={finishWorkout}>
{allDone ? 'Finish workout 🏁' : `Finish workout early · ${exDone}/${A.entries.length} exercises`}
{allDone ? t('Finish workout 🏁') : t('Finish workout early · {0} exercises', exDone + '/' + A.entries.length)}
</button>
})()}
<div style={{ height: 40 }} />
+41
View File
@@ -0,0 +1,41 @@
#!/usr/bin/env node
// Regenerates the per-language exercise instruction packs in frontend/src/instr/
// from the upstream dataset (hasaneyldrm/exercises-dataset). English stays inline
// in exercises-data.js; every other language ships as its own lazy-loaded pack.
//
// node scripts/build-instructions.mjs [path-to-exercises.json]
//
// Without an argument the dataset is downloaded from the upstream repo.
import { readFileSync, writeFileSync, mkdirSync } from 'node:fs'
import { dirname, join } from 'node:path'
import { fileURLToPath } from 'node:url'
const UPSTREAM = 'https://raw.githubusercontent.com/hasaneyldrm/exercises-dataset/main/data/exercises.json'
const LANGS = ['es', 'fr', 'it', 'tr', 'ru', 'zh', 'hi', 'pl', 'ko']
const root = join(dirname(fileURLToPath(import.meta.url)), '..')
const outDir = join(root, 'frontend', 'src', 'instr')
let raw
if (process.argv[2]) {
raw = readFileSync(process.argv[2], 'utf8')
} else {
console.log('Downloading upstream dataset…')
const res = await fetch(UPSTREAM)
if (!res.ok) throw new Error('Download failed: HTTP ' + res.status)
raw = await res.text()
}
const data = JSON.parse(raw)
mkdirSync(outDir, { recursive: true })
for (const lang of LANGS) {
const pack = {}
for (const ex of data) {
const steps = ex.instruction_steps && ex.instruction_steps[lang]
if (steps && steps.length) pack[ex.id] = steps
}
const file = join(outDir, lang + '.js')
writeFileSync(file, '// generated by scripts/build-instructions.mjs — do not edit\nexport default ' + JSON.stringify(pack) + '\n')
console.log(`${file}: ${Object.keys(pack).length} exercises`)
}