A Spanish profile now reads the catalogue in Spanish. Only pt-BR and hu had a
name pack, so every other language — Spanish included, which is this fork's
default — showed 1,324 English titles.
The pack is generated the way the pt-BR and hu ones were, with two differences
that matter to a self-hosted instance:
- `scripts/translate-es-exercise-names.mjs` talks to an OpenAI-compatible
endpoint instead of the `claude` CLI, because that is what the instance
already has: the same router the Coach runs on. Point it at one with
COACH_BASE_URL / COACH_MODEL / COACH_API_KEY.
- It is resumable. Ids already in the source file are skipped, so a run that
stops half way continues where it left off and a review only re-translates
what it deletes. With 1,324 rows, a pass that had to start over would never be
repeated.
Three rounds of review went into the file, each one caught by reading the output
rather than by the script succeeding:
1. "chin-up" and "pull-up" came back as English loanwords — the terms the
catalogue itself uses — so the core vocabulary is now pinned in the prompt and
asserted by the test (dominada, sentadilla, peso muerto, zancada, plancha…).
2. 142 rows led with the equipment ("Banda sentadilla", "Mancuerna press"), which
is the English word order. Spanish names the movement first: "Sentadilla con
banda". Those rows were re-translated, and the test now refuses a title that
starts with a piece of equipment — "Peso muerto" is why "Peso" is not on that
list.
3. Four rows dropped their (male) qualifier and four named variations kept an
English head noun ("Hack squat con barra"); both were fixed, the first by hand
since the review is allowed to edit the source.
The pack is honest about its provenance, like the pt-BR one: model-produced,
not reviewed by a native speaker, and the README says so.
Translated exercise names
Each <lang>.json here is the editable source for one exercise-name pack. It maps
every built-in EXDB exercise ID to a title in that language. The app combines the
title with the unchanged English source at runtime:
Elevação assistida das pernas deitada (assisted lying leg raise)
Sentadilla con barra (barbell squat)
Custom exercise names are never translated. IDs, plan data, workout history, imports and exports continue to use the canonical catalogue entries.
Generate a runtime pack with its builder:
node scripts/build-pt-br-exercise-names.mjs
node scripts/build-es-exercise-names.mjs
A language whose pack is missing one row falls back to English for that row, so the builders refuse an incomplete source rather than shipping half a catalogue.
Spanish (es.json)
Produced by scripts/translate-es-exercise-names.mjs, which talks to an
OpenAI-compatible endpoint rather than to a local CLI — a self-hosted instance
already has one for the Coach:
COACH_BASE_URL=https://ai.example.com COACH_MODEL=<model> COACH_API_KEY=<key> \
node scripts/translate-es-exercise-names.mjs
It is resumable: ids already in es.json are skipped, so a run that stops half
way continues where it left off, and re-running after a review only re-translates
what was deleted. The terminology the pack is held to (pull-up → dominada,
squat → sentadilla, dumbbell → mancuerna …) is in the script, and
frontend/src/lib/es-exercise-names.test.js asserts it — the first pass left
"chin-up" and "pull-up" in English, which is the mistake that test now catches.
Review status
The initial translations here were produced from the English EXDB titles with LLM assistance and must not be described as reviewed by a native speaker unless a named human reviewer completes that review. They are original translations and were not copied from another exercise dataset.