Open-source gym & body-weight tracker, now in the App Store (iPhone + Apple Watch) and as an Android APK. Plan routines, log workouts, see which muscles are trained, import from Strong/Hevy/FitNotes. Self-host it or use it on the phone alone.
JavaScript apple-watchbodyweightdockerfitnessfitness-trackergymhealthiosmcpnodejspasskeysprogressive-web-applicationspwareactself-hostedself-hostingvitewebauthnweightliftingworkout-tracker
Merge merge request !20 (intensifiers, pairing, theme, security hardening)
Duarte Santos7d2460c2c223
diff --cc .gitignoreindex 06bdf387f,c98ad2a19..88720c404--- a/.gitignore+++ b/.gitignore@@@ -14,3 -14,5 +14,5 @@@ node_modules*.log.DS_Storenode_modules+ .claude/-.agents/++.agents/diff --cc CLAUDE.mdindex 000000000,bf852a493..d7d490153mode 000000,100644..100644--- a/CLAUDE.md+++ b/CLAUDE.md@@@ -1,0 -1,136 +1,136 @@@+ # CLAUDE.md++ This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.++ ## What this is++ openGym is a self-hosted gym & body-weight tracker PWA. Two containers (`api` + `web`) plus a+ `./data` folder the user owns — no third-party account, no telemetry. Passkey (WebAuthn) login,+ installable as a home-screen app, optional Capacitor shells for standalone Android/iOS builds.+ License: AGPL-3.0-or-later.++ ## Project layout++ ```+ frontend/ React 19 + Vite app (src/views, src/components, src/store, src/lib). Builds to static files.+ android/ + ios/ are the Capacitor shells for the standalone mobile app (docs/MOBILE.md).+ api/ backend — server.js (Node, no framework), deps: @simplewebauthn/server, web-push.+ web/ multi-stage Dockerfile (builds frontend → nginx) + nginx.conf.template (serves app, proxies /api).+ mcp/ optional MCP server — read-only stdio bridge exposing a user's workouts/1RM/muscle+ balance to LLM clients (Claude Desktop, Cursor…). Not part of the Docker build; only+ runs when an LLM client spawns it.+ media/ exercise img/gif, gitignored, fetched at runtime by the `media` compose service.-website/ static marketing site (plain HTML/CSS/JS), deployed separately (GitHub Pages).++website/ static marketing site (plain HTML/CSS/JS), deployed separately by .gitlab-ci.yml.+ docs/ SELF_HOSTING.md, MOBILE.md.+ ```++ ## Commands++ ```bash+ # Local stack (api + web + media, prebuilt or built from source)+ cp .env.example .env+ docker compose up -d --build++ # Frontend dev server (hot reload), proxies /api to :3000+ cd frontend && npm install && npm run dev++ # Frontend tests (training logic: progression, 1RM, session read-back)+ cd frontend && npm test # vitest run+ cd frontend && npm run test:watch+ npx vitest run src/lib/progression.test.js # single file+ npx vitest run -t "some test name" # single test by name++ # MCP server tests+ cd mcp && npm test++ # Production build+ cd frontend && npm run build+ cd frontend && npm run build:mobile # + cap sync, points media at the CDN dataset+ ```++ There is no linter/formatter configured (no ESLint/Prettier config in the repo) and no+ TypeScript — match the existing style by hand.+-CI gate is `.gitea/workflows/test.yml` (Gitea Actions — the copy in `.github/workflows/test.yml`-is kept dormant for GitHub). Both just run `npm ci && npm test` in `frontend/` on Node 22, the-same version as `web/Dockerfile` / `api/Dockerfile` (`node:22-alpine`). `.gitlab-ci.yml` on-GitLab (canonical remote, see README) additionally builds/publishes Docker images, packages the-signed Android APK, and deploys the demo/docs site.++The CI gate is `.gitlab-ci.yml` on GitLab, the canonical remote (see README): it runs the++`frontend/` tests on Node 22 — the same version as `web/Dockerfile` / `api/Dockerfile`++(`node:22-alpine`) — and additionally builds and publishes the Docker images, packages the++signed Android APK, and deploys the demo/docs site. The Gitea and GitHub workflow copies++(`.gitea/workflows/`, `.github/workflows/`) are dormant mirrors; neither host runs them.++ ## Architecture++ ### Frontend (`frontend/src`)++ - **`store/useStore.js`** — single Zustand store holding the entire client-side app state (`S`),+ persisted to `localStorage` (`gym_state_v1`) and debounce-pushed to the server when signed in+ (`pushState`, see `lib/api.js`). On the Capacitor mobile build it's also mirrored to a file via+ `lib/mobile.js` (`nativeSave`), since WebView storage can be evicted. `store/useUI.js` holds+ ephemeral UI state (modals, active sheet, etc.) separately from persisted data.+ - **`lib/`** — pure, framework-free helpers, each paired with a same-directory `*.test.js`. This+ is where the domain logic lives, most importantly:+ - `progression.js` — the progression-rule engine (linear, Greyskull LP, double progression,+ time-based). Rules implement a shared policy interface; adding a new one plugs in here.+ - `onerm.js` — estimated 1RM from logged sets.+ - `finish-workout.js` — reduces a completed session back into state (weights advance, PRs, etc).+ - `recovery.js` / `recovery-view.js` — fatigue/muscle-recovery model.+ - `workout-model.js`, `supersetFlow.js` — in-session workout state machine, incl. supersets.+ - `exercises.js` / `exercises-data.js` — the exercise library (1,324 built-ins + user-defined).+ - `api.js` — the only place that talks to the backend (`fetch` wrapper, session cookie flows).+ - CONTRIBUTING.md is explicit: **anything that decides what you lift next, or reads a logged+ session back, is a pure helper here with a unit test beside it** — not verifiable by+ clicking, and the progression engine has already had two bugs that only a test caught.+ - **`views/`** — one file per screen (Home, Workout, Plan, Library, Stats, History, Settings,+ Admin, Login, RoutineEdit), routed by `react-router-dom` from `App.jsx`.+ - **`components/`** — shared UI (charts, modals, timers); `instr/` holds per-language exercise+ instruction text; `locales/` is the i18n string catalogue (`lib/i18n.js` / `i18n-core.js`).+ - Mobile: `@capacitor/*` wraps the same web build into native shells under `frontend/android` and+ `frontend/ios` (see `docs/MOBILE.md`); `mobile.js` in `lib/` gates native-only behavior (file+ persistence, local notifications, wake lock) behind a `MOBILE` flag.++ ### API (`api/server.js`)++ Single file, no framework, plain `node:http`. Requests are dispatched through a `routes` object+ keyed by `'METHOD /path'` (e.g. `routes['GET /api/health']`) matched against `req.method + ' ' ++ url.pathname` — add a new endpoint by adding a key here. State is two flat JSON files under+ `DATA_DIR` (`db.json`: users/credentials/subscriptions/invites; `state-<uid>.json`: per-user+ workout data), written with a write-temp-then-rename atomic pattern (`atomicWrite`). Auth is+ WebAuthn passkeys (`@simplewebauthn/server`) plus a signed session cookie (HMAC'd with a+ `DATA_DIR/secret` generated on first boot) — no JWT/session-store dependency. Optional pieces+ gated by env vars: `ADMIN_UIDS` (admin dashboard), `INVITE_ONLY` (signup needs a code),+ `ALLOW_GUEST` (client-only guest mode never hits the server at all), plus a rotating+ `data/audit.log` (JSONL) for sign-in/admin events. Web Push (`web-push`, VAPID keys+ auto-generated into `data/vapid.json`) drives rest-timer-over and day-reminder notifications.++ ### MCP server (`mcp/src`)++ Read-only stdio MCP bridge (`@modelcontextprotocol/sdk`) that lets an LLM client read a single+ user's routines/workouts/body-weight/1RM/muscle-balance directly from the same `DATA_DIR` the API+ writes to — no network call, no extra container. `state.js` loads/derives the data, `tools.js`+ defines the exposed MCP tools (zod-validated schemas), `labels.js` maps internal keys to+ human-readable labels, `index.js` wires it together. See `mcp/README.md` for the client-config+ side (Claude Desktop / Cursor).++ ### Passkeys and self-hosting constraints++ WebAuthn passkeys are bound to an exact hostname (`RP_ID`) and require HTTPS (localhost excepted)+ — this shapes a lot of the API and Settings code (`RP_ID`/`ORIGIN` env vars, guest-mode fallback+ when neither is available). Read `docs/SELF_HOSTING.md` before touching auth, session, or+ notification code; it documents the exact env-var contract (`RP_ID`, `ORIGIN`, `PORT`,+ `WEB_PORT`, `NGINX_PORT`, `BACKEND`, `SESSION_DAYS`, `ADMIN_UIDS`, `INVITE_ONLY`, `ALLOW_GUEST`,+ `AUDIT_*`, `VAPID_SUBJECT`) that real deployments depend on.++ ### Docker / deploy++ `docker-compose.yml` has three services: `media` (one-shot exercise-asset downloader, gitignored+ output), `api`, `web` (multi-stage build of `frontend/` served by nginx, which also proxies+ `/api` → `api` and serves the shared media volume — single origin, required for passkeys).+ `web/nginx.conf.template` is rendered from env vars at container start (`NGINX_PORT`, `BACKEND`,+ `PORT`), so host/port remapping works against prebuilt images without a rebuild.++ ## Guidelines from CONTRIBUTING.md worth knowing before changing code++ - **Dependency-light is a hard constraint, not a preference.** Frontend: React + Router + Zustand+ and nothing else. `api/`: two dependencies total. New dependencies are a hard sell either side.+ - Don't commit `media/` or `data/` (gitignored).+ - Training-logic changes (progression, 1RM, session read-back) need a unit test in `src/lib`+ beside the code, not just manual clicking-through.diff --cc frontend/src/lib/api.jsindex a74bda0e0,340dd9f66..ec1c3d821--- a/frontend/src/lib/api.js+++ b/frontend/src/lib/api.js@@@ -3,14 -3,29 +3,33 @@@ export const IS_APPLE = /iPhone|iPad|iPexport const IS_ANDROID = /Android/.test(navigator.userAgent)export const BIO = IS_APPLE ? 'Face ID / Touch ID' : IS_ANDROID ? 'fingerprint or face unlock' : 'your fingerprint, face or PIN'export const VAULT = IS_APPLE ? 'iCloud Keychain' : IS_ANDROID ? 'Google Password Manager' : 'your password manager'-export const webauthnOK = () => !!(window.PublicKeyCredential && navigator.credentials)+// PublicKeyCredential is the WebAuthn-specific capability signal. Do not also gate the UI on+// navigator.credentials: some browsers expose WebAuthn while that generic Credential Management+// API check produces a false negative (notably Chrome on iOS). The real create/get calls still run+// only after the user chooses a passkey action and surface any genuine browser error there.+export const webauthnOK = () => typeof window.PublicKeyCredential !== 'undefined'+ // The paired mobile app (lib/remote.js) is the only caller of these — everywhere else stays on+ // same-origin cookies, so remoteBase/remoteToken stay empty and api() behaves exactly as before.+ let remoteBase = ''+ let remoteToken = null+ export function setRemoteAuth(base, token) { remoteBase = base || ''; remoteToken = token || null }+export async function api(path, opts) {- const r = await fetch(path, Object.assign({ headers: { 'Content-Type': 'application/json' } }, opts))+ const headers = Object.assign({ 'Content-Type': 'application/json' }, opts && opts.headers)+ if (remoteToken) headers.Authorization = 'Bearer ' + remoteToken+ const r = await fetch(remoteBase + path, Object.assign({}, opts, { headers }))+ const data = await r.json().catch(() => ({}))+ if (!r.ok) { const e = new Error(data.error || ('HTTP ' + r.status)); e.status = r.status; throw e }+ return data+ }++ // Bootstraps the connection itself: the base isn't configured yet (that's what this call decides),+ // so it talks straight to the server the user typed in, no Authorization header.+ export async function pairRedeem(serverBase, code) {+ const r = await fetch(serverBase + '/api/pair/redeem', {+ method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ code })+ })const data = await r.json().catch(() => ({}))if (!r.ok) { const e = new Error(data.error || ('HTTP ' + r.status)); e.status = r.status; throw e }return datadiff --cc frontend/src/lib/pt-br-locale.test.jsindex 38c3821d4,000000000..1489a77cbmode 100644,000000..100644--- a/frontend/src/lib/pt-br-locale.test.js+++ b/frontend/src/lib/pt-br-locale.test.js@@@ -1,54 -1,0 +1,54 @@@+import { describe, expect, test } from 'vitest'+import { createHash } from 'node:crypto'+import pt from '../locales/pt.js'+import ptBR, { PT_BR_OVERRIDES } from '../locales/pt-BR.js'+import { DATE_LOCALES, LANGS } from './i18n-core.js'++const placeholders = value => [...String(value).matchAll(/\{\d+\}/g)].map(match => match[0]).sort()+const byCodeUnit = ([a], [b]) => (a < b ? -1 : a > b ? 1 : 0)++describe('Brazilian Portuguese locale', () => {+ test('is a separately selectable locale with Brazilian date formatting', () => {+ expect(LANGS.pt).toBe('Português (Portugal)')+ expect(LANGS['pt-BR']).toBe('Português (Brasil)')+ expect(DATE_LOCALES['pt-BR']).toBe('pt-BR')+ })++ test('matches the source key set and preserves interpolation placeholders', () => {+ expect(Object.keys(ptBR).sort()).toEqual(Object.keys(pt).sort())+ for (const [source, translated] of Object.entries(ptBR)) {+ expect(placeholders(translated), source).toEqual(placeholders(source))+ }+ })++ test('makes every inherited pt-PT value an explicit reviewed snapshot', () => {+ const inherited = Object.entries(pt)+ .filter(([key]) => !(key in PT_BR_OVERRIDES))+ .sort(byCodeUnit)+ const fingerprint = createHash('sha256').update(JSON.stringify(inherited)).digest('hex')+- expect(Object.keys(PT_BR_OVERRIDES)).toHaveLength(260)- expect(inherited).toHaveLength(416)++ expect(Object.keys(PT_BR_OVERRIDES)).toHaveLength(283)++ expect(inherited).toHaveLength(437)+ // If this fails, review the changed keys and wording before accepting a new hash. From+ // frontend/: node scripts/pt-br-inheritance-fingerprint.mjs --list- expect(fingerprint, 'pt-PT inheritance changed; review the inherited pt-BR wording').toBe('4c32711daa44d6d35d775efd5324036d351b2d6c61d06c734e813b7096f8f704')++ expect(fingerprint, 'pt-PT inheritance changed; review the inherited pt-BR wording').toBe('70fd93bc049da76bc578701a82ecde33b1521ddae37a403076ad48b9694cc4e3')+ })++ test('does not leak European Portuguese UI terms', () => {+ const text = Object.values(ptBR).join('\n')+ const europeanPortuguese = /(?:^|[^\p{L}])(?:ficheiro\p{L}*|telemóvel\p{L}*|ecrã\p{L}*|regist(?:o|am|ado|ada|ados|adas)|eliminad\p{L}*|definições|cronómetro|detetad\p{L}*|gémeos|abdómen|anca|coifa dos rotadores|escadora|completaste|acabaste|aguentas|definires|completares|aguenta|aguentaste|ficaste|viajares)(?=$|[^\p{L}])/iu+ expect(text).not.toMatch(europeanPortuguese)+ expect(text).not.toMatch(/[«»]/u)+ expect(ptBR.Save).toBe('Salvar')+ expect(ptBR.Settings).toBe('Configurações')+ expect(ptBR['Delete workout']).toBe('Excluir treino')+ expect(ptBR.Superset).toBe('Superset')+ expect(ptBR['Guest mode — data lives only in this browser.']).toContain('visitante')+ expect(ptBR['Sign in with passkey']).toContain('chave de acesso')+ expect(ptBR.band).toBe('elástico')+ expect(ptBR['resistance band']).toBe('faixa elástica')+ expect(ptBR.soleus).toBe('sóleo')+ expect(ptBR.Unpair).toBe('Desvincular')+ expect(ptBR['Starter plan loaded — Mon Push · Wed Pull · Fri Legs']).toContain('Seg Push · Qua Pull')+ })+})diff --cc frontend/src/lib/remote.test.jsindex 000000000,0f5ec5850..45599a619mode 000000,100644..100644--- a/frontend/src/lib/remote.test.js+++ b/frontend/src/lib/remote.test.js@@@ -1,0 -1,26 +1,27 @@@++// @vitest-environment happy-dom+ import { describe, expect, it } from 'vitest'+ import { normalizeServerUrl } from './remote.js'++ // The pairing flow lives or dies on this being forgiving about what someone types on a phone+ // keyboard, while still refusing input that can't possibly be a server address.+ describe('normalizeServerUrl', () => {+ it('accepts a bare host and adds https://', () => {+ expect(normalizeServerUrl('gym.example.com')).toBe('https://gym.example.com')+ })++ it('keeps an explicit scheme, including http for LAN testing', () => {+ expect(normalizeServerUrl('http://192.168.1.20:8080')).toBe('http://192.168.1.20:8080')+ expect(normalizeServerUrl('https://gym.example.com')).toBe('https://gym.example.com')+ })++ it('trims whitespace and a trailing path/slash down to the origin', () => {+ expect(normalizeServerUrl(' gym.example.com/ ')).toBe('https://gym.example.com')+ expect(normalizeServerUrl('https://gym.example.com/some/path')).toBe('https://gym.example.com')+ })++ it('rejects empty or unusable input', () => {+ for (const v of ['', ' ', null, undefined, 'not a url at all!!']) {+ expect(normalizeServerUrl(v)).toBe(null)+ }+ })+ })diff --cc frontend/src/locales/de.jsindex cf90ded98,7f4a79f59..a8858f2c0--- a/frontend/src/locales/de.js+++ b/frontend/src/locales/de.js@@@ -599,28 -619,28 +620,53 @@@ export default'Tap a muscle to see its exercises.': 'Tippe auf einen Muskel, um seine Übungen zu sehen.','Unpair': 'Trennen',+ // --- equipment profiles ---+ 'Showing all equipment': 'Alle Geräte werden angezeigt',+ 'Showing what you have in "{0}"': 'Angezeigt wird, was du in „{0}“ hast',+ 'Show all equipment': 'Alle Geräte zeigen',+ 'Filter by "{0}"': 'Nach „{0}“ filtern',+ 'Edit profile': 'Profil bearbeiten',+ 'New equipment profile': 'Neues Geräteprofil',+ 'Name it after where you train — e.g. "Home" or "Gym" — then check what you have there.': 'Benenne es nach deinem Trainingsort — z. B. „Zuhause“ oder „Gym“ — und hake dann ab, was du dort hast.',+ 'Profile name': 'Profilname',+ 'Body-weight exercises are always available, in every profile.': 'Körpergewichtsübungen sind immer verfügbar, in jedem Profil.',+ '{0} of {1} exercises need equipment outside "{2}"': '{0} von {1} Übungen brauchen Geräte außerhalb von „{2}“',+ 'Needs {0} — not in your active profile': 'Braucht {0} — nicht in deinem aktiven Profil',+ 'Filter by equipment': 'Nach Geräten filtern',+ 'Active profile': 'Aktives Profil',+ '{0} equipment types': '{0} Gerätearten',+ 'Add equipment profile': 'Geräteprofil hinzufügen',+ 'Delete profile?': 'Profil löschen?',+ '"{0}" and its equipment list will be removed.': '„{0}“ und die zugehörige Geräteliste werden entfernt.',+ 'Filters the exercise library and picker, and flags routine exercises that need something you don’t have in the active profile.': 'Filtert die Übungsbibliothek und die Auswahl und markiert Übungen in Routinen, die Geräte brauchen, die du im aktiven Profil nicht hast.',++ // --- muscle groups ---+ 'Primary muscle groups': 'Primäre Muskelgruppen',+ 'Additional muscle groups': 'Zusätzliche Muskelgruppen',- 'No explicit muscle group': 'Keine explizite Muskelgruppe'++ 'No explicit muscle group': 'Keine explizite Muskelgruppe',+++ // "Connect to my server" (mobile app pairing)+ 'Your server': 'Dein Server',+ 'Synced with your openGym server.': 'Mit deinem openGym-Server synchronisiert.',+ 'Disconnect': 'Trennen',+ 'Disconnect from your server?': 'Verbindung zum Server trennen?',+ 'Your data is synced to your server first, then this device switches back to local-only.': 'Deine Daten werden zuerst mit deinem Server synchronisiert, dann wechselt dieses Gerät zurück in den lokalen Modus.',+ 'Disconnected — back to local-only': 'Verbindung getrennt — zurück im lokalen Modus',+ 'Connect to my server': 'Mit meinem Server verbinden',+ 'Sync this device to your own self-hosted openGym instead.': 'Dieses Gerät stattdessen mit deinem eigenen self-hosted openGym synchronisieren.',+ 'Pair the mobile app': 'Mobile App koppeln',+ 'Connect the openGym app on your phone to this account.': 'Verbinde die openGym-App auf deinem Handy mit diesem Konto.',+ 'Could not generate a code': 'Code konnte nicht erstellt werden',+ 'On the openGym app, choose “Connect to my server”, then enter this address and the code below. It expires in 5 minutes.': 'Wähle in der openGym-App „Mit meinem Server verbinden“, gib dann diese Adresse und den Code unten ein. Er läuft in 5 Minuten ab.',+ 'Enter your server address and the code': 'Serveradresse und Code eingeben',+ 'Connected': 'Verbunden',+ 'Could not connect': 'Verbindung fehlgeschlagen',+ 'Open Settings → “Pair the mobile app” on the openGym site you’re already signed into, then enter its address and the code shown there.': 'Öffne auf der openGym-Seite, bei der du bereits angemeldet bist, Einstellungen → „Mobile App koppeln“, und gib dann deren Adresse und den dort angezeigten Code ein.',+ 'Server address (e.g. gym.example.com)': 'Serveradresse (z. B. gym.example.com)',+ 'Pairing code': 'Kopplungscode',+ 'Connecting…': 'Verbinde …',+ 'Connect': 'Verbinden',+ 'How do you want to use openGym?': 'Wie möchtest du openGym nutzen?',+ 'Use on this device': 'Auf diesem Gerät nutzen',+ 'Local keeps everything on this phone. Connecting syncs to your own openGym server instead — you can switch later in Settings.': 'Lokal behält alles auf diesem Handy. Verbinden synchronisiert stattdessen mit deinem eigenen openGym-Server — du kannst das später in den Einstellungen ändern.'}diff --cc frontend/src/locales/es.jsindex ff9b49b20,405136453..b4c6d1493--- a/frontend/src/locales/es.js+++ b/frontend/src/locales/es.js@@@ -582,28 -602,28 +603,53 @@@ export default'Tap a muscle to see its exercises.': 'Toca un músculo para ver sus ejercicios.','Unpair': 'Desvincular',+ // --- equipment profiles ---+ 'Showing all equipment': 'Mostrando todo el equipo',+ 'Showing what you have in "{0}"': 'Mostrando lo que tienes en «{0}»',+ 'Show all equipment': 'Mostrar todo el equipo',+ 'Filter by "{0}"': 'Filtrar por «{0}»',+ 'Edit profile': 'Editar perfil',+ 'New equipment profile': 'Nuevo perfil de equipo',+ 'Name it after where you train — e.g. "Home" or "Gym" — then check what you have there.': 'Ponle el nombre del sitio donde entrenas — p. ej. «Casa» o «Gimnasio» — y marca lo que tienes allí.',+ 'Profile name': 'Nombre del perfil',+ 'Body-weight exercises are always available, in every profile.': 'Los ejercicios con peso corporal están siempre disponibles, en todos los perfiles.',+ '{0} of {1} exercises need equipment outside "{2}"': '{0} de {1} ejercicios necesitan equipo fuera de «{2}»',+ 'Needs {0} — not in your active profile': 'Necesita {0} — no está en tu perfil activo',+ 'Filter by equipment': 'Filtrar por equipo',+ 'Active profile': 'Perfil activo',+ '{0} equipment types': '{0} tipos de equipo',+ 'Add equipment profile': 'Añadir perfil de equipo',+ 'Delete profile?': '¿Eliminar perfil?',+ '"{0}" and its equipment list will be removed.': '«{0}» y su lista de equipo se eliminarán.',+ 'Filters the exercise library and picker, and flags routine exercises that need something you don’t have in the active profile.': 'Filtra la biblioteca de ejercicios y el selector, y marca los ejercicios de las rutinas que necesitan algo que no tienes en el perfil activo.',++ // --- muscle groups ---+ 'Primary muscle groups': 'Grupos musculares primarios',+ 'Additional muscle groups': 'Grupos musculares adicionales',- 'No explicit muscle group': 'Sin grupo muscular explícito'++ 'No explicit muscle group': 'Sin grupo muscular explícito',+++ // "Connect to my server" (mobile app pairing)+ 'Your server': 'Tu servidor',+ 'Synced with your openGym server.': 'Sincronizado con tu servidor de openGym.',+ 'Disconnect': 'Desconectar',+ 'Disconnect from your server?': '¿Desconectar de tu servidor?',+ 'Your data is synced to your server first, then this device switches back to local-only.': 'Tus datos se sincronizan primero con tu servidor, y luego este dispositivo vuelve a modo local.',+ 'Disconnected — back to local-only': 'Desconectado — de vuelta a modo local',+ 'Connect to my server': 'Conectar a mi servidor',+ 'Sync this device to your own self-hosted openGym instead.': 'Sincroniza este dispositivo con tu propio openGym self-hosted.',+ 'Pair the mobile app': 'Emparejar la app móvil',+ 'Connect the openGym app on your phone to this account.': 'Conecta la app de openGym en tu móvil a esta cuenta.',+ 'Could not generate a code': 'No se pudo generar un código',+ 'On the openGym app, choose “Connect to my server”, then enter this address and the code below. It expires in 5 minutes.': 'En la app de openGym, elige «Conectar a mi servidor», luego introduce esta dirección y el código de abajo. Caduca en 5 minutos.',+ 'Enter your server address and the code': 'Introduce la dirección de tu servidor y el código',+ 'Connected': 'Conectado',+ 'Could not connect': 'No se pudo conectar',+ 'Open Settings → “Pair the mobile app” on the openGym site you’re already signed into, then enter its address and the code shown there.': 'En Ajustes → «Emparejar la app móvil» del sitio de openGym en el que ya has iniciado sesión, luego introduce su dirección y el código que aparece ahí.',+ 'Server address (e.g. gym.example.com)': 'Dirección del servidor (p. ej. gym.example.com)',+ 'Pairing code': 'Código de emparejamiento',+ 'Connecting…': 'Conectando…',+ 'Connect': 'Conectar',+ 'How do you want to use openGym?': '¿Cómo quieres usar openGym?',+ 'Use on this device': 'Usar en este dispositivo',+ 'Local keeps everything on this phone. Connecting syncs to your own openGym server instead — you can switch later in Settings.': 'Local mantiene todo en este teléfono. Conectar sincroniza con tu propio servidor de openGym — puedes cambiarlo luego en Ajustes.'}diff --cc frontend/src/locales/fr.jsindex e91320ec2,f33ce99cc..01df0289d--- a/frontend/src/locales/fr.js+++ b/frontend/src/locales/fr.js@@@ -582,28 -602,28 +603,53 @@@ export default'Tap a muscle to see its exercises.': 'Touchez un muscle pour voir ses exercices.','Unpair': 'Dissocier',+ // --- equipment profiles ---+ 'Showing all equipment': 'Tout l’équipement est affiché',+ 'Showing what you have in "{0}"': 'Affichage de ce que tu as dans « {0} »',+ 'Show all equipment': 'Afficher tout l’équipement',+ 'Filter by "{0}"': 'Filtrer par « {0} »',+ 'Edit profile': 'Modifier le profil',+ 'New equipment profile': 'Nouveau profil d’équipement',+ 'Name it after where you train — e.g. "Home" or "Gym" — then check what you have there.': 'Nomme-le d’après ton lieu d’entraînement — p. ex. « Maison » ou « Salle » — puis coche ce que tu y as.',+ 'Profile name': 'Nom du profil',+ 'Body-weight exercises are always available, in every profile.': 'Les exercices au poids du corps sont toujours disponibles, dans tous les profils.',+ '{0} of {1} exercises need equipment outside "{2}"': '{0} exercices sur {1} nécessitent un équipement hors de « {2} »',+ 'Needs {0} — not in your active profile': 'Nécessite {0} — absent de ton profil actif',+ 'Filter by equipment': 'Filtrer par équipement',+ 'Active profile': 'Profil actif',+ '{0} equipment types': '{0} types d’équipement',+ 'Add equipment profile': 'Ajouter un profil d’équipement',+ 'Delete profile?': 'Supprimer le profil ?',+ '"{0}" and its equipment list will be removed.': '« {0} » et sa liste d’équipement seront supprimés.',+ 'Filters the exercise library and picker, and flags routine exercises that need something you don’t have in the active profile.': 'Filtre la bibliothèque d’exercices et le sélecteur, et signale les exercices de routine qui nécessitent quelque chose que tu n’as pas dans le profil actif.',++ // --- muscle groups ---+ 'Primary muscle groups': 'Groupes musculaires principaux',+ 'Additional muscle groups': 'Groupes musculaires supplémentaires',- 'No explicit muscle group': 'Aucun groupe musculaire explicite'++ 'No explicit muscle group': 'Aucun groupe musculaire explicite',+++ // "Connect to my server" (mobile app pairing)+ 'Your server': 'Votre serveur',+ 'Synced with your openGym server.': 'Synchronisé avec votre serveur openGym.',+ 'Disconnect': 'Déconnecter',+ 'Disconnect from your server?': 'Se déconnecter de votre serveur ?',+ 'Your data is synced to your server first, then this device switches back to local-only.': "Vos données sont d'abord synchronisées avec votre serveur, puis cet appareil repasse en mode local.",+ 'Disconnected — back to local-only': 'Déconnecté — retour en mode local',+ 'Connect to my server': 'Se connecter à mon serveur',+ 'Sync this device to your own self-hosted openGym instead.': 'Synchronise plutôt cet appareil avec votre propre openGym self-hosted.',+ 'Pair the mobile app': "Associer l'application mobile",+ 'Connect the openGym app on your phone to this account.': "Associez l'application openGym de votre téléphone à ce compte.",+ 'Could not generate a code': 'Impossible de générer un code',+ 'On the openGym app, choose “Connect to my server”, then enter this address and the code below. It expires in 5 minutes.': "Dans l'application openGym, choisissez « Se connecter à mon serveur », puis saisissez cette adresse et le code ci-dessous. Il expire dans 5 minutes.",+ 'Enter your server address and the code': "Saisissez l'adresse de votre serveur et le code",+ 'Connected': 'Connecté',+ 'Could not connect': 'Connexion impossible',+ 'Open Settings → “Pair the mobile app” on the openGym site you’re already signed into, then enter its address and the code shown there.': "Dans Réglages → « Associer l'application mobile » sur le site openGym où vous êtes déjà connecté, saisissez ensuite son adresse et le code qui s'y affiche.",+ 'Server address (e.g. gym.example.com)': 'Adresse du serveur (ex. gym.example.com)',+ 'Pairing code': "Code d'association",+ 'Connecting…': 'Connexion…',+ 'Connect': 'Connecter',+ 'How do you want to use openGym?': 'Comment voulez-vous utiliser openGym ?',+ 'Use on this device': 'Utiliser sur cet appareil',+ 'Local keeps everything on this phone. Connecting syncs to your own openGym server instead — you can switch later in Settings.': 'Local garde tout sur ce téléphone. Se connecter synchronise plutôt avec votre propre serveur openGym — vous pourrez changer cela plus tard dans Réglages.'}diff --cc frontend/src/locales/hi.jsindex 756c2df3c,f513e4cca..c7efa4c75--- a/frontend/src/locales/hi.js+++ b/frontend/src/locales/hi.js@@@ -582,28 -602,28 +603,53 @@@ export default'Tap a muscle to see its exercises.': 'व्यायाम देखने के लिए किसी मांसपेशी पर टैप करें।','Unpair': 'अलग करें',+ // --- equipment profiles ---+ 'Showing all equipment': 'सभी उपकरण दिखाए जा रहे हैं',+ 'Showing what you have in "{0}"': '“{0}” में आपके पास जो है वह दिखाया जा रहा है',+ 'Show all equipment': 'सभी उपकरण दिखाएँ',+ 'Filter by "{0}"': '“{0}” से फ़िल्टर करें',+ 'Edit profile': 'प्रोफ़ाइल संपादित करें',+ 'New equipment profile': 'नई उपकरण प्रोफ़ाइल',+ 'Name it after where you train — e.g. "Home" or "Gym" — then check what you have there.': 'जहाँ आप कसरत करते हैं उसी के नाम पर रखें — जैसे “घर” या “जिम” — फिर वहाँ जो है उसे चुनें।',+ 'Profile name': 'प्रोफ़ाइल का नाम',+ 'Body-weight exercises are always available, in every profile.': 'शरीर के वज़न वाली कसरतें हर प्रोफ़ाइल में हमेशा उपलब्ध रहती हैं।',+ '{0} of {1} exercises need equipment outside "{2}"': '{1} में से {0} कसरतों को “{2}” के बाहर के उपकरण चाहिए',+ 'Needs {0} — not in your active profile': '{0} चाहिए — आपकी सक्रिय प्रोफ़ाइल में नहीं है',+ 'Filter by equipment': 'उपकरण से फ़िल्टर करें',+ 'Active profile': 'सक्रिय प्रोफ़ाइल',+ '{0} equipment types': '{0} प्रकार के उपकरण',+ 'Add equipment profile': 'उपकरण प्रोफ़ाइल जोड़ें',+ 'Delete profile?': 'प्रोफ़ाइल हटाएँ?',+ '"{0}" and its equipment list will be removed.': '“{0}” और उसकी उपकरण सूची हटा दी जाएगी।',+ 'Filters the exercise library and picker, and flags routine exercises that need something you don’t have in the active profile.': 'कसरत लाइब्रेरी और चयनकर्ता को फ़िल्टर करता है, और उन रूटीन कसरतों को चिह्नित करता है जिनके लिए सक्रिय प्रोफ़ाइल में मौजूद न होने वाला उपकरण चाहिए।',++ // --- muscle groups ---+ 'Primary muscle groups': 'प्राथमिक मांसपेशी समूह',+ 'Additional muscle groups': 'अतिरिक्त मांसपेशी समूह',- 'No explicit muscle group': 'कोई स्पष्ट मांसपेशी समूह नहीं'++ 'No explicit muscle group': 'कोई स्पष्ट मांसपेशी समूह नहीं',+++ // "Connect to my server" (mobile app pairing)+ 'Your server': 'आपका सर्वर',+ 'Synced with your openGym server.': 'आपके openGym सर्वर के साथ सिंक हो गया।',+ 'Disconnect': 'डिस्कनेक्ट करें',+ 'Disconnect from your server?': 'क्या सर्वर से डिस्कनेक्ट करें?',+ 'Your data is synced to your server first, then this device switches back to local-only.': 'आपका डेटा पहले आपके सर्वर से सिंक होगा, फिर यह डिवाइस लोकल मोड में वापस चला जाएगा।',+ 'Disconnected — back to local-only': 'डिस्कनेक्ट हो गया — वापस लोकल मोड में',+ 'Connect to my server': 'मेरे सर्वर से कनेक्ट करें',+ 'Sync this device to your own self-hosted openGym instead.': 'इसके बजाय इस डिवाइस को अपने खुद के सेल्फ़-होस्टेड openGym से सिंक करें।',+ 'Pair the mobile app': 'मोबाइल ऐप पेयर करें',+ 'Connect the openGym app on your phone to this account.': 'अपने फ़ोन पर openGym ऐप को इस अकाउंट से जोड़ें।',+ 'Could not generate a code': 'कोड जनरेट नहीं हो सका',+ 'On the openGym app, choose “Connect to my server”, then enter this address and the code below. It expires in 5 minutes.': 'openGym ऐप में "मेरे सर्वर से कनेक्ट करें" चुनें, फिर यह पता और नीचे दिया कोड डालें। यह 5 मिनट में समाप्त हो जाता है।',+ 'Enter your server address and the code': 'अपने सर्वर का पता और कोड डालें',+ 'Connected': 'कनेक्ट हो गया',+ 'Could not connect': 'कनेक्ट नहीं हो सका',+ 'Open Settings → “Pair the mobile app” on the openGym site you’re already signed into, then enter its address and the code shown there.': 'जिस openGym साइट में आप पहले से साइन इन हैं, वहाँ सेटिंग्स → "मोबाइल ऐप पेयर करें" खोलें, फिर उसका पता और वहाँ दिखा कोड डालें।',+ 'Server address (e.g. gym.example.com)': 'सर्वर का पता (जैसे gym.example.com)',+ 'Pairing code': 'पेयरिंग कोड',+ 'Connecting…': 'कनेक्ट हो रहा है…',+ 'Connect': 'कनेक्ट करें',+ 'How do you want to use openGym?': 'आप openGym का उपयोग कैसे करना चाहते हैं?',+ 'Use on this device': 'इस डिवाइस पर उपयोग करें',+ 'Local keeps everything on this phone. Connecting syncs to your own openGym server instead — you can switch later in Settings.': 'लोकल सब कुछ इसी फ़ोन पर रखता है। कनेक्ट करने पर इसके बजाय आपके अपने openGym सर्वर से सिंक होता है — इसे बाद में सेटिंग्स में बदला जा सकता है।'}diff --cc frontend/src/locales/it.jsindex fdea64e45,bd21b4801..6bcf528fb--- a/frontend/src/locales/it.js+++ b/frontend/src/locales/it.js@@@ -582,28 -602,28 +603,53 @@@ export default'Tap a muscle to see its exercises.': 'Tocca un muscolo per vedere i suoi esercizi.','Unpair': 'Separa',+ // --- equipment profiles ---+ 'Showing all equipment': 'Vengono mostrati tutti gli attrezzi',+ 'Showing what you have in "{0}"': 'Viene mostrato ciò che hai in “{0}”',+ 'Show all equipment': 'Mostra tutti gli attrezzi',+ 'Filter by "{0}"': 'Filtra per “{0}”',+ 'Edit profile': 'Modifica profilo',+ 'New equipment profile': 'Nuovo profilo attrezzi',+ 'Name it after where you train — e.g. "Home" or "Gym" — then check what you have there.': 'Chiamalo come il posto dove ti alleni — ad es. “Casa” o “Palestra” — poi spunta ciò che hai lì.',+ 'Profile name': 'Nome del profilo',+ 'Body-weight exercises are always available, in every profile.': 'Gli esercizi a corpo libero sono sempre disponibili, in ogni profilo.',+ '{0} of {1} exercises need equipment outside "{2}"': '{0} di {1} esercizi richiedono attrezzi fuori da “{2}”',+ 'Needs {0} — not in your active profile': 'Richiede {0} — non presente nel profilo attivo',+ 'Filter by equipment': 'Filtra per attrezzi',+ 'Active profile': 'Profilo attivo',+ '{0} equipment types': '{0} tipi di attrezzi',+ 'Add equipment profile': 'Aggiungi profilo attrezzi',+ 'Delete profile?': 'Eliminare il profilo?',+ '"{0}" and its equipment list will be removed.': '“{0}” e il suo elenco di attrezzi verranno rimossi.',+ 'Filters the exercise library and picker, and flags routine exercises that need something you don’t have in the active profile.': 'Filtra la libreria degli esercizi e il selettore, e segnala gli esercizi delle routine che richiedono qualcosa che non hai nel profilo attivo.',++ // --- muscle groups ---+ 'Primary muscle groups': 'Gruppi muscolari primari',+ 'Additional muscle groups': 'Gruppi muscolari aggiuntivi',- 'No explicit muscle group': 'Nessun gruppo muscolare esplicito'++ 'No explicit muscle group': 'Nessun gruppo muscolare esplicito',+++ // "Connect to my server" (mobile app pairing)+ 'Your server': 'Il tuo server',+ 'Synced with your openGym server.': 'Sincronizzato con il tuo server openGym.',+ 'Disconnect': 'Disconnetti',+ 'Disconnect from your server?': 'Disconnettersi dal server?',+ 'Your data is synced to your server first, then this device switches back to local-only.': 'I tuoi dati vengono prima sincronizzati con il tuo server, poi questo dispositivo torna alla modalità locale.',+ 'Disconnected — back to local-only': 'Disconnesso — tornato alla modalità locale',+ 'Connect to my server': 'Connettiti al mio server',+ 'Sync this device to your own self-hosted openGym instead.': 'Sincronizza invece questo dispositivo con il tuo openGym self-hosted.',+ 'Pair the mobile app': "Abbina l'app mobile",+ 'Connect the openGym app on your phone to this account.': "Collega l'app openGym sul tuo telefono a questo account.",+ 'Could not generate a code': 'Impossibile generare un codice',+ 'On the openGym app, choose “Connect to my server”, then enter this address and the code below. It expires in 5 minutes.': "Nell'app openGym scegli «Connettiti al mio server», poi inserisci questo indirizzo e il codice qui sotto. Scade tra 5 minuti.",+ 'Enter your server address and the code': "Inserisci l'indirizzo del tuo server e il codice",+ 'Connected': 'Connesso',+ 'Could not connect': 'Connessione non riuscita',+ 'Open Settings → “Pair the mobile app” on the openGym site you’re already signed into, then enter its address and the code shown there.': "In Impostazioni → «Abbina l'app mobile» sul sito openGym in cui hai già effettuato l'accesso, poi inserisci il suo indirizzo e il codice mostrato lì.",+ 'Server address (e.g. gym.example.com)': 'Indirizzo del server (es. gym.example.com)',+ 'Pairing code': 'Codice di abbinamento',+ 'Connecting…': 'Connessione…',+ 'Connect': 'Connetti',+ 'How do you want to use openGym?': 'Come vuoi usare openGym?',+ 'Use on this device': 'Usa su questo dispositivo',+ 'Local keeps everything on this phone. Connecting syncs to your own openGym server instead — you can switch later in Settings.': 'Locale mantiene tutto su questo telefono. Connettersi sincronizza invece con il tuo server openGym — potrai cambiarlo più tardi nelle Impostazioni.'}diff --cc frontend/src/locales/ko.jsindex a5c5102f0,c0df5f7a1..2df87266c--- a/frontend/src/locales/ko.js+++ b/frontend/src/locales/ko.js@@@ -582,28 -602,28 +603,53 @@@ export default'Tap a muscle to see its exercises.': '근육을 눌러 해당 운동을 확인하세요.','Unpair': '분리',+ // --- equipment profiles ---+ 'Showing all equipment': '모든 장비를 표시하는 중',+ 'Showing what you have in "{0}"': '‘{0}’에 있는 장비를 표시하는 중',+ 'Show all equipment': '모든 장비 표시',+ 'Filter by "{0}"': '‘{0}’(으)로 필터',+ 'Edit profile': '프로필 편집',+ 'New equipment profile': '새 장비 프로필',+ 'Name it after where you train — e.g. "Home" or "Gym" — then check what you have there.': '운동하는 장소의 이름을 붙여 — 예: ‘집’ 또는 ‘헬스장’ — 그곳에 있는 장비를 체크하세요.',+ 'Profile name': '프로필 이름',+ 'Body-weight exercises are always available, in every profile.': '맨몸 운동은 모든 프로필에서 항상 사용할 수 있습니다.',+ '{0} of {1} exercises need equipment outside "{2}"': '{1}개 운동 중 {0}개가 ‘{2}’ 외의 장비를 필요로 합니다',+ 'Needs {0} — not in your active profile': '{0} 필요 — 활성 프로필에 없음',+ 'Filter by equipment': '장비로 필터',+ 'Active profile': '활성 프로필',+ '{0} equipment types': '장비 종류 {0}가지',+ 'Add equipment profile': '장비 프로필 추가',+ 'Delete profile?': '프로필을 삭제할까요?',+ '"{0}" and its equipment list will be removed.': '‘{0}’과(와) 해당 장비 목록이 삭제됩니다.',+ 'Filters the exercise library and picker, and flags routine exercises that need something you don’t have in the active profile.': '운동 라이브러리와 선택기를 필터링하고, 활성 프로필에 없는 장비가 필요한 루틴 운동을 표시합니다.',++ // --- muscle groups ---+ 'Primary muscle groups': '주요 근육 그룹',+ 'Additional muscle groups': '추가 근육군',- 'No explicit muscle group': '명시적 근육군 없음'++ 'No explicit muscle group': '명시적 근육군 없음',+++ // "Connect to my server" (mobile app pairing)+ 'Your server': '내 서버',+ 'Synced with your openGym server.': 'openGym 서버와 동기화됨',+ 'Disconnect': '연결 해제',+ 'Disconnect from your server?': '서버와 연결을 해제할까요?',+ 'Your data is synced to your server first, then this device switches back to local-only.': '데이터가 먼저 서버와 동기화된 후, 이 기기는 로컬 모드로 돌아갑니다.',+ 'Disconnected — back to local-only': '연결 해제됨 — 로컬 모드로 전환',+ 'Connect to my server': '내 서버에 연결',+ 'Sync this device to your own self-hosted openGym instead.': '대신 이 기기를 직접 호스팅하는 openGym 서버와 동기화합니다.',+ 'Pair the mobile app': '모바일 앱 페어링',+ 'Connect the openGym app on your phone to this account.': '휴대폰의 openGym 앱을 이 계정에 연결하세요.',+ 'Could not generate a code': '코드를 생성하지 못했습니다',+ 'On the openGym app, choose “Connect to my server”, then enter this address and the code below. It expires in 5 minutes.': 'openGym 앱에서 "내 서버에 연결"을 선택한 다음, 이 주소와 아래 코드를 입력하세요. 5분 후 만료됩니다.',+ 'Enter your server address and the code': '서버 주소와 코드를 입력하세요',+ 'Connected': '연결됨',+ 'Could not connect': '연결하지 못했습니다',+ 'Open Settings → “Pair the mobile app” on the openGym site you’re already signed into, then enter its address and the code shown there.': '이미 로그인된 openGym 사이트에서 설정 → "모바일 앱 페어링"을 열고, 주소와 거기에 표시된 코드를 입력하세요.',+ 'Server address (e.g. gym.example.com)': '서버 주소 (예: gym.example.com)',+ 'Pairing code': '페어링 코드',+ 'Connecting…': '연결 중…',+ 'Connect': '연결',+ 'How do you want to use openGym?': 'openGym을 어떻게 사용하시겠어요?',+ 'Use on this device': '이 기기에서 사용',+ 'Local keeps everything on this phone. Connecting syncs to your own openGym server instead — you can switch later in Settings.': '로컬 모드는 모든 것을 이 휴대폰에 보관합니다. 연결하면 대신 자신의 openGym 서버와 동기화됩니다 — 나중에 설정에서 변경할 수 있습니다.'}diff --cc frontend/src/locales/pl.jsindex 86af3ddbc,012b2a228..3ea28831a--- a/frontend/src/locales/pl.js+++ b/frontend/src/locales/pl.js@@@ -582,28 -602,28 +603,53 @@@ export default'Tap a muscle to see its exercises.': 'Dotknij mięśnia, aby zobaczyć jego ćwiczenia.','Unpair': 'Rozłącz',+ // --- equipment profiles ---+ 'Showing all equipment': 'Pokazywany jest cały sprzęt',+ 'Showing what you have in "{0}"': 'Pokazywane jest to, co masz w „{0}”',+ 'Show all equipment': 'Pokaż cały sprzęt',+ 'Filter by "{0}"': 'Filtruj według „{0}”',+ 'Edit profile': 'Edytuj profil',+ 'New equipment profile': 'Nowy profil sprzętu',+ 'Name it after where you train — e.g. "Home" or "Gym" — then check what you have there.': 'Nazwij go tak jak miejsce, w którym trenujesz — np. „Dom” lub „Siłownia” — a potem zaznacz, co tam masz.',+ 'Profile name': 'Nazwa profilu',+ 'Body-weight exercises are always available, in every profile.': 'Ćwiczenia z masą własnego ciała są zawsze dostępne, w każdym profilu.',+ '{0} of {1} exercises need equipment outside "{2}"': '{0} z {1} ćwiczeń wymaga sprzętu spoza „{2}”',+ 'Needs {0} — not in your active profile': 'Wymaga: {0} — brak w aktywnym profilu',+ 'Filter by equipment': 'Filtruj według sprzętu',+ 'Active profile': 'Aktywny profil',+ '{0} equipment types': 'Typy sprzętu: {0}',+ 'Add equipment profile': 'Dodaj profil sprzętu',+ 'Delete profile?': 'Usunąć profil?',+ '"{0}" and its equipment list will be removed.': '„{0}” i jego lista sprzętu zostaną usunięte.',+ 'Filters the exercise library and picker, and flags routine exercises that need something you don’t have in the active profile.': 'Filtruje bibliotekę ćwiczeń i selektor oraz oznacza ćwiczenia w rutynach, które wymagają czegoś, czego nie masz w aktywnym profilu.',++ // --- muscle groups ---+ 'Primary muscle groups': 'Podstawowe grupy mięśniowe',+ 'Additional muscle groups': 'Dodatkowe grupy mięśniowe',- 'No explicit muscle group': 'Brak jawnej grupy mięśniowej'++ 'No explicit muscle group': 'Brak jawnej grupy mięśniowej',+++ // "Connect to my server" (mobile app pairing)+ 'Your server': 'Twój serwer',+ 'Synced with your openGym server.': 'Zsynchronizowano z Twoim serwerem openGym.',+ 'Disconnect': 'Rozłącz',+ 'Disconnect from your server?': 'Rozłączyć z serwerem?',+ 'Your data is synced to your server first, then this device switches back to local-only.': 'Twoje dane zostaną najpierw zsynchronizowane z serwerem, a następnie to urządzenie wróci do trybu lokalnego.',+ 'Disconnected — back to local-only': 'Rozłączono — z powrotem w trybie lokalnym',+ 'Connect to my server': 'Połącz z moim serwerem',+ 'Sync this device to your own self-hosted openGym instead.': 'Zsynchronizuj to urządzenie z własnym, samodzielnie hostowanym openGym.',+ 'Pair the mobile app': 'Sparuj aplikację mobilną',+ 'Connect the openGym app on your phone to this account.': 'Połącz aplikację openGym na telefonie z tym kontem.',+ 'Could not generate a code': 'Nie udało się wygenerować kodu',+ 'On the openGym app, choose “Connect to my server”, then enter this address and the code below. It expires in 5 minutes.': 'W aplikacji openGym wybierz „Połącz z moim serwerem”, a potem wpisz ten adres i poniższy kod. Wygasa po 5 minutach.',+ 'Enter your server address and the code': 'Wpisz adres swojego serwera i kod',+ 'Connected': 'Połączono',+ 'Could not connect': 'Nie udało się połączyć',+ 'Open Settings → “Pair the mobile app” on the openGym site you’re already signed into, then enter its address and the code shown there.': 'W Ustawieniach → „Sparuj aplikację mobilną” na stronie openGym, na której jesteś już zalogowany, wpisz jej adres i wyświetlony tam kod.',+ 'Server address (e.g. gym.example.com)': 'Adres serwera (np. gym.example.com)',+ 'Pairing code': 'Kod parowania',+ 'Connecting…': 'Łączenie…',+ 'Connect': 'Połącz',+ 'How do you want to use openGym?': 'Jak chcesz korzystać z openGym?',+ 'Use on this device': 'Użyj na tym urządzeniu',+ 'Local keeps everything on this phone. Connecting syncs to your own openGym server instead — you can switch later in Settings.': 'Tryb lokalny zachowuje wszystko na tym telefonie. Połączenie synchronizuje zamiast tego z Twoim własnym serwerem openGym — możesz to później zmienić w Ustawieniach.'}diff --cc frontend/src/locales/pt-BR.jsindex 8214aaec8,000000000..203cc84b6mode 100644,000000..100644--- a/frontend/src/locales/pt-BR.js+++ b/frontend/src/locales/pt-BR.js@@@ -1,273 -1,0 +1,298 @@@+// Brazilian Portuguese overrides. Shared, region-neutral strings inherit from pt-PT.+// Tests fingerprint every deliberately inherited entry so upstream changes require review.+// Some byte-identical overrides intentionally pin wording that must not drift with pt-PT.+import pt from './pt.js'++export const PT_BR_OVERRIDES = {+ 'Press back again to exit': 'Pressione voltar novamente para sair',+ 'Delete': 'Excluir',+ 'Save': 'Salvar',+ 'Log': 'Registrar',+ 'Settings': 'Configurações',+ 'Log body weight': 'Registrar peso corporal',+ 'Slide or tap to set your weight — tracked before every workout so your curve stays honest.': 'Deslize ou toque para informar seu peso — ele é registrado antes de cada treino para manter a curva precisa.',+ 'Save & start workout': 'Salvar e iniciar treino',+ 'Start without weighing in': 'Iniciar sem se pesar',+ 'Choose a different workout': 'Escolher outro treino',+ 'Recent weigh-ins': 'Pesagens recentes',+ 'Enter a valid weight': 'Informe um peso válido',+ 'Weight saved': 'Peso salvo',+ 'Your goal is drawn as a line through the weight charts, and gains/losses are colored by whether they move toward it.': 'Sua meta aparece como uma linha nos gráficos de peso, e os ganhos ou perdas mudam de cor conforme você se aproxima dela.',+ 'Save goal': 'Salvar meta',+ "No entries yet — log your weight to start the curve. It's also asked before every workout.": 'Ainda não há registros — informe seu peso para começar a curva. Ele também será solicitado antes de cada treino.',+ 'Add to my plan': 'Adicionar ao meu plano',+ 'Add “{0}”': 'Adicionar “{0}”',+ '“{0}” added to {1}': '“{0}” adicionado a {1}',+ 'Pick a routine — sets, reps & weight come next.': 'Escolha uma rotina — séries, repetições e peso vêm em seguida.',+ 'Create one and start with this exercise': 'Crie uma e comece com este exercício',+ 'Search {0} exercises…': 'Buscar entre {0} exercícios…',+ 'Nothing chosen yet — add exercises and they’ll show up here.': 'Nenhum exercício escolhido — adicione exercícios e eles aparecerão aqui.',+ 'The sets you logged for this exercise in this session will be lost.': 'As séries registradas para este exercício nesta sessão serão perdidas.',+ 'This removes the exercise from your current session.': 'Isso remove o exercício da sua sessão atual.',+ 'Which exercise in this superset do you want to remove?': 'Qual exercício deste superset você quer remover?',+ 'Pick an icon': 'Escolha um ícone',+ 'Sick, missed a day or want a different session? Pick what to train instead.': 'Ficou doente, perdeu um dia ou quer outro treino? Escolha o que treinar no lugar.',+ 'Tap a trained day for details · tap any other day to plan a session': 'Toque em um dia treinado para ver detalhes · toque em outro dia para planejar uma sessão',+ 'Delete workout?': 'Excluir treino?',+ 'This removes it from your history for good.': 'Isso remove o treino definitivamente do seu histórico.',+ 'Delete workout': 'Excluir treino',+ 'Confirm the weight you worked with — your highest becomes the default next time.': 'Confirme o peso usado — o maior valor será o padrão na próxima vez.',+ 'Then finish the superset partner.': 'Depois, termine o outro exercício do superset.',+ 'Save & next exercise': 'Salvar e ir para o próximo exercício',+ 'Save weight': 'Salvar peso',+ 'Tracked — next time starts at {0}': 'Registrado — na próxima vez você começa em {0}',+ 'Every exercise done — great work. Finish up, or keep going and add another exercise.': 'Todos os exercícios concluídos — ótimo trabalho! Finalize ou continue e adicione outro exercício.',+ 'Keep going — tap “+ Add exercise” below': 'Continue — toque em “+ Adicionar exercício” abaixo',+ 'Nothing logged yet': 'Ainda não há nada registrado',+ 'You haven’t checked off any sets. Finish the workout anyway?': 'Você não marcou nenhuma série. Deseja finalizar o treino mesmo assim?',+ 'Freestyle workout (pick as you go)': 'Treino livre (escolha durante o treino)',+ 'Build a plan first': 'Crie um plano primeiro',+ 'Cardio logged': 'Cardio registrado',+ 'The sets you logged in this session will be lost.': 'As séries registradas nesta sessão serão perdidas.',+ 'Superset · do these back-to-back, rest when done': 'Superset · faça estes exercícios em sequência e descanse ao terminar',+ 'Freestyle workout — add your first exercise.': 'Treino livre — adicione seu primeiro exercício.',+ 'Set up your weekly routine to get going — or load a ready-made Push / Pull / Legs plan.': 'Configure sua rotina semanal para começar ou carregue um plano pronto de Push / Pull / Legs.',+ 'Load starter plan (PPL)': 'Carregar plano inicial (PPL)',+ 'Build my own plan': 'Criar meu próprio plano',+ 'Finish your first workout to see progress curves here.': 'Finalize seu primeiro treino para ver os gráficos de progresso aqui.',+ 'Your weekly routine': 'Sua rotina semanal',+ 'Create one or load the starter plan.': 'Crie uma ou carregue o plano inicial.',+ 'Load starter plan (Push / Pull / Legs)': 'Carregar plano inicial (Push / Pull / Legs)',+ 'No exercises yet — add your first one.': 'Ainda não há exercícios — adicione o primeiro.',+ 'Tap the link button on an exercise to superset it with the one above — you’ll do them back-to-back.': 'Toque no botão de vínculo de um exercício para combiná-lo em um superset com o exercício acima — eles serão feitos em sequência.',+ 'Delete routine?': 'Excluir rotina?',+ 'Delete routine': 'Excluir rotina',+ 'Search…': 'Buscar…',+ 'Starter plan loaded — Mon Push · Wed Pull · Fri Legs': 'Plano inicial carregado — Seg Push · Qua Pull · Sex Pernas',+ '{0} planned for {1}': '{0} planejado para {1}',+ 'Planned': 'Planejado',+ 'Enter a name': 'Informe um nome',+ 'Registration failed': 'Falha no cadastro',+ 'Create your profile': 'Crie seu perfil',+ 'Pick a name, then confirm with {0}. The passkey is saved in your device — no password needed.': 'Escolha um nome e confirme com {0}. A chave de acesso fica salva no seu dispositivo — não é preciso usar senha.',+ 'Pick a name, then confirm with your device.': 'Escolha um nome e confirme com seu dispositivo.',+ 'Your name': 'Seu nome',+ 'Create passkey': 'Criar chave de acesso',+ 'Your workouts. Your weights. Your profile.': 'Seus treinos. Seus pesos. Seu perfil.',+ '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 oferece suporte a chaves de acesso — você ainda pode usar o openGym localmente neste dispositivo.',+ 'Signed in with passkey — data syncs to this profile.': 'Sessão iniciada com chave de acesso — os dados são sincronizados com este perfil.',+ 'Sign out?': 'Sair?',+ 'Your data is synced to your profile first, then cleared from this device.': 'Seus dados serão sincronizados com o perfil e depois apagados deste dispositivo.',+ 'Sign out': 'Sair',+ 'Sign out everywhere?': 'Sair de todos os dispositivos?',+ 'Signs this profile out on every device, including this one. Your passkeys keep working — sign in with them again anytime.': 'Encerra a sessão deste perfil em todos os dispositivos, inclusive neste. Suas chaves de acesso continuam funcionando — entre novamente quando quiser.',+ 'Sign out everywhere': 'Sair de todos os dispositivos',+ 'Ends this profile’s sessions on all your devices.': 'Encerra as sessões deste perfil em todos os seus dispositivos.',+ 'Signed out on all devices': 'Sessão encerrada em todos os dispositivos',+ 'Could not sign out everywhere — you are still signed in.': 'Não foi possível sair de todos os dispositivos — sua sessão continua ativa.',+ 'Guest mode — data lives only in this browser. Create a passkey profile to keep it safe and separate per person.': 'Modo visitante — os dados ficam somente neste navegador. Crie um perfil com chave de acesso para mantê-los seguros e separados por pessoa.',+ 'Create passkey profile': 'Criar perfil com chave de acesso',+ 'synced with your profile': 'sincronizado com seu perfil',+ 'The screen stays on while a workout is running, so you don’t have to unlock your phone between sets.': 'A tela permanece ligada durante o treino, para você não precisar desbloquear o celular entre as séries.',+ 'Note: switching units only changes the label — logged numbers are not converted.': 'Observação: trocar a unidade altera somente o rótulo — os valores registrados não são convertidos.',+ 'Export backup (JSON)': 'Exportar backup (JSON)',+ 'Import backup': 'Importar backup',+ 'Reset everything?': 'Redefinir tudo?',+ 'Reset everything': 'Redefinir tudo',+ 'Deletes your plan, workouts and body weight on this device. This cannot be undone.': 'Exclui seu plano, seus treinos e seu peso corporal deste dispositivo. Esta ação não pode ser desfeita.',+ 'Delete everything': 'Excluir tudo',+ 'Backup exported': 'Backup exportado',+ 'Import backup?': 'Importar backup?',+ 'This replaces all current data with the backup file.': 'Isso substitui todos os dados atuais pelo arquivo de backup.',+ 'Backup imported': 'Backup importado',+ 'In Chrome: ⋮ menu → Add to Home screen': 'No Chrome: menu ⋮ → Adicionar à tela inicial',+ 'In Safari: Share → Add to Home Screen': 'No Safari: Compartilhar → Adicionar à Tela de Início',+ 'Your data syncs with your profile — sign in anywhere to see it.': 'Seus dados são sincronizados com o perfil — entre em qualquer dispositivo para acessá-los.',+ 'Guest data stays on this device — export a backup now and then!': 'Os dados de visitante ficam neste dispositivo — exporte um backup de vez em quando!',+ 'Only sent on days you have a routine planned and haven\'t logged a workout yet.': 'Enviado somente nos dias em que há uma rotina planejada e você ainda não registrou um treino.',+ 'Could not change notification settings': 'Não foi possível alterar as configurações de notificação',+ 'tap to pause': 'toque para pausar',+ 'tap to play': 'toque para reproduzir',+ 'Keeps your data safe and separate per person.': 'Mantém seus dados seguros e separados por pessoa.',+ 'Create your own exercise': 'Crie seu próprio exercício',+ 'Give it a name': 'Dê um nome',+ 'Description (optional) — setup, cues, anything you want to remember': 'Descrição (opcional) — preparação, dicas ou qualquer observação que você queira guardar',+ 'Name it and pick a body part — it behaves like any other exercise, just without an animation.': 'Dê um nome e escolha uma parte do corpo — ele funciona como qualquer outro exercício, mas sem animação.',+ 'Pick a body part': 'Escolha uma parte do corpo',+ 'Saved': 'Salvo',+ 'Delete “{0}”?': 'Excluir “{0}”?',+ 'It will be removed from your routines. Already-logged workouts keep their sets.': 'Ele será removido das suas rotinas. Os treinos já registrados manterão suas séries.',+ 'Finish your current workout first': 'Finalize o treino atual primeiro',+ 'Delete exercise': 'Excluir exercício',+ 'Edit or delete this exercise': 'Editar ou excluir este exercício',+ 'This app is invite-only — enter the code you were given.': 'Este aplicativo é somente para convidados — informe o código que você recebeu.',+ 'Passkeys use {0} — no passwords.': 'As chaves de acesso usam {0} — sem senhas.',+ 'Strength shows retained muscle strength. Train again to reset it.': 'A força mostra quanto da força muscular foi mantida. Treine novamente para redefinir o valor.',+ 'Added as your own': 'Adicionados como seus',+ 'The file is in {0} and your profile is in {1} — weights will be converted.': 'O arquivo está em {0} e seu perfil em {1} — os pesos serão convertidos.',+ 'The file does not say which unit it uses — numbers are imported as they are.': 'O arquivo não informa qual unidade utiliza — os valores serão importados como estão.',+ 'The file mixes kg and lb — each set is converted to {0}.': 'O arquivo mistura kg e lb — cada série será convertida para {0}.',+ '{0} days already have data here and will be left alone.': '{0} dias já têm dados aqui e não serão alterados.',+ 'Not in the library — added as your own exercises': 'Não estão na biblioteca — foram adicionados como exercícios próprios',+ 'Could not read that file': 'Não foi possível ler esse arquivo',+ 'That file\'s columns aren\'t recognised — see the docs for supported apps.': 'Colunas não reconhecidas — consulte a documentação dos aplicativos compatíveis.',+ 'That file is empty': 'Esse arquivo está vazio',+ 'Nothing to import from that file': 'Não há nada para importar desse arquivo',+ 'Your data': 'Seus dados',+ 'All data stays on this phone': 'Todos os dados ficam neste celular',+ 'No account, no cloud — back it up anytime with Export below.': 'Sem conta e sem nuvem — faça um backup quando quiser usando a opção Exportar abaixo.',+ '{0} is on the plan today — let’s go!': 'Hoje tem {0} no plano — vamos lá!',+ 'Share your plan': 'Compartilhar seu plano',+ 'Shared routine': 'Rotina compartilhada',+ 'Got a plan from a friend?': 'Recebeu um plano de um amigo?',+ 'Send your routines to a friend, or put your week on paper.': 'Envie suas rotinas para um amigo ou coloque sua semana no papel.',+ 'Export plan file': 'Exportar arquivo do plano',+ 'A small file a friend imports into their own openGym — routines only, none of your workouts or weigh-ins.': 'Um pequeno arquivo que um amigo pode importar no próprio openGym — somente rotinas, sem seus treinos ou pesagens.',+ 'Print / Save as PDF': 'Imprimir / Salvar como PDF',+ 'Add an exercise to a routine first — an empty plan has nothing to share.': 'Adicione primeiro um exercício a uma rotina — um plano vazio não tem nada para compartilhar.',+ 'Import a plan file': 'Importar arquivo do plano',+ 'Plan file saved — send it to a friend': 'Arquivo do plano salvo — envie-o para um amigo',+ 'These are added as new routines — nothing you already have is changed.': 'Elas serão adicionadas como novas rotinas — nada do que você já tem será alterado.',+ '{0} exercise in the file isn’t in your library and was left out.': '{0} exercício do arquivo não está na sua biblioteca e foi ignorado.',+ '{0} exercises in the file aren’t in your library and were left out.': '{0} exercícios do arquivo não estão na sua biblioteca e foram ignorados.',+ 'Replaces your current Mon–Sun assignments.': 'Substitui os dias definidos de segunda a domingo.',+ 'Added {0} routines to your plan': '{0} rotinas adicionadas ao seu plano',+ 'this isn’t an openGym plan file': 'este não é um arquivo de plano do openGym',+ 'This screen could not be drawn. Your data is safe on this device.': 'Não foi possível exibir esta tela. Seus dados estão seguros neste dispositivo.',+ 'From your log:': 'Do seu registro:',+ 'Enter a weight and 1–{0} reps — beyond that an estimate is guesswork.': 'Informe um peso e de 1 a {0} repetições — acima disso, a estimativa é apenas um palpite.',+ 'Hold logged': 'Isometria registrada',+ 'Work up through a rep range at the same weight. Reach the top of the range in every set and the weight goes up, reps back to the bottom.': 'Avance por uma faixa de repetições com o mesmo peso. Ao atingir o topo da faixa em todas as séries, o peso aumenta e as repetições voltam ao mínimo.',+ 'Nothing logged yet — this session sets the baseline.': 'Ainda não há nada registrado — esta sessão define o ponto de partida.',+ 'Reminds you at this time on days that have a routine planned.': 'Lembra você neste horário nos dias em que há uma rotina planejada.',+ 'Each profile keeps its own plan, workouts & body weight.': 'Cada perfil mantém seu próprio plano, seus treinos e seu peso corporal.',+ 'Short {0} sessions in a row — back off to {1}s and build up again.': '{0} sessões seguidas abaixo da meta — reduza para {1} s e volte a progredir.',+ 'Top of the rep range in every set — {0} {1} more, back to {2} reps.': 'Topo da faixa de repetições em todas as séries — aumente {0} {1} e volte para {2} repetições.',+ 'Missed reps {0} sessions running — reset to {1} {2} and work back up.': 'Repetições não concluídas em {0} sessões seguidas — volte para {1} {2} e progrida novamente.',+ 'Missed reps — reset to {0} {1} and work back up.': 'Repetições não concluídas — volte para {0} {1} e progrida novamente.',+ 'Missed reps last time — same weight again ({0} of {1} to go).': 'Você não concluiu as repetições na última vez — mantenha o mesmo peso (faltam {0} de {1}).',+ '{0} sets bring an {1} with them — switch on Effort per set in Settings to see it.': '{0} séries incluem um {1} — ative “Esforço por série” nas Configurações para exibi-lo.',+ 'RIR counts the reps you left; RPE reads the same effort off a 10-point scale — so RPE ≈ 10 − RIR. Pick the one you already think in.': 'O RIR conta as repetições que você ainda conseguiria fazer; o RPE representa o mesmo esforço em uma escala de 10 — portanto, RPE ≈ 10 − RIR. Escolha a escala que você já usa.',+ 'The highlighted row is where most working sets land. Sets you have already logged keep their own scale, and nothing else reads the value — progression and estimated 1RM are unaffected.': 'A linha destacada representa a maioria das séries de trabalho. As séries já registradas mantêm sua escala, e nenhum outro recurso usa esse valor — a progressão e o 1RM estimado não são afetados.',+ 'Effort per set is switched off — turn it on in Settings to keep rating.': 'O esforço por série está desativado — ative-o nas Configurações para continuar avaliando.',+ 'No weight to enter — just log the reps.': 'Não é preciso informar peso — registre apenas as repetições.',+ 'Reps climb by one whenever every set was clean. Set a ceiling to add sets instead of reps forever.': 'As repetições aumentam em uma quando todas as séries são concluídas. Defina um limite para adicionar séries em vez de aumentar repetições indefinidamente.',+ '{0} reps in every set — add a set and go back to {1}.': '{0} repetições em todas as séries — adicione uma série e volte para {1}.',+ 'You still log the total: {0} is {1} per side.': 'Você ainda registra o total: {0} corresponde a {1} de cada lado.',+ 'Two straight sets plus a final set taken to failure. Beat the target on that set and the weight goes up — double if you double the reps. One failure resets 10 %.': 'Duas séries normais mais uma série final até a falha. Se você superar a meta nessa série, o peso aumenta — em dobro se você dobrar as repetições. Uma falha reduz 10%.',+ 'Reps climb to {0}, then a set is added and the reps start over. At {1} sets it asks you to add weight instead.': 'As repetições aumentam até {0}; depois, uma série é adicionada e as repetições recomeçam. Ao chegar a {1} séries, o app sugere adicionar peso.',++ // Regional wording inherited from pt-PT would otherwise leak into pt-BR.+ 'Next': 'Próximo',+ '{0} to gain': '{0} para ganhar',+ '{0} to lose': '{0} para perder',+ '{0} set still unchecked. Finish the workout now?': 'Falta {0} série sem marcar. Finalizar o treino agora?',+ '{0} sets still unchecked. Finish the workout now?': 'Faltam {0} séries sem marcar. Finalizar o treino agora?',+ 'band': 'elástico',+ 'resistance band': 'faixa elástica',+ 'core': 'abdômen',+ 'lower back': 'lombar',+ 'shins': 'canelas',+ 'soleus': 'sóleo',+ 'Lower back': 'Lombar',+ 'Shins': 'Canelas',+ 'Import from another app': 'Importar de outro aplicativo',+ 'Stalled {0} sessions — deload to {1} {2}.': '{0} sessões sem progresso — reduza a carga para {1} {2}.',+ 'Bodyweight — every rep last time, so go for {0} this time.': 'Peso corporal — você concluiu todas as repetições na última vez; tente {0} desta vez.',+ 'Bodyweight — same target again until every set is clean.': 'Peso corporal — mantenha a mesma meta até concluir todas as séries.',+ 'Top of the range': 'Topo da faixa',+ 'Unpair': 'Desvincular',+ 'Skip': 'Pular',+ 'Rest / skip this day': 'Descansar / pular este dia',+ 'Workout deleted': 'Treino excluído',+ 'Last time you hit all reps — try {0}': 'Na última vez você concluiu todas as repetições — tente {0}',+ '{0} — in progress': '{0} — em andamento',+ '“{0}” and its exercises will be removed.': '“{0}” e seus exercícios serão removidos.',+ 'Sign-in failed': 'Falha ao entrar',+ "This browser doesn't support passkeys, and this instance requires an account. Try a browser or device with passkey support.": 'Este navegador não oferece suporte a chaves de acesso e este servidor exige uma conta. Tente usar outro navegador ou dispositivo compatível.',+ 'Keep screen awake': 'Manter a tela ligada',+ 'All data reset': 'Todos os dados redefinidos',+ 'to install openGym as a full-screen app.': 'para instalar o openGym como aplicativo em tela cheia.',+ 'Timezone: {0} (auto-detected, updates if you travel).': 'Fuso horário: {0} (detectado automaticamente e atualizado se você viajar).',+ 'lower legs': 'panturrilhas',+ 'waist': 'abdômen',+ 'stepmill machine': 'simulador de escada',+ 'upper body ergometer': 'ergômetro de braços',+ 'calves': 'panturrilhas',+ 'levator scapulae': 'levantador da escápula',+ 'hip flexors': 'flexores do quadril',+ 'rotator cuff': 'manguito rotador',+ '“{0}” already exists': '“{0}” já existe',+ '“{0}” created': '“{0}” criado',+ 'Cardio exercises log time + speed instead of weight × reps.': 'Exercícios de cardio registram tempo e velocidade em vez de peso × repetições.',+ 'Exercise deleted': 'Exercício excluído',+ 'What you just trained': 'O que você acabou de treinar',+ 'Import “{0}”': 'Importar “{0}”',+ 'Something went wrong': 'Algo deu errado',+ 'Discard the running workout': 'Descartar o treino em andamento',+ 'A timer runs while you hold the set. Leave the weight at 0 for bodyweight holds.': 'Um cronômetro funciona enquanto você mantém a posição. Deixe o peso em 0 para isometrias com o peso do corpo.',+ 'Targets stay where you set them.': 'As metas permanecem como você definir.',+ 'Hit every rep in every set and the weight goes up. Repeated misses trigger a deload.': 'Conclua todas as repetições de todas as séries para aumentar o peso. Falhas repetidas acionam uma redução de carga.',+ 'Hold every set for the full duration and the target goes up.': 'Mantenha todas as séries pela duração completa para aumentar a meta.',+ 'Held every set for the full time — target up by {0}s.': 'Você manteve todas as séries pelo tempo completo — meta aumentada em {0} s.',+ 'Last time came up short — same target again.': 'Na última vez você ficou abaixo da meta — repita a mesma meta.',+ 'Same weight — aim for {0} reps this time.': 'Mesmo peso — desta vez, tente fazer {0} repetições.',+ 'Nothing left — went to failure': 'Sem repetições restantes — até a falha',+ 'Tap a muscle to see its exercises.': 'Toque em um músculo para ver seus exercícios.',+ 'Superset': 'Superset',+ 'Superset {0} / {1}': 'Superset {0} / {1}',+ 'Superset with exercise above': 'Superset com o exercício acima',+ 'Guest mode — data lives only in this browser.': 'Modo visitante — os dados ficam somente neste navegador.',+ 'Sign in with passkey': 'Entrar com chave de acesso',+ 'Passkeys not supported in this browser.': 'Chaves de acesso não são compatíveis com este navegador.',+ 'Su': 'D',+ 'Mo': 'S',+ 'Tu': 'T',+ 'We': 'Q',+ 'Th': 'Q',+ 'Fr': 'S',+ 'Sa': 'S',++ // --- equipment profiles ---+ 'Showing all equipment': 'Mostrando todos os equipamentos',+ 'Showing what you have in "{0}"': 'Mostrando o que você tem em “{0}”',+ 'Show all equipment': 'Mostrar todos os equipamentos',+ 'Filter by "{0}"': 'Filtrar por “{0}”',+ 'Edit profile': 'Editar perfil',+ 'New equipment profile': 'Novo perfil de equipamentos',+ 'Name it after where you train — e.g. "Home" or "Gym" — then check what you have there.': 'Dê a ele o nome do lugar onde você treina — por exemplo, “Casa” ou “Academia” — e marque o que você tem lá.',+ 'Profile name': 'Nome do perfil',+ 'Body-weight exercises are always available, in every profile.': 'Exercícios com o peso do corpo estão sempre disponíveis, em todos os perfis.',+ '{0} of {1} exercises need equipment outside "{2}"': '{0} de {1} exercícios precisam de equipamentos fora de “{2}”',+ 'Needs {0} — not in your active profile': 'Precisa de {0} — não está no seu perfil ativo',+ 'Filter by equipment': 'Filtrar por equipamento',+ 'Active profile': 'Perfil ativo',+ '{0} equipment types': '{0} tipos de equipamento',+ 'Add equipment profile': 'Adicionar perfil de equipamentos',+ 'Delete profile?': 'Excluir perfil?',+ '"{0}" and its equipment list will be removed.': '“{0}” e sua lista de equipamentos serão removidos.',- 'Filters the exercise library and picker, and flags routine exercises that need something you don’t have in the active profile.': 'Filtra a biblioteca de exercícios e o seletor, e sinaliza os exercícios das rotinas que precisam de algo que você não tem no perfil ativo.'++ 'Filters the exercise library and picker, and flags routine exercises that need something you don’t have in the active profile.': 'Filtra a biblioteca de exercícios e o seletor, e sinaliza os exercícios das rotinas que precisam de algo que você não tem no perfil ativo.',++++ // --- drop-sets, auto-backup and server pairing ---++ 'Auto-backup on changes': 'Backup automático ao alterar',++ 'Saves a dated copy to the Documents folder after finishing a workout or editing a routine — point a sync app at it, or copy it out by hand.': 'Salva uma cópia datada na pasta Documentos depois de terminar um treino ou editar uma rotina — aponte um aplicativo de sincronização para ela, ou copie o arquivo na mão.',++ 'Your server': 'Seu servidor',++ 'Synced with your openGym server.': 'Sincronizado com o seu servidor openGym.',++ 'Disconnect': 'Desconectar',++ 'Disconnect from your server?': 'Desconectar do seu servidor?',++ 'Your data is synced to your server first, then this device switches back to local-only.': 'Seus dados são sincronizados com o seu servidor primeiro, depois este dispositivo volta ao modo somente local.',++ 'Disconnected — back to local-only': 'Desconectado — de volta ao modo somente local',++ 'Connect to my server': 'Conectar ao meu servidor',++ 'Sync this device to your own self-hosted openGym instead.': 'Sincronize este dispositivo com o seu próprio openGym auto-hospedado.',++ 'Pair the mobile app': 'Parear o aplicativo',++ 'Connect the openGym app on your phone to this account.': 'Conecte o aplicativo openGym do seu celular a esta conta.',++ 'On the openGym app, choose “Connect to my server”, then enter this address and the code below. It expires in 5 minutes.': 'No aplicativo openGym, escolha “Conectar ao meu servidor”, depois digite este endereço e o código abaixo. Ele expira em 5 minutos.',++ 'Enter your server address and the code': 'Digite o endereço do seu servidor e o código',++ 'Connected': 'Conectado',++ 'Could not connect': 'Não foi possível conectar',++ 'Open Settings → “Pair the mobile app” on the openGym site you’re already signed into, then enter its address and the code shown there.': 'No site openGym em que você já está conectado, abra Configurações → “Parear o aplicativo”, depois digite o endereço e o código mostrado lá.',++ 'Connecting…': 'Conectando…',++ 'Connect': 'Conectar',++ 'How do you want to use openGym?': 'Como você quer usar o openGym?',++ 'Local keeps everything on this phone. Connecting syncs to your own openGym server instead — you can switch later in Settings.': 'Local mantém tudo neste celular. Conectar sincroniza com o seu próprio servidor openGym — você pode mudar depois em Configurações.',++ 'Every set becomes a drop-set: after the main set, {0} drop(s) with no rest, each about {1}% lighter.': 'Cada série vira uma série decrescente: depois da série principal, {0} queda(s) sem descanso, cada uma cerca de {1}% mais leve.',++ 'Every set becomes rest-pause: {0} reps to start, then {1} more split into short bursts, {2}s rest before each, roughly halving each time.': 'Cada série vira rest-pause: {0} repetições para começar, depois mais {1} divididas em rajadas curtas, com {2}s de descanso antes de cada uma, caindo cerca de metade a cada vez.'+}++export default { ...pt, ...PT_BR_OVERRIDES }diff --cc frontend/src/locales/pt.jsindex a0d48fa1e,9ceb7a600..aff99296c--- a/frontend/src/locales/pt.js+++ b/frontend/src/locales/pt.js@@@ -582,28 -602,28 +603,53 @@@ export default'Tap a muscle to see its exercises.': 'Toque num músculo para ver os seus exercícios.','Unpair': 'Desfazer',+ // --- equipment profiles ---+ 'Showing all equipment': 'A mostrar todo o equipamento',+ 'Showing what you have in "{0}"': 'A mostrar o que tens em «{0}»',+ 'Show all equipment': 'Mostrar todo o equipamento',+ 'Filter by "{0}"': 'Filtrar por «{0}»',+ 'Edit profile': 'Editar perfil',+ 'New equipment profile': 'Novo perfil de equipamento',+ 'Name it after where you train — e.g. "Home" or "Gym" — then check what you have there.': 'Dá-lhe o nome do sítio onde treinas — p. ex. «Casa» ou «Ginásio» — e marca o que tens lá.',+ 'Profile name': 'Nome do perfil',+ 'Body-weight exercises are always available, in every profile.': 'Os exercícios com o peso do corpo estão sempre disponíveis, em todos os perfis.',+ '{0} of {1} exercises need equipment outside "{2}"': '{0} de {1} exercícios precisam de equipamento fora de «{2}»',+ 'Needs {0} — not in your active profile': 'Precisa de {0} — não está no teu perfil ativo',+ 'Filter by equipment': 'Filtrar por equipamento',+ 'Active profile': 'Perfil ativo',+ '{0} equipment types': '{0} tipos de equipamento',+ 'Add equipment profile': 'Adicionar perfil de equipamento',+ 'Delete profile?': 'Eliminar perfil?',+ '"{0}" and its equipment list will be removed.': '«{0}» e a respetiva lista de equipamento serão removidos.',+ 'Filters the exercise library and picker, and flags routine exercises that need something you don’t have in the active profile.': 'Filtra a biblioteca de exercícios e o seletor, e assinala os exercícios das rotinas que precisam de algo que não tens no perfil ativo.',++ // --- muscle groups ---+ 'Primary muscle groups': 'Grupos musculares primários',+ 'Additional muscle groups': 'Grupos musculares adicionais',- 'No explicit muscle group': 'Nenhum grupo muscular explícito'++ 'No explicit muscle group': 'Nenhum grupo muscular explícito',+++ // "Connect to my server" (mobile app pairing)+ 'Your server': 'O teu servidor',+ 'Synced with your openGym server.': 'Sincronizado com o teu servidor openGym.',+ 'Disconnect': 'Desligar',+ 'Disconnect from your server?': 'Desligar do teu servidor?',+ 'Your data is synced to your server first, then this device switches back to local-only.': 'Os teus dados são primeiro sincronizados com o teu servidor, depois este dispositivo volta ao modo local.',+ 'Disconnected — back to local-only': 'Desligado — de volta ao modo local',+ 'Connect to my server': 'Ligar ao meu servidor',+ 'Sync this device to your own self-hosted openGym instead.': 'Sincroniza este dispositivo com o teu próprio openGym self-hosted.',+ 'Pair the mobile app': 'Emparelhar a app móvel',+ 'Connect the openGym app on your phone to this account.': 'Liga a app openGym no teu telemóvel a esta conta.',+ 'Could not generate a code': 'Não foi possível gerar um código',+ 'On the openGym app, choose “Connect to my server”, then enter this address and the code below. It expires in 5 minutes.': 'Na app openGym, escolhe «Ligar ao meu servidor», depois introduz este endereço e o código abaixo. Expira em 5 minutos.',+ 'Enter your server address and the code': 'Introduz o endereço do teu servidor e o código',+ 'Connected': 'Ligado',+ 'Could not connect': 'Não foi possível ligar',+ 'Open Settings → “Pair the mobile app” on the openGym site you’re already signed into, then enter its address and the code shown there.': 'Em Definições → «Emparelhar a app móvel» no site openGym em que já tens sessão iniciada, introduz depois o endereço e o código apresentado aí.',+ 'Server address (e.g. gym.example.com)': 'Endereço do servidor (ex. gym.example.com)',+ 'Pairing code': 'Código de emparelhamento',+ 'Connecting…': 'A ligar…',+ 'Connect': 'Ligar',+ 'How do you want to use openGym?': 'Como queres usar o openGym?',+ 'Use on this device': 'Usar neste dispositivo',+ 'Local keeps everything on this phone. Connecting syncs to your own openGym server instead — you can switch later in Settings.': 'Local mantém tudo neste telemóvel. Ligar sincroniza antes com o teu próprio servidor openGym — podes mudar mais tarde em Definições.'}diff --cc frontend/src/locales/ru.jsindex 4d1681897,e61e20fa8..1d0afe56e--- a/frontend/src/locales/ru.js+++ b/frontend/src/locales/ru.js@@@ -582,28 -602,28 +603,53 @@@ export default'Tap a muscle to see its exercises.': 'Нажмите на мышцу, чтобы увидеть её упражнения.','Unpair': 'Разъединить',+ // --- equipment profiles ---+ 'Showing all equipment': 'Показан весь инвентарь',+ 'Showing what you have in "{0}"': 'Показано то, что есть в «{0}»',+ 'Show all equipment': 'Показать весь инвентарь',+ 'Filter by "{0}"': 'Фильтровать по «{0}»',+ 'Edit profile': 'Изменить профиль',+ 'New equipment profile': 'Новый профиль инвентаря',+ 'Name it after where you train — e.g. "Home" or "Gym" — then check what you have there.': 'Назови его по месту тренировок — например, «Дом» или «Зал» — и отметь, что там есть.',+ 'Profile name': 'Название профиля',+ 'Body-weight exercises are always available, in every profile.': 'Упражнения с собственным весом доступны всегда, в любом профиле.',+ '{0} of {1} exercises need equipment outside "{2}"': '{0} из {1} упражнений требуют инвентаря вне «{2}»',+ 'Needs {0} — not in your active profile': 'Нужен инвентарь: {0} — его нет в активном профиле',+ 'Filter by equipment': 'Фильтровать по инвентарю',+ 'Active profile': 'Активный профиль',+ '{0} equipment types': 'Типов инвентаря: {0}',+ 'Add equipment profile': 'Добавить профиль инвентаря',+ 'Delete profile?': 'Удалить профиль?',+ '"{0}" and its equipment list will be removed.': '«{0}» и его список инвентаря будут удалены.',+ 'Filters the exercise library and picker, and flags routine exercises that need something you don’t have in the active profile.': 'Фильтрует библиотеку упражнений и выбор, а также отмечает упражнения в программах, для которых нужно то, чего нет в активном профиле.',++ // --- muscle groups ---+ 'Primary muscle groups': 'Основные группы мышц',+ 'Additional muscle groups': 'Дополнительные мышечные группы',- 'No explicit muscle group': 'Без явной мышечной группы'++ 'No explicit muscle group': 'Без явной мышечной группы',+++ // "Connect to my server" (mobile app pairing)+ 'Your server': 'Ваш сервер',+ 'Synced with your openGym server.': 'Синхронизировано с вашим сервером openGym.',+ 'Disconnect': 'Отключить',+ 'Disconnect from your server?': 'Отключиться от сервера?',+ 'Your data is synced to your server first, then this device switches back to local-only.': 'Сначала данные синхронизируются с сервером, затем это устройство вернётся в локальный режим.',+ 'Disconnected — back to local-only': 'Отключено — снова локальный режим',+ 'Connect to my server': 'Подключиться к моему серверу',+ 'Sync this device to your own self-hosted openGym instead.': 'Синхронизировать это устройство с вашим собственным self-hosted openGym.',+ 'Pair the mobile app': 'Сопряжение мобильного приложения',+ 'Connect the openGym app on your phone to this account.': 'Подключите приложение openGym на телефоне к этому аккаунту.',+ 'Could not generate a code': 'Не удалось создать код',+ 'On the openGym app, choose “Connect to my server”, then enter this address and the code below. It expires in 5 minutes.': 'В приложении openGym выберите «Подключиться к моему серверу», затем введите этот адрес и код ниже. Он действителен 5 минут.',+ 'Enter your server address and the code': 'Введите адрес вашего сервера и код',+ 'Connected': 'Подключено',+ 'Could not connect': 'Не удалось подключиться',+ 'Open Settings → “Pair the mobile app” on the openGym site you’re already signed into, then enter its address and the code shown there.': 'В Настройках → «Сопряжение мобильного приложения» на сайте openGym, где вы уже вошли, введите его адрес и показанный там код.',+ 'Server address (e.g. gym.example.com)': 'Адрес сервера (например, gym.example.com)',+ 'Pairing code': 'Код сопряжения',+ 'Connecting…': 'Подключение…',+ 'Connect': 'Подключить',+ 'How do you want to use openGym?': 'Как вы хотите использовать openGym?',+ 'Use on this device': 'Использовать на этом устройстве',+ 'Local keeps everything on this phone. Connecting syncs to your own openGym server instead — you can switch later in Settings.': 'Локальный режим хранит всё на этом телефоне. Подключение вместо этого синхронизирует данные с вашим сервером openGym — вы сможете изменить это позже в Настройках.'}diff --cc frontend/src/locales/tr.jsindex d2edcc8d0,1b450ce76..fa10c0ab2--- a/frontend/src/locales/tr.js+++ b/frontend/src/locales/tr.js@@@ -582,28 -602,28 +603,53 @@@ export default'Tap a muscle to see its exercises.': 'Egzersizlerini görmek için bir kas seçin.','Unpair': 'Ayır',+ // --- equipment profiles ---+ 'Showing all equipment': 'Tüm ekipman gösteriliyor',+ 'Showing what you have in "{0}"': '“{0}” içinde sahip olduklarını gösteriyor',+ 'Show all equipment': 'Tüm ekipmanı göster',+ 'Filter by "{0}"': '“{0}” ile filtrele',+ 'Edit profile': 'Profili düzenle',+ 'New equipment profile': 'Yeni ekipman profili',+ 'Name it after where you train — e.g. "Home" or "Gym" — then check what you have there.': 'Antrenman yaptığın yerin adını ver — örn. “Ev” veya “Spor salonu” — sonra orada nelerin olduğunu işaretle.',+ 'Profile name': 'Profil adı',+ 'Body-weight exercises are always available, in every profile.': 'Vücut ağırlığı hareketleri her profilde her zaman kullanılabilir.',+ '{0} of {1} exercises need equipment outside "{2}"': '{1} hareketten {0} tanesi “{2}” dışında ekipman gerektiriyor',+ 'Needs {0} — not in your active profile': '{0} gerekiyor — aktif profilinde yok',+ 'Filter by equipment': 'Ekipmana göre filtrele',+ 'Active profile': 'Aktif profil',+ '{0} equipment types': '{0} ekipman türü',+ 'Add equipment profile': 'Ekipman profili ekle',+ 'Delete profile?': 'Profil silinsin mi?',+ '"{0}" and its equipment list will be removed.': '“{0}” ve ekipman listesi kaldırılacak.',+ 'Filters the exercise library and picker, and flags routine exercises that need something you don’t have in the active profile.': 'Hareket kitaplığını ve seçiciyi filtreler, ayrıca aktif profilinde olmayan bir şeye ihtiyaç duyan rutin hareketlerini işaretler.',++ // --- muscle groups ---+ 'Primary muscle groups': 'Birincil kas grupları',+ 'Additional muscle groups': 'Ek kas grupları',- 'No explicit muscle group': 'Açık kas grubu yok'++ 'No explicit muscle group': 'Açık kas grubu yok',+++ // "Connect to my server" (mobile app pairing)+ 'Your server': 'Sunucun',+ 'Synced with your openGym server.': 'openGym sunucunla senkronize edildi.',+ 'Disconnect': 'Bağlantıyı kes',+ 'Disconnect from your server?': 'Sunucuyla bağlantı kesilsin mi?',+ 'Your data is synced to your server first, then this device switches back to local-only.': 'Verilerin önce sunucunla senkronize edilir, ardından bu cihaz yerel moda geri döner.',+ 'Disconnected — back to local-only': 'Bağlantı kesildi — yerel moda dönüldü',+ 'Connect to my server': 'Sunucuma bağlan',+ 'Sync this device to your own self-hosted openGym instead.': "Bu cihazı bunun yerine kendi self-hosted openGym'inle senkronize et.",+ 'Pair the mobile app': 'Mobil uygulamayı eşleştir',+ 'Connect the openGym app on your phone to this account.': 'Telefonundaki openGym uygulamasını bu hesaba bağla.',+ 'Could not generate a code': 'Kod oluşturulamadı',+ 'On the openGym app, choose “Connect to my server”, then enter this address and the code below. It expires in 5 minutes.': 'openGym uygulamasında “Sunucuma bağlan”ı seç, ardından bu adresi ve aşağıdaki kodu gir. 5 dakika içinde sona erer.',+ 'Enter your server address and the code': 'Sunucu adresini ve kodu gir',+ 'Connected': 'Bağlandı',+ 'Could not connect': 'Bağlanılamadı',+ 'Open Settings → “Pair the mobile app” on the openGym site you’re already signed into, then enter its address and the code shown there.': 'Zaten oturum açtığın openGym sitesinde Ayarlar → “Mobil uygulamayı eşleştir”i aç, ardından adresini ve orada gösterilen kodu gir.',+ 'Server address (e.g. gym.example.com)': 'Sunucu adresi (ör. gym.example.com)',+ 'Pairing code': 'Eşleştirme kodu',+ 'Connecting…': 'Bağlanıyor…',+ 'Connect': 'Bağlan',+ 'How do you want to use openGym?': "openGym'i nasıl kullanmak istersin?",+ 'Use on this device': 'Bu cihazda kullan',+ 'Local keeps everything on this phone. Connecting syncs to your own openGym server instead — you can switch later in Settings.': "Yerel, her şeyi bu telefonda tutar. Bağlanmak ise bunun yerine kendi openGym sunucunla senkronize eder — bunu daha sonra Ayarlar'dan değiştirebilirsin."}diff --cc frontend/src/locales/zh.jsindex 594d4f697,4f5b62f7d..236061b15--- a/frontend/src/locales/zh.js+++ b/frontend/src/locales/zh.js@@@ -582,28 -602,28 +603,53 @@@ export default'Tap a muscle to see its exercises.': '点击肌肉查看其动作。','Unpair': '取消组合',+ // --- equipment profiles ---+ 'Showing all equipment': '正在显示全部器械',+ 'Showing what you have in "{0}"': '正在显示你在“{0}”拥有的器械',+ 'Show all equipment': '显示全部器械',+ 'Filter by "{0}"': '按“{0}”筛选',+ 'Edit profile': '编辑配置',+ 'New equipment profile': '新建器械配置',+ 'Name it after where you train — e.g. "Home" or "Gym" — then check what you have there.': '用你训练的地点命名 —— 例如“家里”或“健身房”—— 然后勾选你在那里有的器械。',+ 'Profile name': '配置名称',+ 'Body-weight exercises are always available, in every profile.': '自重动作在每个配置中都始终可用。',+ '{0} of {1} exercises need equipment outside "{2}"': '{1} 个动作中有 {0} 个需要“{2}”之外的器械',+ 'Needs {0} — not in your active profile': '需要{0} —— 不在你的当前配置中',+ 'Filter by equipment': '按器械筛选',+ 'Active profile': '当前配置',+ '{0} equipment types': '{0} 种器械',+ 'Add equipment profile': '添加器械配置',+ 'Delete profile?': '删除配置?',+ '"{0}" and its equipment list will be removed.': '“{0}”及其器械清单将被删除。',+ 'Filters the exercise library and picker, and flags routine exercises that need something you don’t have in the active profile.': '筛选动作库和选择器,并标记训练计划中需要当前配置里没有的器械的动作。',++ // --- muscle groups ---+ 'Primary muscle groups': '主要肌群',+ 'Additional muscle groups': '其他肌群',- 'No explicit muscle group': '无明确肌群'++ 'No explicit muscle group': '无明确肌群',+++ // "Connect to my server" (mobile app pairing)+ 'Your server': '你的服务器',+ 'Synced with your openGym server.': '已与你的 openGym 服务器同步。',+ 'Disconnect': '断开连接',+ 'Disconnect from your server?': '要断开与服务器的连接吗?',+ 'Your data is synced to your server first, then this device switches back to local-only.': '你的数据会先同步到服务器,然后此设备将切换回本地模式。',+ 'Disconnected — back to local-only': '已断开连接——已切换回本地模式',+ 'Connect to my server': '连接到我的服务器',+ 'Sync this device to your own self-hosted openGym instead.': '改为将此设备与你自己的自托管 openGym 同步。',+ 'Pair the mobile app': '配对手机应用',+ 'Connect the openGym app on your phone to this account.': '将手机上的 openGym 应用连接到此账户。',+ 'Could not generate a code': '无法生成配对码',+ 'On the openGym app, choose “Connect to my server”, then enter this address and the code below. It expires in 5 minutes.': '在 openGym 应用中选择“连接到我的服务器”,然后输入此地址和下面的配对码。5 分钟后失效。',+ 'Enter your server address and the code': '输入你的服务器地址和配对码',+ 'Connected': '已连接',+ 'Could not connect': '无法连接',+ 'Open Settings → “Pair the mobile app” on the openGym site you’re already signed into, then enter its address and the code shown there.': '在你已登录的 openGym 网站上,打开设置 →“配对手机应用”,然后输入其地址和那里显示的配对码。',+ 'Server address (e.g. gym.example.com)': '服务器地址(例如 gym.example.com)',+ 'Pairing code': '配对码',+ 'Connecting…': '连接中…',+ 'Connect': '连接',+ 'How do you want to use openGym?': '你想如何使用 openGym?',+ 'Use on this device': '在此设备上使用',+ 'Local keeps everything on this phone. Connecting syncs to your own openGym server instead — you can switch later in Settings.': '本地模式会把所有内容保留在这部手机上。连接则会改为与你自己的 openGym 服务器同步——之后可以在设置中更改。'}diff --cc frontend/src/sheets.jsxindex d8562efb3,4b2c99bb5..fe8513b3f--- a/frontend/src/sheets.jsx+++ b/frontend/src/sheets.jsx@@@ -1,12 -1,11 +1,12 @@@import { useEffect, useRef, useState } from 'react'import { useStore } from './store/useStore.js'import { useUI } from './store/useUI.js'-import { EXDB, EXIDX, BODYPARTS, isCardio, isBodyweightEq, allExercises, equipmentOf, smOf } from './lib/exercises.js'+import { EXDB, EXIDX, BODYPARTS, isCardio, isBodyweightEq, allExercises, equipmentOf, smOf, matchExercise } from './lib/exercises.js'+import { activeProfile, exAvailable, ALL_EQUIPMENT, newProfile } from './lib/equipment.js'import { fmtDate, fmtNum, fmtVol, fmtDur, durPart, todayISO, uid, exCount, DAYN, MONTHS_LONG, ACCENTS } from './lib/format.js'- import { lastEntryFor, bestWeightFor, buildSets, effectiveRoutineId, workoutVolume, setsDone, setsDoneActive, lastBW, supersetUnits, unitOf, setLabel, defaultConfig, cleanupSg, modeOf, effortOf, isBw, isPerSide, sideReps, workSetsDone } from './lib/history.js'+ import { lastEntryFor, bestWeightFor, buildSets, effectiveRoutineId, workoutVolume, setsDone, setsDoneActive, lastBW, supersetUnits, unitOf, setLabel, defaultConfig, cleanupSg, modeOf, effortOf, isBw, isPerSide, sideReps, workSetsDone, applyIntensifierPlan } from './lib/history.js'import { beep, vibrate } from './lib/sound.js'-import { t, instrFor, getLang, INSTR_LANGS } from './lib/i18n.js'+import { t, instrFor, exerciseNameFor, getLang, INSTR_LANGS } from './lib/i18n.js'import { nav } from './lib/nav.js'import { starterRoutines } from './lib/starter.js'import Media, { Thumb } from './components/Media.jsx'@@@ -683,10 -606,44 +692,47 @@@ function ExConfig({ ex, existing, onSav? t('Reps climb to {0}, then a set is added and the reps start over. At {1} sets it asks you to add weight instead.', c.repsMax, MAX_BW_SETS): t('Reps climb by one whenever every set was clean. Set a ceiling to add sets instead of reps forever.')}</div>}+ {mode === 'reps' && <>+ <h4 className="sec">{t('Drop-set / rest-pause')}</h4>+ <div className="sect-b" style={{ marginBottom: 8 }}>+ <SelectRow title={t('Intensifier')} sheetTitle={t('Intensifier')} value={c.intensifier?.type || ''}+ onChange={v => setC(x => ({+ ...x,+ intensifier: !v ? undefined : v === 'dropset'+ ? { type: 'dropset', count: x.intensifier?.count || 1, pct: x.intensifier?.pct || 20 }+ // The activation set's own reps are whatever "Reps" above already says — a+ // rest-pause plan only adds two new numbers: the total extra reps wanted past+ // it, and the rest between the bursts that total gets split into.+ : { type: 'restpause', totalReps: x.intensifier?.totalReps || x.reps || 8, restSec: x.intensifier?.restSec || st.restPauseSec || 15 },+ }))}+ options={[+ { value: '', label: t('None') },+ { value: 'dropset', label: t('Drop-set') },+ { value: 'restpause', label: t('Rest-pause') },+ ]} />+ </div>+ {c.intensifier?.type === 'dropset' && <div className="row cfgrow" style={{ marginBottom: 8 }}>+ <Stepper label={t('Drops')} value={c.intensifier.count} step={1} decimal={false}+ onChange={v => setC(x => ({ ...x, intensifier: { ...x.intensifier, count: Math.max(1, v) } }))} />+ <Stepper label={t('Weight drop (%)')} value={c.intensifier.pct} step={5} decimal={false}+ onChange={v => setC(x => ({ ...x, intensifier: { ...x.intensifier, pct: Math.max(5, v) } }))} />+ </div>}+ {c.intensifier?.type === 'restpause' && <div className="row cfgrow" style={{ marginBottom: 8 }}>+ <Stepper label={t('Rest-pause reps')} value={c.intensifier.totalReps} step={1} decimal={false}+ onChange={v => setC(x => ({ ...x, intensifier: { ...x.intensifier, totalReps: Math.max(1, v) } }))} />+ <Stepper label={t('Rest (s)')} value={c.intensifier.restSec} step={5} decimal={false}+ onChange={v => setC(x => ({ ...x, intensifier: { ...x.intensifier, restSec: Math.max(5, v) } }))} />+ </div>}+ {c.intensifier?.type && <div className="small dim" style={{ marginTop: -2, marginBottom: 18 }}>+ {c.intensifier.type === 'dropset'+ ? t('Every set becomes a drop-set: after the main set, {0} drop(s) with no rest, each about {1}% lighter.', c.intensifier.count, c.intensifier.pct)+ : t('Every set becomes rest-pause: {0} reps to start, then {1} more split into short bursts, {2}s rest before each, roughly halving each time.', c.reps || 0, c.intensifier.totalReps, c.intensifier.restSec)}+ </div>}+ </>}<ProgressionFields ex={ex} mode={mode} c={c} setC={setC} routine={routine} unit={st.unit} />+ <textarea className="input" rows={3} maxLength={500} style={{ marginBottom: 18 }}+ placeholder={t('Note (optional) — loading cues, "bar only then +1 plate/side each set", anything worth remembering here')}+ value={c.note || ''} onChange={e => setC(x => ({ ...x, note: e.target.value }))} /><Button variant="primary" onClick={save}>{existing ? t('Save') : t('Add to routine')}</Button>{ex.custom && <><div style={{ height: 8 }} /><Button icon="pencil" onClick={() => { close(); customExSheet(ex) }}>{t('Edit or delete this exercise')}</Button></>}{onDelete && <><div style={{ height: 8 }} /><Button variant="danger" onClick={() => { close(); onDelete() }}>{t('Remove from routine')}</Button></>}diff --cc frontend/src/store/useStore.jsindex d49e6f024,3b33ad29b..553d5ba4d--- a/frontend/src/store/useStore.js+++ b/frontend/src/store/useStore.js@@@ -16,10 -17,7 +17,10 @@@ export const DEF =// that a profile which never chose (loaded state is overlaid on DEF, on every path: local,// server pull, backup import) still falls back to the `showRir` boolean this replaced and// keeps the column it had. See effortOf.- reminder: { on: false, time: '08:00', tz: null }, effort: null,+ reminder: { on: false, time: '08:00', tz: null }, effort: null, autoBackup: false,+ // Equipment profiles (issue: filter Library/picker/routines by what you actually own —+ // e.g. "Home" vs "Gym" — building on the session-only equipment filter from issue #6).+ equipProfiles: [], activeEquipId: null, equipFilterOn: false,}const clone = o => JSON.parse(JSON.stringify(o))diff --cc frontend/src/views/Settings.jsxindex 94696c44c,4d5d6616e..eb2d05367--- a/frontend/src/views/Settings.jsx+++ b/frontend/src/views/Settings.jsx@@@ -10,7 -10,8 +10,8 @@@ import { wakeLockSupported } from '../limport { t, LANGS, INSTR_LANGS } from '../lib/i18n.js'import { DEMO, REPO } from '../lib/demo.js'import { MOBILE, shareExport, syncReminder } from '../lib/mobile.js'+ import { ConnectSheet } from './MobileOnboarding.jsx'-import { loadStarterPlan, confirmSheet, importFromApp } from '../sheets.jsx'+import { loadStarterPlan, confirmSheet, importFromApp, equipmentProfileSheet } from '../sheets.jsx'import Icon from '../components/Icon.jsx'import { Section, Row, SelectRow, Switch, Segmented, Button, TextField } from '../components/ui.jsx'@@@ -331,37 -354,28 +357,59 @@@ function PushCard({ S, update, toast }</>}+// Equipment profiles ("Home", "Gym", ...) — each an id/name/eq-list; the active one filters+// the Library, exercise picker, and flags routine entries that need something outside it+// (see lib/equipment.js). Purely local/synced state — no server changes needed.+function EquipmentCard({ S, update }) {+ const profiles = S.equipProfiles || []+ const remove = p => confirmSheet({+ title: t('Delete profile?'), message: t('"{0}" and its equipment list will be removed.', p.name),+ confirmText: t('Delete'), danger: true,+ onConfirm: () => update(s => {+ s.equipProfiles = (s.equipProfiles || []).filter(x => x.id !== p.id)+ if (s.activeEquipId === p.id) s.activeEquipId = (s.equipProfiles[0] && s.equipProfiles[0].id) || null+ }),+ })+ return <Section title={t('Equipment')} footer={t('Filters the exercise library and picker, and flags routine exercises that need something you don’t have in the active profile.')}>+ {profiles.length > 0 && <Row icon="dumbbell" iconTint="var(--acc)" title={t('Filter by equipment')}>+ <Switch checked={!!S.equipFilterOn} onChange={v => update(s => { s.equipFilterOn = v })} />+ </Row>}+ {profiles.length > 0 && <SelectRow icon="list" iconTint="var(--blue)" title={t('Active profile')}+ value={S.activeEquipId || ''} onChange={v => update(s => { s.activeEquipId = v })}+ options={profiles.map(p => ({ value: p.id, label: p.name }))} />}+ {profiles.map(p => (+ <Row key={p.id} icon="dumbbell" iconTint="var(--teal)" title={p.name}+ subtitle={t('{0} equipment types', p.equipment.length)} accessory="chevron"+ onClick={() => equipmentProfileSheet(p)}>+ <button className="iconbtn" aria-label={t('Delete')} onClick={ev => { ev.stopPropagation(); remove(p) }}><Icon name="trash" /></button>+ </Row>+ ))}+ <Row icon="plus" iconTint="var(--acc)" title={t('Add equipment profile')} accessory="chevron" onClick={() => equipmentProfileSheet(null)} />+ </Section>+}++ // Lets the mobile app's "connect to my server" mode (lib/remote.js) authenticate without a+ // WebAuthn ceremony of its own — the code is minted here, from an already signed-in session,+ // and redeemed by the app for a bearer token. See /api/pair/create in api/server.js.+ function PairSheet({ close }) {+ const [code, setCode] = useState(null)+ const [err, setErr] = useState(null)+ useEffect(() => { api('/api/pair/create', { method: 'POST', body: '{}' }).then(r => setCode(r.code)).catch(e => setErr(e.message || t('Could not generate a code'))) }, [])+ return <>+ <h3>{t('Pair the mobile app')}</h3>+ <div className="muted small" style={{ marginBottom: 14 }}>+ {t('On the openGym app, choose “Connect to my server”, then enter this address and the code below. It expires in 5 minutes.')}+ </div>+ {err ? <div className="dim small">{err}</div> : (+ <div className="card" style={{ textAlign: 'center', fontSize: 30, fontWeight: 700, letterSpacing: '.16em', padding: '18px 0' }}>+ {code || '········'}+ </div>+ )}+ <div style={{ height: 12 }} />+ <Button onClick={close}>{t('Done')}</Button>+ </>+ }+// The same registration as the sign-in screen's, reached from Settings instead. It asks for// the invite code on the same terms: an invite-only instance rejects a registration without// one, so a form that cannot collect it is a form that cannot succeed.diff --cc frontend/src/views/Workout.jsxindex e6d4e8b00,0b8eb566f..a377b2238--- a/frontend/src/views/Workout.jsx+++ b/frontend/src/views/Workout.jsx@@@ -3,10 -3,10 +3,10 @@@ import { useNavigate } from 'react-routimport { useStore } from '../store/useStore.js'import { useUI } from '../store/useUI.js'import { exOr } from '../lib/exercises.js'- import { effectiveRoutine, lastEntryFor, bestWeightFor, buildSets, freestyleConfig, defaultConfig, setsDoneActive, supersetUnits, unitOf, setLabel, modeOf, isBw, isPerSide, sideReps, repStep, EFFORT, effortOf, stepEffort, capEffort, cascadeWeight, insertWarmupRow, removeRowAt, pairAdjacent, unpairSuperset, cleanupSg } from '../lib/history.js'+ import { effectiveRoutine, lastEntryFor, bestWeightFor, buildSets, freestyleConfig, defaultConfig, setsDoneActive, supersetUnits, unitOf, setLabel, modeOf, isBw, isPerSide, sideReps, repStep, EFFORT, effortOf, stepEffort, capEffort, cascadeWeight, insertWarmupRow, removeRowAt, pairAdjacent, unpairSuperset, cleanupSg, applyIntensifierPlan } from '../lib/history.js'import { fmtNum, fmtDate, todayISO, exCount, DAYN } from '../lib/format.js'import { beep, vibrate } from '../lib/sound.js'-import { t } from '../lib/i18n.js'+import { t, exerciseNameFor } from '../lib/i18n.js'import { api } from '../lib/api.js'import { setProgressHighWater, supersetFlowStep } from '../lib/supersetFlow.js'import Media from '../components/Media.jsx'