Skip to content

Open-source gym & body-weight tracker, now in the App Store (iPhone + Apple Watch) and as an Android APK. Plan routines, log workouts, see which muscles are trained, import from Strong/Hevy/FitNotes. Self-host it or use it on the phone alone.

Merge main into coach: v1.2.6 plus die Backlog-Runde, Locale-Union, CI laeuft jetzt auch auf coach

Duarte Santos8d3f667c8983
diff --cc .github/workflows/test.yml
index 60ad8c4e3,58acb9afd..dd972bba3
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@@ -6,15 -6,13 +6,17 @@@ on
pull_request:
paths:
- 'frontend/**'
+ - 'api/**'
+ - 'mcp/**'
+ - 'scripts/build-coach-library.mjs'
- '.github/workflows/test.yml'
push:
-- branches: [main]
++ branches: [main, coach]
paths:
- 'frontend/**'
+ - 'api/**'
+ - 'mcp/**'
+ - 'scripts/build-coach-library.mjs'
- '.github/workflows/test.yml'
workflow_dispatch:
@@@ -45,76 -43,32 +47,106 @@@ jobs
working-directory: frontend
- run: node scripts/check-locales.mjs
working-directory: frontend
+ # check-locales compares the packs to each other, so a key missing from ALL of them is
+ # invisible to it. This walks src/ instead. Report-only for now: there is a known
+ # backlog of untranslated demo-view strings to clear before it can fail the build.
+ - run: node scripts/check-source-strings.mjs
+ working-directory: frontend
+ # The fatigue model must never read higher after a rest day than before it.
+ # Property probe over ~108k comparisons; too slow for the unit suite, cheap here.
+ - run: npm run test:fatigue-probe
+ working-directory: frontend
+
++
+ mcp:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v7
+ - uses: actions/setup-node@v7
+ with:
+ node-version: 22
+ cache: npm
+ cache-dependency-path: mcp/package-lock.json
+ - run: npm ci
+ working-directory: mcp
+ - run: npm test
+ working-directory: mcp
+ # The one check the vitest suite structurally cannot make. The MCP server is a bare node
+ # process, but vitest runs its tests through Vite — import.meta.glob, .jsx imports and
+ # ?raw all resolve happily there. That is how a Vite-only import reached a shared lib
+ # module with 33 green tests standing over a server that died on startup.
+ - run: npm run check:node-loadable
+ working-directory: mcp
+
+ api:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v7
+ - uses: actions/setup-node@v7
+ with:
+ node-version: 22
+ # Nothing to install: the Coach tests run on node:test and drive the in-repo fixture
+ # provider, so the whole job works without an AI account, a network, or a dependency.
+ - run: npm test
+ working-directory: api
+ # The api's copy of the exercise catalogue is generated and committed. A dataset change
+ # that forgets to regenerate it would otherwise only surface as "the Coach can't find
+ # that exercise" on somebody's instance.
+ - run: node scripts/build-coach-library.mjs --check
+
+ # Builds *and runs* both image targets. Building alone would not have caught the api image
+ # shipping without coach/ — that image built perfectly and exited on boot. So each target has
+ # to answer for itself: the default one starts and serves, and the coach one additionally
+ # resolves the Agent SDK's per-platform runtime (musl on this base), which is the one thing
+ # that cannot be checked from the source tree.
+ api-image:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v7
+
+ - run: docker build --target default -t opengym-api:default ./api
+ - run: docker build --target coach -t opengym-api:coach ./api
+
+ - name: the default image boots and serves, with no AI runtime in it
+ run: |
+ docker run -d --name api-default -e DATA_DIR=/data -p 3000:3000 opengym-api:default
+ for i in $(seq 1 30); do
+ curl -fsS http://localhost:3000/api/config >/dev/null 2>&1 && break
+ sleep 1
+ done
+ curl -fsS http://localhost:3000/api/config | tee /dev/stderr | grep -q '"invite_only"'
+ # Absent by construction, not by accident: --omit=optional is the only thing keeping
+ # the AI dependency out of the image an owner gets when they never asked for it.
+ docker run --rm opengym-api:default node -e \
+ 'import("@anthropic-ai/claude-agent-sdk").then(()=>{console.error("AI runtime present in the default image");process.exit(1)},()=>process.exit(0))'
+ docker rm -f api-default
+
+ - name: the coach image carries a runnable Agent SDK
+ run: |
+ docker run --rm opengym-api:coach node --input-type=module -e '
+ const { adapterFor } = await import("./coach/adapters/index.js");
+ const r = await adapterFor("claude").check();
+ if (!r.ok) { console.error(r.error); process.exit(1); }
+ console.log(r.version);
+ '
+
+ - name: the coach image carries the Codex runtime and its sandbox
+ run: |
+ docker run --rm opengym-api:coach codex --version
+ docker run --rm opengym-api:coach bwrap --version
+ # Owned by the user jobs drop to, and 0700 — a credential cache readable by anything
+ # else in the container would undo the point of dropping privileges at all.
+ test "$(docker run --rm opengym-api:coach stat -c '%U %a' /coach-auth)" = "coach 700"
+
+ - name: neither Codex nor its sandbox is in the default image
+ run: |
+ # bubblewrap is a Codex requirement, so an owner who never opted in should not be
+ # carrying it. Both commands must fail.
+ ! docker run --rm opengym-api:default codex --version 2>/dev/null
+ ! docker run --rm opengym-api:default bwrap --version 2>/dev/null
+
+ - name: the privilege drop can actually be performed in the image
+ run: |
+ # canDropPrivileges() fails closed, so a missing `coach` user disables every job —
+ # including the fixture provider. Cheaper to assert here than to discover on an instance.
+ docker run --rm opengym-api:default id coach
diff --cc api/Dockerfile
index 72538b85d,e924c28b4..9bfa0241b
--- a/api/Dockerfile
+++ b/api/Dockerfile
@@@ -1,61 -1,32 +1,84 @@@
-FROM node:22-alpine
+# Two targets from one file.
+#
+# default (built when no --target is given) — what every instance has always got. No AI
+# runtime, no AI dependency: `npm ci --omit=optional` skips the Agent SDK and its
+# platform runtime entirely, so an owner who never wanted the Coach carries none of it.
+# coach — the same image plus the Claude Agent SDK.
+#
+# Build the opt-in one with: docker build --target coach ./api
+# or through compose with: API_TARGET=coach docker compose up --build
+#
+# The stage order matters: Docker builds the *last* stage when none is named, so `default` is
+# deliberately last and `coach` sits above it.
+FROM node:22-alpine AS base
++
++# Declared on the base stage so both targets inherit the labels and the healthcheck.
+ ARG VERSION=dev
+ ARG VCS_REF=dev
+ ARG BUILD_DATE=unknown
+
+ LABEL maintainer="Duarte Santos https://github.com/DuarteSantos8" \
+ org.opencontainers.image.title="opengym-api" \
+ org.opencontainers.image.description="Backend for Self-hosted gym & body-weight tracker — plan routines, log workouts (supersets & cardio too), track your weight and progress, passkey login. Your data, your server." \
+ org.opencontainers.image.source="https://github.com/DuarteSantos8/openGym" \
+ org.opencontainers.image.url="https://ghcr.io/duartesantos8/opengym-api" \
+ org.opencontainers.image.documentation="https://github.com/DuarteSantos8/openGym#readme" \
+ org.opencontainers.image.licenses="AGPL-3.0-or-later" \
+ org.opencontainers.image.version=$VERSION \
+ org.opencontainers.image.revision=$VCS_REF \
+ org.opencontainers.image.created=$BUILD_DATE
+
WORKDIR /app
+
+# The unprivileged user Coach jobs drop to. Its uid cannot read /data, which is the control that
+# keeps a provider runtime away from users, passkeys and the session secret.
+#
+# Not optional, and not only for the real providers: canDropPrivileges() fails closed on Linux,
+# so in an image without this user *every* job is refused with "no `coach` user exists in this
+# image" — including the fixture provider that exists precisely so the loop can be walked before
+# an account is connected. It costs one line and no bytes worth measuring.
+RUN adduser -D -H -s /sbin/nologin coach
+
COPY package.json package-lock.json* ./
-RUN npm install --omit=dev && npm cache clean --force
-COPY server.js ./
+# `npm ci` rather than `npm install`: the lockfile is the point of committing one, and the SDK's
+# per-platform runtime is resolved from it (musl on this base) rather than from whatever the
+# build host happened to be.
+RUN npm ci --omit=dev --omit=optional && npm cache clean --force
+COPY server.js ./
+COPY coach ./coach
ENV NODE_ENV=production
+ ENV PORT=3000
-
EXPOSE 3000
CMD ["node", "server.js"]
+ HEALTHCHECK --interval=5m \
+ --timeout=5s \
+ --retries=3 \
+ CMD wget --spider -q "http://127.0.0.1:${PORT}/api/health" || exit 1
++
+# ---------------------------------------------------------------------------------------------
+# The opt-in target. Dropping --omit=optional is the whole difference: it pulls in
+# @anthropic-ai/claude-agent-sdk together with the one platform runtime this base needs
+# (linux-*-musl), both pinned by the lockfile.
+FROM base AS coach
+RUN npm ci --omit=dev && npm cache clean --force
+
+# Codex ships as a CLI rather than a library, so it is installed rather than resolved, and
+# bubblewrap is its sandbox — a Codex requirement, which is why neither appears in the default
+# target or anywhere in this tree until now.
+RUN apk add --no-cache bubblewrap \
+ && npm install -g @openai/codex \
+ && npm cache clean --force
+
+# Where Codex keeps its refreshable login cache. Deliberately a sibling of /data rather than a
+# path inside it: docs/SELF_HOSTING tells owners to back up with `tar czf … data/`, and a live
+# refresh token has no business riding along in every archive that instruction produces. Owned
+# by `coach` because the job that writes it has already dropped to that user.
+RUN mkdir -p /coach-auth && chown coach:coach /coach-auth && chmod 700 /coach-auth
+VOLUME ["/coach-auth"]
+
+# ---------------------------------------------------------------------------------------------
+# Last, so that a plain `docker build ./api` keeps producing the runtime-free image.
+FROM base AS default
diff --cc api/server.js
index e2a0b08dc,80af0e5e7..de431b611
--- a/api/server.js
+++ b/api/server.js
@@@ -277,14 -260,8 +282,14 @@@ setInterval(() => { for (const [k, v] o
const routes = {
'GET /api/health': async (req, res) => json(res, 200, { ok: true, users: db.users.length }),
- // Public config the login screen needs before anyone is signed in.
- 'GET /api/config': async (req, res) => json(res, 200, { invite_only: INVITE_ONLY, allow_guest: ALLOW_GUEST }),
+ // Public config the login screen needs before anyone is signed in. `coach` is absent unless
+ // the instance has both switched the Coach on and successfully connected a provider — the
+ // single flag every piece of Coach UI hangs off, so an unconfigured instance is byte-for-byte
+ // the app it was before the feature existed.
+ 'GET /api/config': async (req, res) => {
+ const coach = coachConfig.publicConfig();
- json(res, 200, { invite_only: INVITE_ONLY, ...(coach ? { coach } : {}) });
++ json(res, 200, { invite_only: INVITE_ONLY, allow_guest: ALLOW_GUEST, ...(coach ? { coach } : {}) });
+ },
'GET /api/me': async (req, res) => {
const user = readSession(req);
diff --cc frontend/src/lib/coach.test.js
index 65c13cd83,000000000..efe501e1a
mode 100644,000000..100644
--- a/frontend/src/lib/coach.test.js
+++ b/frontend/src/lib/coach.test.js
@@@ -1,468 -1,0 +1,474 @@@
+import { describe, it, expect } from 'vitest'
+import {
+ canonicalPlan, planHash, hashPlan, markStale, applicable, currentValue,
+ pushSnapshot, revertLast, canRevert, appendLog, applyChangeSet, applyCreatedPlan,
+ recordDismissal, validateProposal, coachAvailable, hasConsent,
+ CHANGE_TYPES, SNAPSHOT_MAX, LOG_MAX, CONSENT_VERSION
+} from './coach.js'
+import { registerCustom } from './exercises.js'
+
+// The two runtimes share no build step, so the client's copy of the fingerprint logic is
+// checked against the server's actual source rather than against a transcribed expectation.
+import * as serverPayload from '../../../api/coach/payload.js'
+import { hashPlan as serverHashPlan } from '../../../api/coach/jobs.js'
+
+const state = (over = {}) => ({
+ unit: 'kg', lang: 'en', customEx: [], workouts: [], bodyweight: [], exWeights: {}, dayPlan: {},
+ routines: [{
+ id: 'r1', name: 'Full body A', emoji: '💪', prog: 'linear',
+ ex: [
+ { id: '0001', sets: 3, reps: 10, mode: 'reps', weight: 20, prog: 'linear' },
+ { id: '0007', sets: 3, sec: 45, mode: 'time' },
+ { id: '0009', sets: 3, reps: 12, mode: 'reps' }
+ ]
+ }, { id: 'r2', name: 'Full body B', ex: [{ id: '0002', sets: 4, reps: 6, mode: 'reps' }] }],
+ week: { 1: 'r1', 3: 'r2', 5: 'r1' },
+ coach: { consent: { agreedAt: '2026-07-01T00:00:00Z', version: CONSENT_VERSION }, log: [], snapshots: [], cadence: 'off' },
+ ...over
+})
+
+const change = over => ({ id: 'c1', type: 'sets', target: { routineId: 'r1', exId: '0001' }, before: 3, after: 4, why: 'stalled twice', ...over })
+const proposal = (changes, over = {}) => ({ id: 'p1', kind: 'review', summary: 's', changes, ...over })
+/** Apply against a throwaway draft, the way the store does. */
+const apply = (S, p, ids) => { const s = JSON.parse(JSON.stringify(S)); applyChangeSet(s, p, ids); return s }
+
+describe('gating', () => {
+ it('shows nothing unless the instance offers it and someone is signed in', () => {
+ expect(coachAvailable({ coach: { enabled: true } }, { id: 'u' })).toBe(true)
+ expect(coachAvailable({}, { id: 'u' })).toBe(false)
+ expect(coachAvailable(null, { id: 'u' })).toBe(false)
+ expect(coachAvailable({ coach: { enabled: true } }, null)).toBe(false)
+ })
+
+ it('is off in the mobile build, which has no server to run anything', () => {
+ expect(coachAvailable({ coach: { enabled: true } }, { id: 'u' }, { mobile: true })).toBe(false)
+ expect(coachAvailable(null, null, { mobile: true })).toBe(false)
+ })
+
+ it('is on in the demo build, which fakes the provider locally', () => {
+ expect(coachAvailable(null, null, { demo: true })).toBe(true)
+ })
+
+ it('treats an older consent version as no consent', () => {
+ expect(hasConsent(state())).toBe(true)
+ expect(hasConsent(state({ coach: { consent: { agreedAt: 'x', version: 0 } } }))).toBe(false)
+ expect(hasConsent(state({ coach: {} }))).toBe(false)
+ })
+})
+
+describe('plan fingerprint', () => {
+ it('ignores nothing that matters and reacts to nothing that does not', () => {
+ const S = state()
+ expect(planHash(S)).toBe(planHash(state()))
+ // A field the plan does not carry cannot move the hash.
+ expect(planHash(state({ theme: 'light' }))).toBe(planHash(S))
+ // Everything the Coach can change does.
+ const moved = state(); moved.routines[0].ex[0].sets = 4
+ expect(planHash(moved)).not.toBe(planHash(S))
+ const week = state(); week.week[6] = 'r1'
+ expect(planHash(week)).not.toBe(planHash(S))
+ })
+
+ it('cannot tell "no weight" from "0 kg" — both mean unloaded', () => {
+ const a = state(); delete a.routines[0].ex[2].weight
+ const b = state(); b.routines[0].ex[2].weight = 0
+ expect(planHash(a)).toBe(planHash(b))
+ })
+
+ it('moves for the rep ceiling and the two v1.2.4 flags', () => {
+ // These are plan fields a user can edit by hand, so a proposal computed before the edit
+ // has to read as stale afterwards. They were in canonicalPlan and not in the hash.
+ const S = state()
+ for (const [field, value] of Object.entries({ repsMax: 20, bodyweight: false, side: true })) {
+ const edited = state(); edited.routines[0].ex[0][field] = value
+ expect(planHash(edited), field).not.toBe(planHash(S))
+ }
+ })
+
+ it('agrees with the server, field for field', () => {
+ const withFlags = state()
+ withFlags.routines[0].ex[0] = { ...withFlags.routines[0].ex[0], repsMin: 8, repsMax: 20, bodyweight: true }
+ withFlags.routines[1].ex[0] = { ...withFlags.routines[1].ex[0], side: true, reps: 16 }
+ for (const S of [state(), state({ week: {} }), state({ routines: [] }), withFlags]) {
+ expect(canonicalPlan(S)).toEqual(serverPayload.canonicalPlan(S))
+ expect(planHash(S)).toBe(serverHashPlan(serverPayload.canonicalPlan(S)))
+ expect(hashPlan(canonicalPlan(S))).toBe(serverHashPlan(serverPayload.canonicalPlan(S)))
+ }
+ })
+})
+
+describe('staleness', () => {
+ it('flags the whole proposal when the plan moved underneath it', () => {
+ const S = state()
+ const p = { ...proposal([change()]), planHash: planHash(S) }
+ expect(markStale(p, S).planMoved).toBe(false)
+ const edited = state(); edited.routines[0].ex[0].sets = 5
+ expect(markStale(p, edited).planMoved).toBe(true)
+ })
+
+ it('flags a change whose target is gone', () => {
+ const S = state(); S.routines[0].ex = S.routines[0].ex.filter(e => e.id !== '0001')
+ const [c] = markStale(proposal([change()]), S).changes
+ expect(c.status).toBe('stale')
+ })
+
+ it('flags a change someone already made by hand, rather than overwriting them', () => {
+ const S = state(); S.routines[0].ex[0].sets = 5 // Coach saw 3, user has since set 5
+ const [c] = markStale(proposal([change()]), S).changes
+ expect(c.status).toBe('stale')
+ expect(applicable(markStale(proposal([change()]), S))).toHaveLength(0)
+ })
+
+ it('leaves an untouched change applyable', () => {
+ const [c] = markStale(proposal([change()]), state()).changes
+ expect(c.status).toBe('proposed')
+ })
+
+ it('reads the current value for every scalar change type', () => {
+ const S = state()
+ S.routines[0].ex[0].repsMax = 20
+ expect(currentValue(S, change({ type: 'sets' }))).toBe(3)
+ expect(currentValue(S, change({ type: 'reps' }))).toBe(10)
+ expect(currentValue(S, change({ type: 'repsMax' }))).toBe(20)
+ expect(currentValue(S, change({ type: 'exercise-prog' }))).toBe('linear')
+ expect(currentValue(S, change({ type: 'routine-prog' }))).toBe('linear')
+ expect(currentValue(S, change({ type: 'week', target: { weekday: 1 } }))).toBe('r1')
+ })
+})
+
+describe('applying changes', () => {
+ it('has an implementation for every type the server can send', async () => {
+ const { CHANGE_TYPES: serverTypes } = await import('../../../api/coach/validate.js')
+ expect([...CHANGE_TYPES].sort()).toEqual([...serverTypes].sort())
+ })
+
+ it('sets, reps, rep floor, rep ceiling, hold time, load step and policies', () => {
+ const S = state()
+ expect(apply(S, proposal([change({ type: 'sets', after: 4 })]), ['c1']).routines[0].ex[0].sets).toBe(4)
+ expect(apply(S, proposal([change({ type: 'reps', after: 12 })]), ['c1']).routines[0].ex[0].reps).toBe(12)
+ expect(apply(S, proposal([change({ type: 'repsMin', after: 8 })]), ['c1']).routines[0].ex[0].repsMin).toBe(8)
+ expect(apply(S, proposal([change({ type: 'repsMax', before: null, after: 20 })]), ['c1']).routines[0].ex[0].repsMax).toBe(20)
+ expect(apply(S, proposal([change({ type: 'sec', target: { routineId: 'r1', exId: '0007' }, before: 45, after: 60 })]), ['c1']).routines[0].ex[1].sec).toBe(60)
+ expect(apply(S, proposal([change({ type: 'inc', before: null, after: 5 })]), ['c1']).routines[0].ex[0].inc).toBe(5)
+ expect(apply(S, proposal([change({ type: 'exercise-prog', before: 'linear', after: 'double' })]), ['c1']).routines[0].ex[0].prog).toBe('double')
+ expect(apply(S, proposal([change({ type: 'routine-prog', target: { routineId: 'r1' }, before: 'linear', after: 'greyskull' })]), ['c1']).routines[0].prog).toBe('greyskull')
+ })
+
+ it('adds an exercise at the position asked for', () => {
+ const out = apply(state(), proposal([change({
+ type: 'add-exercise', target: { routineId: 'r1' }, before: null,
+ after: { id: '0002', sets: 3, reps: 8, mode: 'reps', position: 1 }
+ })]), ['c1'])
+ expect(out.routines[0].ex.map(e => e.id)).toEqual(['0001', '0002', '0007', '0009'])
+ expect(out.routines[0].ex[1].sets).toBe(3)
+ })
+
+ it('carries a rep ceiling and the two flags onto an added exercise, and only when set', () => {
+ const withFlags = apply(state(), proposal([change({
+ type: 'add-exercise', target: { routineId: 'r1' }, before: null,
+ after: { id: '0002', sets: 3, reps: 16, mode: 'reps', repsMin: 10, repsMax: 24, bodyweight: true, side: true }
+ })]), ['c1']).routines[0].ex.at(-1)
+ expect(withFlags).toMatchObject({ repsMin: 10, repsMax: 24, bodyweight: true, side: true })
+
+ const plain = apply(state(), proposal([change({
+ type: 'add-exercise', target: { routineId: 'r1' }, before: null,
+ after: { id: '0002', sets: 3, reps: 8, mode: 'reps' }
+ })]), ['c1']).routines[0].ex.at(-1)
+ // Absent means "whatever the catalogue says". Writing a flag out would freeze today's
+ // dataset into the plan.
+ expect(plain.bodyweight).toBeUndefined()
+ expect(plain.side).toBeUndefined()
+ })
+
+ it('drops an exercise without touching the rest', () => {
+ const out = apply(state(), proposal([change({ type: 'remove-exercise' })]), ['c1'])
+ expect(out.routines[0].ex.map(e => e.id)).toEqual(['0007', '0009'])
+ })
+
+ it('keeps the prescription when swapping the movement', () => {
+ const out = apply(state(), proposal([change({ type: 'swap-exercise', after: { id: '0002' } })]), ['c1'])
+ const e = out.routines[0].ex[0]
+ expect(e.id).toBe('0002')
+ expect(e.sets).toBe(3)
+ expect(e.reps).toBe(10) // not silently reset — that would be a change nobody approved
+ })
+
+ it('drops flags that described the old movement when swapping', () => {
+ const S = state()
+ S.routines[0].ex[0] = { ...S.routines[0].ex[0], side: true, reps: 16, bodyweight: true }
+ const e = apply(S, proposal([change({ type: 'swap-exercise', after: { id: '0002' } })]), ['c1']).routines[0].ex[0]
+ // A lunge's "per side" is not a leg press's. Carrying it over would have the app halve a
+ // rep count that was never per-side; the new exercise goes back to the catalogue.
+ expect(e.side).toBeUndefined()
+ expect(e.bodyweight).toBeUndefined()
+ expect(e.reps).toBe(16) // the prescription itself still survives
+ })
+
+ it('reorders only with a complete permutation', () => {
+ const out = apply(state(), proposal([change({ type: 'reorder', target: { routineId: 'r1' }, after: ['0009', '0001', '0007'] })]), ['c1'])
+ expect(out.routines[0].ex.map(e => e.id)).toEqual(['0009', '0001', '0007'])
+ expect(() => apply(state(), proposal([change({ type: 'reorder', target: { routineId: 'r1' }, after: ['0009'] })]), ['c1'])).toThrow()
+ // A repeated id counts right and resolves to the same object twice: the third exercise
+ // disappears and the survivor is aliased into two slots. Both gates have to catch this,
+ // because it is the one change type with nothing in the diff column to give it away.
+ expect(() => apply(state(), proposal([change({
+ type: 'reorder', target: { routineId: 'r1' }, after: ['0009', '0009', '0001']
+ })]), ['c1'])).toThrow()
+ })
+
+ it('refuses to superset an exercise with itself', () => {
+ // Reachable only if the server let it past. By the message, not merely by throwing: the
+ // unfixed path also threw — a TypeError, after it had already moved the exercise — so
+ // asserting "it throws" would pass against the bug this is here to pin.
+ expect(() => apply(state(), proposal([change({
+ type: 'superset', after: { link: true, with: '0001' }
+ })]), ['c1'])).toThrow('superset with itself')
+ })
+
+ it('supersets by moving the partner adjacent and tagging both', () => {
+ const out = apply(state(), proposal([change({ type: 'superset', after: { link: true, with: '0009' } })]), ['c1'])
+ const ex = out.routines[0].ex
+ expect(ex[0].id).toBe('0001')
+ expect(ex[1].id).toBe('0009')
+ expect(ex[0].sg).toBeTruthy()
+ expect(ex[0].sg).toBe(ex[1].sg)
+ })
+
+ it('unlinks a superset and cleans up the orphan tag', () => {
+ const S = state()
+ S.routines[0].ex[0].sg = 'a'; S.routines[0].ex[1].sg = 'a'
+ const out = apply(S, proposal([change({ type: 'superset', after: { link: false } })]), ['c1'])
+ expect(out.routines[0].ex[0].sg).toBeUndefined()
+ expect(out.routines[0].ex[1].sg).toBeUndefined()
+ })
+
+ it('adds, renames and removes routines, clearing any day that pointed at one', () => {
+ const added = apply(state(), proposal([change({
+ type: 'add-routine', target: {}, before: null,
+ after: { name: 'Full body C', ex: [{ id: '0001', sets: 3, reps: 10, mode: 'reps' }] }
+ })]), ['c1'])
+ expect(added.routines).toHaveLength(3)
+ expect(added.routines[2].id).not.toBe('r1')
+
+ const renamed = apply(state(), proposal([change({ type: 'rename-routine', target: { routineId: 'r1' }, before: 'Full body A', after: 'Upper' })]), ['c1'])
+ expect(renamed.routines[0].name).toBe('Upper')
+
+ const removed = apply(state(), proposal([change({ type: 'remove-routine', target: { routineId: 'r2' } })]), ['c1'])
+ expect(removed.routines.map(r => r.id)).toEqual(['r1'])
+ expect(removed.week[3]).toBeUndefined() // Wednesday pointed at r2
+ })
+
+ it('moves a day, and clears one', () => {
+ const moved = apply(state(), proposal([change({ type: 'week', target: { weekday: 6 }, before: null, after: 'r1' })]), ['c1'])
+ expect(moved.week[6]).toBe('r1')
+ const cleared = apply(state(), proposal([change({ type: 'week', target: { weekday: 1 }, before: 'r1', after: 'rest' })]), ['c1'])
+ expect(cleared.week[1]).toBeUndefined()
+ })
+
+ it('never touches history, weigh-ins or settings', () => {
+ const S = state({
+ workouts: [{ id: 'w1', d: '2026-07-20', entries: [] }],
+ bodyweight: [{ d: '2026-07-20', w: 80 }],
+ exWeights: { '0001': { w: 20 } }, unit: 'kg', restSec: 90
+ })
+ const out = apply(S, proposal([change({ type: 'sets', after: 4 })]), ['c1'])
+ expect(out.workouts).toEqual(S.workouts)
+ expect(out.bodyweight).toEqual(S.bodyweight)
+ expect(out.exWeights).toEqual(S.exWeights)
+ expect(out.unit).toBe('kg')
+ expect(out.restSec).toBe(90)
+ })
+})
+
+describe('accepting a subset', () => {
+ it('applies only what was accepted and records the rest as declined', () => {
+ const s = JSON.parse(JSON.stringify(state()))
+ const p = proposal([
+ change({ id: 'c1', type: 'sets', after: 4 }),
+ change({ id: 'c2', type: 'reps', before: 10, after: 12 })
+ ])
+ const res = applyChangeSet(s, p, ['c1'])
+ expect(res).toEqual({ applied: 1, rejected: 1 })
+ expect(s.routines[0].ex[0].sets).toBe(4)
+ expect(s.routines[0].ex[0].reps).toBe(10)
+ const decisions = s.coach.log.at(-1).decisions
+ expect(decisions.find(d => d.id === 'c2').status).toBe('rejected')
+ })
+
+ it('refuses to apply a stale change even if it was ticked', () => {
+ const s = JSON.parse(JSON.stringify(state()))
+ const p = markStale(proposal([change()]), { ...s, routines: [{ id: 'r1', name: 'A', ex: [] }] })
+ expect(applyChangeSet(s, p, ['c1'])).toEqual({ applied: 0 })
+ })
+
+ it('is all-or-nothing: a failure part-way leaves the plan exactly as it was', () => {
+ const s = JSON.parse(JSON.stringify(state()))
+ const before = JSON.stringify(s.routines)
+ const p = proposal([
+ change({ id: 'c1', type: 'sets', after: 4 }),
+ change({ id: 'c2', type: 'reps', target: { routineId: 'r1', exId: 'ghost' }, before: null, after: 12 })
+ ])
+ // The store hands us a clone and keeps it only if we return; throwing discards everything.
+ expect(() => applyChangeSet(s, p, ['c1', 'c2'])).toThrow()
+ const s2 = JSON.parse(JSON.stringify(state()))
+ try { applyChangeSet(s2, p, ['c1', 'c2']) } catch { /* draft discarded by the caller */ }
+ expect(JSON.stringify(state().routines)).toBe(before)
+ })
+})
+
+describe('snapshots and revert', () => {
+ it('puts the plan back and leaves the training log alone', () => {
+ const s = JSON.parse(JSON.stringify(state({ workouts: [{ id: 'w1', d: '2026-07-20', entries: [] }] })))
+ const original = JSON.stringify(s.routines)
+ applyChangeSet(s, proposal([change({ type: 'sets', after: 4 })]), ['c1'])
+ expect(s.routines[0].ex[0].sets).toBe(4)
+ expect(canRevert(s)).toBe(true)
+ expect(revertLast(s)).toBe(true)
+ expect(JSON.stringify(s.routines)).toBe(original)
+ expect(s.workouts).toHaveLength(1)
+ expect(s.coach.log.at(-1).kind).toBe('revert')
+ })
+
+ it('keeps a bounded number of snapshots', () => {
+ const s = JSON.parse(JSON.stringify(state()))
+ for (let i = 0; i < SNAPSHOT_MAX + 3; i++) pushSnapshot(s, 'p' + i)
+ expect(s.coach.snapshots).toHaveLength(SNAPSHOT_MAX)
+ expect(s.coach.snapshots.at(-1).proposalId).toBe('p' + (SNAPSHOT_MAX + 2))
+ })
+
+ it('reverting with nothing to revert to is a no-op, not a crash', () => {
+ const s = JSON.parse(JSON.stringify(state()))
+ expect(revertLast(s)).toBe(false)
+ })
+})
+
+describe('the log', () => {
+ it('is bounded', () => {
+ const s = JSON.parse(JSON.stringify(state()))
+ for (let i = 0; i < LOG_MAX + 10; i++) appendLog(s, { kind: 'review', at: i, summary: 's' + i })
+ expect(s.coach.log).toHaveLength(LOG_MAX)
+ expect(s.coach.log.at(-1).summary).toBe('s' + (LOG_MAX + 9))
+ })
+
+ it('stays well inside the sync budget even when full', () => {
+ const s = JSON.parse(JSON.stringify(state()))
+ for (let i = 0; i < LOG_MAX; i++) {
+ appendLog(s, { kind: 'review', at: i, summary: 'x'.repeat(200), decisions: [{ id: 'c', type: 'sets', why: 'y'.repeat(200), status: 'accepted' }] })
+ }
+ for (let i = 0; i < SNAPSHOT_MAX; i++) pushSnapshot(s, 'p' + i)
+ expect(JSON.stringify(s.coach).length).toBeLessThan(300 * 1024)
+ })
+
+ it('records a dismissal so a later review knows not to nag', () => {
+ const s = JSON.parse(JSON.stringify(state()))
+ recordDismissal(s, proposal([change()]))
+ expect(s.coach.log.at(-1).decisions[0].status).toBe('rejected')
+ })
+})
+
+describe('created plans', () => {
+ const bundle = {
+ opengym_plan: 1, name: 'Coach plan', summary: 'three days',
+ week: { 1: 'x1', 3: 'x2' },
+ routines: [
+ { id: 'x1', name: 'A', emoji: '💪', why: 'why A', ex: [{ id: '0001', sets: 3, reps: 10, mode: 'reps', why: 'why ex' }] },
+ { id: 'x2', name: 'B', emoji: '🏋️', ex: [{ id: '0002', sets: 3, reps: 8, mode: 'reps' }] }
+ ],
+ customEx: []
+ }
+
+ it('adds routines as new ones and never modifies what was already there', () => {
+ const s = JSON.parse(JSON.stringify(state()))
+ applyCreatedPlan(s, { id: 'p1', kind: 'create', bundle }, { schedule: false })
+ expect(s.routines).toHaveLength(4)
+ expect(s.routines[0].name).toBe('Full body A') // untouched
+ expect(s.routines[2].id).not.toBe('x1') // fresh ids, like a plan import
+ expect(s.week[1]).toBe('r1') // schedule left alone
+ })
+
+ it('replaces the week only when asked, and remaps to the new ids', () => {
+ const s = JSON.parse(JSON.stringify(state()))
+ applyCreatedPlan(s, { id: 'p1', kind: 'create', bundle }, { schedule: true })
+ expect(s.week[1]).toBe(s.routines[2].id)
+ expect(s.week[3]).toBe(s.routines[3].id)
+ expect(s.week[5]).toBeUndefined() // a day the new plan leaves empty is rest
+ })
+
+ it('keeps the Coach\'s prose out of the routine data', () => {
+ const s = JSON.parse(JSON.stringify(state()))
+ applyCreatedPlan(s, { id: 'p1', kind: 'create', bundle }, {})
+ expect(s.routines[2].why).toBeUndefined()
+ expect(s.routines[2].ex[0].why).toBeUndefined()
+ expect(s.routines[2].ex[0].name).toBeUndefined()
+ })
+
+ it('carries the rep ceiling and the flags the validator let through', () => {
+ const s = JSON.parse(JSON.stringify(state()))
+ applyCreatedPlan(s, {
+ id: 'p1', kind: 'create',
+ bundle: {
+ ...bundle,
+ routines: [{ id: 'x1', name: 'A', ex: [{ id: '0001', sets: 3, reps: 12, mode: 'reps', repsMin: 8, repsMax: 20, bodyweight: true }] }]
+ }
+ }, {})
+ expect(s.routines[2].ex[0]).toMatchObject({ repsMin: 8, repsMax: 20, bodyweight: true })
+ })
+
+ it('is revertible like any other change', () => {
+ const s = JSON.parse(JSON.stringify(state()))
+ applyCreatedPlan(s, { id: 'p1', kind: 'create', bundle }, { schedule: true })
+ revertLast(s)
+ expect(s.routines).toHaveLength(2)
+ expect(s.week[1]).toBe('r1')
+ })
+
+ it('brings custom exercises along and registers them', () => {
+ const s = JSON.parse(JSON.stringify(state()))
+ applyCreatedPlan(s, {
+ id: 'p1', kind: 'create',
+ bundle: { ...bundle, routines: [{ id: 'x1', name: 'A', ex: [{ id: 'cx1', sets: 3, reps: 10 }] }], customEx: [{ id: 'cx1', n: 'Sandbag carry', bp: 'back' }] }
+ }, {})
+ expect(s.customEx).toHaveLength(1)
+ registerCustom(s.customEx)
+ expect(s.routines[2].ex[0].id).toBe(s.customEx[0].id)
+ })
+})
+
+describe('validation', () => {
+ it('rejects an unreadable proposal rather than half-applying it', () => {
+ expect(() => validateProposal(null)).toThrow()
+ expect(() => validateProposal({})).toThrow()
+ expect(() => validateProposal({ changes: [{ type: 'drop-database' }] })).toThrow()
+ expect(() => validateProposal({ bundle: { routines: [] } })).toThrow()
+ expect(validateProposal({ changes: [change()] })).toBe(true)
+ })
+})
+
+describe('the gate has something real to read', () => {
+ it('the store actually exposes the `config` field every Coach entry point reads', async () => {
+ // coachAvailable(config, …) is false when `config` is undefined, which is indistinguishable
+ // from "this instance has no Coach". The views were ported once without the store field they
+ // depend on, so every Coach surface silently vanished on every instance: no entry point, and
+ // /#/coach redirecting straight back to /home. A missing key must fail here, not in a browser.
+ // Asserted against the source rather than the live store: useStore touches `document` at
+ // import time, so it cannot be instantiated in this environment. Crude, but it fails on
+ // exactly the two edits that broke it — dropping the field, or dropping the fetch.
++ // Matched loosely on purpose: boot() fetches through loadConfig() rather than inlining the
++ // call, so what matters is that the field exists and that something writes /api/config
++ // into it — not the spelling of the expression that does it.
+ const { readFileSync } = await import('node:fs')
+ const src = readFileSync(new URL('../store/useStore.js', import.meta.url), 'utf8')
+ expect(src).toMatch(/\bconfig:\s*null\b/)
- expect(src).toMatch(/set\(\s*\{\s*config:\s*await api\(['"]\/api\/config['"]\)/)
++ expect(src).toMatch(/set\(\s*\{\s*config[:\s]/)
++ expect(src).toMatch(/api\(['"]\/api\/config['"]\)/)
++ // and boot() must actually reach it, however it is spelled
++ expect(src).toMatch(/loadConfig\(\)|config:\s*await api\(/)
+ })
+
+ it('a configured instance with a signed-in user opens the gate', () => {
+ // The exact shape GET /api/config returns when the Coach is on.
+ const config = { invite_only: false, coach: { enabled: true, provider: 'claude', authMode: 'instance' } }
+ expect(coachAvailable(config, { id: 'u' })).toBe(true)
+ expect(coachAvailable(undefined, { id: 'u' })).toBe(false) // the bug, pinned
+ })
+})
diff --cc frontend/src/locales/de.js
index afd19dcc5,e4cfd67b3..f963a264b
--- a/frontend/src/locales/de.js
+++ b/frontend/src/locales/de.js
@@@ -571,145 -588,12 +588,153 @@@ export default
'{0} sets of {1} — time to add weight or move to a harder variation.': '{0} Sätze mit {1} — Zeit für Zusatzgewicht oder eine schwerere Variante.',
'{0} per side': '{0} pro Seite',
'You still log the total: {0} is {1} per side.': 'Du trägst weiterhin die Gesamtzahl ein: {0} sind {1} pro Seite.',
+
+ // --- AI Coach ---
+ 'The Coach is reading your training…': 'Der Coach liest dein Training…',
+ 'Could not ask the Coach': 'Der Coach konnte nicht gefragt werden',
+ 'Turn the Coach off?': 'Coach ausschalten?',
+ 'Any pending suggestion is discarded and scheduled reviews stop. Your Coach history stays, and you can turn it back on anytime.': 'Offene Vorschläge werden verworfen und geplante Auswertungen stoppen. Dein Verlauf bleibt, und du kannst ihn jederzeit wieder einschalten.',
+ 'Turn off': 'Ausschalten',
+ 'The Coach is off': 'Coach ist aus',
+ 'Undo the last Coach changes?': 'Letzte Coach-Änderungen rückgängig machen?',
+ 'Your plan goes back to how it was before you accepted them. Workouts you have logged since are untouched.': 'Dein Plan geht zurück in den Zustand vor deiner Zustimmung. Seither protokollierte Einheiten bleiben unangetastet.',
+ 'Undo': 'Rückgängig',
+ 'Plan restored': 'Plan wiederhergestellt',
+ 'Nothing to undo': 'Nichts rückgängig zu machen',
+ 'Back': 'Zurück',
+ 'Coach': 'Coach',
+ 'Plan design and reviews, from your own training': 'Plangestaltung und Auswertungen aus deinem eigenen Training',
+ 'Ask for a review': 'Auswertung anfordern',
+ 'The Coach reads what you have actually logged since its last look and suggests changes to your plan — each one with its reason.': 'Der Coach liest, was du seit seinem letzten Blick protokolliert hast, und schlägt Änderungen an deinem Plan vor — jede mit Begründung.',
+ 'Anything it should know? (optional) — e.g. “right shoulder pinches on overhead work”': 'Etwas, das er wissen sollte? (optional) — z. B. „rechte Schulter zwickt bei Überkopfübungen“',
+ '{0} of {1} Coach runs used today': '{0} von {1} Coach-Durchläufen heute genutzt',
+ 'No plan yet — the Coach can build you one from a few questions.': 'Noch kein Plan — der Coach erstellt dir einen aus ein paar Fragen.',
+ 'Let the Coach build my plan': 'Den Coach meinen Plan erstellen lassen',
+ 'Coach profile': 'Coach-Profil',
+ 'Used by every proposal — keep limitations here up to date.': 'Wird für jeden Vorschlag genutzt — halte deine Einschränkungen hier aktuell.',
+ 'Your answers': 'Deine Antworten',
+ 'Not set yet': 'Noch nicht gesetzt',
+ 'Controls': 'Steuerung',
+ 'Undo the last Coach changes': 'Letzte Coach-Änderungen rückgängig machen',
+ 'Turn the Coach off': 'Coach ausschalten',
+ '{0} days a week': '{0} Tage pro Woche',
+ '{0} min': '{0} Min.',
+ 'The Coach is on': 'Coach ist an',
+ 'Before the Coach starts': 'Bevor der Coach loslegt',
+ 'When you ask for a plan or a review, this instance sends the following to {0}, running on this server under the instance owner’s account.': 'Wenn du einen Plan oder eine Auswertung anforderst, sendet diese Instanz Folgendes an {0}, das auf diesem Server unter dem Konto des Betreibers läuft.',
+ 'the configured AI provider': 'den eingerichteten KI-Anbieter',
+ 'Your name, your sign-in details and everything else about your account stay here. Other people’s data is never included.': 'Dein Name, deine Anmeldedaten und alles andere zu deinem Konto bleiben hier. Daten anderer Personen sind nie dabei.',
+ 'Nothing the Coach suggests is applied on its own — you review every change and can undo it afterwards.': 'Nichts, was der Coach vorschlägt, wird von selbst übernommen: Du prüfst jede Änderung und kannst sie danach rückgängig machen.',
+ 'You can turn this off at any time, which also discards anything the Coach is holding for you.': 'Du kannst das jederzeit abschalten; damit wird auch alles verworfen, was der Coach für dich vorhält.',
+ 'The Coach is not a doctor or a physiotherapist. If something hurts, ask a professional.': 'Der Coach ist weder Arzt noch Physiotherapeut. Wenn etwas wehtut, frag eine Fachkraft.',
+ 'I understand — turn the Coach on': 'Verstanden — Coach einschalten',
+ 'Not now': 'Jetzt nicht',
+ 'Meet the Coach': 'Lerne den Coach kennen',
+ 'An AI coach that can design your plan and adjust it from what you actually log. It runs on this server, it never changes anything without your say-so, and it is off until you turn it on.': 'Ein KI-Coach, der deinen Plan entwirft und ihn an das anpasst, was du tatsächlich protokollierst. Er läuft auf diesem Server, ändert nie etwas ohne dein Einverständnis und ist aus, bis du ihn einschaltest.',
+ 'See what it would use': 'Ansehen, welche Daten er nutzt',
+ 'The Coach is thinking…': 'Der Coach denkt nach…',
+ 'This takes a minute or two. You can leave this screen — it keeps going.': 'Das dauert ein, zwei Minuten. Du kannst diesen Bildschirm verlassen — es läuft weiter.',
+ 'Your plan is ready': 'Dein Plan ist fertig',
+ 'Suggestions ready': 'Vorschläge bereit',
+ '{0} routines to look over': '{0} Routinen zum Durchsehen',
+ 'Review': 'Ansehen',
+ 'Automatic reviews': 'Automatische Auswertungen',
+ 'Off — the Coach only looks when you ask it to.': 'Aus — der Coach schaut nur, wenn du ihn darum bittest.',
+ 'You are only notified when the Coach actually has something to suggest.': 'Du wirst nur benachrichtigt, wenn der Coach wirklich etwas vorzuschlagen hat.',
+ 'When': 'Wann',
+ 'Weekly': 'Wöchentlich',
+ 'On a day and time you choose': 'An einem Tag und zu einer Uhrzeit deiner Wahl',
+ 'After every few workouts': 'Nach jeweils ein paar Einheiten',
+ 'As soon as you have logged enough': 'Sobald du genug protokolliert hast',
+ 'Day': 'Tag',
+ 'After how many workouts': 'Nach wie vielen Einheiten',
+ 'Plan from the Coach': 'Plan vom Coach',
+ 'Coach review': 'Coach-Auswertung',
+ 'Based on {0} sessions': 'Auf Basis von {0} Einheiten',
+ 'applied': 'übernommen',
+ 'declined': 'abgelehnt',
+ 'Coach history': 'Coach-Verlauf',
+ 'Built a plan': 'Hat einen Plan erstellt',
+ 'Undid the last changes': 'Hat die letzten Änderungen rückgängig gemacht',
+ 'Reviewed your training': 'Hat dein Training ausgewertet',
+ '{0} applied': '{0} übernommen',
+ 'The Coach is building your plan…': 'Der Coach erstellt deinen Plan…',
+ 'Your plan': 'Dein Plan',
+ 'Step {0} of {1}': 'Schritt {0} von {1}',
+ 'What are you training for?': 'Wofür trainierst du?',
+ 'Where are you starting from?': 'Wo stehst du gerade?',
+ 'How many days a week?': 'Wie viele Tage pro Woche?',
+ 'Which days suit you? (optional)': 'Welche Tage passen dir? (optional)',
+ 'How long is a session?': 'Wie lang ist eine Einheit?',
+ 'min': 'Min.',
+ 'The Coach fits the volume to the time you actually have, including rest between sets.': 'Der Coach passt das Volumen an die Zeit an, die du wirklich hast — inklusive Pausen zwischen den Sätzen.',
+ 'What can you train with?': 'Womit kannst du trainieren?',
+ 'Pick everything you have access to. Leave it empty and the Coach will use the whole library.': 'Wähle alles aus, worauf du Zugriff hast. Lässt du es leer, nutzt der Coach die ganze Bibliothek.',
+ 'Anything to work around?': 'Gibt es etwas zu berücksichtigen?',
+ 'Injuries, joints that complain, movements you cannot do, or practical limits like training at 6am in a flat.': 'Verletzungen, Gelenke, die zicken, Bewegungen, die nicht gehen, oder praktische Grenzen wie Training um 6 Uhr in einer Wohnung.',
+ 'e.g. “dodgy left shoulder — no barbell overhead press”': 'z. B. „empfindliche linke Schulter — kein Schulterdrücken mit der Langhantel“',
+ 'If something actually hurts, see a professional — the Coach will program conservatively but it cannot diagnose anything.': 'Wenn etwas wirklich wehtut, geh zu einer Fachkraft: Der Coach plant vorsichtig, kann aber nichts diagnostizieren.',
+ 'Anything else?': 'Sonst noch etwas?',
+ 'Exercises you love': 'Übungen, die du liebst',
+ 'e.g. “deadlifts, anything with a kettlebell”': 'z. B. „Kreuzheben, alles mit der Kettlebell“',
+ 'Exercises you would rather not': 'Übungen, auf die du lieber verzichtest',
+ 'e.g. “I hate lunges”': 'z. B. „ich hasse Ausfallschritte“',
+ 'Anything you want the Coach to know': 'Was der Coach sonst noch wissen soll',
+ 'e.g. “I want visible arms progress by spring”': 'z. B. „bis zum Frühling sichtbare Fortschritte an den Armen“',
+ 'Build my plan': 'Meinen Plan erstellen',
+ 'Pick a goal and where you are starting from to continue.': 'Wähle ein Ziel und deinen Ausgangspunkt, um fortzufahren.',
+ 'Your plan is live': 'Dein Plan ist aktiv',
+ 'That proposal can’t be read.': 'Dieser Vorschlag lässt sich nicht lesen.',
+ 'Discard this plan?': 'Diesen Plan verwerfen?',
+ 'Nothing is saved, and you can ask again anytime.': 'Es wird nichts gespeichert, und du kannst jederzeit erneut fragen.',
+ 'The Coach is revising it…': 'Der Coach überarbeitet…',
+ 'Revision {0}': 'Überarbeitung {0}',
+ 'Replaces your current week. Days this plan leaves empty become rest days.': 'Ersetzt deine aktuelle Woche. Tage, die dieser Plan frei lässt, werden zu Ruhetagen.',
+ 'Want something different?': 'Möchtest du etwas anderes?',
+ 'Say it in your own words and the Coach will revise the whole plan.': 'Sag es in deinen eigenen Worten, und der Coach überarbeitet den ganzen Plan.',
+ 'e.g. “swap the squats for split squats, and Mondays are short”': 'z. B. „tausch die Kniebeugen gegen Bulgarian Split Squats, und montags habe ich wenig Zeit“',
+ 'Ask for a revision': 'Überarbeitung anfordern',
+ 'Accept plan': 'Plan übernehmen',
+ 'Could not apply those changes': 'Diese Änderungen konnten nicht übernommen werden',
+ 'Dismiss these suggestions?': 'Diese Vorschläge verwerfen?',
+ 'Nothing changes, and the Coach will remember you turned these down.': 'Es ändert sich nichts, und der Coach merkt sich, dass du sie abgelehnt hast.',
+ 'Dismiss': 'Verwerfen',
+ 'Coach suggestions': 'Coach-Vorschläge',
+ 'Based on your last {0} sessions': 'Auf Basis deiner letzten {0} Einheiten',
+ 'Your plan changed since the Coach looked at it. Suggestions that no longer match are greyed out — ask for a fresh review to see them again.': 'Dein Plan hat sich geändert, seit der Coach ihn angesehen hat. Vorschläge, die nicht mehr passen, sind ausgegraut — fordere eine neue Auswertung an, um sie wiederzusehen.',
+ 'Doesn’t match your plan any more — can’t be applied.': 'Passt nicht mehr zu deinem Plan — kann nicht übernommen werden.',
+ 'Notes from the Coach': 'Hinweise vom Coach',
+ 'These change nothing on their own.': 'Diese ändern für sich genommen nichts.',
+ 'Apply nothing': 'Nichts übernehmen',
+ 'Dismiss all': 'Alle verwerfen',
+ 'Reverted the last Coach changes.': 'Letzte Coach-Änderungen rückgängig gemacht.',
+ 'Before the Coach’s plan': 'Vor dem Plan des Coachs',
+ 'Before the Coach’s changes': 'Vor den Änderungen des Coachs',
+ 'Add {0}': '{0} hinzufügen',
+ 'Drop {0}': '{0} streichen',
+ 'Swap {0} for {1}': '{0} durch {1} ersetzen',
+ '{0}: sets': '{0}: Sätze',
+ '{0}: reps': '{0}: Wiederholungen',
+ '{0}: rep-range floor': '{0}: Untergrenze des Wiederholungsbereichs',
+ '{0}: rep-range ceiling': '{0}: Obergrenze des Wiederholungsbereichs',
+ '{0}: hold time': '{0}: Haltezeit',
+ '{0}: duration & pace': '{0}: Dauer & Tempo',
+ '{0}: load step': '{0}: Gewichtsschritt',
+ '{0}: progression': '{0}: Progression',
+ 'Routine progression': 'Progression der Routine',
+ 'Reorder exercises': 'Übungen neu ordnen',
+ 'Superset {0} with {1}': '{0} mit {1} zum Supersatz verbinden',
+ 'Unlink superset on {0}': 'Supersatz bei {0} auflösen',
+ 'Add routine “{0}”': 'Routine „{0}“ hinzufügen',
+ 'Remove a routine': 'Eine Routine entfernen',
+ 'Rename routine to “{0}”': 'Routine in „{0}“ umbenennen',
+ 'Change what’s planned on one day': 'Ändern, was an einem Tag geplant ist',
+ '{0} sets · {1} work': '{0} Sätze · {1} Arbeit',
+ 'Make superset with previous': 'Mit vorheriger Übung kombinieren',
+ 'Make superset with next': 'Mit nächster Übung kombinieren',
+ 'primary': 'primär',
+ 'secondary': 'sekundär',
+ 'No exercises with an estimated 1RM yet.': 'Noch keine Übungen mit geschätztem 1RM.',
+ 'Tap a muscle to see its exercises.': 'Tippe auf einen Muskel, um seine Übungen zu sehen.',
+ 'Unpair': 'Trennen'
}
diff --cc frontend/src/locales/es.js
index d782fb905,5523adcce..a1ea2c3ce
--- a/frontend/src/locales/es.js
+++ b/frontend/src/locales/es.js
@@@ -554,145 -571,12 +571,153 @@@ export default
'{0} sets of {1} — time to add weight or move to a harder variation.': '{0} series de {1}: toca añadir peso o pasar a una variante más difícil.',
'{0} per side': '{0} por lado',
'You still log the total: {0} is {1} per side.': 'Sigues registrando el total: {0} son {1} por lado.',
+
+ // --- AI Coach ---
+ 'The Coach is reading your training…': 'El Entrenador está leyendo tu entrenamiento…',
+ 'Could not ask the Coach': 'No se pudo consultar al Entrenador',
+ 'Turn the Coach off?': '¿Desactivar el Entrenador?',
+ 'Any pending suggestion is discarded and scheduled reviews stop. Your Coach history stays, and you can turn it back on anytime.': 'Se descarta cualquier sugerencia pendiente y se detienen las revisiones programadas. Tu historial se conserva y puedes reactivarlo cuando quieras.',
+ 'Turn off': 'Desactivar',
+ 'The Coach is off': 'Entrenador desactivado',
+ 'Undo the last Coach changes?': '¿Deshacer los últimos cambios del Entrenador?',
+ 'Your plan goes back to how it was before you accepted them. Workouts you have logged since are untouched.': 'Tu plan vuelve a como estaba antes de aceptarlos. Los entrenamientos registrados desde entonces no se tocan.',
+ 'Undo': 'Deshacer',
+ 'Plan restored': 'Plan restaurado',
+ 'Nothing to undo': 'Nada que deshacer',
+ 'Back': 'Atrás',
+ 'Coach': 'Entrenador',
+ 'Plan design and reviews, from your own training': 'Diseño de planes y revisiones, a partir de tu propio entrenamiento',
+ 'Ask for a review': 'Pedir una revisión',
+ 'The Coach reads what you have actually logged since its last look and suggests changes to your plan — each one with its reason.': 'El Entrenador lee lo que has registrado desde su última revisión y sugiere cambios en tu plan, cada uno con su motivo.',
+ 'Anything it should know? (optional) — e.g. “right shoulder pinches on overhead work”': '¿Algo que deba saber? (opcional) — p. ej. «me pincha el hombro derecho en press por encima de la cabeza»',
+ '{0} of {1} Coach runs used today': '{0} de {1} usos del Entrenador hoy',
+ 'No plan yet — the Coach can build you one from a few questions.': 'Aún no hay plan: el Entrenador puede crearte uno con unas pocas preguntas.',
+ 'Let the Coach build my plan': 'Que el Entrenador cree mi plan',
+ 'Coach profile': 'Perfil del Entrenador',
+ 'Used by every proposal — keep limitations here up to date.': 'Se usa en cada propuesta: mantén aquí tus limitaciones al día.',
+ 'Your answers': 'Tus respuestas',
+ 'Not set yet': 'Sin configurar',
+ 'Controls': 'Controles',
+ 'Undo the last Coach changes': 'Deshacer los últimos cambios del Entrenador',
+ 'Turn the Coach off': 'Desactivar el Entrenador',
+ '{0} days a week': '{0} días a la semana',
+ '{0} min': '{0} min',
+ 'The Coach is on': 'Entrenador activado',
+ 'Before the Coach starts': 'Antes de empezar',
+ 'When you ask for a plan or a review, this instance sends the following to {0}, running on this server under the instance owner’s account.': 'Cuando pides un plan o una revisión, esta instancia envía lo siguiente a {0}, que se ejecuta en este servidor con la cuenta del propietario.',
+ 'the configured AI provider': 'el proveedor de IA configurado',
+ 'Your name, your sign-in details and everything else about your account stay here. Other people’s data is never included.': 'Tu nombre, tus datos de acceso y todo lo demás de tu cuenta se quedan aquí. Los datos de otras personas nunca se incluyen.',
+ 'Nothing the Coach suggests is applied on its own — you review every change and can undo it afterwards.': 'Nada de lo que sugiere el Entrenador se aplica solo: revisas cada cambio y puedes deshacerlo después.',
+ 'You can turn this off at any time, which also discards anything the Coach is holding for you.': 'Puedes desactivarlo cuando quieras, lo que también descarta cualquier cosa que el Entrenador tenga guardada para ti.',
+ 'The Coach is not a doctor or a physiotherapist. If something hurts, ask a professional.': 'El Entrenador no es médico ni fisioterapeuta. Si algo te duele, consulta a un profesional.',
+ 'I understand — turn the Coach on': 'Lo entiendo: activar el Entrenador',
+ 'Not now': 'Ahora no',
+ 'Meet the Coach': 'Conoce al Entrenador',
+ 'An AI coach that can design your plan and adjust it from what you actually log. It runs on this server, it never changes anything without your say-so, and it is off until you turn it on.': 'Un entrenador con IA que puede diseñar tu plan y ajustarlo según lo que registras. Se ejecuta en este servidor, nunca cambia nada sin tu permiso y está apagado hasta que lo actives.',
+ 'See what it would use': 'Ver qué datos usaría',
+ 'The Coach is thinking…': 'El Entrenador está pensando…',
+ 'This takes a minute or two. You can leave this screen — it keeps going.': 'Esto tarda un minuto o dos. Puedes salir de esta pantalla: sigue trabajando.',
+ 'Your plan is ready': 'Tu plan está listo',
+ 'Suggestions ready': 'Sugerencias listas',
+ '{0} routines to look over': '{0} rutinas para revisar',
+ 'Review': 'Revisar',
+ 'Automatic reviews': 'Revisiones automáticas',
+ 'Off — the Coach only looks when you ask it to.': 'Desactivado: el Entrenador solo mira cuando se lo pides.',
+ 'You are only notified when the Coach actually has something to suggest.': 'Solo recibes aviso cuando el Entrenador tiene algo que sugerir.',
+ 'When': 'Cuándo',
+ 'Weekly': 'Semanal',
+ 'On a day and time you choose': 'El día y la hora que elijas',
+ 'After every few workouts': 'Cada varios entrenamientos',
+ 'As soon as you have logged enough': 'En cuanto hayas registrado suficientes',
+ 'Day': 'Día',
+ 'After how many workouts': 'Cada cuántos entrenamientos',
+ 'Plan from the Coach': 'Plan del Entrenador',
+ 'Coach review': 'Revisión del Entrenador',
+ 'Based on {0} sessions': 'Basado en {0} sesiones',
+ 'applied': 'aplicado',
+ 'declined': 'rechazado',
+ 'Coach history': 'Historial del Entrenador',
+ 'Built a plan': 'Creó un plan',
+ 'Undid the last changes': 'Deshizo los últimos cambios',
+ 'Reviewed your training': 'Revisó tu entrenamiento',
+ '{0} applied': '{0} aplicados',
+ 'The Coach is building your plan…': 'El Entrenador está creando tu plan…',
+ 'Your plan': 'Tu plan',
+ 'Step {0} of {1}': 'Paso {0} de {1}',
+ 'What are you training for?': '¿Para qué entrenas?',
+ 'Where are you starting from?': '¿De dónde partes?',
+ 'How many days a week?': '¿Cuántos días a la semana?',
+ 'Which days suit you? (optional)': '¿Qué días te van bien? (opcional)',
+ 'How long is a session?': '¿Cuánto dura una sesión?',
+ 'min': 'min',
+ 'The Coach fits the volume to the time you actually have, including rest between sets.': 'El Entrenador ajusta el volumen al tiempo del que dispones, incluido el descanso entre series.',
+ 'What can you train with?': '¿Con qué puedes entrenar?',
+ 'Pick everything you have access to. Leave it empty and the Coach will use the whole library.': 'Marca todo lo que tengas a mano. Si lo dejas vacío, el Entrenador usará toda la biblioteca.',
+ 'Anything to work around?': '¿Algo que haya que tener en cuenta?',
+ 'Injuries, joints that complain, movements you cannot do, or practical limits like training at 6am in a flat.': 'Lesiones, articulaciones molestas, movimientos que no puedes hacer o límites prácticos como entrenar a las 6 de la mañana en un piso.',
+ 'e.g. “dodgy left shoulder — no barbell overhead press”': 'p. ej. «hombro izquierdo delicado: nada de press militar con barra»',
+ 'If something actually hurts, see a professional — the Coach will program conservatively but it cannot diagnose anything.': 'Si algo duele de verdad, consulta a un profesional: el Entrenador programará de forma conservadora, pero no puede diagnosticar nada.',
+ 'Anything else?': '¿Algo más?',
+ 'Exercises you love': 'Ejercicios que te encantan',
+ 'e.g. “deadlifts, anything with a kettlebell”': 'p. ej. «peso muerto, cualquier cosa con kettlebell»',
+ 'Exercises you would rather not': 'Ejercicios que preferirías evitar',
+ 'e.g. “I hate lunges”': 'p. ej. «odio las zancadas»',
+ 'Anything you want the Coach to know': 'Algo que quieras que sepa el Entrenador',
+ 'e.g. “I want visible arms progress by spring”': 'p. ej. «quiero ver progreso en los brazos para la primavera»',
+ 'Build my plan': 'Crear mi plan',
+ 'Pick a goal and where you are starting from to continue.': 'Elige un objetivo y tu punto de partida para continuar.',
+ 'Your plan is live': 'Tu plan está activo',
+ 'That proposal can’t be read.': 'Esa propuesta no se puede leer.',
+ 'Discard this plan?': '¿Descartar este plan?',
+ 'Nothing is saved, and you can ask again anytime.': 'No se guarda nada y puedes volver a pedirlo cuando quieras.',
+ 'The Coach is revising it…': 'El Entrenador lo está revisando…',
+ 'Revision {0}': 'Revisión {0}',
+ 'Replaces your current week. Days this plan leaves empty become rest days.': 'Sustituye tu semana actual. Los días que este plan deje vacíos serán de descanso.',
+ 'Want something different?': '¿Quieres algo distinto?',
+ 'Say it in your own words and the Coach will revise the whole plan.': 'Dilo con tus palabras y el Entrenador revisará todo el plan.',
+ 'e.g. “swap the squats for split squats, and Mondays are short”': 'p. ej. «cambia las sentadillas por zancadas búlgaras, y los lunes tengo poco tiempo»',
+ 'Ask for a revision': 'Pedir una revisión',
+ 'Accept plan': 'Aceptar plan',
+ 'Could not apply those changes': 'No se pudieron aplicar esos cambios',
+ 'Dismiss these suggestions?': '¿Descartar estas sugerencias?',
+ 'Nothing changes, and the Coach will remember you turned these down.': 'No cambia nada, y el Entrenador recordará que las has rechazado.',
+ 'Dismiss': 'Descartar',
+ 'Coach suggestions': 'Sugerencias del Entrenador',
+ 'Based on your last {0} sessions': 'Basado en tus últimas {0} sesiones',
+ 'Your plan changed since the Coach looked at it. Suggestions that no longer match are greyed out — ask for a fresh review to see them again.': 'Tu plan ha cambiado desde que el Entrenador lo miró. Las sugerencias que ya no encajan aparecen atenuadas: pide una revisión nueva para verlas de nuevo.',
+ 'Doesn’t match your plan any more — can’t be applied.': 'Ya no coincide con tu plan: no se puede aplicar.',
+ 'Notes from the Coach': 'Notas del Entrenador',
+ 'These change nothing on their own.': 'Por sí solas no cambian nada.',
+ 'Apply nothing': 'No aplicar nada',
+ 'Dismiss all': 'Descartar todo',
+ 'Reverted the last Coach changes.': 'Se deshicieron los últimos cambios del Entrenador.',
+ 'Before the Coach’s plan': 'Antes del plan del Entrenador',
+ 'Before the Coach’s changes': 'Antes de los cambios del Entrenador',
+ 'Add {0}': 'Añadir {0}',
+ 'Drop {0}': 'Quitar {0}',
+ 'Swap {0} for {1}': 'Cambiar {0} por {1}',
+ '{0}: sets': '{0}: series',
+ '{0}: reps': '{0}: repeticiones',
+ '{0}: rep-range floor': '{0}: mínimo del rango de repeticiones',
+ '{0}: rep-range ceiling': '{0}: máximo del rango de repeticiones',
+ '{0}: hold time': '{0}: tiempo de sostén',
+ '{0}: duration & pace': '{0}: duración y ritmo',
+ '{0}: load step': '{0}: incremento de carga',
+ '{0}: progression': '{0}: progresión',
+ 'Routine progression': 'Progresión de la rutina',
+ 'Reorder exercises': 'Reordenar ejercicios',
+ 'Superset {0} with {1}': 'Superserie de {0} con {1}',
+ 'Unlink superset on {0}': 'Deshacer la superserie de {0}',
+ 'Add routine “{0}”': 'Añadir rutina «{0}»',
+ 'Remove a routine': 'Eliminar una rutina',
+ 'Rename routine to “{0}”': 'Renombrar la rutina a «{0}»',
+ 'Change what’s planned on one day': 'Cambiar lo planificado en un día',
+ '{0} sets · {1} work': '{0} series · {1} trabajo',
+ 'Make superset with previous': 'Hacer superserie con anterior',
+ 'Make superset with next': 'Hacer superserie con siguiente',
+ 'primary': 'principal',
+ 'secondary': 'secundario',
+ 'No exercises with an estimated 1RM yet.': 'Aún no hay ejercicios con 1RM estimado.',
+ 'Tap a muscle to see its exercises.': 'Toca un músculo para ver sus ejercicios.',
+ 'Unpair': 'Desvincular'
}
diff --cc frontend/src/locales/fr.js
index bbaa4f295,84891d203..b06f4d708
--- a/frontend/src/locales/fr.js
+++ b/frontend/src/locales/fr.js
@@@ -554,145 -571,12 +571,153 @@@ export default
'{0} sets of {1} — time to add weight or move to a harder variation.': '{0} séries de {1} — il est temps d’ajouter du poids ou de passer à une variante plus dure.',
'{0} per side': '{0} par côté',
'You still log the total: {0} is {1} per side.': 'Tu notes toujours le total : {0}, c’est {1} par côté.',
+
+ // --- AI Coach ---
+ 'The Coach is reading your training…': 'Le Coach lit vos séances…',
+ 'Could not ask the Coach': 'Impossible de solliciter le Coach',
+ 'Turn the Coach off?': 'Désactiver le Coach ?',
+ 'Any pending suggestion is discarded and scheduled reviews stop. Your Coach history stays, and you can turn it back on anytime.': 'Toute suggestion en attente est supprimée et les bilans programmés s’arrêtent. Votre historique reste et vous pouvez le réactiver quand vous voulez.',
+ 'Turn off': 'Désactiver',
+ 'The Coach is off': 'Coach désactivé',
+ 'Undo the last Coach changes?': 'Annuler les derniers changements du Coach ?',
+ 'Your plan goes back to how it was before you accepted them. Workouts you have logged since are untouched.': 'Votre plan revient à ce qu’il était avant que vous les acceptiez. Les séances enregistrées depuis ne sont pas touchées.',
+ 'Undo': 'Annuler',
+ 'Plan restored': 'Plan restauré',
+ 'Nothing to undo': 'Rien à annuler',
+ 'Back': 'Retour',
+ 'Coach': 'Coach',
+ 'Plan design and reviews, from your own training': 'Conception de plans et bilans, à partir de vos propres séances',
+ 'Ask for a review': 'Demander un bilan',
+ 'The Coach reads what you have actually logged since its last look and suggests changes to your plan — each one with its reason.': 'Le Coach lit ce que vous avez enregistré depuis son dernier passage et propose des changements à votre plan, chacun avec sa raison.',
+ 'Anything it should know? (optional) — e.g. “right shoulder pinches on overhead work”': 'Quelque chose à signaler ? (facultatif) — ex. « l’épaule droite coince sur les mouvements au-dessus de la tête »',
+ '{0} of {1} Coach runs used today': '{0} sur {1} utilisations du Coach aujourd’hui',
+ 'No plan yet — the Coach can build you one from a few questions.': 'Pas encore de plan : le Coach peut vous en créer un à partir de quelques questions.',
+ 'Let the Coach build my plan': 'Laisser le Coach créer mon plan',
+ 'Coach profile': 'Profil Coach',
+ 'Used by every proposal — keep limitations here up to date.': 'Utilisé pour chaque proposition : tenez vos limitations à jour ici.',
+ 'Your answers': 'Vos réponses',
+ 'Not set yet': 'Pas encore renseigné',
+ 'Controls': 'Commandes',
+ 'Undo the last Coach changes': 'Annuler les derniers changements du Coach',
+ 'Turn the Coach off': 'Désactiver le Coach',
+ '{0} days a week': '{0} jours par semaine',
+ '{0} min': '{0} min',
+ 'The Coach is on': 'Coach activé',
+ 'Before the Coach starts': 'Avant de commencer',
+ 'When you ask for a plan or a review, this instance sends the following to {0}, running on this server under the instance owner’s account.': 'Quand vous demandez un plan ou un bilan, cette instance envoie ce qui suit à {0}, qui tourne sur ce serveur avec le compte du propriétaire.',
+ 'the configured AI provider': 'le fournisseur d’IA configuré',
+ 'Your name, your sign-in details and everything else about your account stay here. Other people’s data is never included.': 'Votre nom, vos identifiants et tout le reste de votre compte restent ici. Les données des autres ne sont jamais incluses.',
+ 'Nothing the Coach suggests is applied on its own — you review every change and can undo it afterwards.': 'Rien de ce que propose le Coach ne s’applique tout seul : vous validez chaque changement et pouvez l’annuler ensuite.',
+ 'You can turn this off at any time, which also discards anything the Coach is holding for you.': 'Vous pouvez désactiver ceci à tout moment, ce qui supprime aussi tout ce que le Coach garde pour vous.',
+ 'The Coach is not a doctor or a physiotherapist. If something hurts, ask a professional.': 'Le Coach n’est ni médecin ni kinésithérapeute. Si quelque chose fait mal, consultez un professionnel.',
+ 'I understand — turn the Coach on': 'J’ai compris — activer le Coach',
+ 'Not now': 'Pas maintenant',
+ 'Meet the Coach': 'Découvrir le Coach',
+ 'An AI coach that can design your plan and adjust it from what you actually log. It runs on this server, it never changes anything without your say-so, and it is off until you turn it on.': 'Un coach IA qui conçoit votre plan et l’ajuste selon ce que vous enregistrez. Il tourne sur ce serveur, ne change jamais rien sans votre accord et reste désactivé tant que vous ne l’activez pas.',
+ 'See what it would use': 'Voir quelles données il utiliserait',
+ 'The Coach is thinking…': 'Le Coach réfléchit…',
+ 'This takes a minute or two. You can leave this screen — it keeps going.': 'Cela prend une ou deux minutes. Vous pouvez quitter cet écran : il continue.',
+ 'Your plan is ready': 'Votre plan est prêt',
+ 'Suggestions ready': 'Suggestions prêtes',
+ '{0} routines to look over': '{0} routines à examiner',
+ 'Review': 'Examiner',
+ 'Automatic reviews': 'Bilans automatiques',
+ 'Off — the Coach only looks when you ask it to.': 'Désactivés : le Coach ne regarde que si vous le lui demandez.',
+ 'You are only notified when the Coach actually has something to suggest.': 'Vous n’êtes prévenu que lorsque le Coach a vraiment quelque chose à proposer.',
+ 'When': 'Quand',
+ 'Weekly': 'Hebdomadaire',
+ 'On a day and time you choose': 'Le jour et à l’heure de votre choix',
+ 'After every few workouts': 'Toutes les quelques séances',
+ 'As soon as you have logged enough': 'Dès que vous en avez enregistré assez',
+ 'Day': 'Jour',
+ 'After how many workouts': 'Après combien de séances',
+ 'Plan from the Coach': 'Plan du Coach',
+ 'Coach review': 'Bilan du Coach',
+ 'Based on {0} sessions': 'D’après {0} séances',
+ 'applied': 'appliqué',
+ 'declined': 'refusé',
+ 'Coach history': 'Historique du Coach',
+ 'Built a plan': 'A créé un plan',
+ 'Undid the last changes': 'A annulé les derniers changements',
+ 'Reviewed your training': 'A analysé vos séances',
+ '{0} applied': '{0} appliqués',
+ 'The Coach is building your plan…': 'Le Coach crée votre plan…',
+ 'Your plan': 'Votre plan',
+ 'Step {0} of {1}': 'Étape {0} sur {1}',
+ 'What are you training for?': 'Quel est votre objectif ?',
+ 'Where are you starting from?': 'D’où partez-vous ?',
+ 'How many days a week?': 'Combien de jours par semaine ?',
+ 'Which days suit you? (optional)': 'Quels jours vous conviennent ? (facultatif)',
+ 'How long is a session?': 'Combien de temps dure une séance ?',
+ 'min': 'min',
+ 'The Coach fits the volume to the time you actually have, including rest between sets.': 'Le Coach ajuste le volume au temps dont vous disposez réellement, repos entre séries compris.',
+ 'What can you train with?': 'Avec quoi pouvez-vous vous entraîner ?',
+ 'Pick everything you have access to. Leave it empty and the Coach will use the whole library.': 'Cochez tout ce à quoi vous avez accès. Si vous laissez vide, le Coach utilisera toute la bibliothèque.',
+ 'Anything to work around?': 'Quelque chose à contourner ?',
+ 'Injuries, joints that complain, movements you cannot do, or practical limits like training at 6am in a flat.': 'Blessures, articulations qui protestent, mouvements impossibles, ou contraintes pratiques comme s’entraîner à 6h en appartement.',
+ 'e.g. “dodgy left shoulder — no barbell overhead press”': 'ex. « épaule gauche fragile — pas de développé militaire à la barre »',
+ 'If something actually hurts, see a professional — the Coach will program conservatively but it cannot diagnose anything.': 'Si quelque chose fait vraiment mal, consultez un professionnel : le Coach restera prudent, mais il ne peut rien diagnostiquer.',
+ 'Anything else?': 'Autre chose ?',
+ 'Exercises you love': 'Exercices que vous adorez',
+ 'e.g. “deadlifts, anything with a kettlebell”': 'ex. « soulevé de terre, tout ce qui se fait au kettlebell »',
+ 'Exercises you would rather not': 'Exercices que vous préférez éviter',
+ 'e.g. “I hate lunges”': 'ex. « je déteste les fentes »',
+ 'Anything you want the Coach to know': 'Ce que vous voulez faire savoir au Coach',
+ 'e.g. “I want visible arms progress by spring”': 'ex. « je veux des bras visiblement plus développés d’ici le printemps »',
+ 'Build my plan': 'Créer mon plan',
+ 'Pick a goal and where you are starting from to continue.': 'Choisissez un objectif et votre point de départ pour continuer.',
+ 'Your plan is live': 'Votre plan est actif',
+ 'That proposal can’t be read.': 'Cette proposition est illisible.',
+ 'Discard this plan?': 'Abandonner ce plan ?',
+ 'Nothing is saved, and you can ask again anytime.': 'Rien n’est enregistré et vous pouvez redemander quand vous voulez.',
+ 'The Coach is revising it…': 'Le Coach révise…',
+ 'Revision {0}': 'Révision {0}',
+ 'Replaces your current week. Days this plan leaves empty become rest days.': 'Remplace votre semaine actuelle. Les jours laissés vides par ce plan deviennent des jours de repos.',
+ 'Want something different?': 'Vous voulez autre chose ?',
+ 'Say it in your own words and the Coach will revise the whole plan.': 'Dites-le avec vos mots et le Coach révisera tout le plan.',
+ 'e.g. “swap the squats for split squats, and Mondays are short”': 'ex. « remplacez les squats par des fentes bulgares, et le lundi je suis pressé »',
+ 'Ask for a revision': 'Demander une révision',
+ 'Accept plan': 'Accepter le plan',
+ 'Could not apply those changes': 'Impossible d’appliquer ces changements',
+ 'Dismiss these suggestions?': 'Écarter ces suggestions ?',
+ 'Nothing changes, and the Coach will remember you turned these down.': 'Rien ne change, et le Coach se souviendra que vous les avez refusées.',
+ 'Dismiss': 'Écarter',
+ 'Coach suggestions': 'Suggestions du Coach',
+ 'Based on your last {0} sessions': 'D’après vos {0} dernières séances',
+ 'Your plan changed since the Coach looked at it. Suggestions that no longer match are greyed out — ask for a fresh review to see them again.': 'Votre plan a changé depuis que le Coach l’a consulté. Les suggestions qui ne correspondent plus sont grisées : demandez un nouveau bilan pour les revoir.',
+ 'Doesn’t match your plan any more — can’t be applied.': 'Ne correspond plus à votre plan : impossible à appliquer.',
+ 'Notes from the Coach': 'Notes du Coach',
+ 'These change nothing on their own.': 'Elles ne changent rien par elles-mêmes.',
+ 'Apply nothing': 'Ne rien appliquer',
+ 'Dismiss all': 'Tout écarter',
+ 'Reverted the last Coach changes.': 'Derniers changements du Coach annulés.',
+ 'Before the Coach’s plan': 'Avant le plan du Coach',
+ 'Before the Coach’s changes': 'Avant les changements du Coach',
+ 'Add {0}': 'Ajouter {0}',
+ 'Drop {0}': 'Retirer {0}',
+ 'Swap {0} for {1}': 'Remplacer {0} par {1}',
+ '{0}: sets': '{0} : séries',
+ '{0}: reps': '{0} : répétitions',
+ '{0}: rep-range floor': '{0} : bas de la fourchette de répétitions',
+ '{0}: rep-range ceiling': '{0} : haut de la fourchette de répétitions',
+ '{0}: hold time': '{0} : temps de maintien',
+ '{0}: duration & pace': '{0} : durée et allure',
+ '{0}: load step': '{0} : incrément de charge',
+ '{0}: progression': '{0} : progression',
+ 'Routine progression': 'Progression de la routine',
+ 'Reorder exercises': 'Réordonner les exercices',
+ 'Superset {0} with {1}': 'Superset {0} avec {1}',
+ 'Unlink superset on {0}': 'Défaire le superset sur {0}',
+ 'Add routine “{0}”': 'Ajouter la routine « {0} »',
+ 'Remove a routine': 'Supprimer une routine',
+ 'Rename routine to “{0}”': 'Renommer la routine en « {0} »',
+ 'Change what’s planned on one day': 'Changer ce qui est prévu un jour',
+ '{0} sets · {1} work': '{0} séries · {1} travail',
+ 'Make superset with previous': 'Faire un superset avec le précédent',
+ 'Make superset with next': 'Faire un superset avec le suivant',
+ 'primary': 'principal',
+ 'secondary': 'secondaire',
+ "No exercises with an estimated 1RM yet.": "Aucun exercice avec un 1RM estimé pour l'instant.",
+ 'Tap a muscle to see its exercises.': 'Touchez un muscle pour voir ses exercices.',
+ 'Unpair': 'Dissocier'
}
diff --cc frontend/src/locales/hi.js
index baab28f75,7073e22e2..91a19d661
--- a/frontend/src/locales/hi.js
+++ b/frontend/src/locales/hi.js
@@@ -554,145 -571,12 +571,153 @@@ export default
'{0} sets of {1} — time to add weight or move to a harder variation.': '{1} रेप्स के {0} सेट — अब वज़न बढ़ाने या किसी कठिन वैरिएशन पर जाने का समय।',
'{0} per side': 'प्रति तरफ़ {0}',
'You still log the total: {0} is {1} per side.': 'आप कुल ही दर्ज करते हैं: {0} यानी प्रति तरफ़ {1}।',
+
+ // --- AI Coach ---
+ 'The Coach is reading your training…': 'कोच आपकी ट्रेनिंग पढ़ रहा है…',
+ 'Could not ask the Coach': 'कोच से नहीं पूछा जा सका',
+ 'Turn the Coach off?': 'कोच बंद करें?',
+ 'Any pending suggestion is discarded and scheduled reviews stop. Your Coach history stays, and you can turn it back on anytime.': 'लंबित सुझाव हट जाते हैं और निर्धारित समीक्षाएँ रुक जाती हैं। आपका इतिहास रहता है और आप कभी भी दोबारा चालू कर सकते हैं।',
+ 'Turn off': 'बंद करें',
+ 'The Coach is off': 'कोच बंद है',
+ 'Undo the last Coach changes?': 'कोच के पिछले बदलाव पलटें?',
+ 'Your plan goes back to how it was before you accepted them. Workouts you have logged since are untouched.': 'आपका प्लान उसी स्थिति में लौट जाएगा जैसा स्वीकार करने से पहले था। उसके बाद दर्ज वर्कआउट अछूते रहेंगे।',
+ 'Undo': 'पूर्ववत करें',
+ 'Plan restored': 'प्लान बहाल हुआ',
+ 'Nothing to undo': 'पलटने को कुछ नहीं',
+ 'Back': 'पीछे',
+ 'Coach': 'कोच',
+ 'Plan design and reviews, from your own training': 'आपकी अपनी ट्रेनिंग से प्लान बनाना और समीक्षा करना',
+ 'Ask for a review': 'समीक्षा माँगें',
+ 'The Coach reads what you have actually logged since its last look and suggests changes to your plan — each one with its reason.': 'कोच पिछली बार के बाद आपने जो दर्ज किया है उसे पढ़ता है और प्लान में बदलाव सुझाता है — हर एक अपने कारण के साथ।',
+ 'Anything it should know? (optional) — e.g. “right shoulder pinches on overhead work”': 'कुछ बताना चाहेंगे? (वैकल्पिक) — जैसे “ओवरहेड मूवमेंट में दायें कंधे में खिंचाव होता है”',
+ '{0} of {1} Coach runs used today': 'आज {1} में से {0} कोच रन इस्तेमाल हुए',
+ 'No plan yet — the Coach can build you one from a few questions.': 'अभी कोई प्लान नहीं — कोच कुछ सवालों से आपके लिए एक बना सकता है।',
+ 'Let the Coach build my plan': 'कोच को मेरा प्लान बनाने दें',
+ 'Coach profile': 'कोच प्रोफ़ाइल',
+ 'Used by every proposal — keep limitations here up to date.': 'हर प्रस्ताव में इस्तेमाल होता है — अपनी सीमाएँ यहाँ अद्यतन रखें।',
+ 'Your answers': 'आपके उत्तर',
+ 'Not set yet': 'अभी सेट नहीं',
+ 'Controls': 'नियंत्रण',
+ 'Undo the last Coach changes': 'कोच के पिछले बदलाव पलटें',
+ 'Turn the Coach off': 'कोच बंद करें',
+ '{0} days a week': 'हफ़्ते में {0} दिन',
+ '{0} min': '{0} मिनट',
+ 'The Coach is on': 'कोच चालू है',
+ 'Before the Coach starts': 'कोच के शुरू होने से पहले',
+ 'When you ask for a plan or a review, this instance sends the following to {0}, running on this server under the instance owner’s account.': 'जब आप प्लान या समीक्षा माँगते हैं, तो यह इंस्टेंस निम्नलिखित {0} को भेजता है, जो इसी सर्वर पर मालिक के खाते से चलता है।',
+ 'the configured AI provider': 'कॉन्फ़िगर किया गया AI प्रदाता',
+ 'Your name, your sign-in details and everything else about your account stay here. Other people’s data is never included.': 'आपका नाम, साइन-इन विवरण और आपके खाते की बाकी सब जानकारी यहीं रहती है। दूसरों का डेटा कभी शामिल नहीं होता।',
+ 'Nothing the Coach suggests is applied on its own — you review every change and can undo it afterwards.': 'कोच जो सुझाता है वह अपने आप लागू नहीं होता — आप हर बदलाव देखते हैं और बाद में उसे पलट सकते हैं।',
+ 'You can turn this off at any time, which also discards anything the Coach is holding for you.': 'आप इसे कभी भी बंद कर सकते हैं; इससे कोच के पास रखा आपका सब कुछ भी हट जाता है।',
+ 'The Coach is not a doctor or a physiotherapist. If something hurts, ask a professional.': 'कोच डॉक्टर या फ़िज़ियोथेरेपिस्ट नहीं है। अगर कहीं दर्द हो तो किसी विशेषज्ञ से मिलें।',
+ 'I understand — turn the Coach on': 'समझ गया — कोच चालू करें',
+ 'Not now': 'अभी नहीं',
+ 'Meet the Coach': 'कोच से मिलिए',
+ 'An AI coach that can design your plan and adjust it from what you actually log. It runs on this server, it never changes anything without your say-so, and it is off until you turn it on.': 'एक AI कोच जो आपका प्लान बनाता है और आपके दर्ज किए गए रिकॉर्ड के हिसाब से उसे ढालता है। यह इसी सर्वर पर चलता है, आपकी सहमति के बिना कुछ नहीं बदलता, और जब तक आप चालू न करें बंद रहता है।',
+ 'See what it would use': 'देखें कि यह कौन-सा डेटा लेगा',
+ 'The Coach is thinking…': 'कोच सोच रहा है…',
+ 'This takes a minute or two. You can leave this screen — it keeps going.': 'इसमें एक-दो मिनट लगते हैं। आप यह स्क्रीन छोड़ सकते हैं — काम चलता रहेगा।',
+ 'Your plan is ready': 'आपका प्लान तैयार है',
+ 'Suggestions ready': 'सुझाव तैयार हैं',
+ '{0} routines to look over': 'देखने के लिए {0} रूटीन',
+ 'Review': 'देखें',
+ 'Automatic reviews': 'स्वचालित समीक्षाएँ',
+ 'Off — the Coach only looks when you ask it to.': 'बंद — कोच तभी देखता है जब आप कहें।',
+ 'You are only notified when the Coach actually has something to suggest.': 'सूचना तभी मिलती है जब कोच के पास वाकई कुछ सुझाने को हो।',
+ 'When': 'कब',
+ 'Weekly': 'साप्ताहिक',
+ 'On a day and time you choose': 'आपके चुने दिन और समय पर',
+ 'After every few workouts': 'हर कुछ वर्कआउट के बाद',
+ 'As soon as you have logged enough': 'जैसे ही पर्याप्त रिकॉर्ड हो जाएँ',
+ 'Day': 'दिन',
+ 'After how many workouts': 'कितने वर्कआउट के बाद',
+ 'Plan from the Coach': 'कोच का प्लान',
+ 'Coach review': 'कोच समीक्षा',
+ 'Based on {0} sessions': '{0} सेशन के आधार पर',
+ 'applied': 'लागू',
+ 'declined': 'अस्वीकृत',
+ 'Coach history': 'कोच इतिहास',
+ 'Built a plan': 'एक प्लान बनाया',
+ 'Undid the last changes': 'पिछले बदलाव पलटे',
+ 'Reviewed your training': 'आपकी ट्रेनिंग की समीक्षा की',
+ '{0} applied': '{0} लागू',
+ 'The Coach is building your plan…': 'कोच आपका प्लान बना रहा है…',
+ 'Your plan': 'आपका प्लान',
+ 'Step {0} of {1}': 'चरण {0}/{1}',
+ 'What are you training for?': 'आप किसके लिए ट्रेनिंग करते हैं?',
+ 'Where are you starting from?': 'आप कहाँ से शुरू कर रहे हैं?',
+ 'How many days a week?': 'हफ़्ते में कितने दिन?',
+ 'Which days suit you? (optional)': 'कौन-से दिन ठीक रहेंगे? (वैकल्पिक)',
+ 'How long is a session?': 'एक सेशन कितना लंबा?',
+ 'min': 'मिनट',
+ 'The Coach fits the volume to the time you actually have, including rest between sets.': 'कोच आपके पास वाकई उपलब्ध समय के हिसाब से वॉल्यूम तय करता है, सेटों के बीच आराम सहित।',
+ 'What can you train with?': 'आप किन उपकरणों से ट्रेनिंग कर सकते हैं?',
+ 'Pick everything you have access to. Leave it empty and the Coach will use the whole library.': 'जो कुछ उपलब्ध है सब चुनें। खाली छोड़ने पर कोच पूरी लाइब्रेरी इस्तेमाल करेगा।',
+ 'Anything to work around?': 'कुछ ध्यान रखने योग्य?',
+ 'Injuries, joints that complain, movements you cannot do, or practical limits like training at 6am in a flat.': 'चोटें, तकलीफ़ देने वाले जोड़, जो मूवमेंट आप नहीं कर सकते, या व्यावहारिक सीमाएँ — जैसे फ़्लैट में सुबह 6 बजे ट्रेनिंग।',
+ 'e.g. “dodgy left shoulder — no barbell overhead press”': 'जैसे “बायाँ कंधा नाज़ुक — बारबेल ओवरहेड प्रेस नहीं”',
+ 'If something actually hurts, see a professional — the Coach will program conservatively but it cannot diagnose anything.': 'अगर वाकई दर्द हो तो विशेषज्ञ से मिलें — कोच सावधानी से प्लान बनाएगा, पर कोई निदान नहीं कर सकता।',
+ 'Anything else?': 'और कुछ?',
+ 'Exercises you love': 'जो एक्सरसाइज़ आपको पसंद हैं',
+ 'e.g. “deadlifts, anything with a kettlebell”': 'जैसे “डेडलिफ़्ट, केटलबेल वाली कोई भी चीज़”',
+ 'Exercises you would rather not': 'जो एक्सरसाइज़ आप नहीं करना चाहेंगे',
+ 'e.g. “I hate lunges”': 'जैसे “मुझे लंजेज़ बिल्कुल पसंद नहीं”',
+ 'Anything you want the Coach to know': 'जो आप कोच को बताना चाहते हैं',
+ 'e.g. “I want visible arms progress by spring”': 'जैसे “वसंत तक बाहों में साफ़ फ़र्क़ चाहिए”',
+ 'Build my plan': 'मेरा प्लान बनाएँ',
+ 'Pick a goal and where you are starting from to continue.': 'आगे बढ़ने के लिए एक लक्ष्य और अपनी शुरुआत चुनें।',
+ 'Your plan is live': 'आपका प्लान लागू है',
+ 'That proposal can’t be read.': 'वह प्रस्ताव पढ़ा नहीं जा सका।',
+ 'Discard this plan?': 'यह प्लान छोड़ दें?',
+ 'Nothing is saved, and you can ask again anytime.': 'कुछ सहेजा नहीं जाएगा, और आप कभी भी दोबारा माँग सकते हैं।',
+ 'The Coach is revising it…': 'कोच संशोधन कर रहा है…',
+ 'Revision {0}': 'संस्करण {0}',
+ 'Replaces your current week. Days this plan leaves empty become rest days.': 'यह आपके मौजूदा हफ़्ते की जगह लेगा। जो दिन यह प्लान खाली छोड़ता है वे आराम के दिन बन जाएँगे।',
+ 'Want something different?': 'कुछ अलग चाहिए?',
+ 'Say it in your own words and the Coach will revise the whole plan.': 'अपने शब्दों में कहें और कोच पूरा प्लान संशोधित कर देगा।',
+ 'e.g. “swap the squats for split squats, and Mondays are short”': 'जैसे “स्क्वैट की जगह स्प्लिट स्क्वैट कर दो, और सोमवार को समय कम रहता है”',
+ 'Ask for a revision': 'संशोधन माँगें',
+ 'Accept plan': 'प्लान स्वीकारें',
+ 'Could not apply those changes': 'वे बदलाव लागू नहीं हो सके',
+ 'Dismiss these suggestions?': 'ये सुझाव हटा दें?',
+ 'Nothing changes, and the Coach will remember you turned these down.': 'कुछ नहीं बदलेगा, और कोच याद रखेगा कि आपने इन्हें ठुकराया।',
+ 'Dismiss': 'हटाएँ',
+ 'Coach suggestions': 'कोच के सुझाव',
+ 'Based on your last {0} sessions': 'आपके पिछले {0} सेशन के आधार पर',
+ 'Your plan changed since the Coach looked at it. Suggestions that no longer match are greyed out — ask for a fresh review to see them again.': 'कोच के देखने के बाद आपका प्लान बदल गया है। जो सुझाव अब मेल नहीं खाते वे धुँधले दिख रहे हैं — दोबारा देखने के लिए नई समीक्षा माँगें।',
+ 'Doesn’t match your plan any more — can’t be applied.': 'अब आपके प्लान से मेल नहीं खाता — लागू नहीं हो सकता।',
+ 'Notes from the Coach': 'कोच की टिप्पणियाँ',
+ 'These change nothing on their own.': 'ये अपने आप कुछ नहीं बदलतीं।',
+ 'Apply nothing': 'कुछ भी लागू न करें',
+ 'Dismiss all': 'सब हटाएँ',
+ 'Reverted the last Coach changes.': 'कोच के पिछले बदलाव पलट दिए गए।',
+ 'Before the Coach’s plan': 'कोच के प्लान से पहले',
+ 'Before the Coach’s changes': 'कोच के बदलावों से पहले',
+ 'Add {0}': '{0} जोड़ें',
+ 'Drop {0}': '{0} हटाएँ',
+ 'Swap {0} for {1}': '{0} की जगह {1}',
+ '{0}: sets': '{0}: सेट',
+ '{0}: reps': '{0}: रेप्स',
+ '{0}: rep-range floor': '{0}: रेप-रेंज की न्यूनतम सीमा',
+ '{0}: rep-range ceiling': '{0}: रेप-रेंज की अधिकतम सीमा',
+ '{0}: hold time': '{0}: होल्ड समय',
+ '{0}: duration & pace': '{0}: अवधि और गति',
+ '{0}: load step': '{0}: वज़न वृद्धि',
+ '{0}: progression': '{0}: प्रोग्रेशन',
+ 'Routine progression': 'रूटीन प्रोग्रेशन',
+ 'Reorder exercises': 'एक्सरसाइज़ का क्रम बदलें',
+ 'Superset {0} with {1}': '{0} को {1} के साथ सुपरसेट करें',
+ 'Unlink superset on {0}': '{0} का सुपरसेट अलग करें',
+ 'Add routine “{0}”': 'रूटीन “{0}” जोड़ें',
+ 'Remove a routine': 'एक रूटीन हटाएँ',
+ 'Rename routine to “{0}”': 'रूटीन का नाम “{0}” करें',
+ 'Change what’s planned on one day': 'किसी एक दिन की योजना बदलें',
+ '{0} sets · {1} work': '{0} सेट · {1} काम',
+ 'Make superset with previous': 'पिछले के साथ सुपरसेट',
+ 'Make superset with next': 'अगले के साथ सुपरसेट',
+ 'primary': 'प्राथमिक',
+ 'secondary': 'द्वितीयक',
+ 'No exercises with an estimated 1RM yet.': 'अभी तक अनुमानित 1RM वाला कोई व्यायाम नहीं।',
+ 'Tap a muscle to see its exercises.': 'व्यायाम देखने के लिए किसी मांसपेशी पर टैप करें।',
+ 'Unpair': 'अलग करें'
}
diff --cc frontend/src/locales/it.js
index 939f35daf,b1cee0c94..6aea7ea3b
--- a/frontend/src/locales/it.js
+++ b/frontend/src/locales/it.js
@@@ -554,145 -571,12 +571,153 @@@ export default
'{0} sets of {1} — time to add weight or move to a harder variation.': '{0} serie da {1} — è ora di aggiungere peso o passare a una variante più difficile.',
'{0} per side': '{0} per lato',
'You still log the total: {0} is {1} per side.': 'Registri sempre il totale: {0} sono {1} per lato.',
+
+ // --- AI Coach ---
+ 'The Coach is reading your training…': 'Il Coach sta leggendo il tuo allenamento…',
+ 'Could not ask the Coach': 'Impossibile interpellare il Coach',
+ 'Turn the Coach off?': 'Disattivare il Coach?',
+ 'Any pending suggestion is discarded and scheduled reviews stop. Your Coach history stays, and you can turn it back on anytime.': 'Ogni suggerimento in sospeso viene eliminato e le revisioni programmate si fermano. La cronologia resta e puoi riattivarlo quando vuoi.',
+ 'Turn off': 'Disattiva',
+ 'The Coach is off': 'Coach disattivato',
+ 'Undo the last Coach changes?': 'Annullare le ultime modifiche del Coach?',
+ 'Your plan goes back to how it was before you accepted them. Workouts you have logged since are untouched.': 'Il piano torna com’era prima che le accettassi. Gli allenamenti registrati da allora non vengono toccati.',
+ 'Undo': 'Annulla',
+ 'Plan restored': 'Piano ripristinato',
+ 'Nothing to undo': 'Niente da annullare',
+ 'Back': 'Indietro',
+ 'Coach': 'Coach',
+ 'Plan design and reviews, from your own training': 'Creazione di piani e revisioni, dal tuo allenamento',
+ 'Ask for a review': 'Chiedi una revisione',
+ 'The Coach reads what you have actually logged since its last look and suggests changes to your plan — each one with its reason.': 'Il Coach legge ciò che hai registrato dall’ultima volta e propone modifiche al tuo piano, ognuna con il suo motivo.',
+ 'Anything it should know? (optional) — e.g. “right shoulder pinches on overhead work”': 'Qualcosa che dovrebbe sapere? (facoltativo) — es. «la spalla destra dà fastidio nei movimenti sopra la testa»',
+ '{0} of {1} Coach runs used today': '{0} di {1} esecuzioni del Coach usate oggi',
+ 'No plan yet — the Coach can build you one from a few questions.': 'Ancora nessun piano: il Coach può crearne uno con poche domande.',
+ 'Let the Coach build my plan': 'Lascia che il Coach crei il mio piano',
+ 'Coach profile': 'Profilo del Coach',
+ 'Used by every proposal — keep limitations here up to date.': 'Usato in ogni proposta: tieni aggiornate qui le tue limitazioni.',
+ 'Your answers': 'Le tue risposte',
+ 'Not set yet': 'Non ancora impostato',
+ 'Controls': 'Controlli',
+ 'Undo the last Coach changes': 'Annulla le ultime modifiche del Coach',
+ 'Turn the Coach off': 'Disattiva il Coach',
+ '{0} days a week': '{0} giorni a settimana',
+ '{0} min': '{0} min',
+ 'The Coach is on': 'Coach attivo',
+ 'Before the Coach starts': 'Prima di iniziare',
+ 'When you ask for a plan or a review, this instance sends the following to {0}, running on this server under the instance owner’s account.': 'Quando chiedi un piano o una revisione, questa istanza invia quanto segue a {0}, che gira su questo server con l’account del proprietario.',
+ 'the configured AI provider': 'il provider di IA configurato',
+ 'Your name, your sign-in details and everything else about your account stay here. Other people’s data is never included.': 'Il tuo nome, i dati di accesso e tutto il resto del tuo account restano qui. I dati di altre persone non sono mai inclusi.',
+ 'Nothing the Coach suggests is applied on its own — you review every change and can undo it afterwards.': 'Nulla di ciò che il Coach suggerisce viene applicato da solo: rivedi ogni modifica e puoi annullarla dopo.',
+ 'You can turn this off at any time, which also discards anything the Coach is holding for you.': 'Puoi disattivarlo quando vuoi, il che elimina anche tutto ciò che il Coach sta tenendo per te.',
+ 'The Coach is not a doctor or a physiotherapist. If something hurts, ask a professional.': 'Il Coach non è un medico né un fisioterapista. Se qualcosa fa male, rivolgiti a un professionista.',
+ 'I understand — turn the Coach on': 'Ho capito: attiva il Coach',
+ 'Not now': 'Non ora',
+ 'Meet the Coach': 'Scopri il Coach',
+ 'An AI coach that can design your plan and adjust it from what you actually log. It runs on this server, it never changes anything without your say-so, and it is off until you turn it on.': 'Un coach con IA che progetta il tuo piano e lo adatta in base a ciò che registri. Gira su questo server, non cambia mai nulla senza il tuo consenso ed è spento finché non lo attivi.',
+ 'See what it would use': 'Guarda quali dati userebbe',
+ 'The Coach is thinking…': 'Il Coach sta pensando…',
+ 'This takes a minute or two. You can leave this screen — it keeps going.': 'Ci vuole un minuto o due. Puoi uscire da questa schermata: continua a lavorare.',
+ 'Your plan is ready': 'Il tuo piano è pronto',
+ 'Suggestions ready': 'Suggerimenti pronti',
+ '{0} routines to look over': '{0} routine da esaminare',
+ 'Review': 'Rivedi',
+ 'Automatic reviews': 'Revisioni automatiche',
+ 'Off — the Coach only looks when you ask it to.': 'Disattivate: il Coach guarda solo quando glielo chiedi.',
+ 'You are only notified when the Coach actually has something to suggest.': 'Ricevi una notifica solo quando il Coach ha davvero qualcosa da suggerire.',
+ 'When': 'Quando',
+ 'Weekly': 'Settimanale',
+ 'On a day and time you choose': 'Nel giorno e nell’ora che scegli',
+ 'After every few workouts': 'Ogni tot allenamenti',
+ 'As soon as you have logged enough': 'Appena ne hai registrati abbastanza',
+ 'Day': 'Giorno',
+ 'After how many workouts': 'Dopo quanti allenamenti',
+ 'Plan from the Coach': 'Piano del Coach',
+ 'Coach review': 'Revisione del Coach',
+ 'Based on {0} sessions': 'Basato su {0} sessioni',
+ 'applied': 'applicata',
+ 'declined': 'rifiutata',
+ 'Coach history': 'Cronologia del Coach',
+ 'Built a plan': 'Ha creato un piano',
+ 'Undid the last changes': 'Ha annullato le ultime modifiche',
+ 'Reviewed your training': 'Ha esaminato il tuo allenamento',
+ '{0} applied': '{0} applicate',
+ 'The Coach is building your plan…': 'Il Coach sta creando il tuo piano…',
+ 'Your plan': 'Il tuo piano',
+ 'Step {0} of {1}': 'Passo {0} di {1}',
+ 'What are you training for?': 'Per cosa ti alleni?',
+ 'Where are you starting from?': 'Da dove parti?',
+ 'How many days a week?': 'Quanti giorni a settimana?',
+ 'Which days suit you? (optional)': 'Quali giorni ti vanno bene? (facoltativo)',
+ 'How long is a session?': 'Quanto dura una sessione?',
+ 'min': 'min',
+ 'The Coach fits the volume to the time you actually have, including rest between sets.': 'Il Coach adatta il volume al tempo che hai davvero, recupero tra le serie incluso.',
+ 'What can you train with?': 'Con cosa puoi allenarti?',
+ 'Pick everything you have access to. Leave it empty and the Coach will use the whole library.': 'Scegli tutto ciò a cui hai accesso. Se lasci vuoto, il Coach userà tutta la libreria.',
+ 'Anything to work around?': 'Qualcosa da aggirare?',
+ 'Injuries, joints that complain, movements you cannot do, or practical limits like training at 6am in a flat.': 'Infortuni, articolazioni che protestano, movimenti che non puoi fare o limiti pratici come allenarti alle 6 in appartamento.',
+ 'e.g. “dodgy left shoulder — no barbell overhead press”': 'es. «spalla sinistra delicata: niente lento avanti con bilanciere»',
+ 'If something actually hurts, see a professional — the Coach will program conservatively but it cannot diagnose anything.': 'Se qualcosa fa davvero male, rivolgiti a un professionista: il Coach sarà prudente, ma non può diagnosticare nulla.',
+ 'Anything else?': 'Altro?',
+ 'Exercises you love': 'Esercizi che adori',
+ 'e.g. “deadlifts, anything with a kettlebell”': 'es. «stacchi, qualsiasi cosa col kettlebell»',
+ 'Exercises you would rather not': 'Esercizi che preferiresti evitare',
+ 'e.g. “I hate lunges”': 'es. «odio gli affondi»',
+ 'Anything you want the Coach to know': 'Qualcosa che vuoi far sapere al Coach',
+ 'e.g. “I want visible arms progress by spring”': 'es. «voglio vedere progressi sulle braccia entro la primavera»',
+ 'Build my plan': 'Crea il mio piano',
+ 'Pick a goal and where you are starting from to continue.': 'Scegli un obiettivo e il tuo punto di partenza per continuare.',
+ 'Your plan is live': 'Il tuo piano è attivo',
+ 'That proposal can’t be read.': 'Questa proposta non è leggibile.',
+ 'Discard this plan?': 'Scartare questo piano?',
+ 'Nothing is saved, and you can ask again anytime.': 'Non viene salvato nulla e puoi richiederlo quando vuoi.',
+ 'The Coach is revising it…': 'Il Coach sta rivedendo…',
+ 'Revision {0}': 'Revisione {0}',
+ 'Replaces your current week. Days this plan leaves empty become rest days.': 'Sostituisce la tua settimana attuale. I giorni che questo piano lascia vuoti diventano di riposo.',
+ 'Want something different?': 'Vuoi qualcosa di diverso?',
+ 'Say it in your own words and the Coach will revise the whole plan.': 'Dillo con parole tue e il Coach rivedrà tutto il piano.',
+ 'e.g. “swap the squats for split squats, and Mondays are short”': 'es. «sostituisci gli squat con gli affondi bulgari, e il lunedì ho poco tempo»',
+ 'Ask for a revision': 'Chiedi una revisione',
+ 'Accept plan': 'Accetta il piano',
+ 'Could not apply those changes': 'Impossibile applicare quelle modifiche',
+ 'Dismiss these suggestions?': 'Scartare questi suggerimenti?',
+ 'Nothing changes, and the Coach will remember you turned these down.': 'Non cambia nulla e il Coach ricorderà che li hai rifiutati.',
+ 'Dismiss': 'Scarta',
+ 'Coach suggestions': 'Suggerimenti del Coach',
+ 'Based on your last {0} sessions': 'Basato sulle tue ultime {0} sessioni',
+ 'Your plan changed since the Coach looked at it. Suggestions that no longer match are greyed out — ask for a fresh review to see them again.': 'Il tuo piano è cambiato da quando il Coach l’ha esaminato. I suggerimenti che non corrispondono più sono in grigio: chiedi una nuova revisione per rivederli.',
+ 'Doesn’t match your plan any more — can’t be applied.': 'Non corrisponde più al tuo piano: non può essere applicato.',
+ 'Notes from the Coach': 'Note del Coach',
+ 'These change nothing on their own.': 'Da sole non cambiano nulla.',
+ 'Apply nothing': 'Non applicare nulla',
+ 'Dismiss all': 'Scarta tutto',
+ 'Reverted the last Coach changes.': 'Ultime modifiche del Coach annullate.',
+ 'Before the Coach’s plan': 'Prima del piano del Coach',
+ 'Before the Coach’s changes': 'Prima delle modifiche del Coach',
+ 'Add {0}': 'Aggiungi {0}',
+ 'Drop {0}': 'Togli {0}',
+ 'Swap {0} for {1}': 'Sostituisci {0} con {1}',
+ '{0}: sets': '{0}: serie',
+ '{0}: reps': '{0}: ripetizioni',
+ '{0}: rep-range floor': '{0}: minimo del range di ripetizioni',
+ '{0}: rep-range ceiling': '{0}: massimo del range di ripetizioni',
+ '{0}: hold time': '{0}: tempo di tenuta',
+ '{0}: duration & pace': '{0}: durata e ritmo',
+ '{0}: load step': '{0}: incremento di carico',
+ '{0}: progression': '{0}: progressione',
+ 'Routine progression': 'Progressione della routine',
+ 'Reorder exercises': 'Riordina gli esercizi',
+ 'Superset {0} with {1}': 'Superserie di {0} con {1}',
+ 'Unlink superset on {0}': 'Sciogli la superserie di {0}',
+ 'Add routine “{0}”': 'Aggiungi la routine «{0}»',
+ 'Remove a routine': 'Rimuovi una routine',
+ 'Rename routine to “{0}”': 'Rinomina la routine in «{0}»',
+ 'Change what’s planned on one day': 'Cambia ciò che è previsto in un giorno',
+ '{0} sets · {1} work': '{0} serie · {1} lavoro',
+ 'Make superset with previous': 'Superset con il precedente',
+ 'Make superset with next': 'Superset con il successivo',
+ 'primary': 'primario',
+ 'secondary': 'secondario',
+ 'No exercises with an estimated 1RM yet.': 'Nessun esercizio con 1RM stimato finora.',
+ 'Tap a muscle to see its exercises.': 'Tocca un muscolo per vedere i suoi esercizi.',
+ 'Unpair': 'Separa'
}
diff --cc frontend/src/locales/ko.js
index ee7b285e4,78f4cb79d..90571fdf0
--- a/frontend/src/locales/ko.js
+++ b/frontend/src/locales/ko.js
@@@ -554,145 -571,12 +571,153 @@@ export default
'{0} sets of {1} — time to add weight or move to a harder variation.': '{1}회 {0}세트 — 이제 무게를 올리거나 더 어려운 동작으로 넘어가세요.',
'{0} per side': '한쪽당 {0}회',
'You still log the total: {0} is {1} per side.': '기록은 그대로 합계로 합니다: {0}회는 한쪽당 {1}회입니다.',
+
+ // --- AI Coach ---
+ 'The Coach is reading your training…': '코치가 훈련 기록을 읽고 있습니다…',
+ 'Could not ask the Coach': '코치에게 요청하지 못했습니다',
+ 'Turn the Coach off?': '코치를 끌까요?',
+ 'Any pending suggestion is discarded and scheduled reviews stop. Your Coach history stays, and you can turn it back on anytime.': '대기 중인 제안은 삭제되고 예약된 리뷰는 중단됩니다. 기록은 남으며 언제든 다시 켤 수 있습니다.',
+ 'Turn off': '끄기',
+ 'The Coach is off': '코치 꺼짐',
+ 'Undo the last Coach changes?': '코치의 마지막 변경을 되돌릴까요?',
+ 'Your plan goes back to how it was before you accepted them. Workouts you have logged since are untouched.': '계획이 수락 전 상태로 돌아갑니다. 그 이후 기록한 운동은 그대로 유지됩니다.',
+ 'Undo': '되돌리기',
+ 'Plan restored': '계획이 복원되었습니다',
+ 'Nothing to undo': '되돌릴 것이 없습니다',
+ 'Back': '뒤로',
+ 'Coach': '코치',
+ 'Plan design and reviews, from your own training': '내 훈련 기록을 바탕으로 한 계획 설계와 리뷰',
+ 'Ask for a review': '리뷰 요청',
+ 'The Coach reads what you have actually logged since its last look and suggests changes to your plan — each one with its reason.': '코치는 지난번 이후 실제로 기록한 내용을 읽고 계획 변경을 제안합니다. 각 제안에는 근거가 붙습니다.',
+ 'Anything it should know? (optional) — e.g. “right shoulder pinches on overhead work”': '알아야 할 게 있나요? (선택) — 예: “오버헤드 동작에서 오른쪽 어깨가 결려요”',
+ '{0} of {1} Coach runs used today': '오늘 코치 실행 {1}회 중 {0}회 사용',
+ 'No plan yet — the Coach can build you one from a few questions.': '아직 계획이 없습니다 — 코치가 몇 가지 질문으로 만들어 드립니다.',
+ 'Let the Coach build my plan': '코치에게 계획을 맡기기',
+ 'Coach profile': '코치 프로필',
+ 'Used by every proposal — keep limitations here up to date.': '모든 제안에 사용됩니다 — 제약 사항을 최신 상태로 유지하세요.',
+ 'Your answers': '내 답변',
+ 'Not set yet': '아직 설정되지 않음',
+ 'Controls': '제어',
+ 'Undo the last Coach changes': '코치의 마지막 변경 되돌리기',
+ 'Turn the Coach off': '코치 끄기',
+ '{0} days a week': '주 {0}일',
+ '{0} min': '{0}분',
+ 'The Coach is on': '코치 켜짐',
+ 'Before the Coach starts': '코치를 시작하기 전에',
+ 'When you ask for a plan or a review, this instance sends the following to {0}, running on this server under the instance owner’s account.': '계획이나 리뷰를 요청하면, 이 인스턴스는 다음 정보를 이 서버에서 운영자 계정으로 실행 중인 {0}에 전송합니다.',
+ 'the configured AI provider': '설정된 AI 제공자',
+ 'Your name, your sign-in details and everything else about your account stay here. Other people’s data is never included.': '이름, 로그인 정보 등 계정에 관한 나머지는 모두 여기 남습니다. 다른 사람의 데이터는 절대 포함되지 않습니다.',
+ 'Nothing the Coach suggests is applied on its own — you review every change and can undo it afterwards.': '코치의 제안은 저절로 적용되지 않습니다. 모든 변경을 직접 확인하고 나중에 되돌릴 수 있습니다.',
+ 'You can turn this off at any time, which also discards anything the Coach is holding for you.': '언제든 끌 수 있으며, 그러면 코치가 보관 중인 내용도 함께 삭제됩니다.',
+ 'The Coach is not a doctor or a physiotherapist. If something hurts, ask a professional.': '코치는 의사나 물리치료사가 아닙니다. 통증이 있다면 전문가에게 문의하세요.',
+ 'I understand — turn the Coach on': '이해했습니다 — 코치 켜기',
+ 'Not now': '나중에',
+ 'Meet the Coach': '코치를 만나보세요',
+ 'An AI coach that can design your plan and adjust it from what you actually log. It runs on this server, it never changes anything without your say-so, and it is off until you turn it on.': '내 계획을 설계하고 실제 기록에 맞춰 조정해 주는 AI 코치입니다. 이 서버에서 실행되며, 동의 없이는 아무것도 바꾸지 않고, 켜기 전까지는 꺼져 있습니다.',
+ 'See what it would use': '어떤 데이터를 쓰는지 보기',
+ 'The Coach is thinking…': '코치가 생각 중…',
+ 'This takes a minute or two. You can leave this screen — it keeps going.': '1~2분 정도 걸립니다. 이 화면을 벗어나도 계속 진행됩니다.',
+ 'Your plan is ready': '계획이 준비되었습니다',
+ 'Suggestions ready': '제안 준비 완료',
+ '{0} routines to look over': '살펴볼 루틴 {0}개',
+ 'Review': '살펴보기',
+ 'Automatic reviews': '자동 리뷰',
+ 'Off — the Coach only looks when you ask it to.': '꺼짐 — 코치는 요청할 때만 살펴봅니다.',
+ 'You are only notified when the Coach actually has something to suggest.': '코치가 실제로 제안할 것이 있을 때만 알림이 옵니다.',
+ 'When': '시점',
+ 'Weekly': '매주',
+ 'On a day and time you choose': '내가 고른 요일과 시각에',
+ 'After every few workouts': '몇 번의 운동마다',
+ 'As soon as you have logged enough': '기록이 충분히 쌓이면 바로',
+ 'Day': '요일',
+ 'After how many workouts': '몇 번의 운동마다',
+ 'Plan from the Coach': '코치가 만든 계획',
+ 'Coach review': '코치 리뷰',
+ 'Based on {0} sessions': '{0}회 세션 기준',
+ 'applied': '적용됨',
+ 'declined': '거절됨',
+ 'Coach history': '코치 기록',
+ 'Built a plan': '계획을 만들었습니다',
+ 'Undid the last changes': '마지막 변경을 되돌렸습니다',
+ 'Reviewed your training': '훈련을 리뷰했습니다',
+ '{0} applied': '{0}개 적용됨',
+ 'The Coach is building your plan…': '코치가 계획을 만드는 중…',
+ 'Your plan': '내 계획',
+ 'Step {0} of {1}': '{1}단계 중 {0}단계',
+ 'What are you training for?': '무엇을 위해 훈련하나요?',
+ 'Where are you starting from?': '지금 어느 단계인가요?',
+ 'How many days a week?': '주 몇 일인가요?',
+ 'Which days suit you? (optional)': '어떤 요일이 좋나요? (선택)',
+ 'How long is a session?': '한 세션은 얼마나 걸리나요?',
+ 'min': '분',
+ 'The Coach fits the volume to the time you actually have, including rest between sets.': '코치는 세트 간 휴식까지 포함해 실제 가능한 시간에 맞춰 볼륨을 조정합니다.',
+ 'What can you train with?': '어떤 장비를 쓸 수 있나요?',
+ 'Pick everything you have access to. Leave it empty and the Coach will use the whole library.': '사용할 수 있는 것을 모두 고르세요. 비워두면 코치가 전체 라이브러리를 사용합니다.',
+ 'Anything to work around?': '피해야 할 것이 있나요?',
+ 'Injuries, joints that complain, movements you cannot do, or practical limits like training at 6am in a flat.': '부상, 불편한 관절, 할 수 없는 동작, 또는 아파트에서 새벽 6시에 훈련하는 것 같은 현실적 제약.',
+ 'e.g. “dodgy left shoulder — no barbell overhead press”': '예: “왼쪽 어깨가 안 좋음 — 바벨 오버헤드 프레스 제외”',
+ 'If something actually hurts, see a professional — the Coach will program conservatively but it cannot diagnose anything.': '실제로 아프다면 전문가를 찾으세요. 코치는 보수적으로 계획하지만 어떤 진단도 내릴 수 없습니다.',
+ 'Anything else?': '그 밖에는요?',
+ 'Exercises you love': '좋아하는 운동',
+ 'e.g. “deadlifts, anything with a kettlebell”': '예: “데드리프트, 케틀벨 종목 전부”',
+ 'Exercises you would rather not': '피하고 싶은 운동',
+ 'e.g. “I hate lunges”': '예: “런지가 정말 싫어요”',
+ 'Anything you want the Coach to know': '코치가 알아두면 좋을 것',
+ 'e.g. “I want visible arms progress by spring”': '예: “봄까지 팔에 눈에 띄는 변화를 원해요”',
+ 'Build my plan': '내 계획 만들기',
+ 'Pick a goal and where you are starting from to continue.': '계속하려면 목표와 현재 단계를 선택하세요.',
+ 'Your plan is live': '계획이 적용되었습니다',
+ 'That proposal can’t be read.': '해당 제안을 읽을 수 없습니다.',
+ 'Discard this plan?': '이 계획을 버릴까요?',
+ 'Nothing is saved, and you can ask again anytime.': '아무것도 저장되지 않으며 언제든 다시 요청할 수 있습니다.',
+ 'The Coach is revising it…': '코치가 수정 중…',
+ 'Revision {0}': '{0}차 수정본',
+ 'Replaces your current week. Days this plan leaves empty become rest days.': '현재 주간 일정을 대체합니다. 이 계획이 비워둔 날은 휴식일이 됩니다.',
+ 'Want something different?': '다른 걸 원하나요?',
+ 'Say it in your own words and the Coach will revise the whole plan.': '직접 말로 설명하면 코치가 계획 전체를 수정합니다.',
+ 'e.g. “swap the squats for split squats, and Mondays are short”': '예: “스쿼트를 불가리안 스플릿 스쿼트로 바꾸고, 월요일은 시간이 짧아요”',
+ 'Ask for a revision': '수정 요청',
+ 'Accept plan': '계획 수락',
+ 'Could not apply those changes': '해당 변경을 적용하지 못했습니다',
+ 'Dismiss these suggestions?': '이 제안들을 무시할까요?',
+ 'Nothing changes, and the Coach will remember you turned these down.': '아무것도 바뀌지 않으며, 코치는 이를 거절했다는 사실을 기억합니다.',
+ 'Dismiss': '무시',
+ 'Coach suggestions': '코치 제안',
+ 'Based on your last {0} sessions': '최근 {0}회 세션 기준',
+ 'Your plan changed since the Coach looked at it. Suggestions that no longer match are greyed out — ask for a fresh review to see them again.': '코치가 확인한 이후 계획이 바뀌었습니다. 더 이상 맞지 않는 제안은 흐리게 표시됩니다 — 다시 보려면 새 리뷰를 요청하세요.',
+ 'Doesn’t match your plan any more — can’t be applied.': '더 이상 계획과 맞지 않습니다 — 적용할 수 없습니다.',
+ 'Notes from the Coach': '코치의 메모',
+ 'These change nothing on their own.': '이것만으로는 아무것도 바뀌지 않습니다.',
+ 'Apply nothing': '아무것도 적용하지 않음',
+ 'Dismiss all': '전체 무시',
+ 'Reverted the last Coach changes.': '코치의 마지막 변경을 되돌렸습니다.',
+ 'Before the Coach’s plan': '코치 계획 전',
+ 'Before the Coach’s changes': '코치 변경 전',
+ 'Add {0}': '{0} 추가',
+ 'Drop {0}': '{0} 제외',
+ 'Swap {0} for {1}': '{0}을(를) {1}(으)로 교체',
+ '{0}: sets': '{0}: 세트',
+ '{0}: reps': '{0}: 횟수',
+ '{0}: rep-range floor': '{0}: 횟수 범위 하한',
+ '{0}: rep-range ceiling': '{0}: 횟수 범위 상한',
+ '{0}: hold time': '{0}: 유지 시간',
+ '{0}: duration & pace': '{0}: 시간과 속도',
+ '{0}: load step': '{0}: 증량 폭',
+ '{0}: progression': '{0}: 점진적 과부하',
+ 'Routine progression': '루틴 점진적 과부하',
+ 'Reorder exercises': '운동 순서 변경',
+ 'Superset {0} with {1}': '{0}과(와) {1}을(를) 슈퍼세트로 묶기',
+ 'Unlink superset on {0}': '{0}의 슈퍼세트 해제',
+ 'Add routine “{0}”': '루틴 “{0}” 추가',
+ 'Remove a routine': '루틴 삭제',
+ 'Rename routine to “{0}”': '루틴 이름을 “{0}”(으)로 변경',
+ 'Change what’s planned on one day': '특정 요일의 계획 변경',
+ '{0} sets · {1} work': '{0} 세트 · {1} 작업',
+ 'Make superset with previous': '이전 운동과 슈퍼셋',
+ 'Make superset with next': '다음 운동과 슈퍼셋',
+ 'primary': '주동',
+ 'secondary': '보조',
+ 'No exercises with an estimated 1RM yet.': '추정 1RM이 있는 운동이 아직 없습니다.',
+ 'Tap a muscle to see its exercises.': '근육을 눌러 해당 운동을 확인하세요.',
+ 'Unpair': '분리'
}
diff --cc frontend/src/locales/pl.js
index 334197ba6,cbacd9941..9737069cc
--- a/frontend/src/locales/pl.js
+++ b/frontend/src/locales/pl.js
@@@ -554,145 -571,12 +571,153 @@@ export default
'{0} sets of {1} — time to add weight or move to a harder variation.': '{0} × {1} powt. — czas dodać ciężar albo przejść na trudniejszy wariant.',
'{0} per side': '{0} na stronę',
'You still log the total: {0} is {1} per side.': 'Nadal zapisujesz łączną liczbę: {0} to {1} na stronę.',
+
+ // --- AI Coach ---
+ 'The Coach is reading your training…': 'Trener czyta Twoje treningi…',
+ 'Could not ask the Coach': 'Nie udało się zapytać Trenera',
+ 'Turn the Coach off?': 'Wyłączyć Trenera?',
+ 'Any pending suggestion is discarded and scheduled reviews stop. Your Coach history stays, and you can turn it back on anytime.': 'Oczekujące propozycje zostaną odrzucone, a zaplanowane przeglądy się zatrzymają. Historia zostaje i możesz włączyć go z powrotem w każdej chwili.',
+ 'Turn off': 'Wyłącz',
+ 'The Coach is off': 'Trener wyłączony',
+ 'Undo the last Coach changes?': 'Cofnąć ostatnie zmiany Trenera?',
+ 'Your plan goes back to how it was before you accepted them. Workouts you have logged since are untouched.': 'Plan wróci do stanu sprzed ich zaakceptowania. Treningi zapisane od tamtej pory pozostaną nietknięte.',
+ 'Undo': 'Cofnij',
+ 'Plan restored': 'Plan przywrócony',
+ 'Nothing to undo': 'Nie ma czego cofnąć',
+ 'Back': 'Wstecz',
+ 'Coach': 'Trener',
+ 'Plan design and reviews, from your own training': 'Tworzenie planów i przeglądy na podstawie Twoich treningów',
+ 'Ask for a review': 'Poproś o przegląd',
+ 'The Coach reads what you have actually logged since its last look and suggests changes to your plan — each one with its reason.': 'Trener czyta to, co zapisałeś od ostatniego razu, i proponuje zmiany w planie — każdą z uzasadnieniem.',
+ 'Anything it should know? (optional) — e.g. “right shoulder pinches on overhead work”': 'Coś, co powinien wiedzieć? (opcjonalnie) — np. „prawy bark kłuje przy wyciskaniu nad głowę”',
+ '{0} of {1} Coach runs used today': 'Wykorzystano dziś {0} z {1} uruchomień Trenera',
+ 'No plan yet — the Coach can build you one from a few questions.': 'Nie masz jeszcze planu — Trener ułoży go na podstawie kilku pytań.',
+ 'Let the Coach build my plan': 'Niech Trener ułoży mój plan',
+ 'Coach profile': 'Profil Trenera',
+ 'Used by every proposal — keep limitations here up to date.': 'Używane przy każdej propozycji — trzymaj tu aktualne ograniczenia.',
+ 'Your answers': 'Twoje odpowiedzi',
+ 'Not set yet': 'Jeszcze nieustawione',
+ 'Controls': 'Sterowanie',
+ 'Undo the last Coach changes': 'Cofnij ostatnie zmiany Trenera',
+ 'Turn the Coach off': 'Wyłącz Trenera',
+ '{0} days a week': '{0} dni w tygodniu',
+ '{0} min': '{0} min',
+ 'The Coach is on': 'Trener włączony',
+ 'Before the Coach starts': 'Zanim Trener zacznie',
+ 'When you ask for a plan or a review, this instance sends the following to {0}, running on this server under the instance owner’s account.': 'Gdy poprosisz o plan lub przegląd, ta instancja wysyła następujące dane do {0}, działającego na tym serwerze na koncie właściciela.',
+ 'the configured AI provider': 'skonfigurowanego dostawcy AI',
+ 'Your name, your sign-in details and everything else about your account stay here. Other people’s data is never included.': 'Twoje imię, dane logowania i wszystko inne z Twojego konta zostaje tutaj. Dane innych osób nigdy nie są dołączane.',
+ 'Nothing the Coach suggests is applied on its own — you review every change and can undo it afterwards.': 'Nic, co proponuje Trener, nie wchodzi w życie samo: sprawdzasz każdą zmianę i możesz ją potem cofnąć.',
+ 'You can turn this off at any time, which also discards anything the Coach is holding for you.': 'Możesz to wyłączyć w każdej chwili — usunie to też wszystko, co Trener dla Ciebie przechowuje.',
+ 'The Coach is not a doctor or a physiotherapist. If something hurts, ask a professional.': 'Trener nie jest lekarzem ani fizjoterapeutą. Jeśli coś boli, skonsultuj się ze specjalistą.',
+ 'I understand — turn the Coach on': 'Rozumiem — włącz Trenera',
+ 'Not now': 'Nie teraz',
+ 'Meet the Coach': 'Poznaj Trenera',
+ 'An AI coach that can design your plan and adjust it from what you actually log. It runs on this server, it never changes anything without your say-so, and it is off until you turn it on.': 'Trener AI, który układa Twój plan i dostosowuje go do tego, co zapisujesz. Działa na tym serwerze, nigdy nic nie zmienia bez Twojej zgody i jest wyłączony, dopóki go nie włączysz.',
+ 'See what it would use': 'Zobacz, jakich danych użyje',
+ 'The Coach is thinking…': 'Trener myśli…',
+ 'This takes a minute or two. You can leave this screen — it keeps going.': 'To potrwa minutę lub dwie. Możesz opuścić ten ekran — praca trwa dalej.',
+ 'Your plan is ready': 'Twój plan jest gotowy',
+ 'Suggestions ready': 'Propozycje gotowe',
+ '{0} routines to look over': '{0} rutyn do przejrzenia',
+ 'Review': 'Przejrzyj',
+ 'Automatic reviews': 'Automatyczne przeglądy',
+ 'Off — the Coach only looks when you ask it to.': 'Wyłączone — Trener patrzy tylko wtedy, gdy go poprosisz.',
+ 'You are only notified when the Coach actually has something to suggest.': 'Powiadomienie dostajesz tylko wtedy, gdy Trener naprawdę ma coś do zaproponowania.',
+ 'When': 'Kiedy',
+ 'Weekly': 'Co tydzień',
+ 'On a day and time you choose': 'W wybranym dniu i o wybranej godzinie',
+ 'After every few workouts': 'Co kilka treningów',
+ 'As soon as you have logged enough': 'Gdy tylko zapiszesz wystarczająco dużo',
+ 'Day': 'Dzień',
+ 'After how many workouts': 'Po ilu treningach',
+ 'Plan from the Coach': 'Plan od Trenera',
+ 'Coach review': 'Przegląd Trenera',
+ 'Based on {0} sessions': 'Na podstawie {0} sesji',
+ 'applied': 'zastosowano',
+ 'declined': 'odrzucono',
+ 'Coach history': 'Historia Trenera',
+ 'Built a plan': 'Ułożył plan',
+ 'Undid the last changes': 'Cofnął ostatnie zmiany',
+ 'Reviewed your training': 'Przejrzał Twoje treningi',
+ '{0} applied': 'zastosowano {0}',
+ 'The Coach is building your plan…': 'Trener układa Twój plan…',
+ 'Your plan': 'Twój plan',
+ 'Step {0} of {1}': 'Krok {0} z {1}',
+ 'What are you training for?': 'W jakim celu trenujesz?',
+ 'Where are you starting from?': 'Od czego zaczynasz?',
+ 'How many days a week?': 'Ile dni w tygodniu?',
+ 'Which days suit you? (optional)': 'Które dni Ci pasują? (opcjonalnie)',
+ 'How long is a session?': 'Ile trwa sesja?',
+ 'min': 'min',
+ 'The Coach fits the volume to the time you actually have, including rest between sets.': 'Trener dopasuje objętość do czasu, który naprawdę masz — wliczając przerwy między seriami.',
+ 'What can you train with?': 'Czym możesz trenować?',
+ 'Pick everything you have access to. Leave it empty and the Coach will use the whole library.': 'Zaznacz wszystko, do czego masz dostęp. Jeśli zostawisz puste, Trener użyje całej biblioteki.',
+ 'Anything to work around?': 'Coś, co trzeba obejść?',
+ 'Injuries, joints that complain, movements you cannot do, or practical limits like training at 6am in a flat.': 'Kontuzje, bolące stawy, ruchy, których nie możesz wykonać, albo ograniczenia praktyczne — np. trening o 6 rano w mieszkaniu.',
+ 'e.g. “dodgy left shoulder — no barbell overhead press”': 'np. „wrażliwy lewy bark — bez wyciskania sztangi nad głowę”',
+ 'If something actually hurts, see a professional — the Coach will program conservatively but it cannot diagnose anything.': 'Jeśli coś naprawdę boli, idź do specjalisty — Trener zaplanuje ostrożnie, ale niczego nie zdiagnozuje.',
+ 'Anything else?': 'Coś jeszcze?',
+ 'Exercises you love': 'Ćwiczenia, które lubisz',
+ 'e.g. “deadlifts, anything with a kettlebell”': 'np. „martwy ciąg, wszystko z kettlebellem”',
+ 'Exercises you would rather not': 'Ćwiczenia, których wolisz unikać',
+ 'e.g. “I hate lunges”': 'np. „nienawidzę wykroków”',
+ 'Anything you want the Coach to know': 'Co jeszcze Trener powinien wiedzieć',
+ 'e.g. “I want visible arms progress by spring”': 'np. „chcę widoczny postęp na ramionach do wiosny”',
+ 'Build my plan': 'Ułóż mój plan',
+ 'Pick a goal and where you are starting from to continue.': 'Wybierz cel i punkt wyjścia, aby kontynuować.',
+ 'Your plan is live': 'Twój plan działa',
+ 'That proposal can’t be read.': 'Nie da się odczytać tej propozycji.',
+ 'Discard this plan?': 'Odrzucić ten plan?',
+ 'Nothing is saved, and you can ask again anytime.': 'Nic nie zostanie zapisane i możesz poprosić ponownie w każdej chwili.',
+ 'The Coach is revising it…': 'Trener poprawia…',
+ 'Revision {0}': 'Wersja {0}',
+ 'Replaces your current week. Days this plan leaves empty become rest days.': 'Zastępuje Twój obecny tydzień. Dni, które ten plan zostawia puste, stają się dniami odpoczynku.',
+ 'Want something different?': 'Chcesz czegoś innego?',
+ 'Say it in your own words and the Coach will revise the whole plan.': 'Powiedz to własnymi słowami, a Trener poprawi cały plan.',
+ 'e.g. “swap the squats for split squats, and Mondays are short”': 'np. „zamień przysiady na wykroki bułgarskie, a w poniedziałki mam mało czasu”',
+ 'Ask for a revision': 'Poproś o poprawkę',
+ 'Accept plan': 'Zaakceptuj plan',
+ 'Could not apply those changes': 'Nie udało się zastosować tych zmian',
+ 'Dismiss these suggestions?': 'Odrzucić te propozycje?',
+ 'Nothing changes, and the Coach will remember you turned these down.': 'Nic się nie zmieni, a Trener zapamięta, że je odrzuciłeś.',
+ 'Dismiss': 'Odrzuć',
+ 'Coach suggestions': 'Propozycje Trenera',
+ 'Based on your last {0} sessions': 'Na podstawie {0} ostatnich sesji',
+ 'Your plan changed since the Coach looked at it. Suggestions that no longer match are greyed out — ask for a fresh review to see them again.': 'Twój plan zmienił się, odkąd Trener na niego patrzył. Propozycje, które już nie pasują, są wyszarzone — poproś o nowy przegląd, by je znów zobaczyć.',
+ 'Doesn’t match your plan any more — can’t be applied.': 'Nie pasuje już do Twojego planu — nie można zastosować.',
+ 'Notes from the Coach': 'Uwagi od Trenera',
+ 'These change nothing on their own.': 'Same w sobie niczego nie zmieniają.',
+ 'Apply nothing': 'Nie stosuj nic',
+ 'Dismiss all': 'Odrzuć wszystko',
+ 'Reverted the last Coach changes.': 'Cofnięto ostatnie zmiany Trenera.',
+ 'Before the Coach’s plan': 'Przed planem Trenera',
+ 'Before the Coach’s changes': 'Przed zmianami Trenera',
+ 'Add {0}': 'Dodaj {0}',
+ 'Drop {0}': 'Usuń {0}',
+ 'Swap {0} for {1}': 'Zamień {0} na {1}',
+ '{0}: sets': '{0}: serie',
+ '{0}: reps': '{0}: powtórzenia',
+ '{0}: rep-range floor': '{0}: dolna granica zakresu powtórzeń',
+ '{0}: rep-range ceiling': '{0}: górna granica zakresu powtórzeń',
+ '{0}: hold time': '{0}: czas utrzymania',
+ '{0}: duration & pace': '{0}: czas i tempo',
+ '{0}: load step': '{0}: przyrost obciążenia',
+ '{0}: progression': '{0}: progresja',
+ 'Routine progression': 'Progresja rutyny',
+ 'Reorder exercises': 'Zmień kolejność ćwiczeń',
+ 'Superset {0} with {1}': 'Połącz {0} z {1} w superserię',
+ 'Unlink superset on {0}': 'Rozłącz superserię przy {0}',
+ 'Add routine “{0}”': 'Dodaj rutynę „{0}”',
+ 'Remove a routine': 'Usuń rutynę',
+ 'Rename routine to “{0}”': 'Zmień nazwę rutyny na „{0}”',
+ 'Change what’s planned on one day': 'Zmień to, co zaplanowano na dany dzień',
+ '{0} sets · {1} work': '{0} serii · {1} praca',
+ 'Make superset with previous': 'Połącz z poprzednim',
+ 'Make superset with next': 'Połącz z następnym',
+ 'primary': 'główny',
+ 'secondary': 'drugorzędny',
+ 'No exercises with an estimated 1RM yet.': 'Brak ćwiczeń z oszacowanym 1RM.',
+ 'Tap a muscle to see its exercises.': 'Dotknij mięśnia, aby zobaczyć jego ćwiczenia.',
+ 'Unpair': 'Rozłącz'
}
diff --cc frontend/src/locales/pt.js
index 502156ebb,7c30289f6..538468980
--- a/frontend/src/locales/pt.js
+++ b/frontend/src/locales/pt.js
@@@ -554,145 -571,12 +571,153 @@@ export default
'{0} sets of {1} — time to add weight or move to a harder variation.': '{0} séries de {1} — hora de acrescentar peso ou passar a uma variação mais difícil.',
'{0} per side': '{0} por lado',
'You still log the total: {0} is {1} per side.': 'Continuas a registar o total: {0} são {1} por lado.',
+
+ // --- AI Coach ---
+ 'The Coach is reading your training…': 'O Treinador está a ler o teu treino…',
+ 'Could not ask the Coach': 'Não foi possível consultar o Treinador',
+ 'Turn the Coach off?': 'Desligar o Treinador?',
+ 'Any pending suggestion is discarded and scheduled reviews stop. Your Coach history stays, and you can turn it back on anytime.': 'Qualquer sugestão pendente é descartada e as revisões agendadas param. O teu histórico fica e podes voltar a ligá-lo quando quiseres.',
+ 'Turn off': 'Desligar',
+ 'The Coach is off': 'Treinador desligado',
+ 'Undo the last Coach changes?': 'Anular as últimas alterações do Treinador?',
+ 'Your plan goes back to how it was before you accepted them. Workouts you have logged since are untouched.': 'O teu plano volta ao que era antes de as aceitares. Os treinos registados desde então não são tocados.',
+ 'Undo': 'Anular',
+ 'Plan restored': 'Plano restaurado',
+ 'Nothing to undo': 'Nada para anular',
+ 'Back': 'Voltar',
+ 'Coach': 'Treinador',
+ 'Plan design and reviews, from your own training': 'Criação de planos e revisões, a partir do teu próprio treino',
+ 'Ask for a review': 'Pedir uma revisão',
+ 'The Coach reads what you have actually logged since its last look and suggests changes to your plan — each one with its reason.': 'O Treinador lê o que registaste desde a última vez e sugere alterações ao teu plano, cada uma com o seu motivo.',
+ 'Anything it should know? (optional) — e.g. “right shoulder pinches on overhead work”': 'Algo que deva saber? (opcional) — p. ex. «o ombro direito incomoda em movimentos acima da cabeça»',
+ '{0} of {1} Coach runs used today': '{0} de {1} utilizações do Treinador hoje',
+ 'No plan yet — the Coach can build you one from a few questions.': 'Ainda não há plano: o Treinador pode criar um com algumas perguntas.',
+ 'Let the Coach build my plan': 'Deixar o Treinador criar o meu plano',
+ 'Coach profile': 'Perfil do Treinador',
+ 'Used by every proposal — keep limitations here up to date.': 'Usado em cada proposta: mantém aqui as tuas limitações atualizadas.',
+ 'Your answers': 'As tuas respostas',
+ 'Not set yet': 'Por definir',
+ 'Controls': 'Controlos',
+ 'Undo the last Coach changes': 'Anular as últimas alterações do Treinador',
+ 'Turn the Coach off': 'Desligar o Treinador',
+ '{0} days a week': '{0} dias por semana',
+ '{0} min': '{0} min',
+ 'The Coach is on': 'Treinador ligado',
+ 'Before the Coach starts': 'Antes de começar',
+ 'When you ask for a plan or a review, this instance sends the following to {0}, running on this server under the instance owner’s account.': 'Quando pedes um plano ou uma revisão, esta instância envia o seguinte para {0}, que corre neste servidor na conta do proprietário.',
+ 'the configured AI provider': 'o fornecedor de IA configurado',
+ 'Your name, your sign-in details and everything else about your account stay here. Other people’s data is never included.': 'O teu nome, os teus dados de acesso e tudo o resto da tua conta ficam aqui. Os dados de outras pessoas nunca são incluídos.',
+ 'Nothing the Coach suggests is applied on its own — you review every change and can undo it afterwards.': 'Nada do que o Treinador sugere é aplicado sozinho: revês cada alteração e podes anulá-la depois.',
+ 'You can turn this off at any time, which also discards anything the Coach is holding for you.': 'Podes desligar isto a qualquer momento, o que também descarta o que o Treinador tiver guardado para ti.',
+ 'The Coach is not a doctor or a physiotherapist. If something hurts, ask a professional.': 'O Treinador não é médico nem fisioterapeuta. Se algo doer, consulta um profissional.',
+ 'I understand — turn the Coach on': 'Percebi: ligar o Treinador',
+ 'Not now': 'Agora não',
+ 'Meet the Coach': 'Conhece o Treinador',
+ 'An AI coach that can design your plan and adjust it from what you actually log. It runs on this server, it never changes anything without your say-so, and it is off until you turn it on.': 'Um treinador com IA que cria o teu plano e o ajusta com base no que registas. Corre neste servidor, nunca muda nada sem a tua autorização e está desligado até o ligares.',
+ 'See what it would use': 'Ver que dados usaria',
+ 'The Coach is thinking…': 'O Treinador está a pensar…',
+ 'This takes a minute or two. You can leave this screen — it keeps going.': 'Isto demora um ou dois minutos. Podes sair deste ecrã: continua a trabalhar.',
+ 'Your plan is ready': 'O teu plano está pronto',
+ 'Suggestions ready': 'Sugestões prontas',
+ '{0} routines to look over': '{0} rotinas para rever',
+ 'Review': 'Rever',
+ 'Automatic reviews': 'Revisões automáticas',
+ 'Off — the Coach only looks when you ask it to.': 'Desligado: o Treinador só analisa quando lhe pedes.',
+ 'You are only notified when the Coach actually has something to suggest.': 'Só recebes aviso quando o Treinador tem mesmo algo a sugerir.',
+ 'When': 'Quando',
+ 'Weekly': 'Semanal',
+ 'On a day and time you choose': 'No dia e hora que escolheres',
+ 'After every few workouts': 'A cada alguns treinos',
+ 'As soon as you have logged enough': 'Assim que tiveres registado o suficiente',
+ 'Day': 'Dia',
+ 'After how many workouts': 'A cada quantos treinos',
+ 'Plan from the Coach': 'Plano do Treinador',
+ 'Coach review': 'Revisão do Treinador',
+ 'Based on {0} sessions': 'Com base em {0} sessões',
+ 'applied': 'aplicado',
+ 'declined': 'recusado',
+ 'Coach history': 'Histórico do Treinador',
+ 'Built a plan': 'Criou um plano',
+ 'Undid the last changes': 'Anulou as últimas alterações',
+ 'Reviewed your training': 'Reviu o teu treino',
+ '{0} applied': '{0} aplicadas',
+ 'The Coach is building your plan…': 'O Treinador está a criar o teu plano…',
+ 'Your plan': 'O teu plano',
+ 'Step {0} of {1}': 'Passo {0} de {1}',
+ 'What are you training for?': 'Para que treinas?',
+ 'Where are you starting from?': 'De onde partes?',
+ 'How many days a week?': 'Quantos dias por semana?',
+ 'Which days suit you? (optional)': 'Que dias te dão jeito? (opcional)',
+ 'How long is a session?': 'Quanto dura uma sessão?',
+ 'min': 'min',
+ 'The Coach fits the volume to the time you actually have, including rest between sets.': 'O Treinador ajusta o volume ao tempo que tens, incluindo o descanso entre séries.',
+ 'What can you train with?': 'Com que podes treinar?',
+ 'Pick everything you have access to. Leave it empty and the Coach will use the whole library.': 'Escolhe tudo a que tens acesso. Se deixares vazio, o Treinador usa a biblioteca inteira.',
+ 'Anything to work around?': 'Algo a contornar?',
+ 'Injuries, joints that complain, movements you cannot do, or practical limits like training at 6am in a flat.': 'Lesões, articulações que se queixam, movimentos que não consegues fazer ou limites práticos como treinar às 6h num apartamento.',
+ 'e.g. “dodgy left shoulder — no barbell overhead press”': 'p. ex. «ombro esquerdo delicado: nada de press militar com barra»',
+ 'If something actually hurts, see a professional — the Coach will program conservatively but it cannot diagnose anything.': 'Se algo doer mesmo, consulta um profissional: o Treinador será conservador, mas não pode diagnosticar nada.',
+ 'Anything else?': 'Mais alguma coisa?',
+ 'Exercises you love': 'Exercícios que adoras',
+ 'e.g. “deadlifts, anything with a kettlebell”': 'p. ex. «peso morto, qualquer coisa com kettlebell»',
+ 'Exercises you would rather not': 'Exercícios que preferias evitar',
+ 'e.g. “I hate lunges”': 'p. ex. «detesto afundos»',
+ 'Anything you want the Coach to know': 'Algo que queiras que o Treinador saiba',
+ 'e.g. “I want visible arms progress by spring”': 'p. ex. «quero ver progresso nos braços até à primavera»',
+ 'Build my plan': 'Criar o meu plano',
+ 'Pick a goal and where you are starting from to continue.': 'Escolhe um objetivo e o teu ponto de partida para continuar.',
+ 'Your plan is live': 'O teu plano está ativo',
+ 'That proposal can’t be read.': 'Essa proposta não pode ser lida.',
+ 'Discard this plan?': 'Descartar este plano?',
+ 'Nothing is saved, and you can ask again anytime.': 'Nada é guardado e podes voltar a pedir quando quiseres.',
+ 'The Coach is revising it…': 'O Treinador está a rever…',
+ 'Revision {0}': 'Revisão {0}',
+ 'Replaces your current week. Days this plan leaves empty become rest days.': 'Substitui a tua semana atual. Os dias que este plano deixar vazios passam a ser de descanso.',
+ 'Want something different?': 'Queres algo diferente?',
+ 'Say it in your own words and the Coach will revise the whole plan.': 'Di-lo por palavras tuas e o Treinador revê o plano todo.',
+ 'e.g. “swap the squats for split squats, and Mondays are short”': 'p. ex. «troca os agachamentos por afundos búlgaros, e às segundas tenho pouco tempo»',
+ 'Ask for a revision': 'Pedir uma revisão',
+ 'Accept plan': 'Aceitar plano',
+ 'Could not apply those changes': 'Não foi possível aplicar essas alterações',
+ 'Dismiss these suggestions?': 'Descartar estas sugestões?',
+ 'Nothing changes, and the Coach will remember you turned these down.': 'Nada muda, e o Treinador vai lembrar-se de que as recusaste.',
+ 'Dismiss': 'Descartar',
+ 'Coach suggestions': 'Sugestões do Treinador',
+ 'Based on your last {0} sessions': 'Com base nas tuas últimas {0} sessões',
+ 'Your plan changed since the Coach looked at it. Suggestions that no longer match are greyed out — ask for a fresh review to see them again.': 'O teu plano mudou desde que o Treinador o viu. As sugestões que já não encaixam aparecem esbatidas: pede uma revisão nova para as veres outra vez.',
+ 'Doesn’t match your plan any more — can’t be applied.': 'Já não corresponde ao teu plano: não pode ser aplicada.',
+ 'Notes from the Coach': 'Notas do Treinador',
+ 'These change nothing on their own.': 'Por si só não mudam nada.',
+ 'Apply nothing': 'Não aplicar nada',
+ 'Dismiss all': 'Descartar tudo',
+ 'Reverted the last Coach changes.': 'As últimas alterações do Treinador foram anuladas.',
+ 'Before the Coach’s plan': 'Antes do plano do Treinador',
+ 'Before the Coach’s changes': 'Antes das alterações do Treinador',
+ 'Add {0}': 'Adicionar {0}',
+ 'Drop {0}': 'Retirar {0}',
+ 'Swap {0} for {1}': 'Trocar {0} por {1}',
+ '{0}: sets': '{0}: séries',
+ '{0}: reps': '{0}: repetições',
+ '{0}: rep-range floor': '{0}: mínimo do intervalo de repetições',
+ '{0}: rep-range ceiling': '{0}: máximo do intervalo de repetições',
+ '{0}: hold time': '{0}: tempo de sustentação',
+ '{0}: duration & pace': '{0}: duração e ritmo',
+ '{0}: load step': '{0}: incremento de carga',
+ '{0}: progression': '{0}: progressão',
+ 'Routine progression': 'Progressão da rotina',
+ 'Reorder exercises': 'Reordenar exercícios',
+ 'Superset {0} with {1}': 'Supersérie de {0} com {1}',
+ 'Unlink superset on {0}': 'Desfazer a supersérie de {0}',
+ 'Add routine “{0}”': 'Adicionar rotina «{0}»',
+ 'Remove a routine': 'Remover uma rotina',
+ 'Rename routine to “{0}”': 'Mudar o nome da rotina para «{0}»',
+ 'Change what’s planned on one day': 'Mudar o que está planeado num dia',
+ '{0} sets · {1} work': '{0} séries · {1} trabalho',
+ 'Make superset with previous': 'Fazer superset com o anterior',
+ 'Make superset with next': 'Fazer superset com o próximo',
+ 'primary': 'primário',
+ 'secondary': 'secundário',
+ 'No exercises with an estimated 1RM yet.': 'Ainda não há exercícios com 1RM estimado.',
+ 'Tap a muscle to see its exercises.': 'Toque num músculo para ver os seus exercícios.',
+ 'Unpair': 'Desfazer'
}
diff --cc frontend/src/locales/ru.js
index 69ae5a3e2,c8a871bd6..318af4436
--- a/frontend/src/locales/ru.js
+++ b/frontend/src/locales/ru.js
@@@ -554,145 -571,12 +571,153 @@@ export default
'{0} sets of {1} — time to add weight or move to a harder variation.': '{0} × {1} — пора добавить вес или перейти к более сложному варианту.',
'{0} per side': '{0} на сторону',
'You still log the total: {0} is {1} per side.': 'Ты по-прежнему записываешь общее число: {0} — это {1} на сторону.',
+
+ // --- AI Coach ---
+ 'The Coach is reading your training…': 'Тренер читает ваши тренировки…',
+ 'Could not ask the Coach': 'Не удалось обратиться к Тренеру',
+ 'Turn the Coach off?': 'Выключить Тренера?',
+ 'Any pending suggestion is discarded and scheduled reviews stop. Your Coach history stays, and you can turn it back on anytime.': 'Ожидающие предложения удаляются, запланированные разборы останавливаются. История сохраняется, включить обратно можно в любой момент.',
+ 'Turn off': 'Выключить',
+ 'The Coach is off': 'Тренер выключен',
+ 'Undo the last Coach changes?': 'Отменить последние изменения Тренера?',
+ 'Your plan goes back to how it was before you accepted them. Workouts you have logged since are untouched.': 'План вернётся к состоянию до принятия изменений. Записанные с тех пор тренировки останутся нетронутыми.',
+ 'Undo': 'Отменить',
+ 'Plan restored': 'План восстановлен',
+ 'Nothing to undo': 'Отменять нечего',
+ 'Back': 'Назад',
+ 'Coach': 'Тренер',
+ 'Plan design and reviews, from your own training': 'Составление планов и разборы на основе ваших тренировок',
+ 'Ask for a review': 'Запросить разбор',
+ 'The Coach reads what you have actually logged since its last look and suggests changes to your plan — each one with its reason.': 'Тренер читает то, что вы записали с прошлого раза, и предлагает изменения в плане — каждое с обоснованием.',
+ 'Anything it should know? (optional) — e.g. “right shoulder pinches on overhead work”': 'Что-то, что стоит учесть? (необязательно) — напр. «правое плечо простреливает при жиме над головой»',
+ '{0} of {1} Coach runs used today': 'Сегодня использовано {0} из {1} запусков Тренера',
+ 'No plan yet — the Coach can build you one from a few questions.': 'Плана пока нет — Тренер составит его по нескольким вопросам.',
+ 'Let the Coach build my plan': 'Пусть Тренер составит мой план',
+ 'Coach profile': 'Профиль Тренера',
+ 'Used by every proposal — keep limitations here up to date.': 'Используется в каждом предложении — держите ограничения здесь в актуальном виде.',
+ 'Your answers': 'Ваши ответы',
+ 'Not set yet': 'Пока не задано',
+ 'Controls': 'Управление',
+ 'Undo the last Coach changes': 'Отменить последние изменения Тренера',
+ 'Turn the Coach off': 'Выключить Тренера',
+ '{0} days a week': '{0} дней в неделю',
+ '{0} min': '{0} мин',
+ 'The Coach is on': 'Тренер включён',
+ 'Before the Coach starts': 'Прежде чем Тренер начнёт',
+ 'When you ask for a plan or a review, this instance sends the following to {0}, running on this server under the instance owner’s account.': 'Когда вы запрашиваете план или разбор, этот сервер отправляет следующее в {0}, работающий здесь под учётной записью владельца.',
+ 'the configured AI provider': 'настроенного поставщика ИИ',
+ 'Your name, your sign-in details and everything else about your account stay here. Other people’s data is never included.': 'Ваше имя, данные для входа и всё остальное из вашей учётной записи остаются здесь. Данные других людей никогда не передаются.',
+ 'Nothing the Coach suggests is applied on its own — you review every change and can undo it afterwards.': 'Ничто из предложенного Тренером не применяется само: вы проверяете каждое изменение и можете его отменить.',
+ 'You can turn this off at any time, which also discards anything the Coach is holding for you.': 'Вы можете отключить это в любой момент — тогда всё, что Тренер держит для вас, тоже удалится.',
+ 'The Coach is not a doctor or a physiotherapist. If something hurts, ask a professional.': 'Тренер — не врач и не физиотерапевт. Если что-то болит, обратитесь к специалисту.',
+ 'I understand — turn the Coach on': 'Понятно — включить Тренера',
+ 'Not now': 'Не сейчас',
+ 'Meet the Coach': 'Познакомьтесь с Тренером',
+ 'An AI coach that can design your plan and adjust it from what you actually log. It runs on this server, it never changes anything without your say-so, and it is off until you turn it on.': 'ИИ-тренер, который составляет ваш план и корректирует его по тому, что вы записываете. Он работает на этом сервере, никогда ничего не меняет без вашего согласия и выключен, пока вы его не включите.',
+ 'See what it would use': 'Посмотреть, какие данные он возьмёт',
+ 'The Coach is thinking…': 'Тренер думает…',
+ 'This takes a minute or two. You can leave this screen — it keeps going.': 'Это займёт минуту-другую. Можно уйти с этого экрана — работа продолжится.',
+ 'Your plan is ready': 'Ваш план готов',
+ 'Suggestions ready': 'Предложения готовы',
+ '{0} routines to look over': '{0} программ для просмотра',
+ 'Review': 'Посмотреть',
+ 'Automatic reviews': 'Автоматические разборы',
+ 'Off — the Coach only looks when you ask it to.': 'Выключено — Тренер смотрит только по вашей просьбе.',
+ 'You are only notified when the Coach actually has something to suggest.': 'Уведомление приходит, только если Тренеру действительно есть что предложить.',
+ 'When': 'Когда',
+ 'Weekly': 'Еженедельно',
+ 'On a day and time you choose': 'В выбранный день и час',
+ 'After every few workouts': 'Каждые несколько тренировок',
+ 'As soon as you have logged enough': 'Как только наберётся достаточно записей',
+ 'Day': 'День',
+ 'After how many workouts': 'Через сколько тренировок',
+ 'Plan from the Coach': 'План от Тренера',
+ 'Coach review': 'Разбор Тренера',
+ 'Based on {0} sessions': 'По данным {0} занятий',
+ 'applied': 'применено',
+ 'declined': 'отклонено',
+ 'Coach history': 'История Тренера',
+ 'Built a plan': 'Составил план',
+ 'Undid the last changes': 'Отменил последние изменения',
+ 'Reviewed your training': 'Разобрал ваши тренировки',
+ '{0} applied': 'применено: {0}',
+ 'The Coach is building your plan…': 'Тренер составляет ваш план…',
+ 'Your plan': 'Ваш план',
+ 'Step {0} of {1}': 'Шаг {0} из {1}',
+ 'What are you training for?': 'Ради чего вы тренируетесь?',
+ 'Where are you starting from?': 'С чего вы начинаете?',
+ 'How many days a week?': 'Сколько дней в неделю?',
+ 'Which days suit you? (optional)': 'Какие дни вам удобны? (необязательно)',
+ 'How long is a session?': 'Сколько длится занятие?',
+ 'min': 'мин',
+ 'The Coach fits the volume to the time you actually have, including rest between sets.': 'Тренер подгоняет объём под то время, которое у вас есть, включая отдых между подходами.',
+ 'What can you train with?': 'С каким оборудованием вы тренируетесь?',
+ 'Pick everything you have access to. Leave it empty and the Coach will use the whole library.': 'Отметьте всё, к чему у вас есть доступ. Если оставить пустым, Тренер использует всю библиотеку.',
+ 'Anything to work around?': 'Что-то нужно обойти?',
+ 'Injuries, joints that complain, movements you cannot do, or practical limits like training at 6am in a flat.': 'Травмы, ноющие суставы, недоступные движения или бытовые ограничения — например, тренировка в 6 утра в квартире.',
+ 'e.g. “dodgy left shoulder — no barbell overhead press”': 'напр. «капризное левое плечо — без жима штанги над головой»',
+ 'If something actually hurts, see a professional — the Coach will program conservatively but it cannot diagnose anything.': 'Если что-то действительно болит, обратитесь к специалисту: Тренер будет осторожен, но диагноз поставить не может.',
+ 'Anything else?': 'Что-нибудь ещё?',
+ 'Exercises you love': 'Упражнения, которые вам нравятся',
+ 'e.g. “deadlifts, anything with a kettlebell”': 'напр. «становая тяга, всё с гирей»',
+ 'Exercises you would rather not': 'Упражнения, которых вы предпочли бы избежать',
+ 'e.g. “I hate lunges”': 'напр. «ненавижу выпады»',
+ 'Anything you want the Coach to know': 'Что ещё стоит знать Тренеру',
+ 'e.g. “I want visible arms progress by spring”': 'напр. «хочу заметный прогресс по рукам к весне»',
+ 'Build my plan': 'Составить мой план',
+ 'Pick a goal and where you are starting from to continue.': 'Выберите цель и отправную точку, чтобы продолжить.',
+ 'Your plan is live': 'Ваш план активен',
+ 'That proposal can’t be read.': 'Это предложение не читается.',
+ 'Discard this plan?': 'Отклонить этот план?',
+ 'Nothing is saved, and you can ask again anytime.': 'Ничего не сохранится, и вы сможете запросить снова в любой момент.',
+ 'The Coach is revising it…': 'Тренер вносит правки…',
+ 'Revision {0}': 'Версия {0}',
+ 'Replaces your current week. Days this plan leaves empty become rest days.': 'Заменит вашу текущую неделю. Дни, которые план оставляет пустыми, станут днями отдыха.',
+ 'Want something different?': 'Хотите иначе?',
+ 'Say it in your own words and the Coach will revise the whole plan.': 'Скажите своими словами, и Тренер переработает весь план.',
+ 'e.g. “swap the squats for split squats, and Mondays are short”': 'напр. «замени приседания на болгарские выпады, а по понедельникам у меня мало времени»',
+ 'Ask for a revision': 'Запросить правку',
+ 'Accept plan': 'Принять план',
+ 'Could not apply those changes': 'Не удалось применить эти изменения',
+ 'Dismiss these suggestions?': 'Отклонить эти предложения?',
+ 'Nothing changes, and the Coach will remember you turned these down.': 'Ничего не изменится, а Тренер запомнит, что вы их отклонили.',
+ 'Dismiss': 'Отклонить',
+ 'Coach suggestions': 'Предложения Тренера',
+ 'Based on your last {0} sessions': 'По вашим последним {0} занятиям',
+ 'Your plan changed since the Coach looked at it. Suggestions that no longer match are greyed out — ask for a fresh review to see them again.': 'Ваш план изменился с тех пор, как Тренер его смотрел. Предложения, которые больше не подходят, показаны серым — запросите новый разбор, чтобы увидеть их снова.',
+ 'Doesn’t match your plan any more — can’t be applied.': 'Больше не соответствует вашему плану — применить нельзя.',
+ 'Notes from the Coach': 'Заметки Тренера',
+ 'These change nothing on their own.': 'Сами по себе они ничего не меняют.',
+ 'Apply nothing': 'Ничего не применять',
+ 'Dismiss all': 'Отклонить всё',
+ 'Reverted the last Coach changes.': 'Последние изменения Тренера отменены.',
+ 'Before the Coach’s plan': 'До плана Тренера',
+ 'Before the Coach’s changes': 'До изменений Тренера',
+ 'Add {0}': 'Добавить {0}',
+ 'Drop {0}': 'Убрать {0}',
+ 'Swap {0} for {1}': 'Заменить {0} на {1}',
+ '{0}: sets': '{0}: подходы',
+ '{0}: reps': '{0}: повторения',
+ '{0}: rep-range floor': '{0}: нижняя граница диапазона повторений',
+ '{0}: rep-range ceiling': '{0}: верхняя граница диапазона повторений',
+ '{0}: hold time': '{0}: время удержания',
+ '{0}: duration & pace': '{0}: длительность и темп',
+ '{0}: load step': '{0}: шаг веса',
+ '{0}: progression': '{0}: прогрессия',
+ 'Routine progression': 'Прогрессия программы',
+ 'Reorder exercises': 'Изменить порядок упражнений',
+ 'Superset {0} with {1}': 'Объединить {0} и {1} в суперсет',
+ 'Unlink superset on {0}': 'Разорвать суперсет у {0}',
+ 'Add routine “{0}”': 'Добавить программу «{0}»',
+ 'Remove a routine': 'Удалить программу',
+ 'Rename routine to “{0}”': 'Переименовать программу в «{0}»',
+ 'Change what’s planned on one day': 'Изменить план на один из дней',
+ '{0} sets · {1} work': '{0} подходов · {1} рабочих',
+ 'Make superset with previous': 'Суперсет с предыдущим',
+ 'Make superset with next': 'Суперсет со следующим',
+ 'primary': 'основная',
+ 'secondary': 'вспомогательная',
+ 'No exercises with an estimated 1RM yet.': 'Пока нет упражнений с расчётным 1ПМ.',
+ 'Tap a muscle to see its exercises.': 'Нажмите на мышцу, чтобы увидеть её упражнения.',
+ 'Unpair': 'Разъединить'
}
diff --cc frontend/src/locales/tr.js
index 88f005e2f,6fc2dfff0..e2cbb9854
--- a/frontend/src/locales/tr.js
+++ b/frontend/src/locales/tr.js
@@@ -554,145 -571,12 +571,153 @@@ export default
'{0} sets of {1} — time to add weight or move to a harder variation.': '{1} tekrarlık {0} set — ağırlık ekleme ya da daha zor bir varyasyona geçme zamanı.',
'{0} per side': 'Taraf başına {0}',
'You still log the total: {0} is {1} per side.': 'Toplamı kaydetmeye devam ediyorsun: {0}, taraf başına {1} demek.',
+
+ // --- AI Coach ---
+ 'The Coach is reading your training…': 'Koç antrenmanlarını okuyor…',
+ 'Could not ask the Coach': 'Koç’a sorulamadı',
+ 'Turn the Coach off?': 'Koç kapatılsın mı?',
+ 'Any pending suggestion is discarded and scheduled reviews stop. Your Coach history stays, and you can turn it back on anytime.': 'Bekleyen öneriler silinir ve planlanmış değerlendirmeler durur. Geçmişin kalır, istediğin zaman yeniden açabilirsin.',
+ 'Turn off': 'Kapat',
+ 'The Coach is off': 'Koç kapalı',
+ 'Undo the last Coach changes?': 'Son Koç değişiklikleri geri alınsın mı?',
+ 'Your plan goes back to how it was before you accepted them. Workouts you have logged since are untouched.': 'Planın, onları kabul etmeden önceki hâline döner. O zamandan beri kaydettiğin antrenmanlara dokunulmaz.',
+ 'Undo': 'Geri al',
+ 'Plan restored': 'Plan geri yüklendi',
+ 'Nothing to undo': 'Geri alınacak bir şey yok',
+ 'Back': 'Geri',
+ 'Coach': 'Koç',
+ 'Plan design and reviews, from your own training': 'Kendi antrenmanlarından plan tasarımı ve değerlendirmeler',
+ 'Ask for a review': 'Değerlendirme iste',
+ 'The Coach reads what you have actually logged since its last look and suggests changes to your plan — each one with its reason.': 'Koç son bakışından bu yana kaydettiklerini okur ve planında değişiklikler önerir — her biri gerekçesiyle.',
+ 'Anything it should know? (optional) — e.g. “right shoulder pinches on overhead work”': 'Bilmesi gereken bir şey var mı? (isteğe bağlı) — örn. “baş üstü hareketlerde sağ omzum sıkışıyor”',
+ '{0} of {1} Coach runs used today': 'Bugün {1} Koç çalıştırmasının {0} tanesi kullanıldı',
+ 'No plan yet — the Coach can build you one from a few questions.': 'Henüz plan yok — Koç birkaç soruyla sana bir tane oluşturabilir.',
+ 'Let the Coach build my plan': 'Planımı Koç oluştursun',
+ 'Coach profile': 'Koç profili',
+ 'Used by every proposal — keep limitations here up to date.': 'Her öneride kullanılır — kısıtlarını burada güncel tut.',
+ 'Your answers': 'Yanıtların',
+ 'Not set yet': 'Henüz ayarlanmadı',
+ 'Controls': 'Denetimler',
+ 'Undo the last Coach changes': 'Son Koç değişikliklerini geri al',
+ 'Turn the Coach off': 'Koç’u kapat',
+ '{0} days a week': 'haftada {0} gün',
+ '{0} min': '{0} dk',
+ 'The Coach is on': 'Koç açık',
+ 'Before the Coach starts': 'Koç başlamadan önce',
+ 'When you ask for a plan or a review, this instance sends the following to {0}, running on this server under the instance owner’s account.': 'Bir plan veya değerlendirme istediğinde, bu sunucu şunları bu makinede sunucu sahibinin hesabıyla çalışan {0} hizmetine gönderir.',
+ 'the configured AI provider': 'yapılandırılmış yapay zekâ sağlayıcısı',
+ 'Your name, your sign-in details and everything else about your account stay here. Other people’s data is never included.': 'Adın, giriş bilgilerin ve hesabınla ilgili diğer her şey burada kalır. Başkalarının verileri asla dâhil edilmez.',
+ 'Nothing the Coach suggests is applied on its own — you review every change and can undo it afterwards.': 'Koç’un önerdiği hiçbir şey kendiliğinden uygulanmaz: her değişikliği sen incelersin ve sonradan geri alabilirsin.',
+ 'You can turn this off at any time, which also discards anything the Coach is holding for you.': 'Bunu istediğin zaman kapatabilirsin; bu, Koç’un senin için tuttuğu her şeyi de siler.',
+ 'The Coach is not a doctor or a physiotherapist. If something hurts, ask a professional.': 'Koç doktor ya da fizyoterapist değildir. Bir yerin ağrıyorsa bir uzmana danış.',
+ 'I understand — turn the Coach on': 'Anladım — Koç’u aç',
+ 'Not now': 'Şimdi değil',
+ 'Meet the Coach': 'Koç ile tanış',
+ 'An AI coach that can design your plan and adjust it from what you actually log. It runs on this server, it never changes anything without your say-so, and it is off until you turn it on.': 'Planını tasarlayan ve kaydettiklerine göre ayarlayan bir yapay zekâ koçu. Bu sunucuda çalışır, onayın olmadan hiçbir şeyi değiştirmez ve sen açana kadar kapalıdır.',
+ 'See what it would use': 'Hangi verileri kullanacağını gör',
+ 'The Coach is thinking…': 'Koç düşünüyor…',
+ 'This takes a minute or two. You can leave this screen — it keeps going.': 'Bu bir iki dakika sürer. Bu ekrandan çıkabilirsin — işlem devam eder.',
+ 'Your plan is ready': 'Planın hazır',
+ 'Suggestions ready': 'Öneriler hazır',
+ '{0} routines to look over': 'İncelenecek {0} rutin',
+ 'Review': 'İncele',
+ 'Automatic reviews': 'Otomatik değerlendirmeler',
+ 'Off — the Coach only looks when you ask it to.': 'Kapalı — Koç yalnızca sen istediğinde bakar.',
+ 'You are only notified when the Coach actually has something to suggest.': 'Yalnızca Koç’un gerçekten önerecek bir şeyi olduğunda bildirim alırsın.',
+ 'When': 'Ne zaman',
+ 'Weekly': 'Haftalık',
+ 'On a day and time you choose': 'Seçtiğin gün ve saatte',
+ 'After every few workouts': 'Birkaç antrenmanda bir',
+ 'As soon as you have logged enough': 'Yeterince kayıt biriktiği anda',
+ 'Day': 'Gün',
+ 'After how many workouts': 'Kaç antrenmanda bir',
+ 'Plan from the Coach': 'Koç’tan plan',
+ 'Coach review': 'Koç değerlendirmesi',
+ 'Based on {0} sessions': '{0} seansa dayanarak',
+ 'applied': 'uygulandı',
+ 'declined': 'reddedildi',
+ 'Coach history': 'Koç geçmişi',
+ 'Built a plan': 'Bir plan oluşturdu',
+ 'Undid the last changes': 'Son değişiklikleri geri aldı',
+ 'Reviewed your training': 'Antrenmanlarını değerlendirdi',
+ '{0} applied': '{0} uygulandı',
+ 'The Coach is building your plan…': 'Koç planını oluşturuyor…',
+ 'Your plan': 'Planın',
+ 'Step {0} of {1}': 'Adım {0}/{1}',
+ 'What are you training for?': 'Ne için antrenman yapıyorsun?',
+ 'Where are you starting from?': 'Nereden başlıyorsun?',
+ 'How many days a week?': 'Haftada kaç gün?',
+ 'Which days suit you? (optional)': 'Hangi günler sana uyar? (isteğe bağlı)',
+ 'How long is a session?': 'Bir seans ne kadar sürüyor?',
+ 'min': 'dk',
+ 'The Coach fits the volume to the time you actually have, including rest between sets.': 'Koç, hacmi gerçekten sahip olduğun süreye göre ayarlar — setler arası dinlenme dâhil.',
+ 'What can you train with?': 'Neyle antrenman yapabiliyorsun?',
+ 'Pick everything you have access to. Leave it empty and the Coach will use the whole library.': 'Erişebildiğin her şeyi seç. Boş bırakırsan Koç tüm kütüphaneyi kullanır.',
+ 'Anything to work around?': 'Dikkat edilmesi gereken bir şey var mı?',
+ 'Injuries, joints that complain, movements you cannot do, or practical limits like training at 6am in a flat.': 'Sakatlıklar, rahatsız eden eklemler, yapamadığın hareketler ya da sabah 6’da apartmanda antrenman gibi pratik kısıtlar.',
+ 'e.g. “dodgy left shoulder — no barbell overhead press”': 'örn. “sol omzum hassas — halterle baş üstü press yok”',
+ 'If something actually hurts, see a professional — the Coach will program conservatively but it cannot diagnose anything.': 'Gerçekten ağrıyan bir yer varsa bir uzmana görün: Koç temkinli programlar ama teşhis koyamaz.',
+ 'Anything else?': 'Başka bir şey?',
+ 'Exercises you love': 'Sevdiğin hareketler',
+ 'e.g. “deadlifts, anything with a kettlebell”': 'örn. “deadlift, kettlebell ile her şey”',
+ 'Exercises you would rather not': 'Yapmak istemediğin hareketler',
+ 'e.g. “I hate lunges”': 'örn. “lunge’dan nefret ediyorum”',
+ 'Anything you want the Coach to know': 'Koç’un bilmesini istediklerin',
+ 'e.g. “I want visible arms progress by spring”': 'örn. “bahara kadar kollarımda gözle görülür ilerleme istiyorum”',
+ 'Build my plan': 'Planımı oluştur',
+ 'Pick a goal and where you are starting from to continue.': 'Devam etmek için bir hedef ve başlangıç noktanı seç.',
+ 'Your plan is live': 'Planın devrede',
+ 'That proposal can’t be read.': 'Bu öneri okunamıyor.',
+ 'Discard this plan?': 'Bu plan atılsın mı?',
+ 'Nothing is saved, and you can ask again anytime.': 'Hiçbir şey kaydedilmez, istediğin zaman tekrar isteyebilirsin.',
+ 'The Coach is revising it…': 'Koç düzeltiyor…',
+ 'Revision {0}': '{0}. sürüm',
+ 'Replaces your current week. Days this plan leaves empty become rest days.': 'Mevcut haftanın yerine geçer. Bu planın boş bıraktığı günler dinlenme günü olur.',
+ 'Want something different?': 'Farklı bir şey mi istiyorsun?',
+ 'Say it in your own words and the Coach will revise the whole plan.': 'Kendi cümlelerinle söyle, Koç tüm planı yeniden düzenlesin.',
+ 'e.g. “swap the squats for split squats, and Mondays are short”': 'örn. “squatları bulgar split squat ile değiştir, pazartesileri vaktim az”',
+ 'Ask for a revision': 'Düzeltme iste',
+ 'Accept plan': 'Planı kabul et',
+ 'Could not apply those changes': 'Bu değişiklikler uygulanamadı',
+ 'Dismiss these suggestions?': 'Bu öneriler yoksayılsın mı?',
+ 'Nothing changes, and the Coach will remember you turned these down.': 'Hiçbir şey değişmez ve Koç bunları reddettiğini hatırlar.',
+ 'Dismiss': 'Yoksay',
+ 'Coach suggestions': 'Koç önerileri',
+ 'Based on your last {0} sessions': 'Son {0} seansına dayanarak',
+ 'Your plan changed since the Coach looked at it. Suggestions that no longer match are greyed out — ask for a fresh review to see them again.': 'Koç baktığından beri planın değişti. Artık uymayan öneriler soluk gösteriliyor — yeniden görmek için yeni bir değerlendirme iste.',
+ 'Doesn’t match your plan any more — can’t be applied.': 'Artık planınla uyuşmuyor — uygulanamaz.',
+ 'Notes from the Coach': 'Koç’tan notlar',
+ 'These change nothing on their own.': 'Bunlar tek başlarına hiçbir şeyi değiştirmez.',
+ 'Apply nothing': 'Hiçbirini uygulama',
+ 'Dismiss all': 'Tümünü yoksay',
+ 'Reverted the last Coach changes.': 'Son Koç değişiklikleri geri alındı.',
+ 'Before the Coach’s plan': 'Koç’un planından önce',
+ 'Before the Coach’s changes': 'Koç’un değişikliklerinden önce',
+ 'Add {0}': '{0} ekle',
+ 'Drop {0}': '{0} çıkar',
+ 'Swap {0} for {1}': '{0} yerine {1}',
+ '{0}: sets': '{0}: set',
+ '{0}: reps': '{0}: tekrar',
+ '{0}: rep-range floor': '{0}: tekrar aralığı alt sınırı',
+ '{0}: rep-range ceiling': '{0}: tekrar aralığı üst sınırı',
+ '{0}: hold time': '{0}: tutma süresi',
+ '{0}: duration & pace': '{0}: süre ve tempo',
+ '{0}: load step': '{0}: ağırlık artışı',
+ '{0}: progression': '{0}: ilerleme',
+ 'Routine progression': 'Rutin ilerlemesi',
+ 'Reorder exercises': 'Hareketleri yeniden sırala',
+ 'Superset {0} with {1}': '{0} ile {1} süperset yap',
+ 'Unlink superset on {0}': '{0} üzerindeki süperseti çöz',
+ 'Add routine “{0}”': '“{0}” rutinini ekle',
+ 'Remove a routine': 'Bir rutini kaldır',
+ 'Rename routine to “{0}”': 'Rutini “{0}” olarak yeniden adlandır',
+ 'Change what’s planned on one day': 'Bir günün planını değiştir',
+ '{0} sets · {1} work': '{0} set · {1} çalışma',
+ 'Make superset with previous': 'Öncekiyle superset yap',
+ 'Make superset with next': 'Sonrakiyle superset yap',
+ 'primary': 'birincil',
+ 'secondary': 'ikincil',
+ 'No exercises with an estimated 1RM yet.': 'Henüz tahmini 1RM olan egzersiz yok.',
+ 'Tap a muscle to see its exercises.': 'Egzersizlerini görmek için bir kas seçin.',
+ 'Unpair': 'Ayır'
}
diff --cc frontend/src/locales/zh.js
index fcc6e0b7c,028e38018..e6fcb5999
--- a/frontend/src/locales/zh.js
+++ b/frontend/src/locales/zh.js
@@@ -554,145 -571,12 +571,153 @@@ export default
'{0} sets of {1} — time to add weight or move to a harder variation.': '{0} 组 × {1} 次——该加重量或换更难的变式了。',
'{0} per side': '每侧 {0} 次',
'You still log the total: {0} is {1} per side.': '你记录的仍然是总数:{0} 表示每侧 {1} 次。',
+
+ // --- AI Coach ---
+ 'The Coach is reading your training…': '教练正在读取你的训练…',
+ 'Could not ask the Coach': '无法请求教练',
+ 'Turn the Coach off?': '要关闭教练吗?',
+ 'Any pending suggestion is discarded and scheduled reviews stop. Your Coach history stays, and you can turn it back on anytime.': '待处理的建议会被丢弃,定期复盘也会停止。你的教练历史会保留,随时可以重新开启。',
+ 'Turn off': '关闭',
+ 'The Coach is off': '教练已关闭',
+ 'Undo the last Coach changes?': '要撤销教练上次的更改吗?',
+ 'Your plan goes back to how it was before you accepted them. Workouts you have logged since are untouched.': '你的计划会恢复到你接受这些更改之前的状态。此后记录的训练不受影响。',
+ 'Undo': '撤销',
+ 'Plan restored': '计划已恢复',
+ 'Nothing to undo': '没有可撤销的内容',
+ 'Back': '返回',
+ 'Coach': '教练',
+ 'Plan design and reviews, from your own training': '根据你自己的训练来设计计划并做复盘',
+ 'Ask for a review': '请求复盘',
+ 'The Coach reads what you have actually logged since its last look and suggests changes to your plan — each one with its reason.': '教练会读取你自上次以来实际记录的内容,并对你的计划提出修改建议——每一条都附带理由。',
+ 'Anything it should know? (optional) — e.g. “right shoulder pinches on overhead work”': '有什么需要它知道的吗?(可选)——例如「过顶动作时右肩有挤压感」',
+ '{0} of {1} Coach runs used today': '今日已使用 {1} 次教练调用中的 {0} 次',
+ 'No plan yet — the Coach can build you one from a few questions.': '还没有计划——教练可以通过几个问题为你制定一个。',
+ 'Let the Coach build my plan': '让教练制定我的计划',
+ 'Coach profile': '教练档案',
+ 'Used by every proposal — keep limitations here up to date.': '每次提议都会用到——请在此保持限制信息为最新。',
+ 'Your answers': '你的回答',
+ 'Not set yet': '尚未设置',
+ 'Controls': '控制',
+ 'Undo the last Coach changes': '撤销教练上次的更改',
+ 'Turn the Coach off': '关闭教练',
+ '{0} days a week': '每周 {0} 天',
+ '{0} min': '{0} 分钟',
+ 'The Coach is on': '教练已开启',
+ 'Before the Coach starts': '在教练开始之前',
+ 'When you ask for a plan or a review, this instance sends the following to {0}, running on this server under the instance owner’s account.': '当你请求计划或复盘时,本实例会将以下内容发送给 {0}——它在本服务器上以实例所有者的账号运行。',
+ 'the configured AI provider': '已配置的 AI 提供方',
+ 'Your name, your sign-in details and everything else about your account stay here. Other people’s data is never included.': '你的姓名、登录信息以及账号的其他一切都留在本地,绝不会包含他人的数据。',
+ 'Nothing the Coach suggests is applied on its own — you review every change and can undo it afterwards.': '教练的任何建议都不会自动生效——每一处改动都由你审阅,事后还可以撤销。',
+ 'You can turn this off at any time, which also discards anything the Coach is holding for you.': '你随时可以关闭它,这也会清除教练为你保存的一切内容。',
+ 'The Coach is not a doctor or a physiotherapist. If something hurts, ask a professional.': '教练不是医生或物理治疗师。如果哪里疼,请咨询专业人士。',
+ 'I understand — turn the Coach on': '我明白了——开启教练',
+ 'Not now': '暂不',
+ 'Meet the Coach': '认识教练',
+ 'An AI coach that can design your plan and adjust it from what you actually log. It runs on this server, it never changes anything without your say-so, and it is off until you turn it on.': '一个能设计你的计划、并根据你实际记录的数据进行调整的 AI 教练。它运行在这台服务器上,未经你同意绝不改动任何内容,并且在你开启之前一直关闭。',
+ 'See what it would use': '看看它会用到哪些数据',
+ 'The Coach is thinking…': '教练正在思考…',
+ 'This takes a minute or two. You can leave this screen — it keeps going.': '这需要一两分钟。你可以离开此页面——它会继续运行。',
+ 'Your plan is ready': '你的计划已就绪',
+ 'Suggestions ready': '建议已就绪',
+ '{0} routines to look over': '{0} 个训练日待查看',
+ 'Review': '查看',
+ 'Automatic reviews': '自动复盘',
+ 'Off — the Coach only looks when you ask it to.': '已关闭——教练只在你请求时才查看。',
+ 'You are only notified when the Coach actually has something to suggest.': '只有当教练确实有建议时才会通知你。',
+ 'When': '时间',
+ 'Weekly': '每周',
+ 'On a day and time you choose': '在你选定的日期和时间',
+ 'After every few workouts': '每隔几次训练',
+ 'As soon as you have logged enough': '一旦记录足够就进行',
+ 'Day': '星期',
+ 'After how many workouts': '每隔多少次训练',
+ 'Plan from the Coach': '来自教练的计划',
+ 'Coach review': '教练复盘',
+ 'Based on {0} sessions': '基于 {0} 次训练',
+ 'applied': '已应用',
+ 'declined': '已拒绝',
+ 'Coach history': '教练历史',
+ 'Built a plan': '制定了计划',
+ 'Undid the last changes': '撤销了上次的更改',
+ 'Reviewed your training': '复盘了你的训练',
+ '{0} applied': '已应用 {0} 项',
+ 'The Coach is building your plan…': '教练正在制定你的计划…',
+ 'Your plan': '你的计划',
+ 'Step {0} of {1}': '第 {0} 步,共 {1} 步',
+ 'What are you training for?': '你的训练目标是什么?',
+ 'Where are you starting from?': '你目前处于什么阶段?',
+ 'How many days a week?': '每周练几天?',
+ 'Which days suit you? (optional)': '哪几天比较合适?(可选)',
+ 'How long is a session?': '一次训练多长时间?',
+ 'min': '分钟',
+ 'The Coach fits the volume to the time you actually have, including rest between sets.': '教练会把训练量控制在你实际拥有的时间内,包括组间休息。',
+ 'What can you train with?': '你有哪些器材?',
+ 'Pick everything you have access to. Leave it empty and the Coach will use the whole library.': '选择你能用到的一切。若留空,教练将使用整个动作库。',
+ 'Anything to work around?': '有什么需要避开的吗?',
+ 'Injuries, joints that complain, movements you cannot do, or practical limits like training at 6am in a flat.': '伤病、不舒服的关节、做不了的动作,或是现实限制——比如清晨六点在公寓里训练。',
+ 'e.g. “dodgy left shoulder — no barbell overhead press”': '例如「左肩不太好——不做杠铃过顶推举」',
+ 'If something actually hurts, see a professional — the Coach will program conservatively but it cannot diagnose anything.': '如果确实感到疼痛,请就医:教练会保守安排,但无法做出任何诊断。',
+ 'Anything else?': '还有别的吗?',
+ 'Exercises you love': '你喜欢的动作',
+ 'e.g. “deadlifts, anything with a kettlebell”': '例如「硬拉,任何壶铃动作」',
+ 'Exercises you would rather not': '你不太想做的动作',
+ 'e.g. “I hate lunges”': '例如「我讨厌箭步蹲」',
+ 'Anything you want the Coach to know': '还想让教练知道的事',
+ 'e.g. “I want visible arms progress by spring”': '例如「希望到春天手臂有明显进步」',
+ 'Build my plan': '制定我的计划',
+ 'Pick a goal and where you are starting from to continue.': '请选择目标和当前阶段以继续。',
+ 'Your plan is live': '你的计划已生效',
+ 'That proposal can’t be read.': '无法读取该提议。',
+ 'Discard this plan?': '要放弃这个计划吗?',
+ 'Nothing is saved, and you can ask again anytime.': '不会保存任何内容,你随时可以再次请求。',
+ 'The Coach is revising it…': '教练正在修订…',
+ 'Revision {0}': '第 {0} 版',
+ 'Replaces your current week. Days this plan leaves empty become rest days.': '将替换你当前的一周安排。此计划留空的日子将成为休息日。',
+ 'Want something different?': '想要不一样的?',
+ 'Say it in your own words and the Coach will revise the whole plan.': '用你自己的话说出来,教练会修订整个计划。',
+ 'e.g. “swap the squats for split squats, and Mondays are short”': '例如「把深蹲换成保加利亚分腿蹲,周一时间比较紧」',
+ 'Ask for a revision': '请求修订',
+ 'Accept plan': '采用此计划',
+ 'Could not apply those changes': '无法应用这些更改',
+ 'Dismiss these suggestions?': '要忽略这些建议吗?',
+ 'Nothing changes, and the Coach will remember you turned these down.': '不会有任何改动,教练会记住你拒绝了这些建议。',
+ 'Dismiss': '忽略',
+ 'Coach suggestions': '教练建议',
+ 'Based on your last {0} sessions': '基于你最近 {0} 次训练',
+ 'Your plan changed since the Coach looked at it. Suggestions that no longer match are greyed out — ask for a fresh review to see them again.': '自教练查看以来你的计划有变动。不再匹配的建议已置灰——请重新请求复盘以再次查看。',
+ 'Doesn’t match your plan any more — can’t be applied.': '已与你的计划不符——无法应用。',
+ 'Notes from the Coach': '教练备注',
+ 'These change nothing on their own.': '这些本身不会改变任何内容。',
+ 'Apply nothing': '不应用任何更改',
+ 'Dismiss all': '全部忽略',
+ 'Reverted the last Coach changes.': '已撤销教练上次的更改。',
+ 'Before the Coach’s plan': '教练计划之前',
+ 'Before the Coach’s changes': '教练更改之前',
+ 'Add {0}': '添加 {0}',
+ 'Drop {0}': '移除 {0}',
+ 'Swap {0} for {1}': '将 {0} 换成 {1}',
+ '{0}: sets': '{0}:组数',
+ '{0}: reps': '{0}:次数',
+ '{0}: rep-range floor': '{0}:次数区间下限',
+ '{0}: rep-range ceiling': '{0}:次数区间上限',
+ '{0}: hold time': '{0}:保持时间',
+ '{0}: duration & pace': '{0}:时长与配速',
+ '{0}: load step': '{0}:加重幅度',
+ '{0}: progression': '{0}:进阶方式',
+ 'Routine progression': '训练日进阶方式',
+ 'Reorder exercises': '调整动作顺序',
+ 'Superset {0} with {1}': '将 {0} 与 {1} 组成超级组',
+ 'Unlink superset on {0}': '解除 {0} 的超级组',
+ 'Add routine “{0}”': '添加训练日「{0}」',
+ 'Remove a routine': '删除一个训练日',
+ 'Rename routine to “{0}”': '将训练日重命名为「{0}」',
+ 'Change what’s planned on one day': '更改某一天的安排',
+ '{0} sets · {1} work': '{0} 组 · {1} 工作',
+ 'Make superset with previous': '与上一个组成超级组',
+ 'Make superset with next': '与下一个组成超级组',
+ 'primary': '主要',
+ 'secondary': '次要',
+ 'No exercises with an estimated 1RM yet.': '暂无估算1RM的动作。',
+ 'Tap a muscle to see its exercises.': '点击肌肉查看其动作。',
+ 'Unpair': '取消组合'
}