# Translated exercise names Each `.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: ```text 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: ```sh 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: ```sh COACH_BASE_URL=https://ai.example.com COACH_MODEL= COACH_API_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.