Rebrand to KuentaGYM, and start a new profile in pounds and Spanish
The app is now KuentaGYM everywhere a user can see it, and a fresh profile no longer starts on upstream's English/kg defaults. Both are this fork's decisions, so both are pinned by tests rather than left to a find-and-replace. Rename (1,270 references, 149 files) - Visible surfaces: the Login/Home/mobile-onboarding wordmark, the Settings version line, the printed plan, the PWA title + manifest, and the 17 branded strings across all 14 locale packs. - Infrastructure: repo links, the container images and the release endpoints now name git.dploy.lol/dsantillan/kuentagym; .gitea/workflows/docker-publish.yml publishes to this forge's registry instead of gitea.com. - The Android/iOS application id stays ch.duartesantos.opengym on purpose: changing it would make the mobile app a different app that could never update an installed copy. Three things the mechanical pass would have broken, fixed here - The update check asked gitlab.com for upstream's releases and would have installed upstream's APK, putting the old name back on the phone. It now reads this fork's Gitea releases API (the assets shape differs), with the tests rewritten to the payload Gitea actually returns. - Renaming the mobile state/pairing files (opengym-state.json, opengym-remote.json) would lose the on-device copy of a history whose WebView storage may have been evicted, and silently unpair the device. Both are read under their old names and written forward under the new ones. - Renaming the exported plan-file marker (openGym_plan) rejected every plan shared before the rename as "not a plan file". Both markers are accepted. Defaults: pounds and Spanish - DEF.unit = 'lb', DEF.lang = 'es', plus every fallback that independently assumed en/kg (the <html lang> attribute, the Settings pickers, the Store, the MCP, the Coach payload). - Server-generated push copy existed only in English and pt-BR, so a Spanish profile would have been notified in English; Spanish added. - The demo seed states unit: 'kg' — its seeded numbers are kilograms, and inheriting the new default would have introduced an 82.4 lb lifter benching 60. - The module-level language in i18n-core stays English: it is the only language whose strings need no pack, so `t()`, dates, numbers and lists agree before a pack loads. Starting there on 'es' formats a Spanish-shaped UI with English strings. Also - api/package.json's test glob missed push-messages.test.js and verify-error.test.js, which sat beside the modules they cover and never ran. - README, docs/, website/ and the issue templates no longer describe upstream's GitLab/GitHub pipeline, Discord, sponsorship or public demo as if they were this fork's; upstream history and attribution are preserved (NOTICE.md).
This commit is contained in:
1 parent
f91cde15a1
commit
87bfd6d4c4
152 files changed
+1784
-1604
No files matched your search
@@ -80,10 +80,14 @@ function Shell() {
|
||||
mql.addEventListener('change', onChange)
|
||||
return () => mql.removeEventListener('change', onChange)
|
||||
}, [S.theme, S.accent])
|
||||
useEffect(() => { setLang(S.lang || 'en') }, [S.lang])
|
||||
// 'es' is this fork's default language (see DEF in store/useStore.js); the fallback here only
|
||||
// applies to a state that predates the setting entirely.
|
||||
useEffect(() => { setLang(S.lang || 'es') }, [S.lang])
|
||||
// Same shape as the language: a module-level display setting, pushed when it changes (#139).
|
||||
useEffect(() => { setWeightDecimals(S.wdec) }, [S.wdec])
|
||||
useEffect(() => { document.documentElement.lang = S.lang || 'en' }, [langV, S.lang])
|
||||
// `lang` on <html> drives hyphenation, font fallback and what a screen reader announces, so it
|
||||
// has to agree with the language actually rendered — including this fork's default.
|
||||
useEffect(() => { document.documentElement.lang = S.lang || 'es' }, [langV, S.lang])
|
||||
// Forward navigation starts at the top; going back lands where you left off.
|
||||
// The position is recorded from scroll events rather than read at route
|
||||
// change, because by then a shorter page may already have clamped it.
|
||||
|
||||
@@ -15,7 +15,7 @@ import { Button } from './ui.jsx'
|
||||
export default class ErrorBoundary extends Component {
|
||||
constructor(props) { super(props); this.state = { failed: false } }
|
||||
static getDerivedStateFromError() { return { failed: true } }
|
||||
componentDidCatch(err) { console.error('openGym render error:', err) }
|
||||
componentDidCatch(err) { console.error('KuentaGYM render error:', err) }
|
||||
|
||||
render() {
|
||||
if (!this.state.failed) return this.props.children
|
||||
@@ -27,7 +27,7 @@ export default class ErrorBoundary extends Component {
|
||||
<div style={{ fontWeight: 600, marginBottom: 6 }}>{t('Something went wrong')}</div>
|
||||
{t('This screen could not be drawn. Your data is safe on this device.')}
|
||||
</div>
|
||||
<Button variant="primary" icon="reset" onClick={() => location.reload()}>{t('Reload openGym')}</Button>
|
||||
<Button variant="primary" icon="reset" onClick={() => location.reload()}>{t('Reload KuentaGYM')}</Button>
|
||||
{active && <>
|
||||
<div style={{ height: 8 }} />
|
||||
<Button variant="danger" icon="trash" onClick={() => {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// openGym icon set — hand-drawn on a 24×24 grid, stroke-based, single weight.
|
||||
// KuentaGYM icon set — hand-drawn on a 24×24 grid, stroke-based, single weight.
|
||||
//
|
||||
// Everything is one <svg> primitive with `currentColor`, so an icon inherits the
|
||||
// text colour and optical size of whatever it sits in. No emoji anywhere in the
|
||||
|
||||
@@ -118,7 +118,7 @@ export default function Modals() {
|
||||
if (sheets.length > prev) {
|
||||
for (let i = prev; i < sheets.length; i++) {
|
||||
sheetEntries.current.push({ openedAt: location.href, live: true })
|
||||
history.pushState({ openGymSheet: true }, '')
|
||||
history.pushState({ KuentaGYMSheet: true }, '')
|
||||
pushedEntries.current++
|
||||
}
|
||||
} else if (sheets.length < prev) {
|
||||
|
||||
@@ -57,7 +57,7 @@ function installDom() {
|
||||
for (const key of ['HTMLElement', 'Node', 'Element', 'Event']) globalThis[key] = dom[key]
|
||||
globalThis.IS_REACT_ACT_ENVIRONMENT = true
|
||||
|
||||
locationMock = { href: 'https://opengym.test/#/workout' }
|
||||
locationMock = { href: 'https://kuentagym.test/#/workout' }
|
||||
historyMock = { pushState: vi.fn(), go: vi.fn() }
|
||||
Object.defineProperty(globalThis, 'location', { configurable: true, value: locationMock })
|
||||
Object.defineProperty(globalThis, 'history', { configurable: true, value: historyMock })
|
||||
@@ -147,7 +147,7 @@ describe('Modals sheet history accounting', () => {
|
||||
|
||||
it('accounts for a moved-on entry even when popstate has no current sheet', async () => {
|
||||
await setSheets([sheet('navigating')])
|
||||
locationMock.href = 'https://opengym.test/#/home'
|
||||
locationMock.href = 'https://kuentagym.test/#/home'
|
||||
await setSheets([])
|
||||
expect(historyMock.go).not.toHaveBeenCalled()
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// openGym control set.
|
||||
// KuentaGYM control set.
|
||||
//
|
||||
// Every input in the app is built here rather than styled on top of a native
|
||||
// widget. Native controls are the single loudest "unfinished" tell: a checkbox
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/* ============================================================================
|
||||
openGym — design system
|
||||
KuentaGYM — design system
|
||||
----------------------------------------------------------------------------
|
||||
Rebuilt around four rules, each aimed at a specific "generated" tell in the
|
||||
previous sheet:
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// @vitest-environment happy-dom
|
||||
// Issue #238: openGym behind a reverse proxy that serves it under a subpath. The assets were
|
||||
// Issue #238: KuentaGYM behind a reverse proxy that serves it under a subpath. The assets were
|
||||
// already relative; the API call was not, so it went to the proxy's own root where nothing
|
||||
// answers it. The base is read from where the app is being served.
|
||||
import { describe, it, expect } from 'vitest'
|
||||
|
||||
@@ -18,7 +18,7 @@ export function setRemoteAuth(base, token) { remoteBase = base || ''; remoteToke
|
||||
/* Where this copy of the app is served from, e.g. "/" or "/myGym/" (issue #238).
|
||||
*
|
||||
* The app routes behind the hash and its assets are relative (vite `base: './'`), so the only
|
||||
* thing that assumed the site root was the API call. A reverse proxy that puts openGym under a
|
||||
* thing that assumed the site root was the API call. A reverse proxy that puts KuentaGYM under a
|
||||
* subpath — and strips that prefix before the container sees it, which is what Caddy's
|
||||
* `handle_path` and its equivalents do — got `/api/...` at the proxy's own root, where there is
|
||||
* nothing to answer it.
|
||||
|
||||
@@ -103,7 +103,7 @@ function buildPlan(S, intake) {
|
||||
planHash: planHash(S),
|
||||
summary: t('A two-day rotation across three sessions a week, built around the equipment you listed. Compounds first, one pull for every press, and enough overlap between the days that nothing goes two weeks without being trained.'),
|
||||
bundle: {
|
||||
opengym_plan: 1, name: t('Coach plan'),
|
||||
kuentagym_plan: 1, name: t('Coach plan'),
|
||||
summary: t('A two-day rotation across three sessions a week, built around the equipment you listed. Compounds first, one pull for every press, and enough overlap between the days that nothing goes two weeks without being trained.'),
|
||||
basedOn: (S.workouts || []).length ? t('Based on the training already in this demo profile.') : t('No training history yet — starting conservatively.'),
|
||||
week, routines, customEx: []
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
// anything, and the promise there is that nothing AI-shaped loads until they do.
|
||||
import { readJsonFile, writeJsonFile } from './mobile.js'
|
||||
|
||||
const FILE = 'opengym-coach.json'
|
||||
const FILE = 'kuentagym-coach.json'
|
||||
|
||||
export const COACH_MODES = ['off', 'server', 'byok']
|
||||
|
||||
|
||||
@@ -48,7 +48,7 @@ export function insightsFor(S, win = {}, { topN = 3 } = {}) {
|
||||
const from = win.from || ws[0]?.d || null
|
||||
const to = win.to || ws[ws.length - 1]?.d || null
|
||||
const bw = (S.bodyweight || []).filter(b => b && b.d && (!from || b.d >= from) && (!to || b.d <= to))
|
||||
.map(b => ({ t: b.t || new Date(b.d + 'T12:00:00').getTime(), y: b.w, d: b.d }))
|
||||
.map(b => ({ t: new Date(b.d + 'T12:00:00').getTime(), y: b.w, d: b.d }))
|
||||
const bodyweight = {
|
||||
points: bw,
|
||||
delta: bw.length > 1 ? Math.round((bw[bw.length - 1].y - bw[0].y) * 10) / 10 : null,
|
||||
|
||||
@@ -167,7 +167,7 @@ describe('the Coach on a phone with its own key', () => {
|
||||
})
|
||||
|
||||
it('creates a plan from an intake, and refines it against the previous bundle', async () => {
|
||||
const plan = { coach_contract: 1, opengym_plan: 1, name: 'P', summary: 's', basedOn: 'b', week: { 1: 'r1', 3: 'r2', 5: 'r1' },
|
||||
const plan = { coach_contract: 1, kuentagym_plan: 1, name: 'P', summary: 's', basedOn: 'b', week: { 1: 'r1', 3: 'r2', 5: 'r1' },
|
||||
routines: [
|
||||
{ id: 'r1', name: 'A', emoji: '💪', why: 'w', ex: [{ id: EX, sets: 3, mode: 'reps', reps: 8, why: 'w' }, { id: EX2, sets: 3, mode: 'reps', reps: 10, why: 'w' }, { id: EXERCISES[2].id, sets: 3, mode: 'reps', reps: 10, why: 'w' }] },
|
||||
{ id: 'r2', name: 'B', emoji: '🏋️', why: 'w', ex: [{ id: EXERCISES[3].id, sets: 3, mode: 'reps', reps: 8, why: 'w' }, { id: EXERCISES[4].id, sets: 3, mode: 'reps', reps: 10, why: 'w' }, { id: EXERCISES[5].id, sets: 3, mode: 'reps', reps: 10, why: 'w' }] }
|
||||
|
||||
@@ -473,7 +473,7 @@ describe('created plans', () => {
|
||||
})
|
||||
|
||||
const bundle = {
|
||||
opengym_plan: 1, name: 'Coach plan', summary: 'three days',
|
||||
kuentagym_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' }] },
|
||||
@@ -601,7 +601,7 @@ describe('removing a routine takes its per-date reschedules with it', () => {
|
||||
|
||||
describe('what the log keeps, so a decision never makes a proposal vanish', () => {
|
||||
const plan = {
|
||||
opengym_plan: 1, name: 'Coach plan', summary: 'p', week: { 1: 'x1' },
|
||||
kuentagym_plan: 1, name: 'Coach plan', summary: 'p', week: { 1: 'x1' },
|
||||
routines: [{ id: 'x1', name: 'A', emoji: '💪', why: 'w', ex: [{ id: '0001', sets: 3, reps: 10, mode: 'reps', why: 'y'.repeat(300), secret: 1 }] }],
|
||||
customEx: []
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// Demo build (VITE_DEMO=1) — what runs on the GitHub Pages deployment.
|
||||
// Demo build (VITE_DEMO=1) — the app with example data and no backend, for a static host.
|
||||
//
|
||||
// Pages can only serve static files, so there is no API: passkey sign-in, per-profile sync
|
||||
// Static hosting can only serve files, so there is no API: passkey sign-in, per-profile sync
|
||||
// and the admin dashboard all need the Node backend and are simply not part of a demo build.
|
||||
// The app therefore stays in guest mode (everything in localStorage) and boots with a seeded
|
||||
// example history (demoSeed.js), so the charts, heatmap, streaks and "last time you lifted…"
|
||||
@@ -11,4 +11,8 @@
|
||||
// lands in a self-hosted bundle.
|
||||
export const DEMO = import.meta.env.VITE_DEMO === '1'
|
||||
export const DEMO_SEEDED = 'gym_demo_seeded_v1'
|
||||
export const REPO = 'https://gitlab.com/DuarteSantos8/opengym'
|
||||
// Where the "source code" / "Self-host it" links point. This fork is published on the same
|
||||
// Gitea instance that hosts the app; upstream (and its AGPL obligations) is credited in
|
||||
// NOTICE.md, so these links deliberately name the fork — the running modified version — and
|
||||
// not the project it came from.
|
||||
export const REPO = 'https://git.dploy.lol/dsantillan/kuentagym'
|
||||
@@ -154,6 +154,10 @@ export function buildDemoState() {
|
||||
dayPlan,
|
||||
workouts, bodyweight, exWeights,
|
||||
targetW: TARGET_W,
|
||||
// The numbers above are kilograms (see the weight table's header), so the seeded profile says
|
||||
// so instead of inheriting DEF.unit — which is pounds in this fork. Without this the demo
|
||||
// would introduce an 82.4 lb lifter benching 60.
|
||||
unit: 'kg',
|
||||
// The history is rated, so the demo turns the column on and the stats get a scale to
|
||||
// label their aggregates with instead of guessing one (see displayScale).
|
||||
effort: 'rir'
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// The demo build is the only openGym most people ever see, so its seeded history has to
|
||||
// The demo build is the only KuentaGYM most people ever see, so its seeded history has to
|
||||
// exercise the stats it is there to show off — including the effort card, which renders as
|
||||
// dashes on a history that is rated too thinly or not at all.
|
||||
import { describe, it, expect } from 'vitest'
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// AUTO-GENERATED by scripts/build-hevy-id-map.mjs — do not edit by hand.
|
||||
// Hevy exercise_template id → openGym catalogue id, plus English title → id for CSV exports
|
||||
// Hevy exercise_template id → KuentaGYM catalogue id, plus English title → id for CSV exports
|
||||
// (Hevy CSV has titles, not template ids). Regenerated from the Hevy templates API +
|
||||
// verified title aliases. Five title aliases whose catalogue match was wrong (crunch → weighted
|
||||
// crunch, side plank → hip adduction, machine squat → barbell squat, cable triceps extension and
|
||||
|
||||
@@ -53,6 +53,12 @@ export function derivePack(l, pack) {
|
||||
return walk(pack)
|
||||
}
|
||||
|
||||
// The language in force *before any locale pack is loaded*. It stays English — the source
|
||||
// language — deliberately, even though this fork's default (DEF.lang in store/useStore.js) is
|
||||
// Spanish: English is the one language whose strings need no pack, so `t()`, `dateLocale()` and
|
||||
// the number/list formatters all agree with each other in this state. Spanish takes over as soon
|
||||
// as App.jsx runs setLang(S.lang), which loads the pack with it. Starting here on 'es' would
|
||||
// format dates, numbers and lists Spanish-style while the strings were still English.
|
||||
let lang = 'en' // set only by _setLangState, called from i18n.js setLang
|
||||
let dict = {} // current locale pack (empty = English fallback)
|
||||
let instr = null // { exId: [steps] } for the current language, null = English
|
||||
@@ -96,9 +102,11 @@ export const exerciseNameSearchText = ex => {
|
||||
|
||||
// Called by i18n.js's setLang once the locale pack has been loaded — kept here rather than
|
||||
// exported as setLang because loading packs requires import.meta.glob, which is Vite-only.
|
||||
// `dict`, `instr` and `exerciseNames` may be null to reset to their English fallbacks.
|
||||
// `dict`, `instr` and `exerciseNames` may be null to reset to their English fallbacks. An
|
||||
// unrecognised code lands on this fork's default language rather than on English: it means "no
|
||||
// valid choice", and the app's answer to that is Spanish everywhere else too.
|
||||
export function _setLangState(newLang, newDict, newInstr, newExerciseNames) {
|
||||
lang = LANGS[newLang] ? newLang : 'en'
|
||||
lang = LANGS[newLang] ? newLang : 'es'
|
||||
dict = lang === 'en' ? {} : (newDict || {})
|
||||
instr = lang === 'en' || !INSTR_LANGS.includes(baseLang(lang)) ? null : (newInstr || null)
|
||||
exerciseNames = lang === 'en' || !EXERCISE_NAME_LANGS.includes(baseLang(lang))
|
||||
|
||||
@@ -26,7 +26,8 @@ const subs = new Set()
|
||||
const notify = () => { subs.forEach(f => f()) }
|
||||
|
||||
export async function setLang(l) {
|
||||
if (!LANGS[l]) l = 'en'
|
||||
// Unknown code → this fork's default language, the same answer `_setLangState` gives.
|
||||
if (!LANGS[l]) l = 'es'
|
||||
if (l === getLang() && getVersion() > 0) return
|
||||
// A derived locale (de-CH) ships no packs of its own: it loads its base language's and
|
||||
// transforms the strings on the way through. `l` stays the selected language throughout, so
|
||||
|
||||
@@ -363,7 +363,7 @@ const toKm = (v, unit) => num(v) * (KM[String(unit || 'km').toLowerCase().trim()
|
||||
/* --------------------------------------------------------------- parse ---- */
|
||||
|
||||
/**
|
||||
* Read an export into workouts openGym understands, WITHOUT touching state — the caller
|
||||
* Read an export into workouts KuentaGYM understands, WITHOUT touching state — the caller
|
||||
* shows the summary for confirmation first. Nothing here throws on a bad row: a history
|
||||
* of several thousand sets will contain oddities, and losing the file over one of them
|
||||
* helps nobody. Bad rows are counted and reported instead.
|
||||
|
||||
@@ -101,7 +101,7 @@ export async function fetchHevyAccount(apiKey, { onProgress } = {}) {
|
||||
|
||||
/* ---------------------------------------------------------- template → id -- */
|
||||
|
||||
// Hevy primary_muscle_group → openGym body-part for exercises we invent.
|
||||
// Hevy primary_muscle_group → KuentaGYM body-part for exercises we invent.
|
||||
const HEVY_BP = {
|
||||
biceps: 'upper arms', triceps: 'upper arms', forearms: 'lower arms',
|
||||
chest: 'chest', lats: 'back', upper_back: 'back', lower_back: 'back',
|
||||
@@ -292,7 +292,7 @@ export function parseHevyWorkouts(workouts, templates, { unit = 'kg' } = {}) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Hevy routine → openGym routine config.
|
||||
* Hevy routine → KuentaGYM routine config.
|
||||
* Work sets become `sets`×`reps`/`weight`; warm-ups become `warmupSets`;
|
||||
* supersets keep adjacency via `sg`. Always imported as *new* routines.
|
||||
*/
|
||||
@@ -302,7 +302,7 @@ export function parseHevyRoutines(routines, templates, { unit = 'kg' } = {}) {
|
||||
|
||||
for (const r of routines || []) {
|
||||
const ex = []
|
||||
const sgMap = new Map() // Hevy superset_id → openGym sg token
|
||||
const sgMap = new Map() // Hevy superset_id → KuentaGYM sg token
|
||||
|
||||
for (const he of r.exercises || []) {
|
||||
const id = R.resolve(he.exercise_template_id, he.title)
|
||||
|
||||
@@ -256,7 +256,7 @@ describe('parseHevyRoutines', () => {
|
||||
],
|
||||
}
|
||||
|
||||
it('builds openGym routine configs from Hevy sets', () => {
|
||||
it('builds KuentaGYM routine configs from Hevy sets', () => {
|
||||
const parsed = parseHevyRoutines([ROUTINE], TEMPLATES, { unit: 'kg' })
|
||||
expect(parsed.routines).toHaveLength(1)
|
||||
expect(parsed.routines[0].name).toBe('Oberkörper 2')
|
||||
|
||||
+30
-14
@@ -31,14 +31,26 @@ export async function isAndroid() {
|
||||
}
|
||||
}
|
||||
|
||||
const FILE = 'opengym-state.json'
|
||||
const FILE = 'kuentagym-state.json'
|
||||
|
||||
// What these two files were called before the openGym → KuentaGYM rename. They are read as a
|
||||
// fallback and then written forward under the new name, because on an already-installed phone
|
||||
// build they are the *only* copy of a training history whose WebView storage may have been
|
||||
// evicted (that is the whole reason this mirror exists) and of the device's pairing secret —
|
||||
// losing the latter silently disconnects the phone from the account it was paired to. One read
|
||||
// per launch, and only until the new file exists; the old ones are never deleted, since a
|
||||
// migration that removes its own fallback is one bad write away from losing the data it saved.
|
||||
const LEGACY_FILE = 'opengym-state.json'
|
||||
|
||||
export async function nativeLoad() {
|
||||
try {
|
||||
const { Filesystem, Directory, Encoding } = await import('@capacitor/filesystem')
|
||||
const r = await Filesystem.readFile({ path: FILE, directory: Directory.Data, encoding: Encoding.UTF8 })
|
||||
return JSON.parse(r.data)
|
||||
} catch (e) { return null } // first launch, or unreadable — localStorage copy takes over
|
||||
for (const path of [FILE, LEGACY_FILE]) {
|
||||
try {
|
||||
const { Filesystem, Directory, Encoding } = await import('@capacitor/filesystem')
|
||||
const r = await Filesystem.readFile({ path, directory: Directory.Data, encoding: Encoding.UTF8 })
|
||||
return JSON.parse(r.data)
|
||||
} catch (e) { /* missing or unreadable — try the next name, then let localStorage take over */ }
|
||||
}
|
||||
return null
|
||||
}
|
||||
|
||||
export async function nativeSave(state) {
|
||||
@@ -49,10 +61,11 @@ export async function nativeSave(state) {
|
||||
}
|
||||
|
||||
// "Connect to my server" mode (lib/remote.js): which of local-only / a paired remote account this
|
||||
// device chose, kept in its own file — never inside opengym-state.json, since that file's content
|
||||
// device chose, kept in its own file — never inside kuentagym-state.json, since that file's content
|
||||
// is exactly what pushState() PUTs to a server, and a device's own connection secret must never
|
||||
// travel as if it were training data.
|
||||
const REMOTE_FILE = 'opengym-remote.json'
|
||||
const REMOTE_FILE = 'kuentagym-remote.json'
|
||||
const LEGACY_REMOTE_FILE = 'opengym-remote.json' // see LEGACY_FILE above
|
||||
|
||||
// Small JSON files in the app's private data directory, for device facts that must not ride
|
||||
// in S (which syncs and exports): the pairing, and how the Coach runs on this phone.
|
||||
@@ -71,11 +84,14 @@ export async function writeJsonFile(name, data) {
|
||||
}
|
||||
|
||||
export async function loadRemoteFile() {
|
||||
try {
|
||||
const { Filesystem, Directory, Encoding } = await import('@capacitor/filesystem')
|
||||
const r = await Filesystem.readFile({ path: REMOTE_FILE, directory: Directory.Data, encoding: Encoding.UTF8 })
|
||||
return JSON.parse(r.data)
|
||||
} catch (e) { return null } // never decided yet
|
||||
for (const path of [REMOTE_FILE, LEGACY_REMOTE_FILE]) {
|
||||
try {
|
||||
const { Filesystem, Directory, Encoding } = await import('@capacitor/filesystem')
|
||||
const r = await Filesystem.readFile({ path, directory: Directory.Data, encoding: Encoding.UTF8 })
|
||||
return JSON.parse(r.data)
|
||||
} catch (e) { /* not this name — then: never decided yet */ }
|
||||
}
|
||||
return null
|
||||
}
|
||||
|
||||
export async function saveRemoteFile(data) {
|
||||
@@ -202,7 +218,7 @@ export async function writeAutoBackup(state) {
|
||||
try {
|
||||
const { Filesystem, Directory, Encoding } = await import('@capacitor/filesystem')
|
||||
await Filesystem.writeFile({
|
||||
path: `opengym-backup-${todayISO()}.json`,
|
||||
path: `kuentagym-backup-${todayISO()}.json`,
|
||||
directory: Directory.Documents,
|
||||
data: JSON.stringify(state),
|
||||
encoding: Encoding.UTF8,
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// Share a weekly plan.
|
||||
//
|
||||
// Two jobs:
|
||||
// 1. A small, self-contained file a friend can import into THEIR openGym — just the
|
||||
// 1. A small, self-contained file a friend can import into THEIR KuentaGYM — just the
|
||||
// routines + the week schedule + the custom exercises those routines use. It never
|
||||
// carries workouts, weigh-ins or settings, and importing MERGES (adds routines with
|
||||
// fresh ids) so nothing the friend already has is touched.
|
||||
@@ -24,7 +24,7 @@ const PLAN_UNITS = new Set(['kg', 'lb'])
|
||||
// A plan's numbers are in the unit that wrote it. Missing unit is deliberately legacy-compatible:
|
||||
// old files were read as already being in the recipient's unit, so keep their values unchanged.
|
||||
const planUnit = value => value === 'lbs' ? 'lb' : PLAN_UNITS.has(value) ? value : null
|
||||
const unitError = () => { throw new Error(t('this isn’t an openGym plan file')) }
|
||||
const unitError = () => { throw new Error(t('this isn’t a KuentaGYM plan file')) }
|
||||
|
||||
function declaredPlanUnit(data) {
|
||||
let declared = null
|
||||
@@ -179,7 +179,7 @@ export function buildPlanBundle(S, name) {
|
||||
// written after are read the same way at the other end.
|
||||
const week = {}
|
||||
WEEK_DAYS.forEach(d => { if (S.week?.[d]?.length) week[d] = [].concat(S.week[d]) })
|
||||
return { opengym_plan: PLAN_FMT, exported: todayISO(), name: name || '', unit, week, routines, customEx }
|
||||
return { kuentagym_plan: PLAN_FMT, exported: todayISO(), name: name || '', unit, week, routines, customEx }
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -194,8 +194,12 @@ export function buildPlanBundle(S, name) {
|
||||
export function parsePlan(raw, destinationUnit = 'kg') {
|
||||
const data = typeof raw === 'string' ? JSON.parse(raw) : raw
|
||||
const destination = planUnit(destinationUnit)
|
||||
if (!data || typeof data !== 'object' || Array.isArray(data) || !data.opengym_plan || !Array.isArray(data.routines) || !destination) {
|
||||
throw new Error(t('this isn’t an openGym plan file'))
|
||||
// `openGym_plan` is what this marker was called before the rename. A plan file exported by an
|
||||
// older build — or by upstream — is still a perfectly good plan, and refusing it would turn a
|
||||
// rebranding into "your friend's file is corrupt". New exports only ever write the new name.
|
||||
const marker = data && !Array.isArray(data) && (data.kuentagym_plan || data.openGym_plan)
|
||||
if (!data || typeof data !== 'object' || Array.isArray(data) || !marker || !Array.isArray(data.routines) || !destination) {
|
||||
throw new Error(t('this isn’t a KuentaGYM plan file'))
|
||||
}
|
||||
const sourceUnit = declaredPlanUnit(data)
|
||||
const customEx = (Array.isArray(data.customEx) ? data.customEx : []).filter(c => c && c.id)
|
||||
@@ -404,7 +408,7 @@ export function planPrintHTML(S, owner) {
|
||||
</style></head>
|
||||
<body><div class="doc">
|
||||
<header>
|
||||
<div class="kicker">openGym</div>
|
||||
<div class="kicker">KuentaGYM</div>
|
||||
<h1>${esc(t('Weekly Training Plan'))}</h1>
|
||||
${sub ? `<div class="sub">${sub}</div>` : ''}
|
||||
</header>
|
||||
@@ -412,7 +416,7 @@ export function planPrintHTML(S, owner) {
|
||||
${weekHTML(S)}
|
||||
<h3 class="block">${esc(t('Routines'))}</h3>
|
||||
${body}
|
||||
<footer>${esc(t('Made with openGym'))} · opengym.duarte-santos.ch</footer>
|
||||
<footer>${esc(t('Made with KuentaGYM'))} · gym.dploy.lol</footer>
|
||||
</div></body></html>`
|
||||
}
|
||||
|
||||
|
||||
@@ -39,7 +39,7 @@ describe('plan-share units', () => {
|
||||
|
||||
it('keeps valid legacy bundles without a unit in their destination-unit semantics', () => {
|
||||
const legacy = {
|
||||
opengym_plan: 1, name: 'Legacy', summary: 'old export',
|
||||
kuentagym_plan: 1, name: 'Legacy', summary: 'old export',
|
||||
week: { 1: 'r' }, customEx: [],
|
||||
routines: [{ id: 'r', name: 'Strength', ex: [{ id: '0025', sets: 3, reps: 5, weight: 60, inc: 2.5 }] }],
|
||||
}
|
||||
@@ -50,7 +50,7 @@ describe('plan-share units', () => {
|
||||
|
||||
it('accepts legacy root omissions and the older weightUnit marker', () => {
|
||||
const legacy = {
|
||||
opengym_plan: 1, weightUnit: 'lbs', legacyNote: 'kept as metadata',
|
||||
kuentagym_plan: 1, weightUnit: 'lbs', legacyNote: 'kept as metadata',
|
||||
routines: [{ id: 'r', name: 'Strength', ex: [{ id: '0025', sets: 3, reps: 5, weight: 135, inc: 10 }] }],
|
||||
}
|
||||
const parsed = parsePlan(legacy, 'kg')
|
||||
@@ -58,6 +58,23 @@ describe('plan-share units', () => {
|
||||
expect(parsed.week).toEqual({})
|
||||
expect(parsed.customEx).toEqual([])
|
||||
})
|
||||
|
||||
// The marker was called `openGym_plan` before the rename. A file someone exported then — or
|
||||
// that came from upstream — must still import: a rebranding is no reason to tell a friend
|
||||
// their plan file is corrupt. New exports keep writing `kuentagym_plan` only.
|
||||
it('still imports a plan file written under the old openGym_plan marker', () => {
|
||||
const old = {
|
||||
openGym_plan: 1, name: 'Old', unit: 'kg', week: {},
|
||||
routines: [{ id: 'r', name: 'Strength', ex: [{ id: '0025', sets: 3, reps: 5, weight: 60 }] }],
|
||||
customEx: [],
|
||||
}
|
||||
const parsed = parsePlan(old, 'kg')
|
||||
expect(parsed.name).toBe('Old')
|
||||
expect(parsed.routines[0].ex[0]).toMatchObject({ id: '0025', weight: 60 })
|
||||
// ...and an unmarked file is still refused, so this is a second accepted name and not a
|
||||
// dropped check.
|
||||
expect(() => parsePlan({ ...old, openGym_plan: undefined }, 'kg')).toThrow(/plan file/)
|
||||
})
|
||||
})
|
||||
|
||||
describe('what survives a shared plan', () => {
|
||||
@@ -124,14 +141,14 @@ describe('what survives a shared plan', () => {
|
||||
})
|
||||
|
||||
it('clamps a hand-edited warm-up count instead of showing it verbatim', () => {
|
||||
const bundle = { opengym_plan: 1, name: 'x', routines: [{ id: 'r', name: 'R', ex: [{ id: '0025', sets: 3, reps: 5, warmupSets: 999 }] }], week: {}, customEx: [] }
|
||||
const bundle = { kuentagym_plan: 1, name: 'x', routines: [{ id: 'r', name: 'R', ex: [{ id: '0025', sets: 3, reps: 5, warmupSets: 999 }] }], week: {}, customEx: [] }
|
||||
expect(parsePlan(bundle).routines[0].ex[0].warmupSets).toBe(5)
|
||||
})
|
||||
|
||||
// A plan file is someone else's data: a rest that arrives as a string would reach the timer's
|
||||
// arithmetic as one, and a negative or garbage one has no meaning to keep.
|
||||
it('normalises a hand-edited rest to a positive whole number or drops it', () => {
|
||||
const withRest = restSec => ({ opengym_plan: 1, name: 'x', routines: [{ id: 'r', name: 'R', ex: [{ id: '0025', sets: 3, reps: 5, restSec }] }], week: {}, customEx: [] })
|
||||
const withRest = restSec => ({ kuentagym_plan: 1, name: 'x', routines: [{ id: 'r', name: 'R', ex: [{ id: '0025', sets: 3, reps: 5, restSec }] }], week: {}, customEx: [] })
|
||||
expect(parsePlan(withRest('120')).routines[0].ex[0].restSec).toBe(120)
|
||||
expect(parsePlan(withRest(90.6)).routines[0].ex[0].restSec).toBe(91)
|
||||
expect('restSec' in parsePlan(withRest(-30)).routines[0].ex[0]).toBe(false)
|
||||
@@ -141,12 +158,12 @@ describe('what survives a shared plan', () => {
|
||||
// The floors are the config sheet's own (count >= 1, pct >= 5); a value that is present but
|
||||
// out of range is pulled up to the floor, while a missing one falls back to the default.
|
||||
it('clamps out-of-range intensifier numbers to the floors the app enforces', () => {
|
||||
const bundle = { opengym_plan: 1, name: 'x', routines: [{ id: 'r', name: 'R', ex: [{ id: '0025', sets: 3, reps: 5, intensifier: { type: 'dropset', count: 0, pct: -5 } }] }], week: {}, customEx: [] }
|
||||
const bundle = { kuentagym_plan: 1, name: 'x', routines: [{ id: 'r', name: 'R', ex: [{ id: '0025', sets: 3, reps: 5, intensifier: { type: 'dropset', count: 0, pct: -5 } }] }], week: {}, customEx: [] }
|
||||
expect(parsePlan(bundle).routines[0].ex[0].intensifier).toEqual({ type: 'dropset', count: 1, pct: 5 })
|
||||
})
|
||||
|
||||
it('falls back to the default drop percentage when the file omits it', () => {
|
||||
const bundle = { opengym_plan: 1, name: 'x', routines: [{ id: 'r', name: 'R', ex: [{ id: '0025', sets: 3, reps: 5, intensifier: { type: 'dropset' } }] }], week: {}, customEx: [] }
|
||||
const bundle = { kuentagym_plan: 1, name: 'x', routines: [{ id: 'r', name: 'R', ex: [{ id: '0025', sets: 3, reps: 5, intensifier: { type: 'dropset' } }] }], week: {}, customEx: [] }
|
||||
expect(parsePlan(bundle).routines[0].ex[0].intensifier).toEqual({ type: 'dropset', count: 1, pct: 20 })
|
||||
})
|
||||
})
|
||||
@@ -174,7 +191,7 @@ describe('week schedule as a routine-id list', () => {
|
||||
})
|
||||
|
||||
it('tolerates a legacy scalar bundle value', () => {
|
||||
const legacy = { opengym_plan: 1, name: 'x', customEx: [], week: { 1: 'a' }, routines: twoRoutines.routines }
|
||||
const legacy = { kuentagym_plan: 1, name: 'x', customEx: [], week: { 1: 'a' }, routines: twoRoutines.routines }
|
||||
const parsed = parsePlan(legacy)
|
||||
expect(parsed.scheduledDays).toBe(1)
|
||||
const target = { routines: [], week: {}, customEx: [] }
|
||||
@@ -192,7 +209,7 @@ describe('week schedule as a routine-id list', () => {
|
||||
})
|
||||
|
||||
it('scheduledDays counts a populated array day as 1 and a [] / absent day as 0', () => {
|
||||
expect(parsePlan({ opengym_plan: 1, routines: [], customEx: [], week: { 1: ['a'], 2: [], 4: 'b' } }).scheduledDays).toBe(2)
|
||||
expect(parsePlan({ kuentagym_plan: 1, routines: [], customEx: [], week: { 1: ['a'], 2: [], 4: 'b' } }).scheduledDays).toBe(2)
|
||||
})
|
||||
})
|
||||
|
||||
@@ -231,7 +248,7 @@ describe('custom exercises in a shared plan', () => {
|
||||
// A file written before the metadata travelled has only a name and a body part; it still imports,
|
||||
// and the recipient can now add the equipment and muscles themselves.
|
||||
it('keeps importing an old name-plus-body-part file, editable at the other end', () => {
|
||||
const legacy = { opengym_plan: 1, routines: [{ id: 'r', name: 'R', ex: [{ id: 'x', sets: 3, reps: 5 }] }], customEx: [{ id: 'x', n: 'Old one', bp: 'legs' }] }
|
||||
const legacy = { kuentagym_plan: 1, routines: [{ id: 'r', name: 'R', ex: [{ id: 'x', sets: 3, reps: 5 }] }], customEx: [{ id: 'x', n: 'Old one', bp: 'legs' }] }
|
||||
const target = { routines: [], week: {}, customEx: [] }
|
||||
mergePlan(target, parsePlan(legacy))
|
||||
expect(target.customEx[0]).toEqual({ id: target.customEx[0].id, n: 'Old one', bp: 'legs', custom: true })
|
||||
@@ -241,7 +258,7 @@ describe('custom exercises in a shared plan', () => {
|
||||
// A plan file is someone else's data: only muscles the map can draw are kept, and a muscle listed
|
||||
// as both primary and secondary counts once, as the form itself enforces.
|
||||
it('drops muscles it cannot draw and a secondary that repeats a primary', () => {
|
||||
const bundle = { opengym_plan: 1, routines: [], customEx: [{ id: 'x', n: 'Odd', bp: 'back', eq: 'barbell', primaries: ['upper-back', 'wings'], secondaries: ['upper-back', 'biceps', 7] }] }
|
||||
const bundle = { kuentagym_plan: 1, routines: [], customEx: [{ id: 'x', n: 'Odd', bp: 'back', eq: 'barbell', primaries: ['upper-back', 'wings'], secondaries: ['upper-back', 'biceps', 7] }] }
|
||||
const target = { routines: [], week: {}, customEx: [] }
|
||||
mergePlan(target, parsePlan(bundle))
|
||||
expect(target.customEx[0]).toMatchObject({ primaries: ['upper-back'], secondaries: ['biceps'], muscleGroups: ['upper-back', 'biceps'], tg: 'upper-back', sm: ['biceps'] })
|
||||
|
||||
@@ -31,7 +31,11 @@ describe('Brazilian Portuguese locale', () => {
|
||||
expect(inherited).toHaveLength(660)
|
||||
// If this fails, review the changed keys and wording before accepting a new hash. From
|
||||
// frontend/: node scripts/pt-br-inheritance-fingerprint.mjs --list
|
||||
expect(fingerprint, 'pt-PT inheritance changed; review the inherited pt-BR wording').toBe('a2027d64b3944dcef644b11b4d9688b88fe5cff0693acf04c73f0667e2b86825')
|
||||
// Reviewed once, for the openGym → KuentaGYM rename: 655 of the 660 inherited entries are
|
||||
// byte-identical to the previous snapshot and the 5 that moved are the branded strings
|
||||
// ("Feito com …", "Recarregar …", the rest-timer alert, the update prompt) plus the APK
|
||||
// download host. Nothing else in pt-PT was touched.
|
||||
expect(fingerprint, 'pt-PT inheritance changed; review the inherited pt-BR wording').toBe('d3b43d6c8a08b50ed8f8fa05c190f55bb692af32a9e19a75e2049404593f5129')
|
||||
})
|
||||
|
||||
test('does not leak European Portuguese UI terms', () => {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// Mobile build only: "connect to my server" mode (see mobile.js's header comment for why the
|
||||
// mobile flavor has no backend at all by default). This is the alternative — pairing the app to
|
||||
// an already self-hosted openGym server instead of keeping data device-local.
|
||||
// an already self-hosted KuentaGYM server instead of keeping data device-local.
|
||||
//
|
||||
// Passkeys can't be used from inside the app's own WebView (its origin never matches the
|
||||
// server's RP_ID), so auth here is a short one-time code redeemed from an already signed-in
|
||||
|
||||
+29
-18
@@ -1,14 +1,24 @@
|
||||
// Update check — compares the installed version (__APP_VERSION__) against
|
||||
// the latest release tag on GitLab and optionally downloads + installs the APK.
|
||||
// the latest release tag on the Gitea instance that hosts this fork, and optionally downloads
|
||||
// + installs the APK.
|
||||
//
|
||||
// The GitLab releases API is public for this project, so no token is needed.
|
||||
// This asked gitlab.com for the upstream project's releases. On a rebranded fork that is the
|
||||
// wrong question twice over: it would offer an update the moment upstream cut a release, and
|
||||
// the APK it then downloaded would be upstream's build — installing it would put the old name
|
||||
// back on the phone. Pointed at our own repository, the answer is about our own releases only.
|
||||
//
|
||||
// The Gitea releases API is public for a public repository, so no token is needed. Private
|
||||
// repositories answer 401 here, and the check fails visibly rather than silently.
|
||||
// On Android (Capacitor), the APK asset is downloaded to the cache directory
|
||||
// and handed to the system installer via a content:// URI.
|
||||
|
||||
import { MOBILE } from './mobile.js'
|
||||
import { REPO } from './demo.js'
|
||||
|
||||
const GITLAB_PROJECT_ID = 'DuarteSantos8%2Fopengym'
|
||||
const RELEASES_URL = `https://gitlab.com/api/v4/projects/${GITLAB_PROJECT_ID}/releases`
|
||||
// The API lives under /api/v1 on the same host as the web UI, while REPO is the browsable
|
||||
// repository URL (`lib/demo.js` holds that one — the "source code" links point at it too).
|
||||
const RELEASES_URL = 'https://git.dploy.lol/api/v1/repos/dsantillan/kuentagym/releases'
|
||||
export const RELEASES_PAGE = REPO + '/releases'
|
||||
|
||||
/**
|
||||
* Compares two semver strings (e.g. "1.2.11" vs "1.3.0").
|
||||
@@ -26,14 +36,14 @@ function compareSemver(a, b) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks the GitLab releases API for a newer version.
|
||||
* Checks the Gitea releases API for a newer version.
|
||||
* Returns { hasUpdate, latestVersion, apkUrl, hashUrl } or throws on network failure.
|
||||
* - hasUpdate: true if the latest release tag is newer than the running build
|
||||
* - latestVersion: the semver string of the latest release (without "v" prefix)
|
||||
* - apkUrl: direct download URL of the first .apk asset, or null
|
||||
* - hashUrl: direct download URL of the .apk.sha256 hash file, or null
|
||||
*/
|
||||
// One request per app session: Settings is opened often, gitlab.com does not need to hear
|
||||
// One request per app session: Settings is opened often, the forge does not need to hear
|
||||
// about it every time. The promise is cached, a failure is not.
|
||||
let cached = null
|
||||
export function resetUpdateCheck() { cached = null }
|
||||
@@ -42,8 +52,8 @@ export async function checkForUpdate() {
|
||||
return cached
|
||||
}
|
||||
async function fetchLatest() {
|
||||
const res = await fetch(RELEASES_URL + '?per_page=1')
|
||||
if (!res.ok) throw new Error(`GitLab API ${res.status}`)
|
||||
const res = await fetch(RELEASES_URL + '?limit=1')
|
||||
if (!res.ok) throw new Error(`Gitea API ${res.status}`)
|
||||
const releases = await res.json()
|
||||
if (!releases.length) return { hasUpdate: false, latestVersion: __APP_VERSION__, apkUrl: null, hashUrl: null }
|
||||
|
||||
@@ -51,16 +61,17 @@ async function fetchLatest() {
|
||||
const latestVersion = latest.tag_name.replace(/^v/, '')
|
||||
const hasUpdate = compareSemver(latestVersion, __APP_VERSION__) > 0
|
||||
|
||||
// Find the APK asset among the release links (generic package links) or assets.sources
|
||||
// Gitea lists a release's files as `assets`, each with a display `name` and a
|
||||
// `browser_download_url`. Assets are matched on the URL extension, never on `name`: the
|
||||
// checksum file is uploaded as `….apk.sha256` and would otherwise be handed to the installer.
|
||||
const assets = Array.isArray(latest.assets) ? latest.assets : []
|
||||
const urlOf = a => a.browser_download_url || a.url || ''
|
||||
let apkUrl = null
|
||||
let hashUrl = null
|
||||
if (latest.assets?.links?.length) {
|
||||
const apkLink = latest.assets.links.find(l => /\.apk$/i.test(l.url) || /\.apk$/i.test(l.direct_asset_url))
|
||||
if (apkLink) apkUrl = apkLink.direct_asset_url || apkLink.url
|
||||
// Look for a matching .sha256 hash file
|
||||
const hashLink = latest.assets.links.find(l => /\.apk\.sha256$/i.test(l.url) || /\.apk\.sha256$/i.test(l.direct_asset_url) || /sha256/i.test(l.name))
|
||||
if (hashLink) hashUrl = hashLink.direct_asset_url || hashLink.url
|
||||
}
|
||||
const apk = assets.find(a => /\.apk$/i.test(urlOf(a)))
|
||||
if (apk) apkUrl = urlOf(apk)
|
||||
const hash = assets.find(a => /\.apk\.sha256$/i.test(urlOf(a)))
|
||||
if (hash) hashUrl = urlOf(hash)
|
||||
|
||||
return { hasUpdate, latestVersion, apkUrl, hashUrl }
|
||||
}
|
||||
@@ -86,7 +97,7 @@ export async function sha256(buffer) {
|
||||
export async function downloadAndInstall(url, expectedHash = null, onProgress = null) {
|
||||
if (!MOBILE) {
|
||||
// On web, just open the release page
|
||||
window.open('https://gitlab.com/DuarteSantos8/opengym/-/releases', '_blank', 'noopener')
|
||||
window.open(RELEASES_PAGE, '_blank', 'noopener')
|
||||
return
|
||||
}
|
||||
|
||||
@@ -134,7 +145,7 @@ export async function downloadAndInstall(url, expectedHash = null, onProgress =
|
||||
reader.readAsDataURL(blob)
|
||||
})
|
||||
|
||||
const fileName = 'opengym-update.apk'
|
||||
const fileName = 'kuentagym-update.apk'
|
||||
await Filesystem.writeFile({
|
||||
path: fileName,
|
||||
directory: Directory.Cache,
|
||||
|
||||
+82
-107
@@ -40,7 +40,7 @@ describe('checkForUpdate', () => {
|
||||
}
|
||||
|
||||
it('reports no update when the latest release matches the current version', async () => {
|
||||
mockFetch([{ tag_name: 'v' + __APP_VERSION__, assets: { links: [] } }])
|
||||
mockFetch([{ tag_name: 'v' + __APP_VERSION__, assets: [] }])
|
||||
const result = await checkForUpdate()
|
||||
expect(result.hasUpdate).toBe(false)
|
||||
expect(result.latestVersion).toBe(__APP_VERSION__)
|
||||
@@ -49,167 +49,142 @@ describe('checkForUpdate', () => {
|
||||
})
|
||||
|
||||
it('reports no update when the latest release is older than current', async () => {
|
||||
mockFetch([{ tag_name: 'v0.0.1', assets: { links: [] } }])
|
||||
mockFetch([{ tag_name: 'v0.0.1', assets: [] }])
|
||||
const result = await checkForUpdate()
|
||||
expect(result.hasUpdate).toBe(false)
|
||||
expect(result.latestVersion).toBe('0.0.1')
|
||||
})
|
||||
|
||||
it('reports an update when the latest release is newer', async () => {
|
||||
mockFetch([{ tag_name: 'v99.0.0', assets: { links: [] } }])
|
||||
mockFetch([{ tag_name: 'v99.0.0', assets: [] }])
|
||||
const result = await checkForUpdate()
|
||||
expect(result.hasUpdate).toBe(true)
|
||||
expect(result.latestVersion).toBe('99.0.0')
|
||||
})
|
||||
|
||||
it('strips the v prefix from the tag name', async () => {
|
||||
mockFetch([{ tag_name: 'v99.1.2', assets: { links: [] } }])
|
||||
mockFetch([{ tag_name: 'v99.1.2', assets: [] }])
|
||||
const result = await checkForUpdate()
|
||||
expect(result.latestVersion).toBe('99.1.2')
|
||||
})
|
||||
|
||||
it('handles tag names without a v prefix', async () => {
|
||||
mockFetch([{ tag_name: '99.0.0', assets: { links: [] } }])
|
||||
mockFetch([{ tag_name: '99.0.0', assets: [] }])
|
||||
const result = await checkForUpdate()
|
||||
expect(result.hasUpdate).toBe(true)
|
||||
expect(result.latestVersion).toBe('99.0.0')
|
||||
})
|
||||
|
||||
it('finds the APK download URL from release asset links', async () => {
|
||||
const apkUrl = 'https://gitlab.com/project/-/releases/v2.0.0/downloads/opengym.apk'
|
||||
it('finds the APK download URL among the release assets', async () => {
|
||||
const apkUrl = 'https://git.dploy.lol/dsantillan/kuentagym/releases/download/v99.0.0/kuentagym-99.0.0.apk'
|
||||
mockFetch([{
|
||||
tag_name: 'v99.0.0',
|
||||
assets: { links: [{ url: apkUrl, direct_asset_url: apkUrl }] }
|
||||
assets: [{ name: 'kuentagym-99.0.0.apk', browser_download_url: apkUrl }]
|
||||
}])
|
||||
const result = await checkForUpdate()
|
||||
expect(result.apkUrl).toBe(apkUrl)
|
||||
})
|
||||
|
||||
it('prefers direct_asset_url over url for APK links', async () => {
|
||||
it('returns null apkUrl when no asset ends in .apk', async () => {
|
||||
mockFetch([{
|
||||
tag_name: 'v99.0.0',
|
||||
assets: {
|
||||
links: [{
|
||||
url: 'https://redirect.example/opengym.apk',
|
||||
direct_asset_url: 'https://direct.example/opengym.apk'
|
||||
}]
|
||||
}
|
||||
}])
|
||||
const result = await checkForUpdate()
|
||||
expect(result.apkUrl).toBe('https://direct.example/opengym.apk')
|
||||
})
|
||||
|
||||
it('returns null apkUrl when no .apk link exists', async () => {
|
||||
mockFetch([{
|
||||
tag_name: 'v99.0.0',
|
||||
assets: { links: [{ url: 'https://example.com/changelog.md', direct_asset_url: 'https://example.com/changelog.md' }] }
|
||||
assets: [{ name: 'changelog.md', browser_download_url: 'https://example.com/changelog.md' }]
|
||||
}])
|
||||
const result = await checkForUpdate()
|
||||
expect(result.hasUpdate).toBe(true)
|
||||
expect(result.apkUrl).toBe(null)
|
||||
})
|
||||
|
||||
it('finds the .sha256 hash URL from release asset links', async () => {
|
||||
const hashUrl = 'https://gitlab.com/project/-/releases/v2.0.0/downloads/opengym.apk.sha256'
|
||||
it('finds the .sha256 checksum uploaded beside the APK', async () => {
|
||||
const apkUrl = 'https://example.com/kuentagym-99.0.0.apk'
|
||||
const hashUrl = 'https://example.com/kuentagym-99.0.0.apk.sha256'
|
||||
mockFetch([{
|
||||
tag_name: 'v99.0.0',
|
||||
assets: {
|
||||
links: [
|
||||
{ url: 'https://example.com/opengym.apk', direct_asset_url: 'https://example.com/opengym.apk' },
|
||||
{ url: hashUrl, direct_asset_url: hashUrl },
|
||||
]
|
||||
}
|
||||
assets: [
|
||||
{ name: 'kuentagym-99.0.0.apk', browser_download_url: apkUrl },
|
||||
{ name: 'kuentagym-99.0.0.apk.sha256', browser_download_url: hashUrl },
|
||||
]
|
||||
}])
|
||||
const result = await checkForUpdate()
|
||||
expect(result.apkUrl).toBe(apkUrl)
|
||||
expect(result.hashUrl).toBe(hashUrl)
|
||||
})
|
||||
|
||||
it('finds hash URL by link name containing sha256', async () => {
|
||||
// The checksum is uploaded first, so it arrives first: matching on the suffix rather than on
|
||||
// the position (or on a name that merely contains "sha256") is what keeps the installer from
|
||||
// being handed a file of hashes.
|
||||
it('picks the APK even when the checksum asset is listed before it', async () => {
|
||||
const apkUrl = 'https://example.com/kuentagym-99.0.0.apk'
|
||||
mockFetch([{
|
||||
tag_name: 'v99.0.0',
|
||||
assets: {
|
||||
links: [
|
||||
{ name: 'APK', url: 'https://example.com/opengym.apk', direct_asset_url: 'https://example.com/opengym.apk' },
|
||||
{ name: 'SHA256 checksum', url: 'https://example.com/checksum.txt', direct_asset_url: 'https://example.com/checksum.txt' },
|
||||
]
|
||||
}
|
||||
assets: [
|
||||
{ name: 'kuentagym-99.0.0.apk.sha256', browser_download_url: apkUrl + '.sha256' },
|
||||
{ name: 'kuentagym-99.0.0.apk', browser_download_url: apkUrl },
|
||||
]
|
||||
}])
|
||||
const result = await checkForUpdate()
|
||||
expect(result.hashUrl).toBe('https://example.com/checksum.txt')
|
||||
expect(result.apkUrl).toBe(apkUrl)
|
||||
})
|
||||
|
||||
// The exact JSON gitlab.com returns for GET /projects/85678327/releases?per_page=1 (v1.3.1,
|
||||
// fetched 2026-09-05, description and commit trimmed). The CI publishes the APK and its
|
||||
// checksum as generic-package links, and the checksum link is listed BEFORE the APK — the
|
||||
// detection must not confuse the two.
|
||||
const REAL_RELEASE = [
|
||||
{
|
||||
"tag_name": "v1.3.1",
|
||||
"name": "openGym v1.3.1",
|
||||
"assets": {
|
||||
"count": 7,
|
||||
"sources": [
|
||||
{
|
||||
"format": "zip",
|
||||
"url": "https://gitlab.com/DuarteSantos8/opengym/-/archive/v1.3.1/opengym-v1.3.1.zip"
|
||||
},
|
||||
{
|
||||
"format": "tar.gz",
|
||||
"url": "https://gitlab.com/DuarteSantos8/opengym/-/archive/v1.3.1/opengym-v1.3.1.tar.gz"
|
||||
},
|
||||
{
|
||||
"format": "tar.bz2",
|
||||
"url": "https://gitlab.com/DuarteSantos8/opengym/-/archive/v1.3.1/opengym-v1.3.1.tar.bz2"
|
||||
},
|
||||
{
|
||||
"format": "tar",
|
||||
"url": "https://gitlab.com/DuarteSantos8/opengym/-/archive/v1.3.1/opengym-v1.3.1.tar"
|
||||
}
|
||||
],
|
||||
"links": [
|
||||
{
|
||||
"id": 12790840,
|
||||
"name": "Container images (api + web)",
|
||||
"url": "https://gitlab.com/DuarteSantos8/opengym/container_registry",
|
||||
"direct_asset_url": "https://gitlab.com/DuarteSantos8/opengym/container_registry",
|
||||
"link_type": "image"
|
||||
},
|
||||
{
|
||||
"id": 12790839,
|
||||
"name": "openGym-1.3.1.apk.sha256 (checksum)",
|
||||
"url": "https://gitlab.com/api/v4/projects/85678327/packages/generic/opengym-android/1.3.1/openGym-1.3.1.apk.sha256",
|
||||
"direct_asset_url": "https://gitlab.com/api/v4/projects/85678327/packages/generic/opengym-android/1.3.1/openGym-1.3.1.apk.sha256",
|
||||
"link_type": "other"
|
||||
},
|
||||
{
|
||||
"id": 12790838,
|
||||
"name": "openGym-1.3.1.apk (Android, sideload)",
|
||||
"url": "https://gitlab.com/api/v4/projects/85678327/packages/generic/opengym-android/1.3.1/openGym-1.3.1.apk",
|
||||
"direct_asset_url": "https://gitlab.com/api/v4/projects/85678327/packages/generic/opengym-android/1.3.1/openGym-1.3.1.apk",
|
||||
"link_type": "package"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
|
||||
it('finds the APK and its checksum in a real gitlab.com release payload', async () => {
|
||||
mockFetch(REAL_RELEASE)
|
||||
const result = await checkForUpdate()
|
||||
expect(result.latestVersion).toBe('1.3.1')
|
||||
expect(result.apkUrl).toBe('https://gitlab.com/api/v4/projects/85678327/packages/generic/opengym-android/1.3.1/openGym-1.3.1.apk')
|
||||
expect(result.hashUrl).toBe('https://gitlab.com/api/v4/projects/85678327/packages/generic/opengym-android/1.3.1/openGym-1.3.1.apk.sha256')
|
||||
})
|
||||
|
||||
it('returns null hashUrl when no hash link exists', async () => {
|
||||
it('returns null hashUrl when the release carries no checksum', async () => {
|
||||
mockFetch([{
|
||||
tag_name: 'v99.0.0',
|
||||
assets: { links: [{ url: 'https://example.com/opengym.apk', direct_asset_url: 'https://example.com/opengym.apk' }] }
|
||||
assets: [{ name: 'kuentagym-99.0.0.apk', browser_download_url: 'https://example.com/kuentagym-99.0.0.apk' }]
|
||||
}])
|
||||
const result = await checkForUpdate()
|
||||
expect(result.hashUrl).toBe(null)
|
||||
})
|
||||
|
||||
it('ignores a checksum whose URL is not a .sha256 next to the APK', async () => {
|
||||
mockFetch([{
|
||||
tag_name: 'v99.0.0',
|
||||
assets: [
|
||||
{ name: 'kuentagym-99.0.0.apk', browser_download_url: 'https://example.com/kuentagym-99.0.0.apk' },
|
||||
{ name: 'SHA256 checksum', browser_download_url: 'https://example.com/checksum.txt' },
|
||||
]
|
||||
}])
|
||||
const result = await checkForUpdate()
|
||||
expect(result.hashUrl).toBe(null)
|
||||
})
|
||||
|
||||
// A real Gitea release payload (GET /api/v1/repos/{owner}/{repo}/releases?limit=1), trimmed to
|
||||
// the fields the check reads. `assets` is a flat array here — not GitLab's `assets.links` —
|
||||
// and `browser_download_url` is the only URL an asset carries.
|
||||
const REAL_RELEASE = [
|
||||
{
|
||||
"id": 7,
|
||||
"tag_name": "v1.3.1",
|
||||
"name": "KuentaGYM v1.3.1",
|
||||
"draft": false,
|
||||
"prerelease": false,
|
||||
"assets": [
|
||||
{
|
||||
"id": 21,
|
||||
"name": "kuentagym-1.3.1.apk.sha256",
|
||||
"size": 74,
|
||||
"download_count": 0,
|
||||
"browser_download_url": "https://git.dploy.lol/dsantillan/kuentagym/releases/download/v1.3.1/kuentagym-1.3.1.apk.sha256"
|
||||
},
|
||||
{
|
||||
"id": 20,
|
||||
"name": "kuentagym-1.3.1.apk",
|
||||
"size": 4123456,
|
||||
"download_count": 3,
|
||||
"browser_download_url": "https://git.dploy.lol/dsantillan/kuentagym/releases/download/v1.3.1/kuentagym-1.3.1.apk"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
|
||||
it('finds the APK and its checksum in a real gitea release payload', async () => {
|
||||
mockFetch(REAL_RELEASE)
|
||||
const result = await checkForUpdate()
|
||||
expect(result.latestVersion).toBe('1.3.1')
|
||||
expect(result.apkUrl).toBe('https://git.dploy.lol/dsantillan/kuentagym/releases/download/v1.3.1/kuentagym-1.3.1.apk')
|
||||
expect(result.hashUrl).toBe('https://git.dploy.lol/dsantillan/kuentagym/releases/download/v1.3.1/kuentagym-1.3.1.apk.sha256')
|
||||
})
|
||||
|
||||
|
||||
it('returns no update when the releases array is empty', async () => {
|
||||
mockFetch([])
|
||||
const result = await checkForUpdate()
|
||||
@@ -220,7 +195,7 @@ describe('checkForUpdate', () => {
|
||||
|
||||
it('throws when the API responds with an error status', async () => {
|
||||
mockFetch(null, 500)
|
||||
await expect(checkForUpdate()).rejects.toThrow('GitLab API 500')
|
||||
await expect(checkForUpdate()).rejects.toThrow('Gitea API 500')
|
||||
})
|
||||
|
||||
it('throws on network failure', async () => {
|
||||
@@ -237,7 +212,7 @@ describe('semver comparison (via checkForUpdate behavior)', () => {
|
||||
function mockRelease(tag) {
|
||||
globalThis.fetch = vi.fn(() => Promise.resolve({
|
||||
ok: true, status: 200,
|
||||
json: () => Promise.resolve([{ tag_name: tag, assets: { links: [] } }]),
|
||||
json: () => Promise.resolve([{ tag_name: tag, assets: [] }]),
|
||||
}))
|
||||
}
|
||||
|
||||
|
||||
+18
-18
@@ -300,7 +300,7 @@ export default {
|
||||
'Your workouts. Your weights. Your profile.': 'Deine Trainings. Deine Gewichte. Dein Profil.',
|
||||
'Sign in with passkey': 'Mit Passkey anmelden',
|
||||
'Create new profile': 'Neues Profil erstellen',
|
||||
"This browser doesn't support passkeys — you can still use openGym locally on this device.": 'Dieser Browser unterstützt keine Passkeys — du kannst openGym trotzdem lokal auf diesem Gerät nutzen.',
|
||||
"This browser doesn't support passkeys — you can still use KuentaGYM locally on this device.": 'Dieser Browser unterstützt keine Passkeys — du kannst KuentaGYM trotzdem lokal auf diesem Gerät nutzen.',
|
||||
"This browser doesn't support passkeys, and this instance requires an account. Try a browser or device with passkey support.": 'Dieser Browser unterstützt keine Passkeys, und dieser Server verlangt ein Konto. Probier einen Browser oder ein Gerät mit Passkey-Unterstützung.',
|
||||
'Continue without account': 'Ohne Konto fortfahren',
|
||||
'Passkeys use {0} — no passwords.': 'Passkeys nutzen {0} — keine Passwörter.',
|
||||
@@ -367,14 +367,14 @@ export default {
|
||||
'Tip': 'Tipp',
|
||||
'In Chrome: ⋮ menu → Add to Home screen': 'In Chrome: ⋮-Menü → Zum Startbildschirm hinzufügen',
|
||||
'In Safari: Share → Add to Home Screen': 'In Safari: Teilen → Zum Home-Bildschirm',
|
||||
'to install openGym as a full-screen app.': 'um openGym als Vollbild-App zu installieren.',
|
||||
'to install KuentaGYM as a full-screen app.': 'um KuentaGYM als Vollbild-App zu installieren.',
|
||||
'Your data syncs with your profile — sign in anywhere to see it.': 'Deine Daten synchronisieren mit deinem Profil — melde dich überall an, um sie zu sehen.',
|
||||
'Guest data stays on this device — export a backup now and then!': 'Gastdaten bleiben auf diesem Gerät — exportiere ab und zu ein Backup!',
|
||||
'free & open source (AGPL v3)': 'kostenlos & Open Source (AGPL v3)',
|
||||
'Notifications': 'Benachrichtigungen',
|
||||
'Not supported in this browser.': 'In diesem Browser nicht unterstützt.',
|
||||
'Push notifications': 'Push-Benachrichtigungen',
|
||||
'Rest-timer alerts, even if openGym is closed.': 'Pausen-Timer-Alarm, auch wenn openGym geschlossen ist.',
|
||||
'Rest-timer alerts, even if KuentaGYM is closed.': 'Pausen-Timer-Alarm, auch wenn KuentaGYM geschlossen ist.',
|
||||
'Workout day reminder': 'Trainingstag-Erinnerung',
|
||||
'Reminder time': 'Erinnerungszeit',
|
||||
"Only sent on days you have a routine planned and haven't logged a workout yet.": 'Wird nur an Tagen gesendet, an denen ein Training geplant und noch keins eingetragen ist.',
|
||||
@@ -567,7 +567,7 @@ export default {
|
||||
'Share your plan': 'Plan teilen',
|
||||
'Send your routines to a friend, or put your week on paper.': 'Schick deine Routinen an einen Freund oder bring deine Woche zu Papier.',
|
||||
'Export plan file': 'Plandatei exportieren',
|
||||
'A small file a friend imports into their own openGym — routines only, none of your workouts or weigh-ins.': 'Eine kleine Datei, die ein Freund in sein eigenes openGym importiert — nur Routinen, keine Workouts oder Wiegungen.',
|
||||
'A small file a friend imports into their own KuentaGYM — routines only, none of your workouts or weigh-ins.': 'Eine kleine Datei, die ein Freund in sein eigenes KuentaGYM importiert — nur Routinen, keine Workouts oder Wiegungen.',
|
||||
'Print / Save as PDF': 'Drucken / Als PDF speichern',
|
||||
'A clean one-page-per-plan printout — no exercise ever splits across a page.': 'Ein sauberer Ausdruck, eine Seite pro Plan — keine Übung wird je über eine Seite getrennt.',
|
||||
'Add an exercise to a routine first — an empty plan has nothing to share.': 'Füge zuerst eine Übung zu einer Routine hinzu — ein leerer Plan hat nichts zu teilen.',
|
||||
@@ -588,14 +588,14 @@ export default {
|
||||
'Replaces your current Mon–Sun assignments.': 'Ersetzt deine aktuelle Mo–So-Belegung.',
|
||||
'Added {0} routine to your plan': '{0} Routine zu deinem Plan hinzugefügt',
|
||||
'Added {0} routines to your plan': '{0} Routinen zu deinem Plan hinzugefügt',
|
||||
'this isn’t an openGym plan file': 'das ist keine openGym-Plandatei',
|
||||
'this isn’t a KuentaGYM plan file': 'das ist keine KuentaGYM-Plandatei',
|
||||
'Shared routine': 'Geteilte Routine',
|
||||
'Unknown exercise': 'Unbekannte Übung',
|
||||
'Weekly Training Plan': 'Wochen-Trainingsplan',
|
||||
'Made with openGym': 'Erstellt mit openGym',
|
||||
'Made with KuentaGYM': 'Erstellt mit KuentaGYM',
|
||||
'Something went wrong': 'Etwas ist schiefgelaufen',
|
||||
'This screen could not be drawn. Your data is safe on this device.': 'Dieser Bildschirm konnte nicht dargestellt werden. Deine Daten auf diesem Gerät sind sicher.',
|
||||
'Reload openGym': 'openGym neu laden',
|
||||
'Reload KuentaGYM': 'KuentaGYM neu laden',
|
||||
'Discard the running workout': 'Laufendes Training verwerfen',
|
||||
|
||||
// --- v1.2.2: timed sets, progression, estimated 1RM (#16 #17 #18) ---
|
||||
@@ -895,28 +895,28 @@ export default {
|
||||
|
||||
// "Connect to my server" (mobile app pairing)
|
||||
'Your server': 'Dein Server',
|
||||
'Synced with your openGym server.': 'Mit deinem openGym-Server synchronisiert.',
|
||||
'Synced with your KuentaGYM server.': 'Mit deinem KuentaGYM-Server synchronisiert.',
|
||||
'Disconnect': 'Trennen',
|
||||
'Disconnect from your server?': 'Verbindung zum Server trennen?',
|
||||
'Your data is synced to your server first, then this device switches back to local-only.': 'Deine Daten werden zuerst mit deinem Server synchronisiert, dann wechselt dieses Gerät zurück in den lokalen Modus.',
|
||||
'Disconnected — back to local-only': 'Verbindung getrennt — zurück im lokalen Modus',
|
||||
'Connect to my server': 'Mit meinem Server verbinden',
|
||||
'Sync this device to your own self-hosted openGym instead.': 'Dieses Gerät stattdessen mit deinem eigenen self-hosted openGym synchronisieren.',
|
||||
'Sync this device to your own self-hosted KuentaGYM instead.': 'Dieses Gerät stattdessen mit deinem eigenen self-hosted KuentaGYM synchronisieren.',
|
||||
'Pair the mobile app': 'Mobile App koppeln',
|
||||
'Connect the openGym app on your phone to this account.': 'Verbinde die openGym-App auf deinem Handy mit diesem Konto.',
|
||||
'Connect the KuentaGYM app on your phone to this account.': 'Verbinde die KuentaGYM-App auf deinem Handy mit diesem Konto.',
|
||||
'Could not generate a code': 'Code konnte nicht erstellt werden',
|
||||
'On the openGym app, choose “Connect to my server”, then enter this address and the code below. It expires in 5 minutes.': 'Wähle in der openGym-App „Mit meinem Server verbinden“, gib dann diese Adresse und den Code unten ein. Er läuft in 5 Minuten ab.',
|
||||
'On the KuentaGYM app, choose “Connect to my server”, then enter this address and the code below. It expires in 5 minutes.': 'Wähle in der KuentaGYM-App „Mit meinem Server verbinden“, gib dann diese Adresse und den Code unten ein. Er läuft in 5 Minuten ab.',
|
||||
'Enter your server address and the code': 'Serveradresse und Code eingeben',
|
||||
'Connected': 'Verbunden',
|
||||
'Could not connect': 'Verbindung fehlgeschlagen',
|
||||
'Open Settings → “Pair the mobile app” on the openGym site you’re already signed into, then enter its address and the code shown there.': 'Öffne auf der openGym-Seite, bei der du bereits angemeldet bist, Einstellungen → „Mobile App koppeln“, und gib dann deren Adresse und den dort angezeigten Code ein.',
|
||||
'Open Settings → “Pair the mobile app” on the KuentaGYM site you’re already signed into, then enter its address and the code shown there.': 'Öffne auf der KuentaGYM-Seite, bei der du bereits angemeldet bist, Einstellungen → „Mobile App koppeln“, und gib dann deren Adresse und den dort angezeigten Code ein.',
|
||||
'Server address (e.g. gym.example.com)': 'Serveradresse (z. B. gym.example.com)',
|
||||
'Pairing code': 'Kopplungscode',
|
||||
'Connecting…': 'Verbinde …',
|
||||
'Connect': 'Verbinden',
|
||||
'How do you want to use openGym?': 'Wie möchtest du openGym nutzen?',
|
||||
'How do you want to use KuentaGYM?': 'Wie möchtest du KuentaGYM nutzen?',
|
||||
'Use on this device': 'Auf diesem Gerät nutzen',
|
||||
'Local keeps everything on this phone. Connecting syncs to your own openGym server instead — you can switch later in Settings.': 'Lokal behält alles auf diesem Handy. Verbinden synchronisiert stattdessen mit deinem eigenen openGym-Server — du kannst das später in den Einstellungen ändern.',
|
||||
'Local keeps everything on this phone. Connecting syncs to your own KuentaGYM server instead — you can switch later in Settings.': 'Lokal behält alles auf diesem Handy. Verbinden synchronisiert stattdessen mit deinem eigenen KuentaGYM-Server — du kannst das später in den Einstellungen ändern.',
|
||||
|
||||
// --- workout notes and planned warm-ups ---
|
||||
'{0} — done': '{0} — erledigt',
|
||||
@@ -958,7 +958,7 @@ export default {
|
||||
'Pick a model': 'Modell wählen',
|
||||
'Provider': 'Anbieter',
|
||||
'Runs on this phone with your own API key': 'Läuft auf diesem Handy mit deinem eigenen API-Schlüssel',
|
||||
'Runs on your openGym server': 'Läuft auf deinem openGym-Server',
|
||||
'Runs on your KuentaGYM server': 'Läuft auf deinem KuentaGYM-Server',
|
||||
'Save and use the Coach': 'Speichern und Coach nutzen',
|
||||
'The Coach is already thinking about your training.': 'Der Coach denkt schon über dein Training nach.',
|
||||
'The Coach is resting — you have used today’s {0} runs on this phone.': 'Der Coach pausiert — du hast die {0} Läufe für heute auf diesem Handy aufgebraucht.',
|
||||
@@ -967,7 +967,7 @@ export default {
|
||||
'The key is stored in this phone’s secure storage and never leaves it except to call the provider.': 'Der Schlüssel liegt im sicheren Speicher dieses Handys und verlässt es nur, um den Anbieter aufzurufen.',
|
||||
'This phone calls the provider directly with your key. Every request is charged to your account.': 'Dieses Handy ruft den Anbieter direkt mit deinem Schlüssel auf. Jede Anfrage geht auf dein Konto.',
|
||||
'Turn the Coach off on this phone': 'Coach auf diesem Handy ausschalten',
|
||||
'Use my self-hosted openGym': 'Mein selbst gehostetes openGym nutzen',
|
||||
'Use my self-hosted KuentaGYM': 'Mein selbst gehostetes KuentaGYM nutzen',
|
||||
'What leaves this phone': 'Was dieses Handy verlässt',
|
||||
'When you ask for a plan or a review, this phone sends the following straight to {0}, using your own API key. You pay for every request.': 'Wenn du einen Plan oder eine Auswertung anforderst, schickt dieses Handy Folgendes direkt an {0}, mit deinem eigenen API-Schlüssel. Du bezahlst jede Anfrage.',
|
||||
'Your server has no Coach enabled — ask its admin, or bring your own key below.': 'Auf deinem Server ist kein Coach aktiviert — frag den Admin, oder nutze unten deinen eigenen Schlüssel.',
|
||||
@@ -1236,11 +1236,11 @@ export default {
|
||||
'Check for updates': 'Nach Updates suchen',
|
||||
'Checking…': 'Wird geprüft…',
|
||||
'You have v{0}': 'Du hast v{0}',
|
||||
'Update to openGym v{0}': 'Auf openGym v{0} aktualisieren',
|
||||
'Update to KuentaGYM v{0}': 'Auf KuentaGYM v{0} aktualisieren',
|
||||
'You have the latest version.': 'Du hast die neueste Version.',
|
||||
'Could not check for updates — are you online?': 'Update-Prüfung fehlgeschlagen — bist du online?',
|
||||
'Get the Android app': 'Android-App holen',
|
||||
'Download the APK from opengym.duarte-santos.ch': 'APK von opengym.duarte-santos.ch laden',
|
||||
'Download the APK from gym.dploy.lol': 'APK von gym.dploy.lol laden',
|
||||
'Releases are checked on gitlab.com. The download is verified against its checksum before the installer opens.': 'Releases werden auf gitlab.com geprüft. Der Download wird vor dem Öffnen des Installers gegen seine Prüfsumme verifiziert.',
|
||||
'The web app updates together with your server. The Android app installs its own updates from here.': 'Die Web-App aktualisiert sich mit deinem Server. Die Android-App installiert ihre Updates von hier aus.',
|
||||
'Starting download…': 'Download wird gestartet…',
|
||||
|
||||
+18
-18
@@ -286,7 +286,7 @@ export default {
|
||||
'Your workouts. Your weights. Your profile.': 'Tus entrenamientos. Tus pesos. Tu perfil.',
|
||||
'Sign in with passkey': 'Iniciar sesión con passkey',
|
||||
'Create new profile': 'Crear perfil nuevo',
|
||||
"This browser doesn't support passkeys — you can still use openGym locally on this device.": 'Este navegador no admite passkeys — aun así puedes usar openGym localmente en este dispositivo.',
|
||||
"This browser doesn't support passkeys — you can still use KuentaGYM locally on this device.": 'Este navegador no admite passkeys — aun así puedes usar KuentaGYM localmente en este dispositivo.',
|
||||
"This browser doesn't support passkeys, and this instance requires an account. Try a browser or device with passkey support.": 'Este navegador no admite passkeys y este servidor requiere una cuenta. Prueba con un navegador o dispositivo compatible con passkeys.',
|
||||
'Continue without account': 'Continuar sin cuenta',
|
||||
'Passkeys use {0} — no passwords.': 'Las passkeys usan {0} — sin contraseñas.',
|
||||
@@ -352,14 +352,14 @@ export default {
|
||||
'Tip': 'Consejo',
|
||||
'In Chrome: ⋮ menu → Add to Home screen': 'En Chrome: menú ⋮ → Añadir a pantalla de inicio',
|
||||
'In Safari: Share → Add to Home Screen': 'En Safari: Compartir → Añadir a pantalla de inicio',
|
||||
'to install openGym as a full-screen app.': 'para instalar openGym como app a pantalla completa.',
|
||||
'to install KuentaGYM as a full-screen app.': 'para instalar KuentaGYM como app a pantalla completa.',
|
||||
'Your data syncs with your profile — sign in anywhere to see it.': 'Tus datos se sincronizan con tu perfil — inicia sesión donde sea para verlos.',
|
||||
'Guest data stays on this device — export a backup now and then!': 'Los datos de invitado se quedan en este dispositivo — ¡exporta una copia de vez en cuando!',
|
||||
'free & open source (AGPL v3)': 'gratis y de código abierto (AGPL v3)',
|
||||
'Notifications': 'Notificaciones',
|
||||
'Not supported in this browser.': 'No compatible con este navegador.',
|
||||
'Push notifications': 'Notificaciones push',
|
||||
'Rest-timer alerts, even if openGym is closed.': 'Avisos del temporizador de descanso, incluso con openGym cerrado.',
|
||||
'Rest-timer alerts, even if KuentaGYM is closed.': 'Avisos del temporizador de descanso, incluso con KuentaGYM cerrado.',
|
||||
'Workout day reminder': 'Recordatorio de día de entrenamiento',
|
||||
'Reminder time': 'Hora del recordatorio',
|
||||
"Only sent on days you have a routine planned and haven't logged a workout yet.": 'Solo se envía los días con rutina planificada y sin entrenamiento registrado.',
|
||||
@@ -548,7 +548,7 @@ export default {
|
||||
'Share your plan': 'Comparte tu plan',
|
||||
'Send your routines to a friend, or put your week on paper.': 'Envía tus rutinas a un amigo o pon tu semana en papel.',
|
||||
'Export plan file': 'Exportar archivo del plan',
|
||||
'A small file a friend imports into their own openGym — routines only, none of your workouts or weigh-ins.': 'Un archivo pequeño que un amigo importa en su propio openGym: solo rutinas, ninguno de tus entrenamientos ni pesajes.',
|
||||
'A small file a friend imports into their own KuentaGYM — routines only, none of your workouts or weigh-ins.': 'Un archivo pequeño que un amigo importa en su propio KuentaGYM: solo rutinas, ninguno de tus entrenamientos ni pesajes.',
|
||||
'Print / Save as PDF': 'Imprimir / Guardar como PDF',
|
||||
'A clean one-page-per-plan printout — no exercise ever splits across a page.': 'Una impresión limpia, una página por plan: ningún ejercicio se corta entre páginas.',
|
||||
'Add an exercise to a routine first — an empty plan has nothing to share.': 'Añade primero un ejercicio a una rutina: un plan vacío no tiene nada que compartir.',
|
||||
@@ -569,14 +569,14 @@ export default {
|
||||
'Replaces your current Mon–Sun assignments.': 'Reemplaza tu asignación actual de lun–dom.',
|
||||
'Added {0} routine to your plan': 'Se añadió {0} rutina a tu plan',
|
||||
'Added {0} routines to your plan': 'Se añadieron {0} rutinas a tu plan',
|
||||
'this isn’t an openGym plan file': 'esto no es un archivo de plan de openGym',
|
||||
'this isn’t a KuentaGYM plan file': 'esto no es un archivo de plan de KuentaGYM',
|
||||
'Shared routine': 'Rutina compartida',
|
||||
'Unknown exercise': 'Ejercicio desconocido',
|
||||
'Weekly Training Plan': 'Plan de entrenamiento semanal',
|
||||
'Made with openGym': 'Hecho con openGym',
|
||||
'Made with KuentaGYM': 'Hecho con KuentaGYM',
|
||||
'Something went wrong': 'Algo ha salido mal',
|
||||
'This screen could not be drawn. Your data is safe on this device.': 'Esta pantalla no se ha podido dibujar. Tus datos siguen a salvo en este dispositivo.',
|
||||
'Reload openGym': 'Recargar openGym',
|
||||
'Reload KuentaGYM': 'Recargar KuentaGYM',
|
||||
'Discard the running workout': 'Descartar el entrenamiento en curso',
|
||||
|
||||
// --- v1.2.2: timed sets, progression, estimated 1RM (#16 #17 #18) ---
|
||||
@@ -877,28 +877,28 @@ export default {
|
||||
|
||||
// "Connect to my server" (mobile app pairing)
|
||||
'Your server': 'Tu servidor',
|
||||
'Synced with your openGym server.': 'Sincronizado con tu servidor de openGym.',
|
||||
'Synced with your KuentaGYM server.': 'Sincronizado con tu servidor de KuentaGYM.',
|
||||
'Disconnect': 'Desconectar',
|
||||
'Disconnect from your server?': '¿Desconectar de tu servidor?',
|
||||
'Your data is synced to your server first, then this device switches back to local-only.': 'Tus datos se sincronizan primero con tu servidor, y luego este dispositivo vuelve a modo local.',
|
||||
'Disconnected — back to local-only': 'Desconectado — de vuelta a modo local',
|
||||
'Connect to my server': 'Conectar a mi servidor',
|
||||
'Sync this device to your own self-hosted openGym instead.': 'Sincroniza este dispositivo con tu propio openGym self-hosted.',
|
||||
'Sync this device to your own self-hosted KuentaGYM instead.': 'Sincroniza este dispositivo con tu propio KuentaGYM self-hosted.',
|
||||
'Pair the mobile app': 'Emparejar la app móvil',
|
||||
'Connect the openGym app on your phone to this account.': 'Conecta la app de openGym en tu móvil a esta cuenta.',
|
||||
'Connect the KuentaGYM app on your phone to this account.': 'Conecta la app de KuentaGYM en tu móvil a esta cuenta.',
|
||||
'Could not generate a code': 'No se pudo generar un código',
|
||||
'On the openGym app, choose “Connect to my server”, then enter this address and the code below. It expires in 5 minutes.': 'En la app de openGym, elige «Conectar a mi servidor», luego introduce esta dirección y el código de abajo. Caduca en 5 minutos.',
|
||||
'On the KuentaGYM app, choose “Connect to my server”, then enter this address and the code below. It expires in 5 minutes.': 'En la app de KuentaGYM, elige «Conectar a mi servidor», luego introduce esta dirección y el código de abajo. Caduca en 5 minutos.',
|
||||
'Enter your server address and the code': 'Introduce la dirección de tu servidor y el código',
|
||||
'Connected': 'Conectado',
|
||||
'Could not connect': 'No se pudo conectar',
|
||||
'Open Settings → “Pair the mobile app” on the openGym site you’re already signed into, then enter its address and the code shown there.': 'En Ajustes → «Emparejar la app móvil» del sitio de openGym en el que ya has iniciado sesión, luego introduce su dirección y el código que aparece ahí.',
|
||||
'Open Settings → “Pair the mobile app” on the KuentaGYM site you’re already signed into, then enter its address and the code shown there.': 'En Ajustes → «Emparejar la app móvil» del sitio de KuentaGYM en el que ya has iniciado sesión, luego introduce su dirección y el código que aparece ahí.',
|
||||
'Server address (e.g. gym.example.com)': 'Dirección del servidor (p. ej. gym.example.com)',
|
||||
'Pairing code': 'Código de emparejamiento',
|
||||
'Connecting…': 'Conectando…',
|
||||
'Connect': 'Conectar',
|
||||
'How do you want to use openGym?': '¿Cómo quieres usar openGym?',
|
||||
'How do you want to use KuentaGYM?': '¿Cómo quieres usar KuentaGYM?',
|
||||
'Use on this device': 'Usar en este dispositivo',
|
||||
'Local keeps everything on this phone. Connecting syncs to your own openGym server instead — you can switch later in Settings.': 'Local mantiene todo en este teléfono. Conectar sincroniza con tu propio servidor de openGym — puedes cambiarlo luego en Ajustes.',
|
||||
'Local keeps everything on this phone. Connecting syncs to your own KuentaGYM server instead — you can switch later in Settings.': 'Local mantiene todo en este teléfono. Conectar sincroniza con tu propio servidor de KuentaGYM — puedes cambiarlo luego en Ajustes.',
|
||||
|
||||
// --- workout notes and planned warm-ups ---
|
||||
'{0} — done': '{0} — hecho',
|
||||
@@ -940,7 +940,7 @@ export default {
|
||||
'Pick a model': 'Elige un modelo',
|
||||
'Provider': 'Proveedor',
|
||||
'Runs on this phone with your own API key': 'Funciona en este teléfono con tu propia clave de API',
|
||||
'Runs on your openGym server': 'Funciona en tu servidor openGym',
|
||||
'Runs on your KuentaGYM server': 'Funciona en tu servidor KuentaGYM',
|
||||
'Save and use the Coach': 'Guardar y usar el entrenador',
|
||||
'The Coach is already thinking about your training.': 'El entrenador ya está analizando tu entrenamiento.',
|
||||
'The Coach is resting — you have used today’s {0} runs on this phone.': 'El entrenador descansa: ya has usado las {0} consultas de hoy en este teléfono.',
|
||||
@@ -949,7 +949,7 @@ export default {
|
||||
'The key is stored in this phone’s secure storage and never leaves it except to call the provider.': 'La clave se guarda en el almacenamiento seguro de este teléfono y solo sale de él para llamar al proveedor.',
|
||||
'This phone calls the provider directly with your key. Every request is charged to your account.': 'Este teléfono llama al proveedor directamente con tu clave. Cada solicitud se cobra a tu cuenta.',
|
||||
'Turn the Coach off on this phone': 'Apagar el entrenador en este teléfono',
|
||||
'Use my self-hosted openGym': 'Usar mi openGym autoalojado',
|
||||
'Use my self-hosted KuentaGYM': 'Usar mi KuentaGYM autoalojado',
|
||||
'What leaves this phone': 'Qué sale de este teléfono',
|
||||
'When you ask for a plan or a review, this phone sends the following straight to {0}, using your own API key. You pay for every request.': 'Cuando pides un plan o una revisión, este teléfono envía lo siguiente directamente a {0}, con tu propia clave de API. Pagas cada solicitud.',
|
||||
'Your server has no Coach enabled — ask its admin, or bring your own key below.': 'Tu servidor no tiene el entrenador activado: pregunta a su administrador o usa tu propia clave abajo.',
|
||||
@@ -1216,11 +1216,11 @@ export default {
|
||||
'Check for updates': 'Buscar actualizaciones',
|
||||
'Checking…': 'Comprobando…',
|
||||
'You have v{0}': 'Tienes la v{0}',
|
||||
'Update to openGym v{0}': 'Actualizar a openGym v{0}',
|
||||
'Update to KuentaGYM v{0}': 'Actualizar a KuentaGYM v{0}',
|
||||
'You have the latest version.': 'Tienes la última versión.',
|
||||
'Could not check for updates — are you online?': 'No se pudo comprobar — ¿estás conectado?',
|
||||
'Get the Android app': 'Descargar la app de Android',
|
||||
'Download the APK from opengym.duarte-santos.ch': 'Descarga el APK desde opengym.duarte-santos.ch',
|
||||
'Download the APK from gym.dploy.lol': 'Descarga el APK desde gym.dploy.lol',
|
||||
'Releases are checked on gitlab.com. The download is verified against its checksum before the installer opens.': 'Las versiones se comprueban en gitlab.com. La descarga se verifica con su suma de comprobación antes de abrir el instalador.',
|
||||
'The web app updates together with your server. The Android app installs its own updates from here.': 'La app web se actualiza junto con tu servidor. La app de Android instala sus actualizaciones desde aquí.',
|
||||
'Starting download…': 'Iniciando descarga…',
|
||||
|
||||
+18
-18
@@ -286,7 +286,7 @@ export default {
|
||||
'Your workouts. Your weights. Your profile.': 'Tes séances. Tes charges. Ton profil.',
|
||||
'Sign in with passkey': 'Se connecter avec une passkey',
|
||||
'Create new profile': 'Créer un nouveau profil',
|
||||
"This browser doesn't support passkeys — you can still use openGym locally on this device.": 'Ce navigateur ne prend pas en charge les passkeys — tu peux quand même utiliser openGym localement sur cet appareil.',
|
||||
"This browser doesn't support passkeys — you can still use KuentaGYM locally on this device.": 'Ce navigateur ne prend pas en charge les passkeys — tu peux quand même utiliser KuentaGYM localement sur cet appareil.',
|
||||
"This browser doesn't support passkeys, and this instance requires an account. Try a browser or device with passkey support.": 'Ce navigateur ne prend pas en charge les passkeys, et ce serveur exige un compte. Essaie un navigateur ou un appareil compatible avec les passkeys.',
|
||||
'Continue without account': 'Continuer sans compte',
|
||||
'Passkeys use {0} — no passwords.': 'Les passkeys utilisent {0} — pas de mots de passe.',
|
||||
@@ -352,14 +352,14 @@ export default {
|
||||
'Tip': 'Astuce',
|
||||
'In Chrome: ⋮ menu → Add to Home screen': 'Dans Chrome : menu ⋮ → Ajouter à l’écran d’accueil',
|
||||
'In Safari: Share → Add to Home Screen': 'Dans Safari : Partager → Sur l’écran d’accueil',
|
||||
'to install openGym as a full-screen app.': 'pour installer openGym en app plein écran.',
|
||||
'to install KuentaGYM as a full-screen app.': 'pour installer KuentaGYM en app plein écran.',
|
||||
'Your data syncs with your profile — sign in anywhere to see it.': 'Tes données se synchronisent avec ton profil — connecte-toi n’importe où pour les voir.',
|
||||
'Guest data stays on this device — export a backup now and then!': 'Les données invité restent sur cet appareil — exporte une sauvegarde de temps en temps !',
|
||||
'free & open source (AGPL v3)': 'gratuit et open source (AGPL v3)',
|
||||
'Notifications': 'Notifications',
|
||||
'Not supported in this browser.': 'Non pris en charge par ce navigateur.',
|
||||
'Push notifications': 'Notifications push',
|
||||
'Rest-timer alerts, even if openGym is closed.': 'Alertes du minuteur de repos, même si openGym est fermé.',
|
||||
'Rest-timer alerts, even if KuentaGYM is closed.': 'Alertes du minuteur de repos, même si KuentaGYM est fermé.',
|
||||
'Workout day reminder': 'Rappel des jours d’entraînement',
|
||||
'Reminder time': 'Heure du rappel',
|
||||
"Only sent on days you have a routine planned and haven't logged a workout yet.": 'Envoyé uniquement les jours où une routine est prévue et aucune séance notée.',
|
||||
@@ -548,7 +548,7 @@ export default {
|
||||
'Share your plan': 'Partager ton plan',
|
||||
'Send your routines to a friend, or put your week on paper.': 'Envoie tes routines à un ami ou mets ta semaine sur papier.',
|
||||
'Export plan file': 'Exporter le fichier du plan',
|
||||
'A small file a friend imports into their own openGym — routines only, none of your workouts or weigh-ins.': 'Un petit fichier qu\'un ami importe dans son propre openGym — uniquement les routines, aucun de tes entraînements ni pesées.',
|
||||
'A small file a friend imports into their own KuentaGYM — routines only, none of your workouts or weigh-ins.': 'Un petit fichier qu\'un ami importe dans son propre KuentaGYM — uniquement les routines, aucun de tes entraînements ni pesées.',
|
||||
'Print / Save as PDF': 'Imprimer / Enregistrer en PDF',
|
||||
'A clean one-page-per-plan printout — no exercise ever splits across a page.': 'Une impression nette, une page par plan — aucun exercice n\'est coupé entre deux pages.',
|
||||
'Add an exercise to a routine first — an empty plan has nothing to share.': 'Ajoute d\'abord un exercice à une routine — un plan vide n\'a rien à partager.',
|
||||
@@ -569,14 +569,14 @@ export default {
|
||||
'Replaces your current Mon–Sun assignments.': 'Remplace ton attribution lun–dim actuelle.',
|
||||
'Added {0} routine to your plan': '{0} routine ajoutée à ton plan',
|
||||
'Added {0} routines to your plan': '{0} routines ajoutées à ton plan',
|
||||
'this isn’t an openGym plan file': 'ce n\'est pas un fichier de plan openGym',
|
||||
'this isn’t a KuentaGYM plan file': 'ce n\'est pas un fichier de plan KuentaGYM',
|
||||
'Shared routine': 'Routine partagée',
|
||||
'Unknown exercise': 'Exercice inconnu',
|
||||
'Weekly Training Plan': 'Plan d\'entraînement hebdomadaire',
|
||||
'Made with openGym': 'Créé avec openGym',
|
||||
'Made with KuentaGYM': 'Créé avec KuentaGYM',
|
||||
'Something went wrong': 'Une erreur est survenue',
|
||||
'This screen could not be drawn. Your data is safe on this device.': 'Cet écran n’a pas pu être affiché. Tes données restent intactes sur cet appareil.',
|
||||
'Reload openGym': 'Recharger openGym',
|
||||
'Reload KuentaGYM': 'Recharger KuentaGYM',
|
||||
'Discard the running workout': 'Abandonner la séance en cours',
|
||||
|
||||
// --- v1.2.2: timed sets, progression, estimated 1RM (#16 #17 #18) ---
|
||||
@@ -877,28 +877,28 @@ export default {
|
||||
|
||||
// "Connect to my server" (mobile app pairing)
|
||||
'Your server': 'Votre serveur',
|
||||
'Synced with your openGym server.': 'Synchronisé avec votre serveur openGym.',
|
||||
'Synced with your KuentaGYM server.': 'Synchronisé avec votre serveur KuentaGYM.',
|
||||
'Disconnect': 'Déconnecter',
|
||||
'Disconnect from your server?': 'Se déconnecter de votre serveur ?',
|
||||
'Your data is synced to your server first, then this device switches back to local-only.': "Vos données sont d'abord synchronisées avec votre serveur, puis cet appareil repasse en mode local.",
|
||||
'Disconnected — back to local-only': 'Déconnecté — retour en mode local',
|
||||
'Connect to my server': 'Se connecter à mon serveur',
|
||||
'Sync this device to your own self-hosted openGym instead.': 'Synchronise plutôt cet appareil avec votre propre openGym self-hosted.',
|
||||
'Sync this device to your own self-hosted KuentaGYM instead.': 'Synchronise plutôt cet appareil avec votre propre KuentaGYM self-hosted.',
|
||||
'Pair the mobile app': "Associer l'application mobile",
|
||||
'Connect the openGym app on your phone to this account.': "Associez l'application openGym de votre téléphone à ce compte.",
|
||||
'Connect the KuentaGYM app on your phone to this account.': "Associez l'application KuentaGYM de votre téléphone à ce compte.",
|
||||
'Could not generate a code': 'Impossible de générer un code',
|
||||
'On the openGym app, choose “Connect to my server”, then enter this address and the code below. It expires in 5 minutes.': "Dans l'application openGym, choisissez « Se connecter à mon serveur », puis saisissez cette adresse et le code ci-dessous. Il expire dans 5 minutes.",
|
||||
'On the KuentaGYM app, choose “Connect to my server”, then enter this address and the code below. It expires in 5 minutes.': "Dans l'application KuentaGYM, choisissez « Se connecter à mon serveur », puis saisissez cette adresse et le code ci-dessous. Il expire dans 5 minutes.",
|
||||
'Enter your server address and the code': "Saisissez l'adresse de votre serveur et le code",
|
||||
'Connected': 'Connecté',
|
||||
'Could not connect': 'Connexion impossible',
|
||||
'Open Settings → “Pair the mobile app” on the openGym site you’re already signed into, then enter its address and the code shown there.': "Dans Réglages → « Associer l'application mobile » sur le site openGym où vous êtes déjà connecté, saisissez ensuite son adresse et le code qui s'y affiche.",
|
||||
'Open Settings → “Pair the mobile app” on the KuentaGYM site you’re already signed into, then enter its address and the code shown there.': "Dans Réglages → « Associer l'application mobile » sur le site KuentaGYM où vous êtes déjà connecté, saisissez ensuite son adresse et le code qui s'y affiche.",
|
||||
'Server address (e.g. gym.example.com)': 'Adresse du serveur (ex. gym.example.com)',
|
||||
'Pairing code': "Code d'association",
|
||||
'Connecting…': 'Connexion…',
|
||||
'Connect': 'Connecter',
|
||||
'How do you want to use openGym?': 'Comment voulez-vous utiliser openGym ?',
|
||||
'How do you want to use KuentaGYM?': 'Comment voulez-vous utiliser KuentaGYM ?',
|
||||
'Use on this device': 'Utiliser sur cet appareil',
|
||||
'Local keeps everything on this phone. Connecting syncs to your own openGym server instead — you can switch later in Settings.': 'Local garde tout sur ce téléphone. Se connecter synchronise plutôt avec votre propre serveur openGym — vous pourrez changer cela plus tard dans Réglages.',
|
||||
'Local keeps everything on this phone. Connecting syncs to your own KuentaGYM server instead — you can switch later in Settings.': 'Local garde tout sur ce téléphone. Se connecter synchronise plutôt avec votre propre serveur KuentaGYM — vous pourrez changer cela plus tard dans Réglages.',
|
||||
|
||||
// --- workout notes and planned warm-ups ---
|
||||
'{0} — done': '{0} — terminé',
|
||||
@@ -940,7 +940,7 @@ export default {
|
||||
'Pick a model': 'Choisis un modèle',
|
||||
'Provider': 'Fournisseur',
|
||||
'Runs on this phone with your own API key': 'Fonctionne sur ce téléphone avec ta propre clé API',
|
||||
'Runs on your openGym server': 'Fonctionne sur ton serveur openGym',
|
||||
'Runs on your KuentaGYM server': 'Fonctionne sur ton serveur KuentaGYM',
|
||||
'Save and use the Coach': 'Enregistrer et utiliser le coach',
|
||||
'The Coach is already thinking about your training.': 'Le coach réfléchit déjà à ton entraînement.',
|
||||
'The Coach is resting — you have used today’s {0} runs on this phone.': 'Le coach se repose — tu as utilisé les {0} exécutions du jour sur ce téléphone.',
|
||||
@@ -949,7 +949,7 @@ export default {
|
||||
'The key is stored in this phone’s secure storage and never leaves it except to call the provider.': 'La clé est conservée dans le stockage sécurisé de ce téléphone et n’en sort que pour appeler le fournisseur.',
|
||||
'This phone calls the provider directly with your key. Every request is charged to your account.': 'Ce téléphone appelle directement le fournisseur avec ta clé. Chaque requête est facturée sur ton compte.',
|
||||
'Turn the Coach off on this phone': 'Désactiver le coach sur ce téléphone',
|
||||
'Use my self-hosted openGym': 'Utiliser mon openGym auto-hébergé',
|
||||
'Use my self-hosted KuentaGYM': 'Utiliser mon KuentaGYM auto-hébergé',
|
||||
'What leaves this phone': 'Ce qui quitte ce téléphone',
|
||||
'When you ask for a plan or a review, this phone sends the following straight to {0}, using your own API key. You pay for every request.': 'Quand tu demandes un plan ou une révision, ce téléphone envoie ce qui suit directement à {0}, avec ta propre clé API. Chaque requête est à ta charge.',
|
||||
'Your server has no Coach enabled — ask its admin, or bring your own key below.': 'Aucun coach n’est activé sur ton serveur — demande à son admin, ou utilise ta propre clé ci-dessous.',
|
||||
@@ -1216,11 +1216,11 @@ export default {
|
||||
'Check for updates': 'Rechercher des mises à jour',
|
||||
'Checking…': 'Vérification…',
|
||||
'You have v{0}': 'Tu as la v{0}',
|
||||
'Update to openGym v{0}': 'Mettre à jour vers openGym v{0}',
|
||||
'Update to KuentaGYM v{0}': 'Mettre à jour vers KuentaGYM v{0}',
|
||||
'You have the latest version.': 'Tu as la dernière version.',
|
||||
'Could not check for updates — are you online?': 'Impossible de vérifier — es-tu en ligne ?',
|
||||
'Get the Android app': 'Télécharger l’app Android',
|
||||
'Download the APK from opengym.duarte-santos.ch': 'Télécharge l’APK depuis opengym.duarte-santos.ch',
|
||||
'Download the APK from gym.dploy.lol': 'Télécharge l’APK depuis gym.dploy.lol',
|
||||
'Releases are checked on gitlab.com. The download is verified against its checksum before the installer opens.': 'Les versions sont vérifiées sur gitlab.com. Le téléchargement est contrôlé avec sa somme de contrôle avant l’ouverture de l’installateur.',
|
||||
'The web app updates together with your server. The Android app installs its own updates from here.': 'L’app web se met à jour avec ton serveur. L’app Android installe ses mises à jour depuis ici.',
|
||||
'Starting download…': 'Démarrage du téléchargement…',
|
||||
|
||||
+18
-18
@@ -286,7 +286,7 @@ export default {
|
||||
'Your workouts. Your weights. Your profile.': 'आपके वर्कआउट। आपके वज़न। आपकी प्रोफ़ाइल।',
|
||||
'Sign in with passkey': 'पासकी से साइन इन करें',
|
||||
'Create new profile': 'नई प्रोफ़ाइल बनाएँ',
|
||||
"This browser doesn't support passkeys — you can still use openGym locally on this device.": 'यह ब्राउज़र पासकी सपोर्ट नहीं करता — फिर भी आप इस डिवाइस पर openGym लोकली इस्तेमाल कर सकते हैं।',
|
||||
"This browser doesn't support passkeys — you can still use KuentaGYM locally on this device.": 'यह ब्राउज़र पासकी सपोर्ट नहीं करता — फिर भी आप इस डिवाइस पर KuentaGYM लोकली इस्तेमाल कर सकते हैं।',
|
||||
"This browser doesn't support passkeys, and this instance requires an account. Try a browser or device with passkey support.": 'यह ब्राउज़र पासकी सपोर्ट नहीं करता, और इस सर्वर के लिए खाता ज़रूरी है। पासकी सपोर्ट वाला ब्राउज़र या डिवाइस आज़माएँ।',
|
||||
'Continue without account': 'बिना खाते के जारी रखें',
|
||||
'Passkeys use {0} — no passwords.': 'पासकी {0} का उपयोग करती हैं — कोई पासवर्ड नहीं।',
|
||||
@@ -352,14 +352,14 @@ export default {
|
||||
'Tip': 'सुझाव',
|
||||
'In Chrome: ⋮ menu → Add to Home screen': 'Chrome में: ⋮ मेनू → होम स्क्रीन पर जोड़ें',
|
||||
'In Safari: Share → Add to Home Screen': 'Safari में: शेयर → होम स्क्रीन पर जोड़ें',
|
||||
'to install openGym as a full-screen app.': 'से openGym को फुल-स्क्रीन ऐप के रूप में इंस्टॉल करें।',
|
||||
'to install KuentaGYM as a full-screen app.': 'से KuentaGYM को फुल-स्क्रीन ऐप के रूप में इंस्टॉल करें।',
|
||||
'Your data syncs with your profile — sign in anywhere to see it.': 'डेटा प्रोफ़ाइल से सिंक होता है — कहीं भी साइन इन कर देखें।',
|
||||
'Guest data stays on this device — export a backup now and then!': 'गेस्ट डेटा इसी डिवाइस पर रहता है — कभी-कभी बैकअप निर्यात करें!',
|
||||
'free & open source (AGPL v3)': 'मुफ़्त और ओपन सोर्स (AGPL v3)',
|
||||
'Notifications': 'सूचनाएँ',
|
||||
'Not supported in this browser.': 'इस ब्राउज़र में समर्थित नहीं।',
|
||||
'Push notifications': 'पुश सूचनाएँ',
|
||||
'Rest-timer alerts, even if openGym is closed.': 'आराम टाइमर अलर्ट, openGym बंद होने पर भी।',
|
||||
'Rest-timer alerts, even if KuentaGYM is closed.': 'आराम टाइमर अलर्ट, KuentaGYM बंद होने पर भी।',
|
||||
'Workout day reminder': 'वर्कआउट दिवस अनुस्मारक',
|
||||
'Reminder time': 'अनुस्मारक समय',
|
||||
"Only sent on days you have a routine planned and haven't logged a workout yet.": 'केवल उन्हीं दिनों भेजा जाता है जब रूटीन तय है और वर्कआउट दर्ज नहीं हुआ।',
|
||||
@@ -548,7 +548,7 @@ export default {
|
||||
'Share your plan': 'अपना प्लान साझा करें',
|
||||
'Send your routines to a friend, or put your week on paper.': 'अपने रूटीन किसी दोस्त को भेजें या अपने हफ़्ते को कागज़ पर उतारें।',
|
||||
'Export plan file': 'प्लान फ़ाइल एक्सपोर्ट करें',
|
||||
'A small file a friend imports into their own openGym — routines only, none of your workouts or weigh-ins.': 'एक छोटी फ़ाइल जिसे कोई दोस्त अपने openGym में आयात कर सके — सिर्फ़ रूटीन, आपके वर्कआउट या वज़न नहीं।',
|
||||
'A small file a friend imports into their own KuentaGYM — routines only, none of your workouts or weigh-ins.': 'एक छोटी फ़ाइल जिसे कोई दोस्त अपने KuentaGYM में आयात कर सके — सिर्फ़ रूटीन, आपके वर्कआउट या वज़न नहीं।',
|
||||
'Print / Save as PDF': 'प्रिंट करें / PDF के रूप में सहेजें',
|
||||
'A clean one-page-per-plan printout — no exercise ever splits across a page.': 'हर प्लान के लिए एक साफ़-सुथरा एक-पेज प्रिंटआउट — कोई भी व्यायाम पन्नों के बीच नहीं बँटता।',
|
||||
'Add an exercise to a routine first — an empty plan has nothing to share.': 'पहले किसी रूटीन में व्यायाम जोड़ें — खाली प्लान में साझा करने को कुछ नहीं है।',
|
||||
@@ -569,14 +569,14 @@ export default {
|
||||
'Replaces your current Mon–Sun assignments.': 'आपके मौजूदा सोम–रवि निर्धारण को बदल देता है।',
|
||||
'Added {0} routine to your plan': 'आपके प्लान में {0} रूटीन जोड़ा गया',
|
||||
'Added {0} routines to your plan': 'आपके प्लान में {0} रूटीन जोड़े गए',
|
||||
'this isn’t an openGym plan file': 'यह openGym प्लान फ़ाइल नहीं है',
|
||||
'this isn’t a KuentaGYM plan file': 'यह KuentaGYM प्लान फ़ाइल नहीं है',
|
||||
'Shared routine': 'साझा किया गया रूटीन',
|
||||
'Unknown exercise': 'अज्ञात व्यायाम',
|
||||
'Weekly Training Plan': 'साप्ताहिक ट्रेनिंग प्लान',
|
||||
'Made with openGym': 'openGym से बनाया गया',
|
||||
'Made with KuentaGYM': 'KuentaGYM से बनाया गया',
|
||||
'Something went wrong': 'कुछ गड़बड़ हो गई',
|
||||
'This screen could not be drawn. Your data is safe on this device.': 'यह स्क्रीन नहीं दिखाई जा सकी। इस डिवाइस पर आपका डेटा सुरक्षित है।',
|
||||
'Reload openGym': 'openGym फिर से लोड करें',
|
||||
'Reload KuentaGYM': 'KuentaGYM फिर से लोड करें',
|
||||
'Discard the running workout': 'चल रहा वर्कआउट छोड़ें',
|
||||
|
||||
// --- v1.2.2: timed sets, progression, estimated 1RM (#16 #17 #18) ---
|
||||
@@ -877,28 +877,28 @@ export default {
|
||||
|
||||
// "Connect to my server" (mobile app pairing)
|
||||
'Your server': 'आपका सर्वर',
|
||||
'Synced with your openGym server.': 'आपके openGym सर्वर के साथ सिंक हो गया।',
|
||||
'Synced with your KuentaGYM server.': 'आपके KuentaGYM सर्वर के साथ सिंक हो गया।',
|
||||
'Disconnect': 'डिस्कनेक्ट करें',
|
||||
'Disconnect from your server?': 'क्या सर्वर से डिस्कनेक्ट करें?',
|
||||
'Your data is synced to your server first, then this device switches back to local-only.': 'आपका डेटा पहले आपके सर्वर से सिंक होगा, फिर यह डिवाइस लोकल मोड में वापस चला जाएगा।',
|
||||
'Disconnected — back to local-only': 'डिस्कनेक्ट हो गया — वापस लोकल मोड में',
|
||||
'Connect to my server': 'मेरे सर्वर से कनेक्ट करें',
|
||||
'Sync this device to your own self-hosted openGym instead.': 'इसके बजाय इस डिवाइस को अपने खुद के सेल्फ़-होस्टेड openGym से सिंक करें।',
|
||||
'Sync this device to your own self-hosted KuentaGYM instead.': 'इसके बजाय इस डिवाइस को अपने खुद के सेल्फ़-होस्टेड KuentaGYM से सिंक करें।',
|
||||
'Pair the mobile app': 'मोबाइल ऐप पेयर करें',
|
||||
'Connect the openGym app on your phone to this account.': 'अपने फ़ोन पर openGym ऐप को इस अकाउंट से जोड़ें।',
|
||||
'Connect the KuentaGYM app on your phone to this account.': 'अपने फ़ोन पर KuentaGYM ऐप को इस अकाउंट से जोड़ें।',
|
||||
'Could not generate a code': 'कोड जनरेट नहीं हो सका',
|
||||
'On the openGym app, choose “Connect to my server”, then enter this address and the code below. It expires in 5 minutes.': 'openGym ऐप में "मेरे सर्वर से कनेक्ट करें" चुनें, फिर यह पता और नीचे दिया कोड डालें। यह 5 मिनट में समाप्त हो जाता है।',
|
||||
'On the KuentaGYM app, choose “Connect to my server”, then enter this address and the code below. It expires in 5 minutes.': 'KuentaGYM ऐप में "मेरे सर्वर से कनेक्ट करें" चुनें, फिर यह पता और नीचे दिया कोड डालें। यह 5 मिनट में समाप्त हो जाता है।',
|
||||
'Enter your server address and the code': 'अपने सर्वर का पता और कोड डालें',
|
||||
'Connected': 'कनेक्ट हो गया',
|
||||
'Could not connect': 'कनेक्ट नहीं हो सका',
|
||||
'Open Settings → “Pair the mobile app” on the openGym site you’re already signed into, then enter its address and the code shown there.': 'जिस openGym साइट में आप पहले से साइन इन हैं, वहाँ सेटिंग्स → "मोबाइल ऐप पेयर करें" खोलें, फिर उसका पता और वहाँ दिखा कोड डालें।',
|
||||
'Open Settings → “Pair the mobile app” on the KuentaGYM site you’re already signed into, then enter its address and the code shown there.': 'जिस KuentaGYM साइट में आप पहले से साइन इन हैं, वहाँ सेटिंग्स → "मोबाइल ऐप पेयर करें" खोलें, फिर उसका पता और वहाँ दिखा कोड डालें।',
|
||||
'Server address (e.g. gym.example.com)': 'सर्वर का पता (जैसे gym.example.com)',
|
||||
'Pairing code': 'पेयरिंग कोड',
|
||||
'Connecting…': 'कनेक्ट हो रहा है…',
|
||||
'Connect': 'कनेक्ट करें',
|
||||
'How do you want to use openGym?': 'आप openGym का उपयोग कैसे करना चाहते हैं?',
|
||||
'How do you want to use KuentaGYM?': 'आप KuentaGYM का उपयोग कैसे करना चाहते हैं?',
|
||||
'Use on this device': 'इस डिवाइस पर उपयोग करें',
|
||||
'Local keeps everything on this phone. Connecting syncs to your own openGym server instead — you can switch later in Settings.': 'लोकल सब कुछ इसी फ़ोन पर रखता है। कनेक्ट करने पर इसके बजाय आपके अपने openGym सर्वर से सिंक होता है — इसे बाद में सेटिंग्स में बदला जा सकता है।',
|
||||
'Local keeps everything on this phone. Connecting syncs to your own KuentaGYM server instead — you can switch later in Settings.': 'लोकल सब कुछ इसी फ़ोन पर रखता है। कनेक्ट करने पर इसके बजाय आपके अपने KuentaGYM सर्वर से सिंक होता है — इसे बाद में सेटिंग्स में बदला जा सकता है।',
|
||||
|
||||
// --- workout notes and planned warm-ups ---
|
||||
'{0} — done': '{0} — पूरा',
|
||||
@@ -940,7 +940,7 @@ export default {
|
||||
'Pick a model': 'एक मॉडल चुनें',
|
||||
'Provider': 'प्रदाता',
|
||||
'Runs on this phone with your own API key': 'इस फ़ोन पर आपकी अपनी API कुंजी से चलता है',
|
||||
'Runs on your openGym server': 'आपके openGym सर्वर पर चलता है',
|
||||
'Runs on your KuentaGYM server': 'आपके KuentaGYM सर्वर पर चलता है',
|
||||
'Save and use the Coach': 'सहेजें और कोच का उपयोग करें',
|
||||
'The Coach is already thinking about your training.': 'कोच पहले से ही आपके प्रशिक्षण पर सोच रहा है।',
|
||||
'The Coach is resting — you have used today’s {0} runs on this phone.': 'कोच आराम कर रहा है — इस फ़ोन पर आज की {0} बार चलाने की सीमा पूरी हो गई।',
|
||||
@@ -949,7 +949,7 @@ export default {
|
||||
'The key is stored in this phone’s secure storage and never leaves it except to call the provider.': 'कुंजी इस फ़ोन के सुरक्षित भंडारण में रहती है और प्रदाता को कॉल करने के अलावा कभी बाहर नहीं जाती।',
|
||||
'This phone calls the provider directly with your key. Every request is charged to your account.': 'यह फ़ोन आपकी कुंजी से सीधे प्रदाता को कॉल करता है। हर अनुरोध का शुल्क आपके खाते से लिया जाता है।',
|
||||
'Turn the Coach off on this phone': 'इस फ़ोन पर कोच बंद करें',
|
||||
'Use my self-hosted openGym': 'मेरा सेल्फ़-होस्टेड openGym इस्तेमाल करें',
|
||||
'Use my self-hosted KuentaGYM': 'मेरा सेल्फ़-होस्टेड KuentaGYM इस्तेमाल करें',
|
||||
'What leaves this phone': 'इस फ़ोन से क्या बाहर जाता है',
|
||||
'When you ask for a plan or a review, this phone sends the following straight to {0}, using your own API key. You pay for every request.': 'जब आप योजना या समीक्षा माँगते हैं, तो यह फ़ोन आपकी अपनी API कुंजी से निम्नलिखित सीधे {0} को भेजता है। हर अनुरोध का भुगतान आप करते हैं।',
|
||||
'Your server has no Coach enabled — ask its admin, or bring your own key below.': 'आपके सर्वर पर कोच सक्षम नहीं है — इसके एडमिन से पूछें, या नीचे अपनी कुंजी इस्तेमाल करें।',
|
||||
@@ -1216,11 +1216,11 @@ export default {
|
||||
'Check for updates': 'अपडेट देखें',
|
||||
'Checking…': 'जाँच हो रही है…',
|
||||
'You have v{0}': 'आपके पास v{0} है',
|
||||
'Update to openGym v{0}': 'openGym v{0} पर अपडेट करें',
|
||||
'Update to KuentaGYM v{0}': 'KuentaGYM v{0} पर अपडेट करें',
|
||||
'You have the latest version.': 'आपके पास नवीनतम संस्करण है।',
|
||||
'Could not check for updates — are you online?': 'अपडेट जाँच नहीं हो सकी — क्या आप ऑनलाइन हैं?',
|
||||
'Get the Android app': 'Android ऐप लें',
|
||||
'Download the APK from opengym.duarte-santos.ch': 'opengym.duarte-santos.ch से APK डाउनलोड करें',
|
||||
'Download the APK from gym.dploy.lol': 'gym.dploy.lol से APK डाउनलोड करें',
|
||||
'Releases are checked on gitlab.com. The download is verified against its checksum before the installer opens.': 'रिलीज़ gitlab.com पर जाँची जाती हैं। इंस्टॉलर खुलने से पहले डाउनलोड की चेकसम से पुष्टि होती है।',
|
||||
'The web app updates together with your server. The Android app installs its own updates from here.': 'वेब ऐप आपके सर्वर के साथ अपडेट होता है। Android ऐप अपने अपडेट यहीं से इंस्टॉल करता है।',
|
||||
'Starting download…': 'डाउनलोड शुरू हो रहा है…',
|
||||
|
||||
+18
-18
@@ -292,7 +292,7 @@ export default {
|
||||
'Your workouts. Your weights. Your profile.': 'A te edzéseid. A te súlyaid. A te profilod.',
|
||||
'Sign in with passkey': 'Bejelentkezés jelszókulccsal',
|
||||
'Create new profile': 'Új profil létrehozása',
|
||||
'This browser doesn\'t support passkeys — you can still use openGym locally on this device.': 'Ez a böngésző nem támogatja a jelszókulcsokat — az openGym-et így is használhatod helyben, ezen az eszközön.',
|
||||
'This browser doesn\'t support passkeys — you can still use KuentaGYM locally on this device.': 'Ez a böngésző nem támogatja a jelszókulcsokat — az KuentaGYM-et így is használhatod helyben, ezen az eszközön.',
|
||||
'This browser doesn\'t support passkeys, and this instance requires an account. Try a browser or device with passkey support.': 'Ez a böngésző nem támogatja a jelszókulcsokat, ez a szerver pedig fiókot igényel. Próbálj egy jelszókulcsot támogató böngészőt vagy eszközt.',
|
||||
'Continue without account': 'Folytatás fiók nélkül',
|
||||
'Passkeys use {0} — no passwords.': 'A jelszókulcs ezt használja: {0} — jelszó nélkül.',
|
||||
@@ -353,14 +353,14 @@ export default {
|
||||
'Tip': 'Tipp',
|
||||
'In Chrome: ⋮ menu → Add to Home screen': 'Chrome-ban: ⋮ menü → Hozzáadás a kezdőképernyőhöz',
|
||||
'In Safari: Share → Add to Home Screen': 'Safariban: Megosztás → Hozzáadás a kezdőképernyőhöz',
|
||||
'to install openGym as a full-screen app.': 'hogy az openGym-et teljes képernyős appként telepítsd.',
|
||||
'to install KuentaGYM as a full-screen app.': 'hogy az KuentaGYM-et teljes képernyős appként telepítsd.',
|
||||
'Your data syncs with your profile — sign in anywhere to see it.': 'Az adataid szinkronizálódnak a profiloddal — jelentkezz be bárhol, hogy lásd őket.',
|
||||
'Guest data stays on this device — export a backup now and then!': 'A vendégadatok ezen az eszközön maradnak — időnként exportálj egy biztonsági mentést!',
|
||||
'free & open source (AGPL v3)': 'ingyenes & nyílt forráskódú (AGPL v3)',
|
||||
'Notifications': 'Értesítések',
|
||||
'Not supported in this browser.': 'Nem támogatott ebben a böngészőben.',
|
||||
'Push notifications': 'Push-értesítések',
|
||||
'Rest-timer alerts, even if openGym is closed.': 'Pihenő időzítő riasztások, még ha az openGym be is van zárva.',
|
||||
'Rest-timer alerts, even if KuentaGYM is closed.': 'Pihenő időzítő riasztások, még ha az KuentaGYM be is van zárva.',
|
||||
'Workout day reminder': 'Edzésnap-emlékeztető',
|
||||
'Reminder time': 'Emlékeztető ideje',
|
||||
'Only sent on days you have a routine planned and haven\'t logged a workout yet.': 'Csak azokon a napokon küldjük, amikor van tervezett rutinod, és még nem rögzítettél edzést.',
|
||||
@@ -527,7 +527,7 @@ export default {
|
||||
'Share your plan': 'Terv megosztása',
|
||||
'Send your routines to a friend, or put your week on paper.': 'Küldd el a rutinjaidat egy barátnak, vagy vesd papírra a heted.',
|
||||
'Export plan file': 'Tervfájl exportálása',
|
||||
'A small file a friend imports into their own openGym — routines only, none of your workouts or weigh-ins.': 'Egy kis fájl, amit egy barát a saját openGym-jébe importál — csak rutinok, edzések és mérések nélkül.',
|
||||
'A small file a friend imports into their own KuentaGYM — routines only, none of your workouts or weigh-ins.': 'Egy kis fájl, amit egy barát a saját KuentaGYM-jébe importál — csak rutinok, edzések és mérések nélkül.',
|
||||
'Print / Save as PDF': 'Nyomtatás / Mentés PDF-ként',
|
||||
'A clean one-page-per-plan printout — no exercise ever splits across a page.': 'Egy tiszta nyomtatvány, egy oldal tervenként — egyetlen gyakorlat sem törik meg oldalhatáron.',
|
||||
'Add an exercise to a routine first — an empty plan has nothing to share.': 'Adj hozzá előbb egy gyakorlatot egy rutinhoz — egy üres tervnek nincs mit megosztania.',
|
||||
@@ -548,14 +548,14 @@ export default {
|
||||
'Replaces your current Mon–Sun assignments.': 'Lecseréli a jelenlegi H–V beosztásod.',
|
||||
'Added {0} routine to your plan': '{0} rutin hozzáadva a tervedhez',
|
||||
'Added {0} routines to your plan': '{0} rutin hozzáadva a tervedhez',
|
||||
'this isn’t an openGym plan file': 'ez nem egy openGym tervfájl',
|
||||
'this isn’t a KuentaGYM plan file': 'ez nem egy KuentaGYM tervfájl',
|
||||
'Shared routine': 'Megosztott rutin',
|
||||
'Unknown exercise': 'Ismeretlen gyakorlat',
|
||||
'Weekly Training Plan': 'Heti edzésterv',
|
||||
'Made with openGym': 'Az openGym-mel készült',
|
||||
'Made with KuentaGYM': 'Az KuentaGYM-mel készült',
|
||||
'Something went wrong': 'Hiba történt',
|
||||
'This screen could not be drawn. Your data is safe on this device.': 'Ezt a képernyőt nem sikerült megjeleníteni. Az adataid biztonságban vannak ezen az eszközön.',
|
||||
'Reload openGym': 'openGym újratöltése',
|
||||
'Reload KuentaGYM': 'KuentaGYM újratöltése',
|
||||
'Discard the running workout': 'A futó edzés elvetése',
|
||||
|
||||
// --- v1.2.2: timed sets, progression, estimated 1RM (#16 #17 #18) ---
|
||||
@@ -702,28 +702,28 @@ export default {
|
||||
'reps': 'ism.',
|
||||
'Workout done': 'Edzés kész',
|
||||
'{0} — done': '{0} — kész',
|
||||
'Local keeps everything on this phone. Connecting syncs to your own openGym server instead — you can switch later in Settings.': 'A helyi mód mindent ezen a telefonon tart. A csatlakozás helyette a saját openGym szervereddel szinkronizál — ezt később a Beállításokban módosíthatod.',
|
||||
'Local keeps everything on this phone. Connecting syncs to your own KuentaGYM server instead — you can switch later in Settings.': 'A helyi mód mindent ezen a telefonon tart. A csatlakozás helyette a saját KuentaGYM szervereddel szinkronizál — ezt később a Beállításokban módosíthatod.',
|
||||
'Use on this device': 'Használat ezen az eszközön',
|
||||
'How do you want to use openGym?': 'Hogyan szeretnéd használni az openGym-et?',
|
||||
'How do you want to use KuentaGYM?': 'Hogyan szeretnéd használni az KuentaGYM-et?',
|
||||
'Connect': 'Csatlakozás',
|
||||
'Connecting…': 'Csatlakozás…',
|
||||
'Pairing code': 'Párosítási kód',
|
||||
'Server address (e.g. gym.example.com)': 'Szerver címe (pl. gym.example.com)',
|
||||
'Open Settings → “Pair the mobile app” on the openGym site you’re already signed into, then enter its address and the code shown there.': 'Nyisd meg a Beállítások → „Mobilalkalmazás párosítása” menüpontot azon az openGym oldalon, ahová már be vagy jelentkezve, majd add meg az ott látható címet és kódot.',
|
||||
'Open Settings → “Pair the mobile app” on the KuentaGYM site you’re already signed into, then enter its address and the code shown there.': 'Nyisd meg a Beállítások → „Mobilalkalmazás párosítása” menüpontot azon az KuentaGYM oldalon, ahová már be vagy jelentkezve, majd add meg az ott látható címet és kódot.',
|
||||
'Could not connect': 'Nem sikerült csatlakozni',
|
||||
'Connected': 'Csatlakozva',
|
||||
'Enter your server address and the code': 'Add meg a szervered címét és a kódot',
|
||||
'On the openGym app, choose “Connect to my server”, then enter this address and the code below. It expires in 5 minutes.': 'Az openGym appban válaszd a „Csatlakozás a szerveremhez” lehetőséget, majd add meg ezt a címet és az alábbi kódot. 5 perc alatt jár le.',
|
||||
'On the KuentaGYM app, choose “Connect to my server”, then enter this address and the code below. It expires in 5 minutes.': 'Az KuentaGYM appban válaszd a „Csatlakozás a szerveremhez” lehetőséget, majd add meg ezt a címet és az alábbi kódot. 5 perc alatt jár le.',
|
||||
'Could not generate a code': 'Nem sikerült kódot generálni',
|
||||
'Connect the openGym app on your phone to this account.': 'Kösd össze a telefonodon lévő openGym appot ezzel a fiókkal.',
|
||||
'Connect the KuentaGYM app on your phone to this account.': 'Kösd össze a telefonodon lévő KuentaGYM appot ezzel a fiókkal.',
|
||||
'Pair the mobile app': 'Mobilalkalmazás párosítása',
|
||||
'Sync this device to your own self-hosted openGym instead.': 'Szinkronizáld inkább ezt az eszközt a saját self-hosted openGym-eddel.',
|
||||
'Sync this device to your own self-hosted KuentaGYM instead.': 'Szinkronizáld inkább ezt az eszközt a saját self-hosted KuentaGYM-eddel.',
|
||||
'Connect to my server': 'Csatlakozás a szerveremhez',
|
||||
'Disconnected — back to local-only': 'Leválasztva — vissza csak-helyi módba',
|
||||
'Your data is synced to your server first, then this device switches back to local-only.': 'Az adataid előbb szinkronizálódnak a szerverrel, majd ez az eszköz visszavált csak-helyi módba.',
|
||||
'Disconnect from your server?': 'Leválasztás a szerverről?',
|
||||
'Disconnect': 'Leválasztás',
|
||||
'Synced with your openGym server.': 'Szinkronizálva az openGym szervereddel.',
|
||||
'Synced with your KuentaGYM server.': 'Szinkronizálva az KuentaGYM szervereddel.',
|
||||
'Your server': 'A szervered',
|
||||
'No explicit muscle group': 'Nincs megadott izomcsoport',
|
||||
'Additional muscle groups': 'További izomcsoportok',
|
||||
@@ -1004,7 +1004,7 @@ export default {
|
||||
'Pick a model': 'Válassz modellt',
|
||||
'Provider': 'Szolgáltató',
|
||||
'Runs on this phone with your own API key': 'Ezen a telefonon fut a saját API-kulcsoddal',
|
||||
'Runs on your openGym server': 'Az openGym-szervereden fut',
|
||||
'Runs on your KuentaGYM server': 'Az KuentaGYM-szervereden fut',
|
||||
'Save and use the Coach': 'Mentés és az Edző használata',
|
||||
'The Coach is already thinking about your training.': 'Az Edző már az edzéseiden gondolkodik.',
|
||||
'The Coach is resting — you have used today’s {0} runs on this phone.': 'Az Edző pihen — a mai {0} futtatást elhasználtad ezen a telefonon.',
|
||||
@@ -1013,7 +1013,7 @@ export default {
|
||||
'The key is stored in this phone’s secure storage and never leaves it except to call the provider.': 'A kulcs a telefon biztonságos tárolójában van, és csak a szolgáltató hívásához hagyja el azt.',
|
||||
'This phone calls the provider directly with your key. Every request is charged to your account.': 'Ez a telefon közvetlenül, a kulcsoddal hívja a szolgáltatót. Minden kérést a te fiókodra terhel.',
|
||||
'Turn the Coach off on this phone': 'Az Edző kikapcsolása ezen a telefonon',
|
||||
'Use my self-hosted openGym': 'A saját openGym-szerveremet használom',
|
||||
'Use my self-hosted KuentaGYM': 'A saját KuentaGYM-szerveremet használom',
|
||||
'What leaves this phone': 'Mi hagyja el ezt a telefont',
|
||||
'When you ask for a plan or a review, this phone sends the following straight to {0}, using your own API key. You pay for every request.': 'Amikor tervet vagy áttekintést kérsz, ez a telefon a következőket küldi közvetlenül ide: {0}, a saját API-kulcsoddal. Minden kérést te fizetsz.',
|
||||
'Your server has no Coach enabled — ask its admin, or bring your own key below.': 'A szervereden nincs Edző bekapcsolva — kérd meg az adminját, vagy add meg lent a saját kulcsodat.',
|
||||
@@ -1219,11 +1219,11 @@ export default {
|
||||
'Check for updates': 'Frissítések keresése',
|
||||
'Checking…': 'Ellenőrzés…',
|
||||
'You have v{0}': 'Nálad a v{0} van',
|
||||
'Update to openGym v{0}': 'Frissítés az openGym v{0} verzióra',
|
||||
'Update to KuentaGYM v{0}': 'Frissítés az KuentaGYM v{0} verzióra',
|
||||
'You have the latest version.': 'A legújabb verziód van.',
|
||||
'Could not check for updates — are you online?': 'Nem sikerült ellenőrizni — online vagy?',
|
||||
'Get the Android app': 'Android-alkalmazás letöltése',
|
||||
'Download the APK from opengym.duarte-santos.ch': 'Töltsd le az APK-t az opengym.duarte-santos.ch oldalról',
|
||||
'Download the APK from gym.dploy.lol': 'Töltsd le az APK-t az gym.dploy.lol oldalról',
|
||||
'Releases are checked on gitlab.com. The download is verified against its checksum before the installer opens.': 'A kiadásokat a gitlab.com-on ellenőrizzük. A letöltést a telepítő megnyitása előtt az ellenőrzőösszeggel vetjük össze.',
|
||||
'The web app updates together with your server. The Android app installs its own updates from here.': 'A webalkalmazás a szerverrel együtt frissül. Az Android-alkalmazás innen telepíti a frissítéseit.',
|
||||
'Starting download…': 'Letöltés indítása…',
|
||||
|
||||
+18
-18
@@ -286,7 +286,7 @@ export default {
|
||||
'Your workouts. Your weights. Your profile.': 'I tuoi allenamenti. I tuoi pesi. Il tuo profilo.',
|
||||
'Sign in with passkey': 'Accedi con passkey',
|
||||
'Create new profile': 'Crea nuovo profilo',
|
||||
"This browser doesn't support passkeys — you can still use openGym locally on this device.": 'Questo browser non supporta le passkey — puoi comunque usare openGym localmente su questo dispositivo.',
|
||||
"This browser doesn't support passkeys — you can still use KuentaGYM locally on this device.": 'Questo browser non supporta le passkey — puoi comunque usare KuentaGYM localmente su questo dispositivo.',
|
||||
"This browser doesn't support passkeys, and this instance requires an account. Try a browser or device with passkey support.": 'Questo browser non supporta le passkey e questo server richiede un account. Prova un browser o un dispositivo che supporti le passkey.',
|
||||
'Continue without account': 'Continua senza account',
|
||||
'Passkeys use {0} — no passwords.': 'Le passkey usano {0} — niente password.',
|
||||
@@ -352,14 +352,14 @@ export default {
|
||||
'Tip': 'Suggerimento',
|
||||
'In Chrome: ⋮ menu → Add to Home screen': 'In Chrome: menu ⋮ → Aggiungi a schermata Home',
|
||||
'In Safari: Share → Add to Home Screen': 'In Safari: Condividi → Aggiungi a Home',
|
||||
'to install openGym as a full-screen app.': 'per installare openGym come app a schermo intero.',
|
||||
'to install KuentaGYM as a full-screen app.': 'per installare KuentaGYM come app a schermo intero.',
|
||||
'Your data syncs with your profile — sign in anywhere to see it.': 'I tuoi dati si sincronizzano col profilo — accedi ovunque per vederli.',
|
||||
'Guest data stays on this device — export a backup now and then!': 'I dati ospite restano su questo dispositivo — esporta un backup ogni tanto!',
|
||||
'free & open source (AGPL v3)': 'gratuito e open source (AGPL v3)',
|
||||
'Notifications': 'Notifiche',
|
||||
'Not supported in this browser.': 'Non supportato in questo browser.',
|
||||
'Push notifications': 'Notifiche push',
|
||||
'Rest-timer alerts, even if openGym is closed.': 'Avvisi del timer di riposo, anche con openGym chiuso.',
|
||||
'Rest-timer alerts, even if KuentaGYM is closed.': 'Avvisi del timer di riposo, anche con KuentaGYM chiuso.',
|
||||
'Workout day reminder': 'Promemoria giorno di allenamento',
|
||||
'Reminder time': 'Orario promemoria',
|
||||
"Only sent on days you have a routine planned and haven't logged a workout yet.": 'Inviato solo nei giorni con una routine pianificata e nessun allenamento registrato.',
|
||||
@@ -548,7 +548,7 @@ export default {
|
||||
'Share your plan': 'Condividi il tuo piano',
|
||||
'Send your routines to a friend, or put your week on paper.': 'Invia le tue routine a un amico o metti la settimana su carta.',
|
||||
'Export plan file': 'Esporta file del piano',
|
||||
'A small file a friend imports into their own openGym — routines only, none of your workouts or weigh-ins.': 'Un piccolo file che un amico importa nel suo openGym — solo le routine, nessuno dei tuoi allenamenti o pesate.',
|
||||
'A small file a friend imports into their own KuentaGYM — routines only, none of your workouts or weigh-ins.': 'Un piccolo file che un amico importa nel suo KuentaGYM — solo le routine, nessuno dei tuoi allenamenti o pesate.',
|
||||
'Print / Save as PDF': 'Stampa / Salva come PDF',
|
||||
'A clean one-page-per-plan printout — no exercise ever splits across a page.': 'Una stampa pulita, una pagina per piano — nessun esercizio viene spezzato tra due pagine.',
|
||||
'Add an exercise to a routine first — an empty plan has nothing to share.': 'Aggiungi prima un esercizio a una routine — un piano vuoto non ha nulla da condividere.',
|
||||
@@ -569,14 +569,14 @@ export default {
|
||||
'Replaces your current Mon–Sun assignments.': 'Sostituisce la tua assegnazione lun–dom attuale.',
|
||||
'Added {0} routine to your plan': 'Aggiunta {0} routine al tuo piano',
|
||||
'Added {0} routines to your plan': 'Aggiunte {0} routine al tuo piano',
|
||||
'this isn’t an openGym plan file': 'questo non è un file di piano openGym',
|
||||
'this isn’t a KuentaGYM plan file': 'questo non è un file di piano KuentaGYM',
|
||||
'Shared routine': 'Routine condivisa',
|
||||
'Unknown exercise': 'Esercizio sconosciuto',
|
||||
'Weekly Training Plan': 'Piano di allenamento settimanale',
|
||||
'Made with openGym': 'Creato con openGym',
|
||||
'Made with KuentaGYM': 'Creato con KuentaGYM',
|
||||
'Something went wrong': 'Qualcosa è andato storto',
|
||||
'This screen could not be drawn. Your data is safe on this device.': 'Questa schermata non è stata disegnata. I tuoi dati su questo dispositivo sono al sicuro.',
|
||||
'Reload openGym': 'Ricarica openGym',
|
||||
'Reload KuentaGYM': 'Ricarica KuentaGYM',
|
||||
'Discard the running workout': 'Scarta l’allenamento in corso',
|
||||
|
||||
// --- v1.2.2: timed sets, progression, estimated 1RM (#16 #17 #18) ---
|
||||
@@ -877,28 +877,28 @@ export default {
|
||||
|
||||
// "Connect to my server" (mobile app pairing)
|
||||
'Your server': 'Il tuo server',
|
||||
'Synced with your openGym server.': 'Sincronizzato con il tuo server openGym.',
|
||||
'Synced with your KuentaGYM server.': 'Sincronizzato con il tuo server KuentaGYM.',
|
||||
'Disconnect': 'Disconnetti',
|
||||
'Disconnect from your server?': 'Disconnettersi dal server?',
|
||||
'Your data is synced to your server first, then this device switches back to local-only.': 'I tuoi dati vengono prima sincronizzati con il tuo server, poi questo dispositivo torna alla modalità locale.',
|
||||
'Disconnected — back to local-only': 'Disconnesso — tornato alla modalità locale',
|
||||
'Connect to my server': 'Connettiti al mio server',
|
||||
'Sync this device to your own self-hosted openGym instead.': 'Sincronizza invece questo dispositivo con il tuo openGym self-hosted.',
|
||||
'Sync this device to your own self-hosted KuentaGYM instead.': 'Sincronizza invece questo dispositivo con il tuo KuentaGYM self-hosted.',
|
||||
'Pair the mobile app': "Abbina l'app mobile",
|
||||
'Connect the openGym app on your phone to this account.': "Collega l'app openGym sul tuo telefono a questo account.",
|
||||
'Connect the KuentaGYM app on your phone to this account.': "Collega l'app KuentaGYM sul tuo telefono a questo account.",
|
||||
'Could not generate a code': 'Impossibile generare un codice',
|
||||
'On the openGym app, choose “Connect to my server”, then enter this address and the code below. It expires in 5 minutes.': "Nell'app openGym scegli «Connettiti al mio server», poi inserisci questo indirizzo e il codice qui sotto. Scade tra 5 minuti.",
|
||||
'On the KuentaGYM app, choose “Connect to my server”, then enter this address and the code below. It expires in 5 minutes.': "Nell'app KuentaGYM scegli «Connettiti al mio server», poi inserisci questo indirizzo e il codice qui sotto. Scade tra 5 minuti.",
|
||||
'Enter your server address and the code': "Inserisci l'indirizzo del tuo server e il codice",
|
||||
'Connected': 'Connesso',
|
||||
'Could not connect': 'Connessione non riuscita',
|
||||
'Open Settings → “Pair the mobile app” on the openGym site you’re already signed into, then enter its address and the code shown there.': "In Impostazioni → «Abbina l'app mobile» sul sito openGym in cui hai già effettuato l'accesso, poi inserisci il suo indirizzo e il codice mostrato lì.",
|
||||
'Open Settings → “Pair the mobile app” on the KuentaGYM site you’re already signed into, then enter its address and the code shown there.': "In Impostazioni → «Abbina l'app mobile» sul sito KuentaGYM in cui hai già effettuato l'accesso, poi inserisci il suo indirizzo e il codice mostrato lì.",
|
||||
'Server address (e.g. gym.example.com)': 'Indirizzo del server (es. gym.example.com)',
|
||||
'Pairing code': 'Codice di abbinamento',
|
||||
'Connecting…': 'Connessione…',
|
||||
'Connect': 'Connetti',
|
||||
'How do you want to use openGym?': 'Come vuoi usare openGym?',
|
||||
'How do you want to use KuentaGYM?': 'Come vuoi usare KuentaGYM?',
|
||||
'Use on this device': 'Usa su questo dispositivo',
|
||||
'Local keeps everything on this phone. Connecting syncs to your own openGym server instead — you can switch later in Settings.': 'Locale mantiene tutto su questo telefono. Connettersi sincronizza invece con il tuo server openGym — potrai cambiarlo più tardi nelle Impostazioni.',
|
||||
'Local keeps everything on this phone. Connecting syncs to your own KuentaGYM server instead — you can switch later in Settings.': 'Locale mantiene tutto su questo telefono. Connettersi sincronizza invece con il tuo server KuentaGYM — potrai cambiarlo più tardi nelle Impostazioni.',
|
||||
|
||||
// --- workout notes and planned warm-ups ---
|
||||
'{0} — done': '{0} — fatto',
|
||||
@@ -940,7 +940,7 @@ export default {
|
||||
'Pick a model': 'Scegli un modello',
|
||||
'Provider': 'Provider',
|
||||
'Runs on this phone with your own API key': 'Funziona su questo telefono con la tua chiave API',
|
||||
'Runs on your openGym server': 'Funziona sul tuo server openGym',
|
||||
'Runs on your KuentaGYM server': 'Funziona sul tuo server KuentaGYM',
|
||||
'Save and use the Coach': 'Salva e usa il Coach',
|
||||
'The Coach is already thinking about your training.': 'Il Coach sta già pensando al tuo allenamento.',
|
||||
'The Coach is resting — you have used today’s {0} runs on this phone.': 'Il Coach riposa: hai usato le {0} esecuzioni di oggi su questo telefono.',
|
||||
@@ -949,7 +949,7 @@ export default {
|
||||
'The key is stored in this phone’s secure storage and never leaves it except to call the provider.': 'La chiave è conservata nell’archivio sicuro di questo telefono e non lo lascia mai, se non per chiamare il provider.',
|
||||
'This phone calls the provider directly with your key. Every request is charged to your account.': 'Questo telefono chiama il provider direttamente con la tua chiave. Ogni richiesta viene addebitata al tuo account.',
|
||||
'Turn the Coach off on this phone': 'Spegni il Coach su questo telefono',
|
||||
'Use my self-hosted openGym': 'Usa il mio openGym self-hosted',
|
||||
'Use my self-hosted KuentaGYM': 'Usa il mio KuentaGYM self-hosted',
|
||||
'What leaves this phone': 'Cosa lascia questo telefono',
|
||||
'When you ask for a plan or a review, this phone sends the following straight to {0}, using your own API key. You pay for every request.': 'Quando chiedi un piano o una revisione, questo telefono invia quanto segue direttamente a {0}, con la tua chiave API. Ogni richiesta la paghi tu.',
|
||||
'Your server has no Coach enabled — ask its admin, or bring your own key below.': 'Il tuo server non ha il Coach attivo: chiedi all’amministratore, oppure usa la tua chiave qui sotto.',
|
||||
@@ -1216,11 +1216,11 @@ export default {
|
||||
'Check for updates': 'Cerca aggiornamenti',
|
||||
'Checking…': 'Controllo…',
|
||||
'You have v{0}': 'Hai la v{0}',
|
||||
'Update to openGym v{0}': 'Aggiorna a openGym v{0}',
|
||||
'Update to KuentaGYM v{0}': 'Aggiorna a KuentaGYM v{0}',
|
||||
'You have the latest version.': 'Hai l’ultima versione.',
|
||||
'Could not check for updates — are you online?': 'Impossibile controllare — sei online?',
|
||||
'Get the Android app': 'Scarica l’app Android',
|
||||
'Download the APK from opengym.duarte-santos.ch': 'Scarica l’APK da opengym.duarte-santos.ch',
|
||||
'Download the APK from gym.dploy.lol': 'Scarica l’APK da gym.dploy.lol',
|
||||
'Releases are checked on gitlab.com. The download is verified against its checksum before the installer opens.': 'Le release vengono controllate su gitlab.com. Il download è verificato con il suo checksum prima di aprire l’installer.',
|
||||
'The web app updates together with your server. The Android app installs its own updates from here.': 'L’app web si aggiorna insieme al tuo server. L’app Android installa i suoi aggiornamenti da qui.',
|
||||
'Starting download…': 'Avvio del download…',
|
||||
|
||||
+18
-18
@@ -286,7 +286,7 @@ export default {
|
||||
'Your workouts. Your weights. Your profile.': '당신의 운동. 당신의 무게. 당신의 프로필.',
|
||||
'Sign in with passkey': '패스키로 로그인',
|
||||
'Create new profile': '새 프로필 만들기',
|
||||
"This browser doesn't support passkeys — you can still use openGym locally on this device.": '이 브라우저는 패스키를 지원하지 않아요 — 그래도 이 기기에서 openGym을 로컬로 사용할 수 있습니다.',
|
||||
"This browser doesn't support passkeys — you can still use KuentaGYM locally on this device.": '이 브라우저는 패스키를 지원하지 않아요 — 그래도 이 기기에서 KuentaGYM을 로컬로 사용할 수 있습니다.',
|
||||
"This browser doesn't support passkeys, and this instance requires an account. Try a browser or device with passkey support.": '이 브라우저는 패스키를 지원하지 않고, 이 서버는 계정이 필요합니다. 패스키를 지원하는 브라우저나 기기를 사용해 보세요.',
|
||||
'Continue without account': '계정 없이 계속',
|
||||
'Passkeys use {0} — no passwords.': '패스키는 {0}을(를) 사용합니다 — 비밀번호 없음.',
|
||||
@@ -352,14 +352,14 @@ export default {
|
||||
'Tip': '팁',
|
||||
'In Chrome: ⋮ menu → Add to Home screen': 'Chrome에서: ⋮ 메뉴 → 홈 화면에 추가',
|
||||
'In Safari: Share → Add to Home Screen': 'Safari에서: 공유 → 홈 화면에 추가',
|
||||
'to install openGym as a full-screen app.': '하면 openGym을 전체 화면 앱으로 설치할 수 있어요.',
|
||||
'to install KuentaGYM as a full-screen app.': '하면 KuentaGYM을 전체 화면 앱으로 설치할 수 있어요.',
|
||||
'Your data syncs with your profile — sign in anywhere to see it.': '데이터가 프로필과 동기화됩니다 — 어디서든 로그인해 확인하세요.',
|
||||
'Guest data stays on this device — export a backup now and then!': '게스트 데이터는 이 기기에만 있어요 — 가끔 백업을 내보내세요!',
|
||||
'free & open source (AGPL v3)': '무료 오픈소스 (AGPL v3)',
|
||||
'Notifications': '알림',
|
||||
'Not supported in this browser.': '이 브라우저에서는 지원되지 않아요.',
|
||||
'Push notifications': '푸시 알림',
|
||||
'Rest-timer alerts, even if openGym is closed.': 'openGym이 닫혀 있어도 휴식 타이머 알림을 받아요.',
|
||||
'Rest-timer alerts, even if KuentaGYM is closed.': 'KuentaGYM이 닫혀 있어도 휴식 타이머 알림을 받아요.',
|
||||
'Workout day reminder': '운동일 리마인더',
|
||||
'Reminder time': '리마인더 시간',
|
||||
"Only sent on days you have a routine planned and haven't logged a workout yet.": '루틴이 예정되어 있고 아직 운동을 기록하지 않은 날에만 전송됩니다.',
|
||||
@@ -548,7 +548,7 @@ export default {
|
||||
'Share your plan': '계획 공유',
|
||||
'Send your routines to a friend, or put your week on paper.': '루틴을 친구에게 보내거나 이번 주 계획을 종이에 인쇄하세요.',
|
||||
'Export plan file': '계획 파일 내보내기',
|
||||
'A small file a friend imports into their own openGym — routines only, none of your workouts or weigh-ins.': '친구가 자신의 openGym으로 가져올 수 있는 작은 파일 — 루틴만 포함되며 운동 기록이나 체중은 포함되지 않습니다.',
|
||||
'A small file a friend imports into their own KuentaGYM — routines only, none of your workouts or weigh-ins.': '친구가 자신의 KuentaGYM으로 가져올 수 있는 작은 파일 — 루틴만 포함되며 운동 기록이나 체중은 포함되지 않습니다.',
|
||||
'Print / Save as PDF': '인쇄 / PDF로 저장',
|
||||
'A clean one-page-per-plan printout — no exercise ever splits across a page.': '계획당 한 페이지의 깔끔한 출력물 — 어떤 운동도 페이지 사이에서 나뉘지 않습니다.',
|
||||
'Add an exercise to a routine first — an empty plan has nothing to share.': '먼저 루틴에 운동을 추가하세요 — 빈 계획은 공유할 것이 없습니다.',
|
||||
@@ -569,14 +569,14 @@ export default {
|
||||
'Replaces your current Mon–Sun assignments.': '현재 월–일 배정을 대체합니다.',
|
||||
'Added {0} routine to your plan': '계획에 루틴 {0}개를 추가했습니다',
|
||||
'Added {0} routines to your plan': '계획에 루틴 {0}개를 추가했습니다',
|
||||
'this isn’t an openGym plan file': 'openGym 계획 파일이 아닙니다',
|
||||
'this isn’t a KuentaGYM plan file': 'KuentaGYM 계획 파일이 아닙니다',
|
||||
'Shared routine': '공유된 루틴',
|
||||
'Unknown exercise': '알 수 없는 운동',
|
||||
'Weekly Training Plan': '주간 트레이닝 계획',
|
||||
'Made with openGym': 'openGym으로 제작',
|
||||
'Made with KuentaGYM': 'KuentaGYM으로 제작',
|
||||
'Something went wrong': '문제가 발생했습니다',
|
||||
'This screen could not be drawn. Your data is safe on this device.': '이 화면을 그리지 못했습니다. 데이터는 이 기기에 안전하게 남아 있습니다.',
|
||||
'Reload openGym': 'openGym 다시 불러오기',
|
||||
'Reload KuentaGYM': 'KuentaGYM 다시 불러오기',
|
||||
'Discard the running workout': '진행 중인 운동 취소',
|
||||
|
||||
// --- v1.2.2: timed sets, progression, estimated 1RM (#16 #17 #18) ---
|
||||
@@ -877,28 +877,28 @@ export default {
|
||||
|
||||
// "Connect to my server" (mobile app pairing)
|
||||
'Your server': '내 서버',
|
||||
'Synced with your openGym server.': 'openGym 서버와 동기화됨',
|
||||
'Synced with your KuentaGYM server.': 'KuentaGYM 서버와 동기화됨',
|
||||
'Disconnect': '연결 해제',
|
||||
'Disconnect from your server?': '서버와 연결을 해제할까요?',
|
||||
'Your data is synced to your server first, then this device switches back to local-only.': '데이터가 먼저 서버와 동기화된 후, 이 기기는 로컬 모드로 돌아갑니다.',
|
||||
'Disconnected — back to local-only': '연결 해제됨 — 로컬 모드로 전환',
|
||||
'Connect to my server': '내 서버에 연결',
|
||||
'Sync this device to your own self-hosted openGym instead.': '대신 이 기기를 직접 호스팅하는 openGym 서버와 동기화합니다.',
|
||||
'Sync this device to your own self-hosted KuentaGYM instead.': '대신 이 기기를 직접 호스팅하는 KuentaGYM 서버와 동기화합니다.',
|
||||
'Pair the mobile app': '모바일 앱 페어링',
|
||||
'Connect the openGym app on your phone to this account.': '휴대폰의 openGym 앱을 이 계정에 연결하세요.',
|
||||
'Connect the KuentaGYM app on your phone to this account.': '휴대폰의 KuentaGYM 앱을 이 계정에 연결하세요.',
|
||||
'Could not generate a code': '코드를 생성하지 못했습니다',
|
||||
'On the openGym app, choose “Connect to my server”, then enter this address and the code below. It expires in 5 minutes.': 'openGym 앱에서 "내 서버에 연결"을 선택한 다음, 이 주소와 아래 코드를 입력하세요. 5분 후 만료됩니다.',
|
||||
'On the KuentaGYM app, choose “Connect to my server”, then enter this address and the code below. It expires in 5 minutes.': 'KuentaGYM 앱에서 "내 서버에 연결"을 선택한 다음, 이 주소와 아래 코드를 입력하세요. 5분 후 만료됩니다.',
|
||||
'Enter your server address and the code': '서버 주소와 코드를 입력하세요',
|
||||
'Connected': '연결됨',
|
||||
'Could not connect': '연결하지 못했습니다',
|
||||
'Open Settings → “Pair the mobile app” on the openGym site you’re already signed into, then enter its address and the code shown there.': '이미 로그인된 openGym 사이트에서 설정 → "모바일 앱 페어링"을 열고, 주소와 거기에 표시된 코드를 입력하세요.',
|
||||
'Open Settings → “Pair the mobile app” on the KuentaGYM site you’re already signed into, then enter its address and the code shown there.': '이미 로그인된 KuentaGYM 사이트에서 설정 → "모바일 앱 페어링"을 열고, 주소와 거기에 표시된 코드를 입력하세요.',
|
||||
'Server address (e.g. gym.example.com)': '서버 주소 (예: gym.example.com)',
|
||||
'Pairing code': '페어링 코드',
|
||||
'Connecting…': '연결 중…',
|
||||
'Connect': '연결',
|
||||
'How do you want to use openGym?': 'openGym을 어떻게 사용하시겠어요?',
|
||||
'How do you want to use KuentaGYM?': 'KuentaGYM을 어떻게 사용하시겠어요?',
|
||||
'Use on this device': '이 기기에서 사용',
|
||||
'Local keeps everything on this phone. Connecting syncs to your own openGym server instead — you can switch later in Settings.': '로컬 모드는 모든 것을 이 휴대폰에 보관합니다. 연결하면 대신 자신의 openGym 서버와 동기화됩니다 — 나중에 설정에서 변경할 수 있습니다.',
|
||||
'Local keeps everything on this phone. Connecting syncs to your own KuentaGYM server instead — you can switch later in Settings.': '로컬 모드는 모든 것을 이 휴대폰에 보관합니다. 연결하면 대신 자신의 KuentaGYM 서버와 동기화됩니다 — 나중에 설정에서 변경할 수 있습니다.',
|
||||
|
||||
// --- workout notes and planned warm-ups ---
|
||||
'{0} — done': '{0} — 완료',
|
||||
@@ -940,7 +940,7 @@ export default {
|
||||
'Pick a model': '모델을 선택하세요',
|
||||
'Provider': '제공자',
|
||||
'Runs on this phone with your own API key': '이 휴대폰에서 내 API 키로 실행',
|
||||
'Runs on your openGym server': '내 openGym 서버에서 실행',
|
||||
'Runs on your KuentaGYM server': '내 KuentaGYM 서버에서 실행',
|
||||
'Save and use the Coach': '저장하고 코치 사용',
|
||||
'The Coach is already thinking about your training.': '코치가 이미 당신의 훈련을 검토 중입니다.',
|
||||
'The Coach is resting — you have used today’s {0} runs on this phone.': '코치가 쉬는 중입니다 — 이 휴대폰에서 오늘의 {0}회 실행을 모두 사용했습니다.',
|
||||
@@ -949,7 +949,7 @@ export default {
|
||||
'The key is stored in this phone’s secure storage and never leaves it except to call the provider.': '키는 이 휴대폰의 보안 저장소에 보관되며 제공자를 호출할 때 외에는 절대 밖으로 나가지 않습니다.',
|
||||
'This phone calls the provider directly with your key. Every request is charged to your account.': '이 휴대폰이 당신의 키로 제공자를 직접 호출합니다. 모든 요청은 당신의 계정에 청구됩니다.',
|
||||
'Turn the Coach off on this phone': '이 휴대폰에서 코치 끄기',
|
||||
'Use my self-hosted openGym': '내 자체 호스팅 openGym 사용',
|
||||
'Use my self-hosted KuentaGYM': '내 자체 호스팅 KuentaGYM 사용',
|
||||
'What leaves this phone': '이 휴대폰에서 나가는 것',
|
||||
'When you ask for a plan or a review, this phone sends the following straight to {0}, using your own API key. You pay for every request.': '계획이나 검토를 요청하면 이 휴대폰이 당신의 API 키로 다음 내용을 {0}에 바로 보냅니다. 모든 요청의 비용은 당신이 냅니다.',
|
||||
'Your server has no Coach enabled — ask its admin, or bring your own key below.': '서버에 코치가 활성화되어 있지 않습니다 — 관리자에게 문의하거나 아래에서 내 키를 사용하세요.',
|
||||
@@ -1216,11 +1216,11 @@ export default {
|
||||
'Check for updates': '업데이트 확인',
|
||||
'Checking…': '확인 중…',
|
||||
'You have v{0}': '현재 v{0}',
|
||||
'Update to openGym v{0}': 'openGym v{0}(으)로 업데이트',
|
||||
'Update to KuentaGYM v{0}': 'KuentaGYM v{0}(으)로 업데이트',
|
||||
'You have the latest version.': '최신 버전입니다.',
|
||||
'Could not check for updates — are you online?': '업데이트를 확인할 수 없어요 — 온라인 상태인가요?',
|
||||
'Get the Android app': 'Android 앱 받기',
|
||||
'Download the APK from opengym.duarte-santos.ch': 'opengym.duarte-santos.ch에서 APK 다운로드',
|
||||
'Download the APK from gym.dploy.lol': 'gym.dploy.lol에서 APK 다운로드',
|
||||
'Releases are checked on gitlab.com. The download is verified against its checksum before the installer opens.': '릴리스는 gitlab.com에서 확인합니다. 설치 프로그램이 열리기 전에 다운로드의 체크섬을 검증합니다.',
|
||||
'The web app updates together with your server. The Android app installs its own updates from here.': '웹 앱은 서버와 함께 업데이트됩니다. Android 앱은 여기서 직접 업데이트를 설치합니다.',
|
||||
'Starting download…': '다운로드 시작 중…',
|
||||
|
||||
+18
-18
@@ -286,7 +286,7 @@ export default {
|
||||
'Your workouts. Your weights. Your profile.': 'Twoje treningi. Twoje ciężary. Twój profil.',
|
||||
'Sign in with passkey': 'Zaloguj się passkey',
|
||||
'Create new profile': 'Utwórz nowy profil',
|
||||
"This browser doesn't support passkeys — you can still use openGym locally on this device.": 'Ta przeglądarka nie obsługuje passkey — mimo to możesz używać openGym lokalnie na tym urządzeniu.',
|
||||
"This browser doesn't support passkeys — you can still use KuentaGYM locally on this device.": 'Ta przeglądarka nie obsługuje passkey — mimo to możesz używać KuentaGYM lokalnie na tym urządzeniu.',
|
||||
"This browser doesn't support passkeys, and this instance requires an account. Try a browser or device with passkey support.": 'Ta przeglądarka nie obsługuje passkey, a ten serwer wymaga konta. Spróbuj przeglądarki lub urządzenia z obsługą passkey.',
|
||||
'Continue without account': 'Kontynuuj bez konta',
|
||||
'Passkeys use {0} — no passwords.': 'Passkey używa: {0} — bez haseł.',
|
||||
@@ -352,14 +352,14 @@ export default {
|
||||
'Tip': 'Wskazówka',
|
||||
'In Chrome: ⋮ menu → Add to Home screen': 'W Chrome: menu ⋮ → Dodaj do ekranu głównego',
|
||||
'In Safari: Share → Add to Home Screen': 'W Safari: Udostępnij → Do ekranu początkowego',
|
||||
'to install openGym as a full-screen app.': 'aby zainstalować openGym jako aplikację pełnoekranową.',
|
||||
'to install KuentaGYM as a full-screen app.': 'aby zainstalować KuentaGYM jako aplikację pełnoekranową.',
|
||||
'Your data syncs with your profile — sign in anywhere to see it.': 'Dane synchronizują się z profilem — zaloguj się gdziekolwiek, aby je zobaczyć.',
|
||||
'Guest data stays on this device — export a backup now and then!': 'Dane gościa zostają na tym urządzeniu — eksportuj kopię od czasu do czasu!',
|
||||
'free & open source (AGPL v3)': 'darmowy i open source (AGPL v3)',
|
||||
'Notifications': 'Powiadomienia',
|
||||
'Not supported in this browser.': 'Nieobsługiwane w tej przeglądarce.',
|
||||
'Push notifications': 'Powiadomienia push',
|
||||
'Rest-timer alerts, even if openGym is closed.': 'Alerty minutnika przerwy, nawet gdy openGym jest zamknięty.',
|
||||
'Rest-timer alerts, even if KuentaGYM is closed.': 'Alerty minutnika przerwy, nawet gdy KuentaGYM jest zamknięty.',
|
||||
'Workout day reminder': 'Przypomnienie o dniu treningu',
|
||||
'Reminder time': 'Godzina przypomnienia',
|
||||
"Only sent on days you have a routine planned and haven't logged a workout yet.": 'Wysyłane tylko w dni z zaplanowanym planem i bez zapisanego treningu.',
|
||||
@@ -548,7 +548,7 @@ export default {
|
||||
'Share your plan': 'Udostępnij swój plan',
|
||||
'Send your routines to a friend, or put your week on paper.': 'Wyślij swoje plany treningowe znajomemu albo przenieś swój tydzień na papier.',
|
||||
'Export plan file': 'Eksportuj plik planu',
|
||||
'A small file a friend imports into their own openGym — routines only, none of your workouts or weigh-ins.': 'Mały plik, który znajomy zaimportuje do własnego openGym — tylko plany treningowe, bez Twoich treningów i pomiarów wagi.',
|
||||
'A small file a friend imports into their own KuentaGYM — routines only, none of your workouts or weigh-ins.': 'Mały plik, który znajomy zaimportuje do własnego KuentaGYM — tylko plany treningowe, bez Twoich treningów i pomiarów wagi.',
|
||||
'Print / Save as PDF': 'Drukuj / Zapisz jako PDF',
|
||||
'A clean one-page-per-plan printout — no exercise ever splits across a page.': 'Czysty wydruk, jedna strona na plan — żadne ćwiczenie nie jest dzielone między stronami.',
|
||||
'Add an exercise to a routine first — an empty plan has nothing to share.': 'Najpierw dodaj ćwiczenie do planu treningowego — pusty plan nie ma czym się dzielić.',
|
||||
@@ -569,14 +569,14 @@ export default {
|
||||
'Replaces your current Mon–Sun assignments.': 'Zastępuje Twój obecny przydział pon–niedz.',
|
||||
'Added {0} routine to your plan': 'Dodano {0} plan treningowy do Twojego planu',
|
||||
'Added {0} routines to your plan': 'Dodano {0} planów treningowych do Twojego planu',
|
||||
'this isn’t an openGym plan file': 'to nie jest plik planu openGym',
|
||||
'this isn’t a KuentaGYM plan file': 'to nie jest plik planu KuentaGYM',
|
||||
'Shared routine': 'Udostępniony plan treningowy',
|
||||
'Unknown exercise': 'Nieznane ćwiczenie',
|
||||
'Weekly Training Plan': 'Tygodniowy plan treningowy',
|
||||
'Made with openGym': 'Zrobione w openGym',
|
||||
'Made with KuentaGYM': 'Zrobione w KuentaGYM',
|
||||
'Something went wrong': 'Coś poszło nie tak',
|
||||
'This screen could not be drawn. Your data is safe on this device.': 'Nie udało się wyświetlić tego ekranu. Twoje dane na tym urządzeniu są bezpieczne.',
|
||||
'Reload openGym': 'Przeładuj openGym',
|
||||
'Reload KuentaGYM': 'Przeładuj KuentaGYM',
|
||||
'Discard the running workout': 'Odrzuć trwający trening',
|
||||
|
||||
// --- v1.2.2: timed sets, progression, estimated 1RM (#16 #17 #18) ---
|
||||
@@ -877,28 +877,28 @@ export default {
|
||||
|
||||
// "Connect to my server" (mobile app pairing)
|
||||
'Your server': 'Twój serwer',
|
||||
'Synced with your openGym server.': 'Zsynchronizowano z Twoim serwerem openGym.',
|
||||
'Synced with your KuentaGYM server.': 'Zsynchronizowano z Twoim serwerem KuentaGYM.',
|
||||
'Disconnect': 'Rozłącz',
|
||||
'Disconnect from your server?': 'Rozłączyć z serwerem?',
|
||||
'Your data is synced to your server first, then this device switches back to local-only.': 'Twoje dane zostaną najpierw zsynchronizowane z serwerem, a następnie to urządzenie wróci do trybu lokalnego.',
|
||||
'Disconnected — back to local-only': 'Rozłączono — z powrotem w trybie lokalnym',
|
||||
'Connect to my server': 'Połącz z moim serwerem',
|
||||
'Sync this device to your own self-hosted openGym instead.': 'Zsynchronizuj to urządzenie z własnym, samodzielnie hostowanym openGym.',
|
||||
'Sync this device to your own self-hosted KuentaGYM instead.': 'Zsynchronizuj to urządzenie z własnym, samodzielnie hostowanym KuentaGYM.',
|
||||
'Pair the mobile app': 'Sparuj aplikację mobilną',
|
||||
'Connect the openGym app on your phone to this account.': 'Połącz aplikację openGym na telefonie z tym kontem.',
|
||||
'Connect the KuentaGYM app on your phone to this account.': 'Połącz aplikację KuentaGYM na telefonie z tym kontem.',
|
||||
'Could not generate a code': 'Nie udało się wygenerować kodu',
|
||||
'On the openGym app, choose “Connect to my server”, then enter this address and the code below. It expires in 5 minutes.': 'W aplikacji openGym wybierz „Połącz z moim serwerem”, a potem wpisz ten adres i poniższy kod. Wygasa po 5 minutach.',
|
||||
'On the KuentaGYM app, choose “Connect to my server”, then enter this address and the code below. It expires in 5 minutes.': 'W aplikacji KuentaGYM wybierz „Połącz z moim serwerem”, a potem wpisz ten adres i poniższy kod. Wygasa po 5 minutach.',
|
||||
'Enter your server address and the code': 'Wpisz adres swojego serwera i kod',
|
||||
'Connected': 'Połączono',
|
||||
'Could not connect': 'Nie udało się połączyć',
|
||||
'Open Settings → “Pair the mobile app” on the openGym site you’re already signed into, then enter its address and the code shown there.': 'W Ustawieniach → „Sparuj aplikację mobilną” na stronie openGym, na której jesteś już zalogowany, wpisz jej adres i wyświetlony tam kod.',
|
||||
'Open Settings → “Pair the mobile app” on the KuentaGYM site you’re already signed into, then enter its address and the code shown there.': 'W Ustawieniach → „Sparuj aplikację mobilną” na stronie KuentaGYM, na której jesteś już zalogowany, wpisz jej adres i wyświetlony tam kod.',
|
||||
'Server address (e.g. gym.example.com)': 'Adres serwera (np. gym.example.com)',
|
||||
'Pairing code': 'Kod parowania',
|
||||
'Connecting…': 'Łączenie…',
|
||||
'Connect': 'Połącz',
|
||||
'How do you want to use openGym?': 'Jak chcesz korzystać z openGym?',
|
||||
'How do you want to use KuentaGYM?': 'Jak chcesz korzystać z KuentaGYM?',
|
||||
'Use on this device': 'Użyj na tym urządzeniu',
|
||||
'Local keeps everything on this phone. Connecting syncs to your own openGym server instead — you can switch later in Settings.': 'Tryb lokalny zachowuje wszystko na tym telefonie. Połączenie synchronizuje zamiast tego z Twoim własnym serwerem openGym — możesz to później zmienić w Ustawieniach.',
|
||||
'Local keeps everything on this phone. Connecting syncs to your own KuentaGYM server instead — you can switch later in Settings.': 'Tryb lokalny zachowuje wszystko na tym telefonie. Połączenie synchronizuje zamiast tego z Twoim własnym serwerem KuentaGYM — możesz to później zmienić w Ustawieniach.',
|
||||
|
||||
// --- workout notes and planned warm-ups ---
|
||||
'{0} — done': '{0} — zrobione',
|
||||
@@ -940,7 +940,7 @@ export default {
|
||||
'Pick a model': 'Wybierz model',
|
||||
'Provider': 'Dostawca',
|
||||
'Runs on this phone with your own API key': 'Działa na tym telefonie z Twoim kluczem API',
|
||||
'Runs on your openGym server': 'Działa na Twoim serwerze openGym',
|
||||
'Runs on your KuentaGYM server': 'Działa na Twoim serwerze KuentaGYM',
|
||||
'Save and use the Coach': 'Zapisz i używaj trenera',
|
||||
'The Coach is already thinking about your training.': 'Trener już analizuje Twój trening.',
|
||||
'The Coach is resting — you have used today’s {0} runs on this phone.': 'Trener odpoczywa — wykorzystano dzisiejsze {0} uruchomień na tym telefonie.',
|
||||
@@ -949,7 +949,7 @@ export default {
|
||||
'The key is stored in this phone’s secure storage and never leaves it except to call the provider.': 'Klucz jest przechowywany w bezpiecznej pamięci tego telefonu i opuszcza go tylko po to, by wywołać dostawcę.',
|
||||
'This phone calls the provider directly with your key. Every request is charged to your account.': 'Ten telefon łączy się z dostawcą bezpośrednio z Twoim kluczem. Każde zapytanie obciąża Twoje konto.',
|
||||
'Turn the Coach off on this phone': 'Wyłącz trenera na tym telefonie',
|
||||
'Use my self-hosted openGym': 'Użyj mojego własnego openGym',
|
||||
'Use my self-hosted KuentaGYM': 'Użyj mojego własnego KuentaGYM',
|
||||
'What leaves this phone': 'Co opuszcza ten telefon',
|
||||
'When you ask for a plan or a review, this phone sends the following straight to {0}, using your own API key. You pay for every request.': 'Gdy prosisz o plan lub przegląd, ten telefon wysyła poniższe dane prosto do {0}, z Twoim własnym kluczem API. Płacisz za każde zapytanie.',
|
||||
'Your server has no Coach enabled — ask its admin, or bring your own key below.': 'Twój serwer nie ma włączonego trenera — zapytaj administratora albo użyj własnego klucza poniżej.',
|
||||
@@ -1216,11 +1216,11 @@ export default {
|
||||
'Check for updates': 'Sprawdź aktualizacje',
|
||||
'Checking…': 'Sprawdzanie…',
|
||||
'You have v{0}': 'Masz v{0}',
|
||||
'Update to openGym v{0}': 'Zaktualizuj do openGym v{0}',
|
||||
'Update to KuentaGYM v{0}': 'Zaktualizuj do KuentaGYM v{0}',
|
||||
'You have the latest version.': 'Masz najnowszą wersję.',
|
||||
'Could not check for updates — are you online?': 'Nie udało się sprawdzić — czy jesteś online?',
|
||||
'Get the Android app': 'Pobierz aplikację na Androida',
|
||||
'Download the APK from opengym.duarte-santos.ch': 'Pobierz APK z opengym.duarte-santos.ch',
|
||||
'Download the APK from gym.dploy.lol': 'Pobierz APK z gym.dploy.lol',
|
||||
'Releases are checked on gitlab.com. The download is verified against its checksum before the installer opens.': 'Wydania są sprawdzane na gitlab.com. Pobrany plik jest weryfikowany sumą kontrolną przed otwarciem instalatora.',
|
||||
'The web app updates together with your server. The Android app installs its own updates from here.': 'Aplikacja webowa aktualizuje się razem z serwerem. Aplikacja na Androida instaluje aktualizacje stąd.',
|
||||
'Starting download…': 'Rozpoczynanie pobierania…',
|
||||
|
||||
@@ -99,7 +99,7 @@ export const PT_BR_OVERRIDES = {
|
||||
'Create passkey': 'Criar chave de acesso',
|
||||
'Your workouts. Your weights. Your profile.': 'Seus treinos. Seus pesos. Seu perfil.',
|
||||
'Create new profile': 'Criar novo perfil',
|
||||
"This browser doesn't support passkeys — you can still use openGym locally on this device.": 'Este navegador não oferece suporte a chaves de acesso — você ainda pode usar o openGym localmente neste dispositivo.',
|
||||
"This browser doesn't support passkeys — you can still use KuentaGYM locally on this device.": 'Este navegador não oferece suporte a chaves de acesso — você ainda pode usar o KuentaGYM localmente neste dispositivo.',
|
||||
'Signed in with passkey — data syncs to this profile.': 'Sessão iniciada com chave de acesso — os dados são sincronizados com este perfil.',
|
||||
'Sign out?': 'Sair?',
|
||||
'Your data is synced to your profile first, then cleared from this device.': 'Seus dados serão sincronizados com o perfil e depois apagados deste dispositivo.',
|
||||
@@ -201,7 +201,7 @@ export const PT_BR_OVERRIDES = {
|
||||
'Got a plan from a friend?': 'Recebeu um plano de um amigo?',
|
||||
'Send your routines to a friend, or put your week on paper.': 'Envie suas rotinas para um amigo ou coloque sua semana no papel.',
|
||||
'Export plan file': 'Exportar arquivo do plano',
|
||||
'A small file a friend imports into their own openGym — routines only, none of your workouts or weigh-ins.': 'Um pequeno arquivo que um amigo pode importar no próprio openGym — somente rotinas, sem seus treinos ou pesagens.',
|
||||
'A small file a friend imports into their own KuentaGYM — routines only, none of your workouts or weigh-ins.': 'Um pequeno arquivo que um amigo pode importar no próprio KuentaGYM — somente rotinas, sem seus treinos ou pesagens.',
|
||||
'Print / Save as PDF': 'Imprimir / Salvar como PDF',
|
||||
'Add an exercise to a routine first — an empty plan has nothing to share.': 'Adicione primeiro um exercício a uma rotina — um plano vazio não tem nada para compartilhar.',
|
||||
'Import a plan file': 'Importar arquivo do plano',
|
||||
@@ -212,7 +212,7 @@ export const PT_BR_OVERRIDES = {
|
||||
'Replaces your current Mon–Sun assignments.': 'Substitui os dias definidos de segunda a domingo.',
|
||||
'Added {0} routine to your plan': '{0} rotina adicionada ao seu plano',
|
||||
'Added {0} routines to your plan': '{0} rotinas adicionadas ao seu plano',
|
||||
'this isn’t an openGym plan file': 'este não é um arquivo de plano do openGym',
|
||||
'this isn’t a KuentaGYM plan file': 'este não é um arquivo de plano do KuentaGYM',
|
||||
'This screen could not be drawn. Your data is safe on this device.': 'Não foi possível exibir esta tela. Seus dados estão seguros neste dispositivo.',
|
||||
'From your log:': 'Do seu registro:',
|
||||
'Enter a weight and 1–{0} reps — beyond that an estimate is guesswork.': 'Informe um peso e de 1 a {0} repetições — acima disso, a estimativa é apenas um palpite.',
|
||||
@@ -269,7 +269,7 @@ export const PT_BR_OVERRIDES = {
|
||||
"This browser doesn't support passkeys, and this instance requires an account. Try a browser or device with passkey support.": 'Este navegador não oferece suporte a chaves de acesso e este servidor exige uma conta. Tente usar outro navegador ou dispositivo compatível.',
|
||||
'Keep screen awake': 'Manter a tela ligada',
|
||||
'All data reset': 'Todos os dados redefinidos',
|
||||
'to install openGym as a full-screen app.': 'para instalar o openGym como aplicativo em tela cheia.',
|
||||
'to install KuentaGYM as a full-screen app.': 'para instalar o KuentaGYM como aplicativo em tela cheia.',
|
||||
'Timezone: {0} (auto-detected, updates if you travel).': 'Fuso horário: {0} (detectado automaticamente e atualizado se você viajar).',
|
||||
'lower legs': 'panturrilhas',
|
||||
'waist': 'abdômen',
|
||||
@@ -334,24 +334,24 @@ export const PT_BR_OVERRIDES = {
|
||||
'Auto-backup on changes': 'Backup automático ao alterar',
|
||||
'Saves a dated copy to the Documents folder after finishing a workout or editing a routine — point a sync app at it, or copy it out by hand.': 'Salva uma cópia datada na pasta Documentos depois de terminar um treino ou editar uma rotina — aponte um aplicativo de sincronização para ela, ou copie o arquivo na mão.',
|
||||
'Your server': 'Seu servidor',
|
||||
'Synced with your openGym server.': 'Sincronizado com o seu servidor openGym.',
|
||||
'Synced with your KuentaGYM server.': 'Sincronizado com o seu servidor KuentaGYM.',
|
||||
'Disconnect': 'Desconectar',
|
||||
'Disconnect from your server?': 'Desconectar do seu servidor?',
|
||||
'Your data is synced to your server first, then this device switches back to local-only.': 'Seus dados são sincronizados com o seu servidor primeiro, depois este dispositivo volta ao modo somente local.',
|
||||
'Disconnected — back to local-only': 'Desconectado — de volta ao modo somente local',
|
||||
'Connect to my server': 'Conectar ao meu servidor',
|
||||
'Sync this device to your own self-hosted openGym instead.': 'Sincronize este dispositivo com o seu próprio openGym auto-hospedado.',
|
||||
'Sync this device to your own self-hosted KuentaGYM instead.': 'Sincronize este dispositivo com o seu próprio KuentaGYM auto-hospedado.',
|
||||
'Pair the mobile app': 'Parear o aplicativo',
|
||||
'Connect the openGym app on your phone to this account.': 'Conecte o aplicativo openGym do seu celular a esta conta.',
|
||||
'On the openGym app, choose “Connect to my server”, then enter this address and the code below. It expires in 5 minutes.': 'No aplicativo openGym, escolha “Conectar ao meu servidor”, depois digite este endereço e o código abaixo. Ele expira em 5 minutos.',
|
||||
'Connect the KuentaGYM app on your phone to this account.': 'Conecte o aplicativo KuentaGYM do seu celular a esta conta.',
|
||||
'On the KuentaGYM app, choose “Connect to my server”, then enter this address and the code below. It expires in 5 minutes.': 'No aplicativo KuentaGYM, escolha “Conectar ao meu servidor”, depois digite este endereço e o código abaixo. Ele expira em 5 minutos.',
|
||||
'Enter your server address and the code': 'Digite o endereço do seu servidor e o código',
|
||||
'Connected': 'Conectado',
|
||||
'Could not connect': 'Não foi possível conectar',
|
||||
'Open Settings → “Pair the mobile app” on the openGym site you’re already signed into, then enter its address and the code shown there.': 'No site openGym em que você já está conectado, abra Configurações → “Parear o aplicativo”, depois digite o endereço e o código mostrado lá.',
|
||||
'Open Settings → “Pair the mobile app” on the KuentaGYM site you’re already signed into, then enter its address and the code shown there.': 'No site KuentaGYM em que você já está conectado, abra Configurações → “Parear o aplicativo”, depois digite o endereço e o código mostrado lá.',
|
||||
'Connecting…': 'Conectando…',
|
||||
'Connect': 'Conectar',
|
||||
'How do you want to use openGym?': 'Como você quer usar o openGym?',
|
||||
'Local keeps everything on this phone. Connecting syncs to your own openGym server instead — you can switch later in Settings.': 'Local mantém tudo neste celular. Conectar sincroniza com o seu próprio servidor openGym — você pode mudar depois em Configurações.',
|
||||
'How do you want to use KuentaGYM?': 'Como você quer usar o KuentaGYM?',
|
||||
'Local keeps everything on this phone. Connecting syncs to your own KuentaGYM server instead — you can switch later in Settings.': 'Local mantém tudo neste celular. Conectar sincroniza com o seu próprio servidor KuentaGYM — você pode mudar depois em Configurações.',
|
||||
'Every set becomes a drop-set: after the main set, {0} drop(s) with no rest, each about {1}% lighter.': 'Cada série vira uma série decrescente: depois da série principal, {0} queda(s) sem descanso, cada uma cerca de {1}% mais leve.',
|
||||
'Every set becomes rest-pause: {0} reps to start, then {1} more split into short bursts, {2}s rest before each, roughly halving each time.': 'Cada série vira rest-pause: {0} repetições para começar, depois mais {1} divididas em rajadas curtas, com {2}s de descanso antes de cada uma, caindo cerca de metade a cada vez.',
|
||||
|
||||
@@ -451,7 +451,7 @@ export const PT_BR_OVERRIDES = {
|
||||
'Pick a model': 'Escolha um modelo',
|
||||
'Provider': 'Provedor',
|
||||
'Runs on this phone with your own API key': 'Roda neste celular com a sua própria chave de API',
|
||||
'Runs on your openGym server': 'Roda no seu servidor openGym',
|
||||
'Runs on your KuentaGYM server': 'Roda no seu servidor KuentaGYM',
|
||||
'Save and use the Coach': 'Salvar e usar o Treinador',
|
||||
'The Coach is already thinking about your training.': 'O Treinador já está pensando no seu treino.',
|
||||
'The Coach is resting — you have used today’s {0} runs on this phone.': 'O Treinador está descansando — você já usou os {0} usos de hoje neste celular.',
|
||||
@@ -460,7 +460,7 @@ export const PT_BR_OVERRIDES = {
|
||||
'The key is stored in this phone’s secure storage and never leaves it except to call the provider.': 'A chave fica no armazenamento seguro deste celular e só sai dele para chamar o provedor.',
|
||||
'This phone calls the provider directly with your key. Every request is charged to your account.': 'Este celular chama o provedor diretamente com a sua chave. Cada pedido é cobrado na sua conta.',
|
||||
'Turn the Coach off on this phone': 'Desligar o Treinador neste celular',
|
||||
'Use my self-hosted openGym': 'Usar meu openGym self-hosted',
|
||||
'Use my self-hosted KuentaGYM': 'Usar meu KuentaGYM self-hosted',
|
||||
'What leaves this phone': 'O que sai deste celular',
|
||||
'When you ask for a plan or a review, this phone sends the following straight to {0}, using your own API key. You pay for every request.': 'Quando você pede um plano ou uma revisão, este celular envia o seguinte direto para {0}, com a sua própria chave de API. Você paga cada pedido.',
|
||||
'Your server has no Coach enabled — ask its admin, or bring your own key below.': 'Seu servidor não tem o Treinador ativado — pergunte ao administrador, ou use sua própria chave abaixo.',
|
||||
|
||||
+18
-18
@@ -286,7 +286,7 @@ export default {
|
||||
'Your workouts. Your weights. Your profile.': 'Os teus treinos. Os teus pesos. O teu perfil.',
|
||||
'Sign in with passkey': 'Entrar com passkey',
|
||||
'Create new profile': 'Criar novo perfil',
|
||||
"This browser doesn't support passkeys — you can still use openGym locally on this device.": 'Este navegador não suporta passkeys — ainda assim podes usar o openGym localmente neste dispositivo.',
|
||||
"This browser doesn't support passkeys — you can still use KuentaGYM locally on this device.": 'Este navegador não suporta passkeys — ainda assim podes usar o KuentaGYM localmente neste dispositivo.',
|
||||
"This browser doesn't support passkeys, and this instance requires an account. Try a browser or device with passkey support.": 'Este navegador não suporta passkeys e este servidor exige uma conta. Experimenta um navegador ou dispositivo com suporte a passkeys.',
|
||||
'Continue without account': 'Continuar sem conta',
|
||||
'Passkeys use {0} — no passwords.': 'As passkeys usam {0} — sem palavras-passe.',
|
||||
@@ -352,14 +352,14 @@ export default {
|
||||
'Tip': 'Dica',
|
||||
'In Chrome: ⋮ menu → Add to Home screen': 'No Chrome: menu ⋮ → Adicionar ao ecrã principal',
|
||||
'In Safari: Share → Add to Home Screen': 'No Safari: Partilhar → Adicionar ao ecrã principal',
|
||||
'to install openGym as a full-screen app.': 'para instalar o openGym como app em ecrã inteiro.',
|
||||
'to install KuentaGYM as a full-screen app.': 'para instalar o KuentaGYM como app em ecrã inteiro.',
|
||||
'Your data syncs with your profile — sign in anywhere to see it.': 'Os teus dados sincronizam com o perfil — inicia sessão em qualquer lado para os veres.',
|
||||
'Guest data stays on this device — export a backup now and then!': 'Os dados de convidado ficam neste dispositivo — exporta uma cópia de vez em quando!',
|
||||
'free & open source (AGPL v3)': 'gratuito e open source (AGPL v3)',
|
||||
'Notifications': 'Notificações',
|
||||
'Not supported in this browser.': 'Não suportado neste navegador.',
|
||||
'Push notifications': 'Notificações push',
|
||||
'Rest-timer alerts, even if openGym is closed.': 'Alertas do temporizador de descanso, mesmo com o openGym fechado.',
|
||||
'Rest-timer alerts, even if KuentaGYM is closed.': 'Alertas do temporizador de descanso, mesmo com o KuentaGYM fechado.',
|
||||
'Workout day reminder': 'Lembrete de dia de treino',
|
||||
'Reminder time': 'Hora do lembrete',
|
||||
"Only sent on days you have a routine planned and haven't logged a workout yet.": 'Enviado apenas nos dias com rotina planeada e sem treino registado.',
|
||||
@@ -548,7 +548,7 @@ export default {
|
||||
'Share your plan': 'Partilhar o teu plano',
|
||||
'Send your routines to a friend, or put your week on paper.': 'Envia as tuas rotinas a um amigo ou põe a tua semana no papel.',
|
||||
'Export plan file': 'Exportar ficheiro do plano',
|
||||
'A small file a friend imports into their own openGym — routines only, none of your workouts or weigh-ins.': 'Um pequeno ficheiro que um amigo importa no seu próprio openGym — apenas rotinas, nenhum dos teus treinos ou pesagens.',
|
||||
'A small file a friend imports into their own KuentaGYM — routines only, none of your workouts or weigh-ins.': 'Um pequeno ficheiro que um amigo importa no seu próprio KuentaGYM — apenas rotinas, nenhum dos teus treinos ou pesagens.',
|
||||
'Print / Save as PDF': 'Imprimir / Guardar como PDF',
|
||||
'A clean one-page-per-plan printout — no exercise ever splits across a page.': 'Uma impressão limpa, uma página por plano — nenhum exercício é dividido entre páginas.',
|
||||
'Add an exercise to a routine first — an empty plan has nothing to share.': 'Adiciona primeiro um exercício a uma rotina — um plano vazio não tem nada para partilhar.',
|
||||
@@ -569,14 +569,14 @@ export default {
|
||||
'Replaces your current Mon–Sun assignments.': 'Substitui a tua atribuição atual de seg–dom.',
|
||||
'Added {0} routine to your plan': 'Adicionada {0} rotina ao teu plano',
|
||||
'Added {0} routines to your plan': 'Adicionadas {0} rotinas ao teu plano',
|
||||
'this isn’t an openGym plan file': 'isto não é um ficheiro de plano openGym',
|
||||
'this isn’t a KuentaGYM plan file': 'isto não é um ficheiro de plano KuentaGYM',
|
||||
'Shared routine': 'Rotina partilhada',
|
||||
'Unknown exercise': 'Exercício desconhecido',
|
||||
'Weekly Training Plan': 'Plano de treino semanal',
|
||||
'Made with openGym': 'Feito com openGym',
|
||||
'Made with KuentaGYM': 'Feito com KuentaGYM',
|
||||
'Something went wrong': 'Algo correu mal',
|
||||
'This screen could not be drawn. Your data is safe on this device.': 'Este ecrã não pôde ser desenhado. Os teus dados estão seguros neste dispositivo.',
|
||||
'Reload openGym': 'Recarregar openGym',
|
||||
'Reload KuentaGYM': 'Recarregar KuentaGYM',
|
||||
'Discard the running workout': 'Descartar o treino em curso',
|
||||
|
||||
// --- v1.2.2: timed sets, progression, estimated 1RM (#16 #17 #18) ---
|
||||
@@ -877,28 +877,28 @@ export default {
|
||||
|
||||
// "Connect to my server" (mobile app pairing)
|
||||
'Your server': 'O teu servidor',
|
||||
'Synced with your openGym server.': 'Sincronizado com o teu servidor openGym.',
|
||||
'Synced with your KuentaGYM server.': 'Sincronizado com o teu servidor KuentaGYM.',
|
||||
'Disconnect': 'Desligar',
|
||||
'Disconnect from your server?': 'Desligar do teu servidor?',
|
||||
'Your data is synced to your server first, then this device switches back to local-only.': 'Os teus dados são primeiro sincronizados com o teu servidor, depois este dispositivo volta ao modo local.',
|
||||
'Disconnected — back to local-only': 'Desligado — de volta ao modo local',
|
||||
'Connect to my server': 'Ligar ao meu servidor',
|
||||
'Sync this device to your own self-hosted openGym instead.': 'Sincroniza este dispositivo com o teu próprio openGym self-hosted.',
|
||||
'Sync this device to your own self-hosted KuentaGYM instead.': 'Sincroniza este dispositivo com o teu próprio KuentaGYM self-hosted.',
|
||||
'Pair the mobile app': 'Emparelhar a app móvel',
|
||||
'Connect the openGym app on your phone to this account.': 'Liga a app openGym no teu telemóvel a esta conta.',
|
||||
'Connect the KuentaGYM app on your phone to this account.': 'Liga a app KuentaGYM no teu telemóvel a esta conta.',
|
||||
'Could not generate a code': 'Não foi possível gerar um código',
|
||||
'On the openGym app, choose “Connect to my server”, then enter this address and the code below. It expires in 5 minutes.': 'Na app openGym, escolhe «Ligar ao meu servidor», depois introduz este endereço e o código abaixo. Expira em 5 minutos.',
|
||||
'On the KuentaGYM app, choose “Connect to my server”, then enter this address and the code below. It expires in 5 minutes.': 'Na app KuentaGYM, escolhe «Ligar ao meu servidor», depois introduz este endereço e o código abaixo. Expira em 5 minutos.',
|
||||
'Enter your server address and the code': 'Introduz o endereço do teu servidor e o código',
|
||||
'Connected': 'Ligado',
|
||||
'Could not connect': 'Não foi possível ligar',
|
||||
'Open Settings → “Pair the mobile app” on the openGym site you’re already signed into, then enter its address and the code shown there.': 'Em Definições → «Emparelhar a app móvel» no site openGym em que já tens sessão iniciada, introduz depois o endereço e o código apresentado aí.',
|
||||
'Open Settings → “Pair the mobile app” on the KuentaGYM site you’re already signed into, then enter its address and the code shown there.': 'Em Definições → «Emparelhar a app móvel» no site KuentaGYM em que já tens sessão iniciada, introduz depois o endereço e o código apresentado aí.',
|
||||
'Server address (e.g. gym.example.com)': 'Endereço do servidor (ex. gym.example.com)',
|
||||
'Pairing code': 'Código de emparelhamento',
|
||||
'Connecting…': 'A ligar…',
|
||||
'Connect': 'Ligar',
|
||||
'How do you want to use openGym?': 'Como queres usar o openGym?',
|
||||
'How do you want to use KuentaGYM?': 'Como queres usar o KuentaGYM?',
|
||||
'Use on this device': 'Usar neste dispositivo',
|
||||
'Local keeps everything on this phone. Connecting syncs to your own openGym server instead — you can switch later in Settings.': 'Local mantém tudo neste telemóvel. Ligar sincroniza antes com o teu próprio servidor openGym — podes mudar mais tarde em Definições.',
|
||||
'Local keeps everything on this phone. Connecting syncs to your own KuentaGYM server instead — you can switch later in Settings.': 'Local mantém tudo neste telemóvel. Ligar sincroniza antes com o teu próprio servidor KuentaGYM — podes mudar mais tarde em Definições.',
|
||||
|
||||
// --- workout notes and planned warm-ups ---
|
||||
'{0} — done': '{0} — concluído',
|
||||
@@ -940,7 +940,7 @@ export default {
|
||||
'Pick a model': 'Escolhe um modelo',
|
||||
'Provider': 'Fornecedor',
|
||||
'Runs on this phone with your own API key': 'Corre neste telemóvel com a tua própria chave de API',
|
||||
'Runs on your openGym server': 'Corre no teu servidor openGym',
|
||||
'Runs on your KuentaGYM server': 'Corre no teu servidor KuentaGYM',
|
||||
'Save and use the Coach': 'Guardar e usar o Treinador',
|
||||
'The Coach is already thinking about your training.': 'O Treinador já está a pensar no teu treino.',
|
||||
'The Coach is resting — you have used today’s {0} runs on this phone.': 'O Treinador está a descansar — já usaste as {0} utilizações de hoje neste telemóvel.',
|
||||
@@ -949,7 +949,7 @@ export default {
|
||||
'The key is stored in this phone’s secure storage and never leaves it except to call the provider.': 'A chave fica no armazenamento seguro deste telemóvel e só sai dele para chamar o fornecedor.',
|
||||
'This phone calls the provider directly with your key. Every request is charged to your account.': 'Este telemóvel chama o fornecedor diretamente com a tua chave. Cada pedido é cobrado na tua conta.',
|
||||
'Turn the Coach off on this phone': 'Desligar o Treinador neste telemóvel',
|
||||
'Use my self-hosted openGym': 'Usar o meu openGym self-hosted',
|
||||
'Use my self-hosted KuentaGYM': 'Usar o meu KuentaGYM self-hosted',
|
||||
'What leaves this phone': 'O que sai deste telemóvel',
|
||||
'When you ask for a plan or a review, this phone sends the following straight to {0}, using your own API key. You pay for every request.': 'Quando pedes um plano ou uma revisão, este telemóvel envia o seguinte diretamente para {0}, com a tua própria chave de API. Pagas cada pedido.',
|
||||
'Your server has no Coach enabled — ask its admin, or bring your own key below.': 'O teu servidor não tem o Treinador ativado — pergunta ao administrador, ou usa a tua própria chave abaixo.',
|
||||
@@ -1216,11 +1216,11 @@ export default {
|
||||
'Check for updates': 'Procurar atualizações',
|
||||
'Checking…': 'A verificar…',
|
||||
'You have v{0}': 'Tens a v{0}',
|
||||
'Update to openGym v{0}': 'Atualizar para o openGym v{0}',
|
||||
'Update to KuentaGYM v{0}': 'Atualizar para o KuentaGYM v{0}',
|
||||
'You have the latest version.': 'Tens a versão mais recente.',
|
||||
'Could not check for updates — are you online?': 'Não foi possível verificar — estás online?',
|
||||
'Get the Android app': 'Obter a app Android',
|
||||
'Download the APK from opengym.duarte-santos.ch': 'Descarrega o APK em opengym.duarte-santos.ch',
|
||||
'Download the APK from gym.dploy.lol': 'Descarrega o APK em gym.dploy.lol',
|
||||
'Releases are checked on gitlab.com. The download is verified against its checksum before the installer opens.': 'As versões são verificadas em gitlab.com. A transferência é confirmada pela soma de verificação antes de abrir o instalador.',
|
||||
'The web app updates together with your server. The Android app installs its own updates from here.': 'A app web atualiza-se com o teu servidor. A app Android instala as suas atualizações a partir daqui.',
|
||||
'Starting download…': 'A iniciar transferência…',
|
||||
|
||||
+18
-18
@@ -286,7 +286,7 @@ export default {
|
||||
'Your workouts. Your weights. Your profile.': 'Твои тренировки. Твои веса. Твой профиль.',
|
||||
'Sign in with passkey': 'Войти по ключу доступа',
|
||||
'Create new profile': 'Создать новый профиль',
|
||||
"This browser doesn't support passkeys — you can still use openGym locally on this device.": 'Этот браузер не поддерживает ключи доступа — но openGym можно использовать локально на этом устройстве.',
|
||||
"This browser doesn't support passkeys — you can still use KuentaGYM locally on this device.": 'Этот браузер не поддерживает ключи доступа — но KuentaGYM можно использовать локально на этом устройстве.',
|
||||
"This browser doesn't support passkeys, and this instance requires an account. Try a browser or device with passkey support.": 'Этот браузер не поддерживает ключи доступа, а на этом сервере нужен аккаунт. Попробуйте браузер или устройство с поддержкой ключей доступа.',
|
||||
'Continue without account': 'Продолжить без аккаунта',
|
||||
'Passkeys use {0} — no passwords.': 'Ключи доступа используют {0} — без паролей.',
|
||||
@@ -352,14 +352,14 @@ export default {
|
||||
'Tip': 'Совет',
|
||||
'In Chrome: ⋮ menu → Add to Home screen': 'В Chrome: меню ⋮ → Добавить на главный экран',
|
||||
'In Safari: Share → Add to Home Screen': 'В Safari: Поделиться → На экран «Домой»',
|
||||
'to install openGym as a full-screen app.': 'чтобы установить openGym как полноэкранное приложение.',
|
||||
'to install KuentaGYM as a full-screen app.': 'чтобы установить KuentaGYM как полноэкранное приложение.',
|
||||
'Your data syncs with your profile — sign in anywhere to see it.': 'Данные синхронизируются с профилем — войди где угодно, чтобы их увидеть.',
|
||||
'Guest data stays on this device — export a backup now and then!': 'Гостевые данные остаются на этом устройстве — время от времени делай резервную копию!',
|
||||
'free & open source (AGPL v3)': 'бесплатно и с открытым кодом (AGPL v3)',
|
||||
'Notifications': 'Уведомления',
|
||||
'Not supported in this browser.': 'Не поддерживается в этом браузере.',
|
||||
'Push notifications': 'Push-уведомления',
|
||||
'Rest-timer alerts, even if openGym is closed.': 'Оповещения таймера отдыха, даже если openGym закрыт.',
|
||||
'Rest-timer alerts, even if KuentaGYM is closed.': 'Оповещения таймера отдыха, даже если KuentaGYM закрыт.',
|
||||
'Workout day reminder': 'Напоминание о дне тренировки',
|
||||
'Reminder time': 'Время напоминания',
|
||||
"Only sent on days you have a routine planned and haven't logged a workout yet.": 'Отправляется только в дни, когда запланирована программа и тренировка ещё не записана.',
|
||||
@@ -548,7 +548,7 @@ export default {
|
||||
'Share your plan': 'Поделиться планом',
|
||||
'Send your routines to a friend, or put your week on paper.': 'Отправь свои программы другу или распечатай свою неделю.',
|
||||
'Export plan file': 'Экспортировать файл плана',
|
||||
'A small file a friend imports into their own openGym — routines only, none of your workouts or weigh-ins.': 'Небольшой файл, который друг импортирует в свой openGym — только программы, без твоих тренировок и взвешиваний.',
|
||||
'A small file a friend imports into their own KuentaGYM — routines only, none of your workouts or weigh-ins.': 'Небольшой файл, который друг импортирует в свой KuentaGYM — только программы, без твоих тренировок и взвешиваний.',
|
||||
'Print / Save as PDF': 'Печать / Сохранить как PDF',
|
||||
'A clean one-page-per-plan printout — no exercise ever splits across a page.': 'Аккуратная распечатка, одна страница на план — ни одно упражнение не разрывается между страницами.',
|
||||
'Add an exercise to a routine first — an empty plan has nothing to share.': 'Сначала добавь упражнение в программу — пустым планом нечего делиться.',
|
||||
@@ -569,14 +569,14 @@ export default {
|
||||
'Replaces your current Mon–Sun assignments.': 'Заменяет твоё текущее распределение пн–вс.',
|
||||
'Added {0} routine to your plan': 'В твой план добавлена {0} программа',
|
||||
'Added {0} routines to your plan': 'В твой план добавлено программ: {0}',
|
||||
'this isn’t an openGym plan file': 'это не файл плана openGym',
|
||||
'this isn’t a KuentaGYM plan file': 'это не файл плана KuentaGYM',
|
||||
'Shared routine': 'Общая программа',
|
||||
'Unknown exercise': 'Неизвестное упражнение',
|
||||
'Weekly Training Plan': 'Недельный план тренировок',
|
||||
'Made with openGym': 'Сделано в openGym',
|
||||
'Made with KuentaGYM': 'Сделано в KuentaGYM',
|
||||
'Something went wrong': 'Что-то пошло не так',
|
||||
'This screen could not be drawn. Your data is safe on this device.': 'Не удалось отрисовать этот экран. Ваши данные на устройстве в безопасности.',
|
||||
'Reload openGym': 'Перезагрузить openGym',
|
||||
'Reload KuentaGYM': 'Перезагрузить KuentaGYM',
|
||||
'Discard the running workout': 'Отменить текущую тренировку',
|
||||
|
||||
// --- v1.2.2: timed sets, progression, estimated 1RM (#16 #17 #18) ---
|
||||
@@ -877,28 +877,28 @@ export default {
|
||||
|
||||
// "Connect to my server" (mobile app pairing)
|
||||
'Your server': 'Ваш сервер',
|
||||
'Synced with your openGym server.': 'Синхронизировано с вашим сервером openGym.',
|
||||
'Synced with your KuentaGYM server.': 'Синхронизировано с вашим сервером KuentaGYM.',
|
||||
'Disconnect': 'Отключить',
|
||||
'Disconnect from your server?': 'Отключиться от сервера?',
|
||||
'Your data is synced to your server first, then this device switches back to local-only.': 'Сначала данные синхронизируются с сервером, затем это устройство вернётся в локальный режим.',
|
||||
'Disconnected — back to local-only': 'Отключено — снова локальный режим',
|
||||
'Connect to my server': 'Подключиться к моему серверу',
|
||||
'Sync this device to your own self-hosted openGym instead.': 'Синхронизировать это устройство с вашим собственным self-hosted openGym.',
|
||||
'Sync this device to your own self-hosted KuentaGYM instead.': 'Синхронизировать это устройство с вашим собственным self-hosted KuentaGYM.',
|
||||
'Pair the mobile app': 'Сопряжение мобильного приложения',
|
||||
'Connect the openGym app on your phone to this account.': 'Подключите приложение openGym на телефоне к этому аккаунту.',
|
||||
'Connect the KuentaGYM app on your phone to this account.': 'Подключите приложение KuentaGYM на телефоне к этому аккаунту.',
|
||||
'Could not generate a code': 'Не удалось создать код',
|
||||
'On the openGym app, choose “Connect to my server”, then enter this address and the code below. It expires in 5 minutes.': 'В приложении openGym выберите «Подключиться к моему серверу», затем введите этот адрес и код ниже. Он действителен 5 минут.',
|
||||
'On the KuentaGYM app, choose “Connect to my server”, then enter this address and the code below. It expires in 5 minutes.': 'В приложении KuentaGYM выберите «Подключиться к моему серверу», затем введите этот адрес и код ниже. Он действителен 5 минут.',
|
||||
'Enter your server address and the code': 'Введите адрес вашего сервера и код',
|
||||
'Connected': 'Подключено',
|
||||
'Could not connect': 'Не удалось подключиться',
|
||||
'Open Settings → “Pair the mobile app” on the openGym site you’re already signed into, then enter its address and the code shown there.': 'В Настройках → «Сопряжение мобильного приложения» на сайте openGym, где вы уже вошли, введите его адрес и показанный там код.',
|
||||
'Open Settings → “Pair the mobile app” on the KuentaGYM site you’re already signed into, then enter its address and the code shown there.': 'В Настройках → «Сопряжение мобильного приложения» на сайте KuentaGYM, где вы уже вошли, введите его адрес и показанный там код.',
|
||||
'Server address (e.g. gym.example.com)': 'Адрес сервера (например, gym.example.com)',
|
||||
'Pairing code': 'Код сопряжения',
|
||||
'Connecting…': 'Подключение…',
|
||||
'Connect': 'Подключить',
|
||||
'How do you want to use openGym?': 'Как вы хотите использовать openGym?',
|
||||
'How do you want to use KuentaGYM?': 'Как вы хотите использовать KuentaGYM?',
|
||||
'Use on this device': 'Использовать на этом устройстве',
|
||||
'Local keeps everything on this phone. Connecting syncs to your own openGym server instead — you can switch later in Settings.': 'Локальный режим хранит всё на этом телефоне. Подключение вместо этого синхронизирует данные с вашим сервером openGym — вы сможете изменить это позже в Настройках.',
|
||||
'Local keeps everything on this phone. Connecting syncs to your own KuentaGYM server instead — you can switch later in Settings.': 'Локальный режим хранит всё на этом телефоне. Подключение вместо этого синхронизирует данные с вашим сервером KuentaGYM — вы сможете изменить это позже в Настройках.',
|
||||
|
||||
// --- workout notes and planned warm-ups ---
|
||||
'{0} — done': '{0} — сделано',
|
||||
@@ -940,7 +940,7 @@ export default {
|
||||
'Pick a model': 'Выберите модель',
|
||||
'Provider': 'Провайдер',
|
||||
'Runs on this phone with your own API key': 'Работает на этом телефоне с вашим API-ключом',
|
||||
'Runs on your openGym server': 'Работает на вашем сервере openGym',
|
||||
'Runs on your KuentaGYM server': 'Работает на вашем сервере KuentaGYM',
|
||||
'Save and use the Coach': 'Сохранить и использовать тренера',
|
||||
'The Coach is already thinking about your training.': 'Тренер уже думает над вашей тренировкой.',
|
||||
'The Coach is resting — you have used today’s {0} runs on this phone.': 'Тренер отдыхает — на этом телефоне израсходованы {0} запусков на сегодня.',
|
||||
@@ -949,7 +949,7 @@ export default {
|
||||
'The key is stored in this phone’s secure storage and never leaves it except to call the provider.': 'Ключ хранится в защищённом хранилище этого телефона и покидает его только для обращения к провайдеру.',
|
||||
'This phone calls the provider directly with your key. Every request is charged to your account.': 'Этот телефон обращается к провайдеру напрямую с вашим ключом. Каждый запрос списывается с вашего счёта.',
|
||||
'Turn the Coach off on this phone': 'Выключить тренера на этом телефоне',
|
||||
'Use my self-hosted openGym': 'Использовать мой собственный openGym',
|
||||
'Use my self-hosted KuentaGYM': 'Использовать мой собственный KuentaGYM',
|
||||
'What leaves this phone': 'Что уходит с этого телефона',
|
||||
'When you ask for a plan or a review, this phone sends the following straight to {0}, using your own API key. You pay for every request.': 'Когда вы просите план или разбор, этот телефон отправляет следующее напрямую в {0} с вашим собственным API-ключом. Каждый запрос оплачиваете вы.',
|
||||
'Your server has no Coach enabled — ask its admin, or bring your own key below.': 'На вашем сервере тренер не включён — спросите администратора или используйте свой ключ ниже.',
|
||||
@@ -1216,11 +1216,11 @@ export default {
|
||||
'Check for updates': 'Проверить обновления',
|
||||
'Checking…': 'Проверка…',
|
||||
'You have v{0}': 'У вас v{0}',
|
||||
'Update to openGym v{0}': 'Обновить до openGym v{0}',
|
||||
'Update to KuentaGYM v{0}': 'Обновить до KuentaGYM v{0}',
|
||||
'You have the latest version.': 'У вас последняя версия.',
|
||||
'Could not check for updates — are you online?': 'Не удалось проверить — вы онлайн?',
|
||||
'Get the Android app': 'Скачать приложение для Android',
|
||||
'Download the APK from opengym.duarte-santos.ch': 'Скачайте APK с opengym.duarte-santos.ch',
|
||||
'Download the APK from gym.dploy.lol': 'Скачайте APK с gym.dploy.lol',
|
||||
'Releases are checked on gitlab.com. The download is verified against its checksum before the installer opens.': 'Релизы проверяются на gitlab.com. Перед запуском установщика загрузка сверяется с контрольной суммой.',
|
||||
'The web app updates together with your server. The Android app installs its own updates from here.': 'Веб-приложение обновляется вместе с сервером. Приложение для Android устанавливает обновления отсюда.',
|
||||
'Starting download…': 'Начало загрузки…',
|
||||
|
||||
+18
-18
@@ -292,7 +292,7 @@ export default {
|
||||
'Your workouts. Your weights. Your profile.': 'การออกกำลังกายของคุณ น้ำหนักของคุณ โปรไฟล์ของคุณ',
|
||||
'Sign in with passkey': 'เข้าสู่ระบบด้วยพาสคีย์',
|
||||
'Create new profile': 'สร้างโปรไฟล์ใหม่',
|
||||
"This browser doesn't support passkeys — you can still use openGym locally on this device.": 'เบราว์เซอร์นี้ไม่รองรับพาสคีย์ — แต่ยังใช้ openGym บนเครื่องนี้ได้ตามปกติ',
|
||||
"This browser doesn't support passkeys — you can still use KuentaGYM locally on this device.": 'เบราว์เซอร์นี้ไม่รองรับพาสคีย์ — แต่ยังใช้ KuentaGYM บนเครื่องนี้ได้ตามปกติ',
|
||||
"This browser doesn't support passkeys, and this instance requires an account. Try a browser or device with passkey support.": 'เบราว์เซอร์นี้ไม่รองรับพาสคีย์ และเซิร์ฟเวอร์นี้ต้องมีบัญชีผู้ใช้ ลองใช้เบราว์เซอร์หรืออุปกรณ์ที่รองรับพาสคีย์',
|
||||
'Continue without account': 'ใช้งานต่อโดยไม่มีบัญชี',
|
||||
'Passkeys use {0} — no passwords.': 'พาสคีย์ใช้ {0} — ไม่ต้องใช้รหัสผ่าน',
|
||||
@@ -353,14 +353,14 @@ export default {
|
||||
'Tip': 'เคล็ดลับ',
|
||||
'In Chrome: ⋮ menu → Add to Home screen': 'ใน Chrome: เมนู ⋮ → เพิ่มไปยังหน้าจอหลัก',
|
||||
'In Safari: Share → Add to Home Screen': 'ใน Safari: แชร์ → เพิ่มไปยังหน้าจอโฮม',
|
||||
'to install openGym as a full-screen app.': 'เพื่อติดตั้ง openGym เป็นแอปเต็มหน้าจอ',
|
||||
'to install KuentaGYM as a full-screen app.': 'เพื่อติดตั้ง KuentaGYM เป็นแอปเต็มหน้าจอ',
|
||||
'Your data syncs with your profile — sign in anywhere to see it.': 'ข้อมูลของคุณซิงค์กับโปรไฟล์ — เข้าสู่ระบบที่ไหนก็เห็นข้อมูล',
|
||||
'Guest data stays on this device — export a backup now and then!': 'ข้อมูลผู้เยี่ยมชมอยู่บนเครื่องนี้เท่านั้น — อย่าลืมส่งออกข้อมูลสำรองเป็นระยะ!',
|
||||
'free & open source (AGPL v3)': 'ฟรีและโอเพนซอร์ส (AGPL v3)',
|
||||
'Notifications': 'การแจ้งเตือน',
|
||||
'Not supported in this browser.': 'เบราว์เซอร์นี้ไม่รองรับ',
|
||||
'Push notifications': 'การแจ้งเตือนแบบพุช',
|
||||
'Rest-timer alerts, even if openGym is closed.': 'แจ้งเตือนหมดเวลาพัก แม้ปิดแอป openGym อยู่',
|
||||
'Rest-timer alerts, even if KuentaGYM is closed.': 'แจ้งเตือนหมดเวลาพัก แม้ปิดแอป KuentaGYM อยู่',
|
||||
'Workout day reminder': 'เตือนวันออกกำลังกาย',
|
||||
'Reminder time': 'เวลาแจ้งเตือน',
|
||||
"Only sent on days you have a routine planned and haven't logged a workout yet.": 'จะแจ้งเตือนเฉพาะวันที่มีแผนไว้และยังไม่ได้บันทึกการออกกำลังกาย',
|
||||
@@ -527,7 +527,7 @@ export default {
|
||||
'Share your plan': 'แชร์แผนของคุณ',
|
||||
'Send your routines to a friend, or put your week on paper.': 'ส่งรูทีนให้เพื่อน หรือพิมพ์แผนรายสัปดาห์ออกมาเป็นกระดาษ',
|
||||
'Export plan file': 'ส่งออกไฟล์แผน',
|
||||
'A small file a friend imports into their own openGym — routines only, none of your workouts or weigh-ins.': 'ไฟล์เล็กๆ ให้เพื่อนนำเข้า openGym ของตัวเอง — มีแค่รูทีนเท่านั้น ไม่มีการออกกำลังกายหรือน้ำหนักของคุณ',
|
||||
'A small file a friend imports into their own KuentaGYM — routines only, none of your workouts or weigh-ins.': 'ไฟล์เล็กๆ ให้เพื่อนนำเข้า KuentaGYM ของตัวเอง — มีแค่รูทีนเท่านั้น ไม่มีการออกกำลังกายหรือน้ำหนักของคุณ',
|
||||
'Print / Save as PDF': 'พิมพ์ / บันทึกเป็น PDF',
|
||||
'A clean one-page-per-plan printout — no exercise ever splits across a page.': 'พิมพ์ออกมาสวยงาม 1 หน้าต่อ 1 แผน — ไม่มีท่าไหนถูกตัดข้ามหน้า',
|
||||
'Add an exercise to a routine first — an empty plan has nothing to share.': 'เพิ่มท่าเข้ารูทีนก่อน — แผนว่างเปล่าไม่มีอะไรให้แชร์',
|
||||
@@ -548,14 +548,14 @@ export default {
|
||||
'Replaces your current Mon–Sun assignments.': 'จะแทนที่ตารางจันทร์–อาทิตย์ปัจจุบันของคุณ',
|
||||
'Added {0} routine to your plan': 'เพิ่ม {0} รูทีนเข้าแผนของคุณแล้ว',
|
||||
'Added {0} routines to your plan': 'เพิ่ม {0} รูทีนเข้าแผนของคุณแล้ว',
|
||||
'this isn’t an openGym plan file': 'นี่ไม่ใช่ไฟล์แผนของ openGym',
|
||||
'this isn’t a KuentaGYM plan file': 'นี่ไม่ใช่ไฟล์แผนของ KuentaGYM',
|
||||
'Shared routine': 'รูทีนที่แชร์มา',
|
||||
'Unknown exercise': 'ท่าที่ไม่รู้จัก',
|
||||
'Weekly Training Plan': 'แผนการฝึกรายสัปดาห์',
|
||||
'Made with openGym': 'สร้างด้วย openGym',
|
||||
'Made with KuentaGYM': 'สร้างด้วย KuentaGYM',
|
||||
'Something went wrong': 'มีบางอย่างผิดพลาด',
|
||||
'This screen could not be drawn. Your data is safe on this device.': 'แสดงหน้าจอนี้ไม่ได้ ข้อมูลของคุณยังปลอดภัยอยู่บนเครื่องนี้',
|
||||
'Reload openGym': 'โหลด openGym ใหม่',
|
||||
'Reload KuentaGYM': 'โหลด KuentaGYM ใหม่',
|
||||
'Discard the running workout': 'ทิ้งการออกกำลังกายที่กำลังทำอยู่',
|
||||
|
||||
// --- v1.2.2: timed sets, progression, estimated 1RM (#16 #17 #18) ---
|
||||
@@ -710,28 +710,28 @@ export default {
|
||||
|
||||
// "Connect to my server" (mobile app pairing)
|
||||
'Your server': 'เซิร์ฟเวอร์ของคุณ',
|
||||
'Synced with your openGym server.': 'ซิงก์กับเซิร์ฟเวอร์ openGym ของคุณแล้ว',
|
||||
'Synced with your KuentaGYM server.': 'ซิงก์กับเซิร์ฟเวอร์ KuentaGYM ของคุณแล้ว',
|
||||
'Disconnect': 'ยกเลิกการเชื่อมต่อ',
|
||||
'Disconnect from your server?': 'ยกเลิกการเชื่อมต่อกับเซิร์ฟเวอร์?',
|
||||
'Your data is synced to your server first, then this device switches back to local-only.': 'ข้อมูลของคุณจะถูกซิงก์กับเซิร์ฟเวอร์ก่อน จากนั้นอุปกรณ์นี้จะกลับไปใช้งานแบบเก็บข้อมูลในเครื่องเท่านั้น',
|
||||
'Disconnected — back to local-only': 'ยกเลิกการเชื่อมต่อแล้ว — กลับไปใช้งานแบบเก็บข้อมูลในเครื่อง',
|
||||
'Connect to my server': 'เชื่อมต่อกับเซิร์ฟเวอร์ของฉัน',
|
||||
'Sync this device to your own self-hosted openGym instead.': 'ซิงก์อุปกรณ์นี้กับ openGym ที่คุณโฮสต์เองแทน',
|
||||
'Sync this device to your own self-hosted KuentaGYM instead.': 'ซิงก์อุปกรณ์นี้กับ KuentaGYM ที่คุณโฮสต์เองแทน',
|
||||
'Pair the mobile app': 'จับคู่แอปมือถือ',
|
||||
'Connect the openGym app on your phone to this account.': 'เชื่อมต่อแอป openGym บนโทรศัพท์ของคุณกับบัญชีนี้',
|
||||
'Connect the KuentaGYM app on your phone to this account.': 'เชื่อมต่อแอป KuentaGYM บนโทรศัพท์ของคุณกับบัญชีนี้',
|
||||
'Could not generate a code': 'สร้างรหัสไม่สำเร็จ',
|
||||
'On the openGym app, choose “Connect to my server”, then enter this address and the code below. It expires in 5 minutes.': 'ในแอป openGym เลือก “เชื่อมต่อกับเซิร์ฟเวอร์ของฉัน” แล้วป้อนที่อยู่นี้พร้อมรหัสด้านล่าง รหัสจะหมดอายุใน 5 นาที',
|
||||
'On the KuentaGYM app, choose “Connect to my server”, then enter this address and the code below. It expires in 5 minutes.': 'ในแอป KuentaGYM เลือก “เชื่อมต่อกับเซิร์ฟเวอร์ของฉัน” แล้วป้อนที่อยู่นี้พร้อมรหัสด้านล่าง รหัสจะหมดอายุใน 5 นาที',
|
||||
'Enter your server address and the code': 'ป้อนที่อยู่เซิร์ฟเวอร์และรหัส',
|
||||
'Connected': 'เชื่อมต่อแล้ว',
|
||||
'Could not connect': 'เชื่อมต่อไม่สำเร็จ',
|
||||
'Open Settings → “Pair the mobile app” on the openGym site you’re already signed into, then enter its address and the code shown there.': 'เปิดการตั้งค่า → “จับคู่แอปมือถือ” บนเว็บไซต์ openGym ที่คุณเข้าสู่ระบบอยู่แล้ว จากนั้นป้อนที่อยู่และรหัสที่แสดงไว้ที่นั่น',
|
||||
'Open Settings → “Pair the mobile app” on the KuentaGYM site you’re already signed into, then enter its address and the code shown there.': 'เปิดการตั้งค่า → “จับคู่แอปมือถือ” บนเว็บไซต์ KuentaGYM ที่คุณเข้าสู่ระบบอยู่แล้ว จากนั้นป้อนที่อยู่และรหัสที่แสดงไว้ที่นั่น',
|
||||
'Server address (e.g. gym.example.com)': 'ที่อยู่เซิร์ฟเวอร์ (เช่น gym.example.com)',
|
||||
'Pairing code': 'รหัสจับคู่',
|
||||
'Connecting…': 'กำลังเชื่อมต่อ…',
|
||||
'Connect': 'เชื่อมต่อ',
|
||||
'How do you want to use openGym?': 'คุณต้องการใช้งาน openGym แบบไหน?',
|
||||
'How do you want to use KuentaGYM?': 'คุณต้องการใช้งาน KuentaGYM แบบไหน?',
|
||||
'Use on this device': 'ใช้งานบนอุปกรณ์นี้',
|
||||
'Local keeps everything on this phone. Connecting syncs to your own openGym server instead — you can switch later in Settings.': 'แบบเก็บในเครื่องจะเก็บทุกอย่างไว้ในโทรศัพท์นี้ ส่วนการเชื่อมต่อจะซิงก์กับเซิร์ฟเวอร์ openGym ของคุณแทน — เปลี่ยนภายหลังได้ในการตั้งค่า',
|
||||
'Local keeps everything on this phone. Connecting syncs to your own KuentaGYM server instead — you can switch later in Settings.': 'แบบเก็บในเครื่องจะเก็บทุกอย่างไว้ในโทรศัพท์นี้ ส่วนการเชื่อมต่อจะซิงก์กับเซิร์ฟเวอร์ KuentaGYM ของคุณแทน — เปลี่ยนภายหลังได้ในการตั้งค่า',
|
||||
|
||||
// --- workout notes and planned warm-ups ---
|
||||
'{0} — done': '{0} — เสร็จแล้ว',
|
||||
@@ -1012,7 +1012,7 @@ export default {
|
||||
'Pick a model': 'เลือกโมเดล',
|
||||
'Provider': 'ผู้ให้บริการ',
|
||||
'Runs on this phone with your own API key': 'ทำงานบนโทรศัพท์นี้ด้วยคีย์ API ของคุณเอง',
|
||||
'Runs on your openGym server': 'ทำงานบนเซิร์ฟเวอร์ openGym ของคุณ',
|
||||
'Runs on your KuentaGYM server': 'ทำงานบนเซิร์ฟเวอร์ KuentaGYM ของคุณ',
|
||||
'Save and use the Coach': 'บันทึกและใช้โค้ช',
|
||||
'The Coach is already thinking about your training.': 'โค้ชกำลังคิดเกี่ยวกับการฝึกของคุณอยู่แล้ว',
|
||||
'The Coach is resting — you have used today’s {0} runs on this phone.': 'โค้ชกำลังพัก — คุณใช้ครบ {0} ครั้งของวันนี้บนโทรศัพท์นี้แล้ว',
|
||||
@@ -1021,7 +1021,7 @@ export default {
|
||||
'The key is stored in this phone’s secure storage and never leaves it except to call the provider.': 'คีย์ถูกเก็บในที่จัดเก็บที่ปลอดภัยของโทรศัพท์นี้ และไม่ออกไปไหนนอกจากเพื่อเรียกผู้ให้บริการ',
|
||||
'This phone calls the provider directly with your key. Every request is charged to your account.': 'โทรศัพท์นี้เรียกผู้ให้บริการโดยตรงด้วยคีย์ของคุณ ทุกคำขอจะถูกเรียกเก็บจากบัญชีของคุณ',
|
||||
'Turn the Coach off on this phone': 'ปิดโค้ชบนโทรศัพท์นี้',
|
||||
'Use my self-hosted openGym': 'ใช้ openGym ที่ฉันโฮสต์เอง',
|
||||
'Use my self-hosted KuentaGYM': 'ใช้ KuentaGYM ที่ฉันโฮสต์เอง',
|
||||
'What leaves this phone': 'อะไรที่ออกจากโทรศัพท์นี้',
|
||||
'When you ask for a plan or a review, this phone sends the following straight to {0}, using your own API key. You pay for every request.': 'เมื่อคุณขอแผนหรือรีวิว โทรศัพท์นี้จะส่งข้อมูลต่อไปนี้ตรงไปยัง {0} ด้วยคีย์ API ของคุณเอง คุณเป็นผู้จ่ายทุกคำขอ',
|
||||
'Your server has no Coach enabled — ask its admin, or bring your own key below.': 'เซิร์ฟเวอร์ของคุณไม่ได้เปิดโค้ช — ถามผู้ดูแล หรือใช้คีย์ของคุณเองด้านล่าง',
|
||||
@@ -1227,11 +1227,11 @@ export default {
|
||||
'Check for updates': 'ตรวจสอบอัปเดต',
|
||||
'Checking…': 'กำลังตรวจสอบ…',
|
||||
'You have v{0}': 'คุณใช้ v{0}',
|
||||
'Update to openGym v{0}': 'อัปเดตเป็น openGym v{0}',
|
||||
'Update to KuentaGYM v{0}': 'อัปเดตเป็น KuentaGYM v{0}',
|
||||
'You have the latest version.': 'คุณใช้เวอร์ชันล่าสุดแล้ว',
|
||||
'Could not check for updates — are you online?': 'ตรวจสอบอัปเดตไม่ได้ — คุณออนไลน์อยู่ไหม?',
|
||||
'Get the Android app': 'รับแอป Android',
|
||||
'Download the APK from opengym.duarte-santos.ch': 'ดาวน์โหลด APK จาก opengym.duarte-santos.ch',
|
||||
'Download the APK from gym.dploy.lol': 'ดาวน์โหลด APK จาก gym.dploy.lol',
|
||||
'Releases are checked on gitlab.com. The download is verified against its checksum before the installer opens.': 'ตรวจสอบรุ่นจาก gitlab.com ไฟล์ที่ดาวน์โหลดจะถูกตรวจ checksum ก่อนเปิดตัวติดตั้ง',
|
||||
'The web app updates together with your server. The Android app installs its own updates from here.': 'เว็บแอปอัปเดตพร้อมกับเซิร์ฟเวอร์ของคุณ แอป Android ติดตั้งอัปเดตจากที่นี่',
|
||||
'Starting download…': 'กำลังเริ่มดาวน์โหลด…',
|
||||
|
||||
+18
-18
@@ -286,7 +286,7 @@ export default {
|
||||
'Your workouts. Your weights. Your profile.': 'Senin antrenmanların. Senin ağırlıkların. Senin profilin.',
|
||||
'Sign in with passkey': 'Geçiş anahtarıyla giriş yap',
|
||||
'Create new profile': 'Yeni profil oluştur',
|
||||
"This browser doesn't support passkeys — you can still use openGym locally on this device.": 'Bu tarayıcı geçiş anahtarlarını desteklemiyor — yine de openGym’i bu cihazda yerel olarak kullanabilirsin.',
|
||||
"This browser doesn't support passkeys — you can still use KuentaGYM locally on this device.": 'Bu tarayıcı geçiş anahtarlarını desteklemiyor — yine de KuentaGYM’i bu cihazda yerel olarak kullanabilirsin.',
|
||||
"This browser doesn't support passkeys, and this instance requires an account. Try a browser or device with passkey support.": 'Bu tarayıcı geçiş anahtarlarını desteklemiyor ve bu sunucu bir hesap gerektiriyor. Geçiş anahtarı destekleyen bir tarayıcı veya cihaz dene.',
|
||||
'Continue without account': 'Hesapsız devam et',
|
||||
'Passkeys use {0} — no passwords.': 'Geçiş anahtarları {0} kullanır — şifre yok.',
|
||||
@@ -352,14 +352,14 @@ export default {
|
||||
'Tip': 'İpucu',
|
||||
'In Chrome: ⋮ menu → Add to Home screen': 'Chrome’da: ⋮ menü → Ana ekrana ekle',
|
||||
'In Safari: Share → Add to Home Screen': 'Safari’de: Paylaş → Ana Ekrana Ekle',
|
||||
'to install openGym as a full-screen app.': 'ile openGym’i tam ekran uygulama olarak kurabilirsin.',
|
||||
'to install KuentaGYM as a full-screen app.': 'ile KuentaGYM’i tam ekran uygulama olarak kurabilirsin.',
|
||||
'Your data syncs with your profile — sign in anywhere to see it.': 'Verilerin profilinle eşitlenir — görmek için herhangi bir yerden giriş yap.',
|
||||
'Guest data stays on this device — export a backup now and then!': 'Misafir verileri bu cihazda kalır — arada bir yedek al!',
|
||||
'free & open source (AGPL v3)': 'ücretsiz ve açık kaynak (AGPL v3)',
|
||||
'Notifications': 'Bildirimler',
|
||||
'Not supported in this browser.': 'Bu tarayıcıda desteklenmiyor.',
|
||||
'Push notifications': 'Anlık bildirimler',
|
||||
'Rest-timer alerts, even if openGym is closed.': 'openGym kapalıyken bile dinlenme sayacı uyarıları.',
|
||||
'Rest-timer alerts, even if KuentaGYM is closed.': 'KuentaGYM kapalıyken bile dinlenme sayacı uyarıları.',
|
||||
'Workout day reminder': 'Antrenman günü hatırlatıcısı',
|
||||
'Reminder time': 'Hatırlatma saati',
|
||||
"Only sent on days you have a routine planned and haven't logged a workout yet.": 'Sadece rutin planlanmış ve henüz antrenman kaydedilmemiş günlerde gönderilir.',
|
||||
@@ -548,7 +548,7 @@ export default {
|
||||
'Share your plan': 'Planını paylaş',
|
||||
'Send your routines to a friend, or put your week on paper.': 'Rutinlerini bir arkadaşına gönder ya da haftanı kâğıda dök.',
|
||||
'Export plan file': 'Plan dosyasını dışa aktar',
|
||||
'A small file a friend imports into their own openGym — routines only, none of your workouts or weigh-ins.': 'Bir arkadaşının kendi openGym\'ine aktardığı küçük bir dosya — yalnızca rutinler, antrenmanların veya tartıların değil.',
|
||||
'A small file a friend imports into their own KuentaGYM — routines only, none of your workouts or weigh-ins.': 'Bir arkadaşının kendi KuentaGYM\'ine aktardığı küçük bir dosya — yalnızca rutinler, antrenmanların veya tartıların değil.',
|
||||
'Print / Save as PDF': 'Yazdır / PDF olarak kaydet',
|
||||
'A clean one-page-per-plan printout — no exercise ever splits across a page.': 'Temiz bir çıktı, plan başına tek sayfa — hiçbir egzersiz sayfalar arasında bölünmez.',
|
||||
'Add an exercise to a routine first — an empty plan has nothing to share.': 'Önce bir rutine egzersiz ekle — boş bir planın paylaşacak bir şeyi yok.',
|
||||
@@ -569,14 +569,14 @@ export default {
|
||||
'Replaces your current Mon–Sun assignments.': 'Mevcut Pzt–Paz atamanı değiştirir.',
|
||||
'Added {0} routine to your plan': 'Planına {0} rutin eklendi',
|
||||
'Added {0} routines to your plan': 'Planına {0} rutin eklendi',
|
||||
'this isn’t an openGym plan file': 'bu bir openGym plan dosyası değil',
|
||||
'this isn’t a KuentaGYM plan file': 'bu bir KuentaGYM plan dosyası değil',
|
||||
'Shared routine': 'Paylaşılan rutin',
|
||||
'Unknown exercise': 'Bilinmeyen egzersiz',
|
||||
'Weekly Training Plan': 'Haftalık antrenman planı',
|
||||
'Made with openGym': 'openGym ile yapıldı',
|
||||
'Made with KuentaGYM': 'KuentaGYM ile yapıldı',
|
||||
'Something went wrong': 'Bir şeyler ters gitti',
|
||||
'This screen could not be drawn. Your data is safe on this device.': 'Bu ekran çizilemedi. Verilerin bu cihazda güvende.',
|
||||
'Reload openGym': 'openGym’i yeniden yükle',
|
||||
'Reload KuentaGYM': 'KuentaGYM’i yeniden yükle',
|
||||
'Discard the running workout': 'Devam eden antrenmanı sil',
|
||||
|
||||
// --- v1.2.2: timed sets, progression, estimated 1RM (#16 #17 #18) ---
|
||||
@@ -877,28 +877,28 @@ export default {
|
||||
|
||||
// "Connect to my server" (mobile app pairing)
|
||||
'Your server': 'Sunucun',
|
||||
'Synced with your openGym server.': 'openGym sunucunla senkronize edildi.',
|
||||
'Synced with your KuentaGYM server.': 'KuentaGYM sunucunla senkronize edildi.',
|
||||
'Disconnect': 'Bağlantıyı kes',
|
||||
'Disconnect from your server?': 'Sunucuyla bağlantı kesilsin mi?',
|
||||
'Your data is synced to your server first, then this device switches back to local-only.': 'Verilerin önce sunucunla senkronize edilir, ardından bu cihaz yerel moda geri döner.',
|
||||
'Disconnected — back to local-only': 'Bağlantı kesildi — yerel moda dönüldü',
|
||||
'Connect to my server': 'Sunucuma bağlan',
|
||||
'Sync this device to your own self-hosted openGym instead.': "Bu cihazı bunun yerine kendi self-hosted openGym'inle senkronize et.",
|
||||
'Sync this device to your own self-hosted KuentaGYM instead.': "Bu cihazı bunun yerine kendi self-hosted KuentaGYM'inle senkronize et.",
|
||||
'Pair the mobile app': 'Mobil uygulamayı eşleştir',
|
||||
'Connect the openGym app on your phone to this account.': 'Telefonundaki openGym uygulamasını bu hesaba bağla.',
|
||||
'Connect the KuentaGYM app on your phone to this account.': 'Telefonundaki KuentaGYM uygulamasını bu hesaba bağla.',
|
||||
'Could not generate a code': 'Kod oluşturulamadı',
|
||||
'On the openGym app, choose “Connect to my server”, then enter this address and the code below. It expires in 5 minutes.': 'openGym uygulamasında “Sunucuma bağlan”ı seç, ardından bu adresi ve aşağıdaki kodu gir. 5 dakika içinde sona erer.',
|
||||
'On the KuentaGYM app, choose “Connect to my server”, then enter this address and the code below. It expires in 5 minutes.': 'KuentaGYM uygulamasında “Sunucuma bağlan”ı seç, ardından bu adresi ve aşağıdaki kodu gir. 5 dakika içinde sona erer.',
|
||||
'Enter your server address and the code': 'Sunucu adresini ve kodu gir',
|
||||
'Connected': 'Bağlandı',
|
||||
'Could not connect': 'Bağlanılamadı',
|
||||
'Open Settings → “Pair the mobile app” on the openGym site you’re already signed into, then enter its address and the code shown there.': 'Zaten oturum açtığın openGym sitesinde Ayarlar → “Mobil uygulamayı eşleştir”i aç, ardından adresini ve orada gösterilen kodu gir.',
|
||||
'Open Settings → “Pair the mobile app” on the KuentaGYM site you’re already signed into, then enter its address and the code shown there.': 'Zaten oturum açtığın KuentaGYM sitesinde Ayarlar → “Mobil uygulamayı eşleştir”i aç, ardından adresini ve orada gösterilen kodu gir.',
|
||||
'Server address (e.g. gym.example.com)': 'Sunucu adresi (ör. gym.example.com)',
|
||||
'Pairing code': 'Eşleştirme kodu',
|
||||
'Connecting…': 'Bağlanıyor…',
|
||||
'Connect': 'Bağlan',
|
||||
'How do you want to use openGym?': "openGym'i nasıl kullanmak istersin?",
|
||||
'How do you want to use KuentaGYM?': "KuentaGYM'i nasıl kullanmak istersin?",
|
||||
'Use on this device': 'Bu cihazda kullan',
|
||||
'Local keeps everything on this phone. Connecting syncs to your own openGym server instead — you can switch later in Settings.': "Yerel, her şeyi bu telefonda tutar. Bağlanmak ise bunun yerine kendi openGym sunucunla senkronize eder — bunu daha sonra Ayarlar'dan değiştirebilirsin.",
|
||||
'Local keeps everything on this phone. Connecting syncs to your own KuentaGYM server instead — you can switch later in Settings.': "Yerel, her şeyi bu telefonda tutar. Bağlanmak ise bunun yerine kendi KuentaGYM sunucunla senkronize eder — bunu daha sonra Ayarlar'dan değiştirebilirsin.",
|
||||
|
||||
// --- workout notes and planned warm-ups ---
|
||||
'{0} — done': '{0} — tamamlandı',
|
||||
@@ -940,7 +940,7 @@ export default {
|
||||
'Pick a model': 'Bir model seç',
|
||||
'Provider': 'Sağlayıcı',
|
||||
'Runs on this phone with your own API key': 'Bu telefonda kendi API anahtarınla çalışır',
|
||||
'Runs on your openGym server': 'openGym sunucunda çalışır',
|
||||
'Runs on your KuentaGYM server': 'KuentaGYM sunucunda çalışır',
|
||||
'Save and use the Coach': 'Kaydet ve koçu kullan',
|
||||
'The Coach is already thinking about your training.': 'Koç zaten antrenmanını düşünüyor.',
|
||||
'The Coach is resting — you have used today’s {0} runs on this phone.': 'Koç dinleniyor — bu telefonda bugünkü {0} çalıştırmayı kullandın.',
|
||||
@@ -949,7 +949,7 @@ export default {
|
||||
'The key is stored in this phone’s secure storage and never leaves it except to call the provider.': 'Anahtar bu telefonun güvenli deposunda saklanır ve yalnızca sağlayıcıyı çağırmak için dışarı çıkar.',
|
||||
'This phone calls the provider directly with your key. Every request is charged to your account.': 'Bu telefon sağlayıcıyı doğrudan senin anahtarınla çağırır. Her istek senin hesabına yansır.',
|
||||
'Turn the Coach off on this phone': 'Koçu bu telefonda kapat',
|
||||
'Use my self-hosted openGym': 'Kendi openGym sunucumu kullan',
|
||||
'Use my self-hosted KuentaGYM': 'Kendi KuentaGYM sunucumu kullan',
|
||||
'What leaves this phone': 'Bu telefondan neler gider',
|
||||
'When you ask for a plan or a review, this phone sends the following straight to {0}, using your own API key. You pay for every request.': 'Bir plan veya değerlendirme istediğinde bu telefon aşağıdakileri kendi API anahtarınla doğrudan {0} adresine gönderir. Her isteğin ücretini sen ödersin.',
|
||||
'Your server has no Coach enabled — ask its admin, or bring your own key below.': 'Sunucunda koç etkin değil — yöneticisine sor ya da aşağıda kendi anahtarını kullan.',
|
||||
@@ -1216,11 +1216,11 @@ export default {
|
||||
'Check for updates': 'Güncellemeleri denetle',
|
||||
'Checking…': 'Denetleniyor…',
|
||||
'You have v{0}': 'Sürümün v{0}',
|
||||
'Update to openGym v{0}': 'openGym v{0} sürümüne güncelle',
|
||||
'Update to KuentaGYM v{0}': 'KuentaGYM v{0} sürümüne güncelle',
|
||||
'You have the latest version.': 'En son sürüme sahipsin.',
|
||||
'Could not check for updates — are you online?': 'Denetlenemedi — çevrimiçi misin?',
|
||||
'Get the Android app': 'Android uygulamasını al',
|
||||
'Download the APK from opengym.duarte-santos.ch': 'APK’yı opengym.duarte-santos.ch adresinden indir',
|
||||
'Download the APK from gym.dploy.lol': 'APK’yı gym.dploy.lol adresinden indir',
|
||||
'Releases are checked on gitlab.com. The download is verified against its checksum before the installer opens.': 'Sürümler gitlab.com üzerinde denetlenir. İndirme, yükleyici açılmadan önce sağlama toplamıyla doğrulanır.',
|
||||
'The web app updates together with your server. The Android app installs its own updates from here.': 'Web uygulaması sunucunla birlikte güncellenir. Android uygulaması güncellemelerini buradan kurar.',
|
||||
'Starting download…': 'İndirme başlatılıyor…',
|
||||
|
||||
+18
-18
@@ -286,7 +286,7 @@ export default {
|
||||
'Your workouts. Your weights. Your profile.': '你的训练。你的重量。你的档案。',
|
||||
'Sign in with passkey': '用通行密钥登录',
|
||||
'Create new profile': '创建新档案',
|
||||
"This browser doesn't support passkeys — you can still use openGym locally on this device.": '此浏览器不支持通行密钥——你仍可在本设备上本地使用 openGym。',
|
||||
"This browser doesn't support passkeys — you can still use KuentaGYM locally on this device.": '此浏览器不支持通行密钥——你仍可在本设备上本地使用 KuentaGYM。',
|
||||
"This browser doesn't support passkeys, and this instance requires an account. Try a browser or device with passkey support.": '此浏览器不支持通行密钥,且此服务器需要账户。请换用支持通行密钥的浏览器或设备。',
|
||||
'Continue without account': '不用账号继续',
|
||||
'Passkeys use {0} — no passwords.': '通行密钥使用{0}——没有密码。',
|
||||
@@ -352,14 +352,14 @@ export default {
|
||||
'Tip': '提示',
|
||||
'In Chrome: ⋮ menu → Add to Home screen': '在 Chrome 中:⋮ 菜单 → 添加到主屏幕',
|
||||
'In Safari: Share → Add to Home Screen': '在 Safari 中:分享 → 添加到主屏幕',
|
||||
'to install openGym as a full-screen app.': '即可将 openGym 安装为全屏应用。',
|
||||
'to install KuentaGYM as a full-screen app.': '即可将 KuentaGYM 安装为全屏应用。',
|
||||
'Your data syncs with your profile — sign in anywhere to see it.': '数据与档案同步——在任何地方登录都能看到。',
|
||||
'Guest data stays on this device — export a backup now and then!': '访客数据仅保存在本设备——记得时常导出备份!',
|
||||
'free & open source (AGPL v3)': '免费且开源(AGPL v3)',
|
||||
'Notifications': '通知',
|
||||
'Not supported in this browser.': '此浏览器不支持。',
|
||||
'Push notifications': '推送通知',
|
||||
'Rest-timer alerts, even if openGym is closed.': '休息计时提醒,即使 openGym 已关闭。',
|
||||
'Rest-timer alerts, even if KuentaGYM is closed.': '休息计时提醒,即使 KuentaGYM 已关闭。',
|
||||
'Workout day reminder': '训练日提醒',
|
||||
'Reminder time': '提醒时间',
|
||||
"Only sent on days you have a routine planned and haven't logged a workout yet.": '仅在安排了训练且尚未记录的日子发送。',
|
||||
@@ -548,7 +548,7 @@ export default {
|
||||
'Share your plan': '分享你的计划',
|
||||
'Send your routines to a friend, or put your week on paper.': '把你的训练日发给朋友,或把这一周打印到纸上。',
|
||||
'Export plan file': '导出计划文件',
|
||||
'A small file a friend imports into their own openGym — routines only, none of your workouts or weigh-ins.': '一个小文件,朋友可以导入到自己的 openGym——只有训练日,不包含你的训练记录或体重。',
|
||||
'A small file a friend imports into their own KuentaGYM — routines only, none of your workouts or weigh-ins.': '一个小文件,朋友可以导入到自己的 KuentaGYM——只有训练日,不包含你的训练记录或体重。',
|
||||
'Print / Save as PDF': '打印 / 保存为 PDF',
|
||||
'A clean one-page-per-plan printout — no exercise ever splits across a page.': '干净的打印版,每个计划一页——任何动作都不会被分到两页。',
|
||||
'Add an exercise to a routine first — an empty plan has nothing to share.': '请先给训练日添加动作——空的计划没有可分享的内容。',
|
||||
@@ -569,14 +569,14 @@ export default {
|
||||
'Replaces your current Mon–Sun assignments.': '替换你当前的周一至周日安排。',
|
||||
'Added {0} routine to your plan': '已向你的计划添加 {0} 个训练日',
|
||||
'Added {0} routines to your plan': '已向你的计划添加 {0} 个训练日',
|
||||
'this isn’t an openGym plan file': '这不是 openGym 计划文件',
|
||||
'this isn’t a KuentaGYM plan file': '这不是 KuentaGYM 计划文件',
|
||||
'Shared routine': '共享的训练日',
|
||||
'Unknown exercise': '未知动作',
|
||||
'Weekly Training Plan': '每周训练计划',
|
||||
'Made with openGym': '使用 openGym 制作',
|
||||
'Made with KuentaGYM': '使用 KuentaGYM 制作',
|
||||
'Something went wrong': '出了点问题',
|
||||
'This screen could not be drawn. Your data is safe on this device.': '此页面无法显示。你的数据仍安全保存在本设备上。',
|
||||
'Reload openGym': '重新加载 openGym',
|
||||
'Reload KuentaGYM': '重新加载 KuentaGYM',
|
||||
'Discard the running workout': '放弃进行中的训练',
|
||||
|
||||
// --- v1.2.2: timed sets, progression, estimated 1RM (#16 #17 #18) ---
|
||||
@@ -877,28 +877,28 @@ export default {
|
||||
|
||||
// "Connect to my server" (mobile app pairing)
|
||||
'Your server': '你的服务器',
|
||||
'Synced with your openGym server.': '已与你的 openGym 服务器同步。',
|
||||
'Synced with your KuentaGYM server.': '已与你的 KuentaGYM 服务器同步。',
|
||||
'Disconnect': '断开连接',
|
||||
'Disconnect from your server?': '要断开与服务器的连接吗?',
|
||||
'Your data is synced to your server first, then this device switches back to local-only.': '你的数据会先同步到服务器,然后此设备将切换回本地模式。',
|
||||
'Disconnected — back to local-only': '已断开连接——已切换回本地模式',
|
||||
'Connect to my server': '连接到我的服务器',
|
||||
'Sync this device to your own self-hosted openGym instead.': '改为将此设备与你自己的自托管 openGym 同步。',
|
||||
'Sync this device to your own self-hosted KuentaGYM instead.': '改为将此设备与你自己的自托管 KuentaGYM 同步。',
|
||||
'Pair the mobile app': '配对手机应用',
|
||||
'Connect the openGym app on your phone to this account.': '将手机上的 openGym 应用连接到此账户。',
|
||||
'Connect the KuentaGYM app on your phone to this account.': '将手机上的 KuentaGYM 应用连接到此账户。',
|
||||
'Could not generate a code': '无法生成配对码',
|
||||
'On the openGym app, choose “Connect to my server”, then enter this address and the code below. It expires in 5 minutes.': '在 openGym 应用中选择“连接到我的服务器”,然后输入此地址和下面的配对码。5 分钟后失效。',
|
||||
'On the KuentaGYM app, choose “Connect to my server”, then enter this address and the code below. It expires in 5 minutes.': '在 KuentaGYM 应用中选择“连接到我的服务器”,然后输入此地址和下面的配对码。5 分钟后失效。',
|
||||
'Enter your server address and the code': '输入你的服务器地址和配对码',
|
||||
'Connected': '已连接',
|
||||
'Could not connect': '无法连接',
|
||||
'Open Settings → “Pair the mobile app” on the openGym site you’re already signed into, then enter its address and the code shown there.': '在你已登录的 openGym 网站上,打开设置 →“配对手机应用”,然后输入其地址和那里显示的配对码。',
|
||||
'Open Settings → “Pair the mobile app” on the KuentaGYM site you’re already signed into, then enter its address and the code shown there.': '在你已登录的 KuentaGYM 网站上,打开设置 →“配对手机应用”,然后输入其地址和那里显示的配对码。',
|
||||
'Server address (e.g. gym.example.com)': '服务器地址(例如 gym.example.com)',
|
||||
'Pairing code': '配对码',
|
||||
'Connecting…': '连接中…',
|
||||
'Connect': '连接',
|
||||
'How do you want to use openGym?': '你想如何使用 openGym?',
|
||||
'How do you want to use KuentaGYM?': '你想如何使用 KuentaGYM?',
|
||||
'Use on this device': '在此设备上使用',
|
||||
'Local keeps everything on this phone. Connecting syncs to your own openGym server instead — you can switch later in Settings.': '本地模式会把所有内容保留在这部手机上。连接则会改为与你自己的 openGym 服务器同步——之后可以在设置中更改。',
|
||||
'Local keeps everything on this phone. Connecting syncs to your own KuentaGYM server instead — you can switch later in Settings.': '本地模式会把所有内容保留在这部手机上。连接则会改为与你自己的 KuentaGYM 服务器同步——之后可以在设置中更改。',
|
||||
|
||||
// --- workout notes and planned warm-ups ---
|
||||
'{0} — done': '{0} — 已完成',
|
||||
@@ -940,7 +940,7 @@ export default {
|
||||
'Pick a model': '选择一个模型',
|
||||
'Provider': '提供商',
|
||||
'Runs on this phone with your own API key': '在此手机上使用你自己的 API 密钥运行',
|
||||
'Runs on your openGym server': '在你的 openGym 服务器上运行',
|
||||
'Runs on your KuentaGYM server': '在你的 KuentaGYM 服务器上运行',
|
||||
'Save and use the Coach': '保存并使用教练',
|
||||
'The Coach is already thinking about your training.': '教练已经在思考你的训练了。',
|
||||
'The Coach is resting — you have used today’s {0} runs on this phone.': '教练正在休息——今天在这部手机上的 {0} 次运行已用完。',
|
||||
@@ -949,7 +949,7 @@ export default {
|
||||
'The key is stored in this phone’s secure storage and never leaves it except to call the provider.': '密钥保存在此手机的安全存储中,除调用提供商外不会离开手机。',
|
||||
'This phone calls the provider directly with your key. Every request is charged to your account.': '此手机使用你的密钥直接调用提供商。每个请求都会计入你的账户。',
|
||||
'Turn the Coach off on this phone': '在此手机上关闭教练',
|
||||
'Use my self-hosted openGym': '使用我自托管的 openGym',
|
||||
'Use my self-hosted KuentaGYM': '使用我自托管的 KuentaGYM',
|
||||
'What leaves this phone': '哪些数据会离开此手机',
|
||||
'When you ask for a plan or a review, this phone sends the following straight to {0}, using your own API key. You pay for every request.': '当你请求计划或评估时,此手机会使用你自己的 API 密钥将以下内容直接发送到 {0}。每个请求的费用由你承担。',
|
||||
'Your server has no Coach enabled — ask its admin, or bring your own key below.': '你的服务器未启用教练——请联系管理员,或在下方使用你自己的密钥。',
|
||||
@@ -1216,11 +1216,11 @@ export default {
|
||||
'Check for updates': '检查更新',
|
||||
'Checking…': '正在检查…',
|
||||
'You have v{0}': '当前 v{0}',
|
||||
'Update to openGym v{0}': '更新到 openGym v{0}',
|
||||
'Update to KuentaGYM v{0}': '更新到 KuentaGYM v{0}',
|
||||
'You have the latest version.': '已是最新版本。',
|
||||
'Could not check for updates — are you online?': '无法检查更新,你在线吗?',
|
||||
'Get the Android app': '获取 Android 应用',
|
||||
'Download the APK from opengym.duarte-santos.ch': '从 opengym.duarte-santos.ch 下载 APK',
|
||||
'Download the APK from gym.dploy.lol': '从 gym.dploy.lol 下载 APK',
|
||||
'Releases are checked on gitlab.com. The download is verified against its checksum before the installer opens.': '版本在 gitlab.com 上检查。安装程序打开前会校验下载文件的校验和。',
|
||||
'The web app updates together with your server. The Android app installs its own updates from here.': '网页应用随服务器一起更新。Android 应用在这里自行安装更新。',
|
||||
'Starting download…': '正在开始下载…',
|
||||
|
||||
@@ -0,0 +1,130 @@
|
||||
// @vitest-environment happy-dom
|
||||
// The day a weigh-in belongs to (issue: a starting weight taken before the app was installed
|
||||
// had nowhere to go — the sheet stamped every entry with `todayISO()`, so the curve could only
|
||||
// ever begin on the day of the first weigh-in typed here and the real starting point was lost).
|
||||
// What is pinned: the day is the user's to pick, it is what lands in `d`, a second save on the
|
||||
// same day replaces rather than duplicates, a future day is never written, and the pre-workout
|
||||
// check-in stays today-only. `t` stays the moment of editing — sync-merge breaks a same-day
|
||||
// conflict on it (lib/sync-merge.js) — which is why the charts read `d`.
|
||||
import React, { act } from 'react'
|
||||
import { afterEach, beforeEach, describe, expect, it } from 'vitest'
|
||||
import { createRoot } from 'react-dom/client'
|
||||
import { useStore } from './store/useStore.js'
|
||||
import { useUI } from './store/useUI.js'
|
||||
import { bwSheet } from './sheets.jsx'
|
||||
import { todayISO, fmtDate } from './lib/format.js'
|
||||
|
||||
const mounted = []
|
||||
const TODAY = todayISO()
|
||||
const PAST = '2026-03-02'
|
||||
const FUTURE = '2099-01-01'
|
||||
|
||||
function type(el, value) {
|
||||
Object.getOwnPropertyDescriptor(el.constructor.prototype, 'value').set.call(el, value)
|
||||
el.dispatchEvent(new Event('input', { bubbles: true }))
|
||||
}
|
||||
|
||||
function renderBw(opts = {}) {
|
||||
bwSheet(opts)
|
||||
const sheet = useUI.getState().sheets.at(-1)
|
||||
const host = document.createElement('div')
|
||||
document.body.appendChild(host)
|
||||
const root = createRoot(host)
|
||||
mounted.push(root)
|
||||
act(() => root.render(sheet.render(() => useUI.getState().closeSheet(sheet.id))))
|
||||
const button = label => [...host.querySelectorAll('button')].find(b => (b.getAttribute('aria-label') || b.textContent.trim()) === label)
|
||||
return {
|
||||
host,
|
||||
date: host.querySelector('input[type="date"]'),
|
||||
weight: host.querySelector('.bw-read input'),
|
||||
button,
|
||||
}
|
||||
}
|
||||
|
||||
/** Pick a day, type a weight and save — the shortest path through the sheet a user takes. */
|
||||
function weighIn({ host, date, weight, button }, day, kg, saveLabel = 'Save') {
|
||||
if (day != null) act(() => type(date, day))
|
||||
act(() => type(weight, String(kg)))
|
||||
act(() => button(saveLabel).click())
|
||||
return useStore.getState().S.bodyweight
|
||||
}
|
||||
|
||||
describe('the day a weigh-in belongs to', () => {
|
||||
beforeEach(() => {
|
||||
globalThis.IS_REACT_ACT_ENVIRONMENT = true
|
||||
useUI.setState({ sheets: [], toastMsg: '' })
|
||||
useStore.setState(s => ({ S: { ...s.S, unit: 'kg', bodyweight: [] } }))
|
||||
document.body.innerHTML = ''
|
||||
})
|
||||
|
||||
afterEach(() => {
|
||||
act(() => { mounted.splice(0).forEach(root => root.unmount()) })
|
||||
})
|
||||
|
||||
it('offers the day, defaulted to today and capped there', () => {
|
||||
const { date } = renderBw()
|
||||
expect(date).toBeTruthy()
|
||||
expect(date.value).toBe(TODAY)
|
||||
expect(date.getAttribute('max')).toBe(TODAY)
|
||||
})
|
||||
|
||||
it('saves a weight onto the day picked, not the day it was typed', () => {
|
||||
const { host, ...rest } = renderBw()
|
||||
const bw = weighIn({ host, ...rest }, PAST, 316)
|
||||
|
||||
expect(bw).toHaveLength(1)
|
||||
expect(bw[0].d).toBe(PAST)
|
||||
expect(bw[0].w).toBe(316)
|
||||
// `t` is when this was typed, not the day weighed — the merge relies on it.
|
||||
expect(bw[0].t).toBeGreaterThan(new Date(PAST + 'T23:59:59').getTime())
|
||||
// The entry lands outside "Recent weigh-ins" (the three newest), so the toast has to say
|
||||
// which day it went to or a backdated save looks like it did nothing.
|
||||
expect(useUI.getState().toastMsg).toBe('Weight saved · ' + fmtDate(PAST, true, false))
|
||||
})
|
||||
|
||||
it('replaces an existing weigh-in of that day instead of adding a second one', () => {
|
||||
const first = renderBw()
|
||||
weighIn(first, PAST, 316)
|
||||
|
||||
const second = renderBw()
|
||||
const bw = weighIn(second, PAST, 314)
|
||||
expect(bw).toHaveLength(1)
|
||||
expect(bw[0].w).toBe(314)
|
||||
})
|
||||
|
||||
it('shows what a day already holds when that day is picked', () => {
|
||||
useStore.setState(s => ({ S: { ...s.S, bodyweight: [{ d: PAST, w: 316, t: 1 }] } }))
|
||||
const { date, weight } = renderBw()
|
||||
expect(weight.value).toBe('316') // newest weigh-in, loaded on open
|
||||
act(() => type(date, PAST))
|
||||
expect(weight.value).toBe('316')
|
||||
})
|
||||
|
||||
it('keeps the two ends of the curve in day order', () => {
|
||||
const { host, ...rest } = renderBw()
|
||||
weighIn({ host, ...rest }, TODAY, 300)
|
||||
|
||||
const older = renderBw()
|
||||
const bw = weighIn(older, PAST, 316)
|
||||
expect(bw.map(b => b.d)).toEqual([PAST, TODAY])
|
||||
expect(bw.map(b => b.w)).toEqual([316, 300])
|
||||
})
|
||||
|
||||
it('never writes a day past today', () => {
|
||||
const { host, ...rest } = renderBw()
|
||||
const bw = weighIn({ host, ...rest }, FUTURE, 82)
|
||||
expect(bw).toHaveLength(1)
|
||||
expect(bw[0].d).toBe(TODAY)
|
||||
})
|
||||
|
||||
it('leaves the pre-workout check-in on today', () => {
|
||||
const { host, date, weight, button } = renderBw({ required: true, onDone: () => {} })
|
||||
expect(date).toBeNull() // the day is not the question before a workout
|
||||
act(() => type(weight, '82.5'))
|
||||
act(() => button('Save & start workout').click())
|
||||
const bw = useStore.getState().S.bodyweight
|
||||
expect(bw).toHaveLength(1)
|
||||
expect(bw[0].d).toBe(TODAY)
|
||||
expect(bw[0].w).toBe(82.5)
|
||||
})
|
||||
})
|
||||
+33
-5
@@ -201,21 +201,44 @@ function BwSheet({ required, onDone, close }) {
|
||||
const st = useStore(s => s.S)
|
||||
const unit = st.unit
|
||||
const bw = lastBW(st)
|
||||
const today = todayISO()
|
||||
// The day the weigh-in belongs to. This used to be a `todayISO()` read inside save(), which
|
||||
// made a weight taken before the app was installed unsavable: the curve could only ever start
|
||||
// on the day of the first weigh-in recorded here, and the real starting weight had nowhere to
|
||||
// go. The sheet stays today-only when it opens as the pre-workout check-in (`required`) — that
|
||||
// one is about now by definition.
|
||||
const [date, setDate] = useState(today)
|
||||
const [v, setV] = useState(bw ? bw.w : 70)
|
||||
// Choosing a day that already has an entry loads it, so the field shows the number about to be
|
||||
// replaced instead of this morning's.
|
||||
const pickDate = d => {
|
||||
if (!d) return // a cleared input is not a date
|
||||
setDate(d)
|
||||
const ex = (st.bodyweight || []).find(b => b.d === d)
|
||||
if (ex) setV(ex.w)
|
||||
}
|
||||
const save = () => {
|
||||
const n = Math.round((v || 0) * 10) / 10
|
||||
if (!n || n <= 0) { toast(t('Enter a valid weight')); return }
|
||||
const iso = !date || date > today ? today : date
|
||||
update(s => {
|
||||
const iso = todayISO()
|
||||
// `t` stays the moment of editing — sync-merge breaks a same-day conflict on it
|
||||
// (lib/sync-merge.js) — while every chart and window reads `d`, the day weighed.
|
||||
const ex = s.bodyweight.find(b => b.d === iso)
|
||||
if (ex) { ex.w = n; ex.t = Date.now() } else s.bodyweight.push({ d: iso, w: n, t: Date.now() })
|
||||
s.bodyweight.sort((a, b) => (a.d < b.d ? -1 : 1))
|
||||
})
|
||||
close()
|
||||
if (onDone) onDone(n); else toast(t('Weight saved'))
|
||||
if (onDone) onDone(n)
|
||||
// A backdated weigh-in lands outside the three rows listed below, so the toast carries the
|
||||
// day it went to: 316 saved onto the first day otherwise looks like nothing happened.
|
||||
else toast(iso === today ? t('Weight saved') : t('Weight saved') + ' · ' + fmtDate(iso, true, iso.slice(0, 4) !== today.slice(0, 4)))
|
||||
}
|
||||
const recent = [...st.bodyweight].reverse().slice(0, 3)
|
||||
const delEntry = d => update(s => { s.bodyweight = s.bodyweight.filter(b => b.d !== d) })
|
||||
const dateLabel = date === today
|
||||
? t('Today') + ', ' + fmtDate(date, true)
|
||||
: fmtDate(date, true, date.slice(0, 4) !== today.slice(0, 4))
|
||||
return <>
|
||||
{/* This sheet opens `locked` — swipe/backdrop/Escape/Android-back all no-op on it (see
|
||||
Modals.jsx) so an accidental tap on "Start" can't be walked back by reflex the way
|
||||
@@ -229,7 +252,12 @@ function BwSheet({ required, onDone, close }) {
|
||||
<button className="iconbtn" aria-label={t('Cancel')} onClick={() => close()}><Icon name="xmark" /></button>
|
||||
</div>
|
||||
: <h3>{t('Log body weight')}</h3>}
|
||||
<div className="muted small">{required ? t('Slide or tap to set your weight — tracked before every workout so your curve stays honest.') : t('Today') + ', ' + fmtDate(todayISO(), true)}</div>
|
||||
<div className="muted small">{required ? t('Slide or tap to set your weight — tracked before every workout so your curve stays honest.') : dateLabel}</div>
|
||||
{!required && <>
|
||||
<div style={{ height: 10 }} />
|
||||
<Row icon="calendar" title={t('Date')}>
|
||||
<input type="date" className="timef" value={date} max={today} onChange={e => pickDate(e.target.value)} /></Row>
|
||||
</>}
|
||||
<WeightInput value={v} setValue={setV} unit={unit} />
|
||||
<div style={{ height: 14 }} />
|
||||
<Button variant="primary" onClick={save}>{required ? t('Save & start workout') : t('Save')}</Button>
|
||||
@@ -1517,7 +1545,7 @@ function PlanTools({ close }) {
|
||||
const exportFile = async () => {
|
||||
const bundle = buildPlanBundle(st, user?.name ? t('{0}’s plan', user.name) : '')
|
||||
const json = JSON.stringify(bundle, null, 2)
|
||||
const name = 'opengym-plan-' + todayISO() + '.json'
|
||||
const name = 'kuentagym-plan-' + todayISO() + '.json'
|
||||
if (MOBILE) { try { await shareExport(json, name) } catch (e) { /* dismissed */ } close(); return }
|
||||
const blob = new Blob([json], { type: 'application/json' })
|
||||
const a = document.createElement('a'); a.href = URL.createObjectURL(blob); a.download = name; a.click(); URL.revokeObjectURL(a.href)
|
||||
@@ -1537,7 +1565,7 @@ function PlanTools({ close }) {
|
||||
<h3>{t('Share your plan')}</h3>
|
||||
<div className="muted small" style={{ marginBottom: 16 }}>{t('Send your routines to a friend, or put your week on paper.')}</div>
|
||||
<Button variant="primary" icon="upload" onClick={exportFile} disabled={!hasRoutines}>{t('Export plan file')}</Button>
|
||||
<div className="dim small" style={{ margin: '7px 2px 0', lineHeight: 1.4 }}>{t('A small file a friend imports into their own openGym — routines only, none of your workouts or weigh-ins.')}</div>
|
||||
<div className="dim small" style={{ margin: '7px 2px 0', lineHeight: 1.4 }}>{t('A small file a friend imports into their own KuentaGYM — routines only, none of your workouts or weigh-ins.')}</div>
|
||||
<div style={{ height: 12 }} />
|
||||
<Button variant="tinted" icon="download" onClick={() => {
|
||||
close()
|
||||
|
||||
@@ -24,7 +24,7 @@ function renderTop() {
|
||||
return host
|
||||
}
|
||||
const buttonFor = (host, label) => [...host.querySelectorAll('button')].find(b => b.textContent === label)
|
||||
const bundleOf = routines => parsePlan({ opengym_plan: 1, unit: 'kg', week: {}, routines, customEx: [] }, 'kg')
|
||||
const bundleOf = routines => parsePlan({ kuentagym_plan: 1, unit: 'kg', week: {}, routines, customEx: [] }, 'kg')
|
||||
const routine = (id, name) => ({ id, name, emoji: null, ex: [{ id: ids[0], sets: 3, reps: 8, weight: 40 }] })
|
||||
|
||||
beforeEach(() => {
|
||||
|
||||
@@ -0,0 +1,53 @@
|
||||
// @vitest-environment happy-dom
|
||||
// The unit and language a *new* profile starts in are a product decision for this fork, not an
|
||||
// incidental value: pounds and Spanish. Nothing else asserts them, so a silent edit to DEF would
|
||||
// change every fresh install and every guest profile without a single test noticing — pin them.
|
||||
//
|
||||
// What is deliberately NOT tested here is that an existing profile keeps its own unit: that
|
||||
// follows from DEF being the object a loaded state is overlaid *on* (loaded values win), which
|
||||
// useStore.restore.test.jsx exercises from the other side — a remote state missing a setting
|
||||
// picks up DEF's, and one carrying it keeps it.
|
||||
import { describe, expect, it } from 'vitest'
|
||||
import { DEF } from './useStore.js'
|
||||
import { LANGS } from '../lib/i18n-core.js'
|
||||
import { buildDemoState } from '../lib/demoSeed.js'
|
||||
import { setLang, t, getLang, dateLocale } from '../lib/i18n.js'
|
||||
|
||||
describe('the defaults a new profile starts from', () => {
|
||||
it('is pounds, not kilograms', () => {
|
||||
expect(DEF.unit).toBe('lb')
|
||||
})
|
||||
|
||||
it('is Spanish, not English', () => {
|
||||
expect(DEF.lang).toBe('es')
|
||||
})
|
||||
|
||||
it('is a language the app actually ships a pack for', () => {
|
||||
// A default outside LANGS would send every fresh profile through the pack loader's
|
||||
// not-found path, landing on English strings in a Spanish-shaped UI.
|
||||
expect(Object.keys(LANGS)).toContain(DEF.lang)
|
||||
})
|
||||
|
||||
// The whole point of the default, and the one thing none of the other ~1,590 tests can see:
|
||||
// without a locale pack loaded, `t()` answers with the English source text, so every other
|
||||
// sheet and view test passes whether or not a Spanish pack exists at all. This one loads it.
|
||||
it('resolves to real Spanish strings once the pack is loaded', async () => {
|
||||
await setLang(DEF.lang)
|
||||
expect(getLang()).toBe('es')
|
||||
expect(t('Log body weight')).toBe('Registrar peso corporal')
|
||||
expect(t('Today')).toBe('Hoy')
|
||||
// Dates and numbers follow the language too — the same switch that made `fmtNum` write 62,8
|
||||
// instead of 62.8 and `Intl.ListFormat` join days with "y" rather than "and".
|
||||
expect(dateLocale()).toBe('es-ES')
|
||||
await setLang('en') // leave the module as the other tests expect
|
||||
})
|
||||
|
||||
// The one place that deliberately overrides the default unit: the demo seed's weights and
|
||||
// body-weight trend are kilograms (see the weight table at the top of demoSeed.js), so it says
|
||||
// so. Without that line the demo would introduce an 82.4 lb lifter benching 60.
|
||||
it('is overridden by the demo seed, whose numbers are kilograms', () => {
|
||||
const demo = buildDemoState()
|
||||
expect(demo.unit).toBe('kg')
|
||||
expect(demo.unit).not.toBe(DEF.unit)
|
||||
})
|
||||
})
|
||||
@@ -21,7 +21,12 @@ const SYNC_KEY = 'gym_sync'
|
||||
const CHECK_MIN_MS = 3000 // rev checks closer together than this are the same event (focus + visibility)
|
||||
const POLL_MS = 30000 // while the app is open and signed in, ask the server for its revision this often
|
||||
export const DEF = {
|
||||
unit: 'kg', restSec: 90, restPauseSec: 15, sound: true, soundOnSilent: false, timerFlash: false, keepAwake: true, lang: 'en',
|
||||
// Unit and language a *new* profile starts in. This fork's audience works in pounds and reads
|
||||
// Spanish, so those are the defaults here; every other locale and unit is one tap away in
|
||||
// Settings. A profile that already saved a value keeps it — DEF is only the fallback a loaded
|
||||
// state is overlaid on (local, server pull and backup import alike), so this never converts
|
||||
// numbers under an existing user.
|
||||
unit: 'lb', restSec: 90, restPauseSec: 15, sound: true, soundOnSilent: false, timerFlash: false, keepAwake: true, lang: 'es',
|
||||
theme: 'dark', accent: 'lime', body: 'male', targetW: null,
|
||||
bodyweight: [], routines: [], week: {}, dayPlan: {},
|
||||
exWeights: {}, workouts: [], active: null, customEx: [], gifSize: 'full',
|
||||
|
||||
@@ -118,8 +118,11 @@ describe('saved workout state sync and restore', () => {
|
||||
await useStore.getState().pullState()
|
||||
|
||||
expect(useStore.getState().S.routines.map(r => r.id)).toEqual(['remote'])
|
||||
// Settings the remote state never carried come from DEF — this fork's defaults are pounds and
|
||||
// Spanish, so those are the values a profile with nothing saved lands on.
|
||||
expect(useStore.getState().S.restSec).toBe(90)
|
||||
expect(useStore.getState().S.lang).toBe('en')
|
||||
expect(useStore.getState().S.lang).toBe('es')
|
||||
expect(useStore.getState().S.unit).toBe('lb')
|
||||
})
|
||||
|
||||
it('keeps the local saved state when the restore request fails', async () => {
|
||||
|
||||
@@ -47,7 +47,7 @@ function UserDetail({ id, onChanged, close }) {
|
||||
const blob = new Blob([JSON.stringify(d, null, 2)], { type: 'application/json' })
|
||||
const a = document.createElement('a')
|
||||
a.href = URL.createObjectURL(blob)
|
||||
a.download = `opengym-${u.name.replace(/[^a-zA-Z0-9_-]+/g, '-').toLowerCase()}-${u.id}.json`
|
||||
a.download = `kuentagym-${u.name.replace(/[^a-zA-Z0-9_-]+/g, '-').toLowerCase()}-${u.id}.json`
|
||||
document.body.appendChild(a); a.click(); a.remove()
|
||||
setTimeout(() => URL.revokeObjectURL(a.href), 1000)
|
||||
}
|
||||
|
||||
@@ -54,7 +54,7 @@ let dom, root, container
|
||||
const TODAY_WD = new Date(todayISO() + 'T12:00:00').getDay()
|
||||
|
||||
const bundle = week => ({
|
||||
opengym_plan: 1, name: 'Coach plan', summary: 'a plan',
|
||||
kuentagym_plan: 1, name: 'Coach plan', summary: 'a plan',
|
||||
week,
|
||||
routines: [
|
||||
{ id: 'x1', name: 'Full body A', emoji: '💪', why: 'first', ex: [{ id: '0001', sets: 3, reps: 10, mode: 'reps', why: 'because' }] },
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// Mobile build only: how the Coach should run on this phone.
|
||||
//
|
||||
// Two answers. "Use my self-hosted openGym" hands the whole thing to the paired server — the
|
||||
// Two answers. "Use my self-hosted KuentaGYM" hands the whole thing to the paired server — the
|
||||
// same Coach the web app has, with whatever provider its admin configured; the phone only has
|
||||
// to be paired. "Bring my own API key" runs the pipeline on the phone against Anthropic,
|
||||
// OpenAI, Gemini or an OpenAI-compatible endpoint, with a key that stays in secure storage.
|
||||
@@ -108,7 +108,7 @@ export default function CoachSetup() {
|
||||
toast(t('The Coach is off'))
|
||||
}
|
||||
|
||||
const current = coachLocal?.mode === 'server' ? t('Runs on your openGym server')
|
||||
const current = coachLocal?.mode === 'server' ? t('Runs on your KuentaGYM server')
|
||||
: coachLocal?.mode === 'byok' ? t('Runs on this phone with your own API key')
|
||||
: t('Off — choose how the Coach should run.')
|
||||
|
||||
@@ -119,7 +119,7 @@ export default function CoachSetup() {
|
||||
</div>
|
||||
|
||||
<Section title={t('How should the Coach run?')} footer={current}>
|
||||
<Row icon="rocket" iconTint="var(--indigo)" title={t('Use my self-hosted openGym')}
|
||||
<Row icon="rocket" iconTint="var(--indigo)" title={t('Use my self-hosted KuentaGYM')}
|
||||
subtitle={user ? (serverHasCoach ? t('Your server runs the Coach with whatever provider its admin set up. Nothing new leaves this phone beyond what already syncs.') : config == null ? t('Loading…') : t('Your server has no Coach enabled — ask its admin, or bring your own key below.')) : t('Connect to my server')}
|
||||
accessory="chevron" onClick={() => { if (!user || serverHasCoach) useServer(); else setChoice('server') }} />
|
||||
<Row icon="key" iconTint="var(--acc)" title={t('Bring my own API key')}
|
||||
|
||||
@@ -55,14 +55,17 @@ export default function Home() {
|
||||
const wThisWeek = S.workouts.filter(w => weekKey(w.d, ws) === weekKey(todayISO(), ws)).length
|
||||
// Days scheduled, not routines — a combined day counts as 1, matching wThisWeek (one w).
|
||||
const plannedPerWeek = Object.values(S.week).filter(ids => ids?.length).length
|
||||
const bwPoints = S.bodyweight.slice(-30).map(b => ({ t: b.t || new Date(b.d).getTime(), y: b.w, d: b.d }))
|
||||
// Plotted on the day weighed (`d`), not on `t`: `t` is the moment the entry was last edited,
|
||||
// so a weigh-in backdated to a day before the app was installed would otherwise draw itself
|
||||
// at today's x — the starting weight sitting on top of the current one.
|
||||
const bwPoints = S.bodyweight.slice(-30).map(b => ({ t: b.d ? new Date(b.d + 'T12:00:00').getTime() : (b.t || 0), y: b.w, d: b.d }))
|
||||
|
||||
// today's session shown right under the week strip
|
||||
const onToday = () => { if (S.active) nav('/workout'); else if (todayRoutines.length) startFlow(effectiveRoutineIds(S, todayISO())); else dayOverrideSheet(todayISO()) }
|
||||
|
||||
return <div className="narrow">
|
||||
<div className="hdr">
|
||||
<div><h1>{user ? t('Hi {0}', user.name) : 'openGym'}</h1><div className="sub">{today.toLocaleDateString(dateLocale(), { weekday: 'long', day: 'numeric', month: 'long' })}</div></div>
|
||||
<div><h1>{user ? t('Hi {0}', user.name) : 'KuentaGYM'}</h1><div className="sub">{today.toLocaleDateString(dateLocale(), { weekday: 'long', day: 'numeric', month: 'long' })}</div></div>
|
||||
<button className="iconbtn" onClick={() => nav('/settings')} aria-label={t('Settings')}><Icon name="gear" /></button>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -57,7 +57,7 @@ export default function Login() {
|
||||
}
|
||||
const head = <>
|
||||
<div style={{ fontSize: 54, display: 'flex', justifyContent: 'center', color: 'var(--acc)' }}><Icon name="dumbbell" /></div>
|
||||
<h1 style={{ fontSize: 34, fontWeight: 700, letterSpacing: '-.028em', margin: '10px 0 4px' }}>openGym</h1>
|
||||
<h1 style={{ fontSize: 34, fontWeight: 700, letterSpacing: '-.028em', margin: '10px 0 4px' }}>KuentaGYM</h1>
|
||||
</>
|
||||
const wrap = { display: 'flex', flexDirection: 'column', justifyContent: 'center', minHeight: '78vh', textAlign: 'center' }
|
||||
|
||||
@@ -68,7 +68,7 @@ export default function Login() {
|
||||
<div className="muted" style={{ marginBottom: 30 }}>{t('Live demo — everything stays in this browser.')}</div>
|
||||
<Button variant="primary" icon="sparkles" onClick={() => setGuest(true)}>{t('Start the demo')}</Button>
|
||||
<div className="card small muted" style={{ textAlign: 'left', marginTop: 16 }}>
|
||||
{t('This demo runs entirely in your browser on example data — nothing is sent anywhere. Passkey sign-in and sync across your devices come with the openGym server, which you get by self-hosting it.')}
|
||||
{t('This demo runs entirely in your browser on example data — nothing is sent anywhere. Passkey sign-in and sync across your devices come with the KuentaGYM server, which you get by self-hosting it.')}
|
||||
</div>
|
||||
<div className="dim small" style={{ marginTop: 22, lineHeight: 1.6 }}>
|
||||
<a href={REPO} target="_blank" rel="noopener">{t('Self-host it in a minute →')}</a>
|
||||
@@ -86,7 +86,7 @@ export default function Login() {
|
||||
<Button icon="sparkles" onClick={() => useUI.getState().openSheet(close => <RegisterSheet close={close} />)}>{t('Create new profile')}</Button>
|
||||
{canGuest && <div style={{ height: 10 }} />}
|
||||
</> : <div className="card small muted" style={{ textAlign: 'left' }}>{canGuest
|
||||
? t("This browser doesn't support passkeys — you can still use openGym locally on this device.")
|
||||
? t("This browser doesn't support passkeys — you can still use KuentaGYM locally on this device.")
|
||||
// Without passkeys and without the guest entrance there is no way in from this browser,
|
||||
// so say that plainly instead of offering a local profile that cannot be created.
|
||||
: t("This browser doesn't support passkeys, and this instance requires an account. Try a browser or device with passkey support.")}</div>}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// Mobile build only, first launch: the choice useStore.boot() couldn't make on its own — keep
|
||||
// everything on this device, or connect to a self-hosted openGym server instead. See
|
||||
// everything on this device, or connect to a self-hosted KuentaGYM server instead. See
|
||||
// lib/remote.js for the pairing flow this hands off to.
|
||||
import { useState, useRef, useEffect } from 'react'
|
||||
import { useStore } from '../store/useStore.js'
|
||||
@@ -26,7 +26,7 @@ export function ConnectSheet({ close }) {
|
||||
return <>
|
||||
<h3>{t('Connect to my server')}</h3>
|
||||
<div className="muted small" style={{ marginBottom: 14 }}>
|
||||
{t('Open Settings → “Pair the mobile app” on the openGym site you’re already signed into, then enter its address and the code shown there.')}
|
||||
{t('Open Settings → “Pair the mobile app” on the KuentaGYM site you’re already signed into, then enter its address and the code shown there.')}
|
||||
</div>
|
||||
<input ref={ref} className="input" placeholder={t('Server address (e.g. gym.example.com)')} value={url}
|
||||
onChange={e => setUrl(e.target.value)} autoCapitalize="none" autoCorrect="off" inputMode="url" />
|
||||
@@ -42,18 +42,18 @@ export default function MobileOnboarding() {
|
||||
const { chooseLocalMode } = useStore()
|
||||
const head = <>
|
||||
<div style={{ fontSize: 54, display: 'flex', justifyContent: 'center', color: 'var(--acc)' }}><Icon name="dumbbell" /></div>
|
||||
<h1 style={{ fontSize: 34, fontWeight: 700, letterSpacing: '-.028em', margin: '10px 0 4px' }}>openGym</h1>
|
||||
<h1 style={{ fontSize: 34, fontWeight: 700, letterSpacing: '-.028em', margin: '10px 0 4px' }}>KuentaGYM</h1>
|
||||
</>
|
||||
const wrap = { display: 'flex', flexDirection: 'column', justifyContent: 'center', minHeight: '78vh', textAlign: 'center' }
|
||||
return (
|
||||
<div className="narrow" style={wrap}>
|
||||
{head}
|
||||
<div className="muted" style={{ marginBottom: 34 }}>{t('How do you want to use openGym?')}</div>
|
||||
<div className="muted" style={{ marginBottom: 34 }}>{t('How do you want to use KuentaGYM?')}</div>
|
||||
<Button variant="primary" icon="lock" onClick={() => chooseLocalMode()}>{t('Use on this device')}</Button>
|
||||
<div style={{ height: 10 }} />
|
||||
<Button icon="rocket" onClick={() => useUI.getState().openSheet(close => <ConnectSheet close={close} />)}>{t('Connect to my server')}</Button>
|
||||
<div className="dim small" style={{ marginTop: 26, lineHeight: 1.5 }}>
|
||||
{t('Local keeps everything on this phone. Connecting syncs to your own openGym server instead — you can switch later in Settings.')}
|
||||
{t('Local keeps everything on this phone. Connecting syncs to your own KuentaGYM server instead — you can switch later in Settings.')}
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
|
||||
@@ -204,7 +204,12 @@ describe('routine move controls', () => {
|
||||
renderRoutine()
|
||||
act(() => moveButton('setup-10', 'Move down').click())
|
||||
|
||||
const parsed = parsePlan(JSON.stringify(buildPlanBundle(useStore.getState().S, 'Move test')))
|
||||
// The destination unit has to be the profile's own, exactly as the app passes it
|
||||
// (sheets.jsx: parsePlan(rd.result, st.unit)). Omitting it falls back to plan-share's default
|
||||
// of kg, and against a profile that is in pounds the round trip then *converts* every load —
|
||||
// the reordering would still look right while the weights had silently changed.
|
||||
const { S } = useStore.getState()
|
||||
const parsed = parsePlan(JSON.stringify(buildPlanBundle(S, 'Move test')), S.unit)
|
||||
expect(parsed.routines[0].ex).toEqual([
|
||||
entry('c3', 30),
|
||||
entry('c1', 10, 'g'),
|
||||
|
||||
@@ -13,7 +13,7 @@ import { wakeLockSupported } from '../lib/wakelock.js'
|
||||
import { t, LANGS, INSTR_LANGS } from '../lib/i18n.js'
|
||||
import { DEMO, REPO } from '../lib/demo.js'
|
||||
import { MOBILE, isAndroid, shareExport, syncReminder } from '../lib/mobile.js'
|
||||
import { checkForUpdate, downloadAndInstall } from '../lib/update.js'
|
||||
import { checkForUpdate, downloadAndInstall, RELEASES_PAGE } from '../lib/update.js'
|
||||
import { forgetCoach } from '../lib/coach-api.js'
|
||||
import { ConnectSheet } from './MobileOnboarding.jsx'
|
||||
import { starterPlanSheet, confirmSheet, importFromApp, importFromHevy, equipmentProfileSheet, menuSheet, askAddDeviceData } from '../sheets.jsx'
|
||||
@@ -115,13 +115,13 @@ export default function Settings() {
|
||||
})
|
||||
} else {
|
||||
// Update available but no APK asset — open the releases page
|
||||
window.open('https://gitlab.com/DuarteSantos8/opengym/-/releases', '_blank', 'noopener')
|
||||
window.open(RELEASES_PAGE, '_blank', 'noopener')
|
||||
}
|
||||
}
|
||||
|
||||
const doExport = async () => {
|
||||
const json = JSON.stringify(S, null, 2)
|
||||
const name = 'opengym-backup-' + todayISO() + '.json'
|
||||
const name = 'kuentagym-backup-' + todayISO() + '.json'
|
||||
// WKWebView can't download blob URLs — the native build hands the file to the share sheet.
|
||||
if (MOBILE) {
|
||||
try { await shareExport(json, name); toast(t('Backup exported')) } catch (e) { /* share sheet dismissed */ }
|
||||
@@ -137,7 +137,7 @@ export default function Settings() {
|
||||
rd.onload = () => {
|
||||
try {
|
||||
const data = JSON.parse(rd.result)
|
||||
if (!data.workouts || !data.routines) throw new Error('not an openGym backup')
|
||||
if (!data.workouts || !data.routines) throw new Error('not a KuentaGYM backup')
|
||||
confirmSheet({ title: t('Import backup?'), message: t('This replaces all current data with the backup file.'), confirmText: t('Import'), danger: true, onConfirm: () => { replaceState(Object.assign(JSON.parse(JSON.stringify(DEF)), data), true); toast(t('Backup imported')) } })
|
||||
} catch (e) { toast(t('Import failed: {0}', e.message)) }
|
||||
}
|
||||
@@ -189,7 +189,7 @@ export default function Settings() {
|
||||
{/* ---------- account (demo and mobile builds have nothing to sign in to) ---------- */}
|
||||
<Section title={MOBILE ? (user ? t('Your server') : t('Your data')) : DEMO ? t('Demo') : t('Account')}>
|
||||
{MOBILE ? (user ? <>
|
||||
<Row icon="personCircle" iconTint="var(--grey)" title={user.name} subtitle={t('Synced with your openGym server.')} />
|
||||
<Row icon="personCircle" iconTint="var(--grey)" title={user.name} subtitle={t('Synced with your KuentaGYM server.')} />
|
||||
{user.admin && <Row icon="wrench" iconTint="var(--indigo)" title={t('Admin dashboard')} accessory="chevron" onClick={() => nav('/admin')} />}
|
||||
<Row icon="signOut" iconTint="var(--red)" title={t('Disconnect')} danger onClick={() => confirmSheet({
|
||||
title: t('Disconnect from your server?'),
|
||||
@@ -199,18 +199,18 @@ export default function Settings() {
|
||||
})} />
|
||||
</> : <>
|
||||
<Row icon="lock" iconTint="var(--acc)" title={t('All data stays on this phone')} subtitle={t('No account, no cloud — back it up anytime with Export below.')} />
|
||||
<Row icon="link" iconTint="var(--indigo)" title={t('Connect to my server')} subtitle={t('Sync this device to your own self-hosted openGym instead.')} accessory="chevron"
|
||||
<Row icon="link" iconTint="var(--indigo)" title={t('Connect to my server')} subtitle={t('Sync this device to your own self-hosted KuentaGYM instead.')} accessory="chevron"
|
||||
onClick={() => useUI.getState().openSheet(close => <ConnectSheet close={close} />)} />
|
||||
</>) : DEMO ? <>
|
||||
<Row icon="sparkles" iconTint="var(--acc)" title={t('You’re in the demo')} subtitle={t('Example data, stored only in this browser — change anything you like.')} />
|
||||
<Row icon="reset" iconTint="var(--blue)" title={t('Reset demo data')} accessory="chevron"
|
||||
onClick={() => confirmSheet({ title: t('Reset demo data?'), message: t('Puts the example plan, workouts and weigh-ins back the way they started.'), confirmText: t('Reset'), onConfirm: () => { resetDemo(); nav('/home'); toast(t('Demo data reset')) } })} />
|
||||
<Row icon="rocket" iconTint="var(--indigo)" title={t('Self-host openGym')} subtitle={t('Passkey sign-in, sync across your devices, your own data.')} accessory="chevron"
|
||||
<Row icon="rocket" iconTint="var(--indigo)" title={t('Self-host KuentaGYM')} subtitle={t('Passkey sign-in, sync across your devices, your own data.')} accessory="chevron"
|
||||
onClick={() => window.open(REPO, '_blank', 'noopener')} />
|
||||
</> : user ? <>
|
||||
<Row icon="personCircle" iconTint="var(--grey)" title={user.name} subtitle={t('Signed in with passkey — data syncs to this profile.')} />
|
||||
{user.admin && <Row icon="wrench" iconTint="var(--indigo)" title={t('Admin dashboard')} accessory="chevron" onClick={() => nav('/admin')} />}
|
||||
<Row icon="link" iconTint="var(--blue)" title={t('Pair the mobile app')} subtitle={t('Connect the openGym app on your phone to this account.')} accessory="chevron"
|
||||
<Row icon="link" iconTint="var(--blue)" title={t('Pair the mobile app')} subtitle={t('Connect the KuentaGYM app on your phone to this account.')} accessory="chevron"
|
||||
onClick={() => useUI.getState().openSheet(close => <PairSheet close={close} />)} />
|
||||
<Row icon="signOut" iconTint="var(--red)" title={t('Sign out')} danger onClick={() => confirmSheet({ title: t('Sign out?'), message: t('Your data is synced to your profile first, then cleared from this device.'), confirmText: t('Sign out'), danger: true, onConfirm: () => { signOut(); nav('/home') } })} />
|
||||
<Row icon="shield" iconTint="var(--red)" title={t('Sign out everywhere')} subtitle={t('Ends this profile’s sessions on all your devices.')} danger onClick={signOutEverywhere} />
|
||||
@@ -226,7 +226,7 @@ export default function Settings() {
|
||||
{/* ---------- the Coach on a phone: through the paired server, or with the user's own key ---------- */}
|
||||
{MOBILE && <Section title={t('AI Coach')}>
|
||||
<Row icon="sparkles" iconTint="var(--acc)" title={t('AI Coach')} accessory="chevron"
|
||||
subtitle={coachLocal?.mode === 'server' ? t('Runs on your openGym server') : coachLocal?.mode === 'byok' ? t('Runs on this phone with your own API key') : t('Off — choose how the Coach should run.')}
|
||||
subtitle={coachLocal?.mode === 'server' ? t('Runs on your KuentaGYM server') : coachLocal?.mode === 'byok' ? t('Runs on this phone with your own API key') : t('Off — choose how the Coach should run.')}
|
||||
onClick={() => nav('/coach/setup')} />
|
||||
</Section>}
|
||||
|
||||
@@ -234,7 +234,7 @@ export default function Settings() {
|
||||
<Section title={t('General')} footer={t('Switching the unit offers to convert every stored weight.')}>
|
||||
<SelectRow
|
||||
icon="globe" iconTint="var(--blue)" title={t('Language')}
|
||||
value={S.lang || 'en'} onChange={v => update(s => { s.lang = v })}
|
||||
value={S.lang || 'es'} onChange={v => update(s => { s.lang = v })}
|
||||
options={Object.entries(LANGS).map(([k, name]) => ({
|
||||
value: k, label: name,
|
||||
subtitle: INSTR_LANGS.includes(k) ? null : t("Exercise instructions aren't available in this language yet — they stay in English."),
|
||||
@@ -407,10 +407,10 @@ export default function Settings() {
|
||||
{!MOBILE && <Section title={t('Tip')}>
|
||||
<Row icon="lightbulb" iconTint="var(--yellow)"
|
||||
title={IS_ANDROID ? t('In Chrome: ⋮ menu → Add to Home screen') : t('In Safari: Share → Add to Home Screen')}
|
||||
subtitle={t('to install openGym as a full-screen app.') + ' ' + (user ? t('Your data syncs with your profile — sign in anywhere to see it.') : t('Guest data stays on this device — export a backup now and then!'))} />
|
||||
subtitle={t('to install KuentaGYM as a full-screen app.') + ' ' + (user ? t('Your data syncs with your profile — sign in anywhere to see it.') : t('Guest data stays on this device — export a backup now and then!'))} />
|
||||
</Section>}
|
||||
|
||||
{/* ---------- updates: the last thing on the page, so keeping openGym current is one tap ----------
|
||||
{/* ---------- updates: the last thing on the page, so keeping KuentaGYM current is one tap ----------
|
||||
On Android the row is always there — it checks on demand and installs when a release is
|
||||
newer (checksum verified, see onUpdateRowClick). On the web the app updates with its
|
||||
server, so the row points at the APK for the phone instead. iOS has no APK: nothing. */}
|
||||
@@ -418,13 +418,13 @@ export default function Settings() {
|
||||
footer={MOBILE ? t('Releases are checked on gitlab.com. The download is verified against its checksum before the installer opens.') : t('The web app updates together with your server. The Android app installs its own updates from here.')}>
|
||||
{MOBILE
|
||||
? <Row icon="download" iconTint="var(--acc)"
|
||||
title={updateInfo?.hasUpdate ? t('Update to openGym v{0}', updateInfo.latestVersion) : t('Check for updates')}
|
||||
title={updateInfo?.hasUpdate ? t('Update to KuentaGYM v{0}', updateInfo.latestVersion) : t('Check for updates')}
|
||||
subtitle={checking ? t('Checking…') : t('You have v{0}', __APP_VERSION__)}
|
||||
accessory="chevron"
|
||||
onClick={() => (updateInfo?.hasUpdate ? onUpdateRowClick() : checkNow())} />
|
||||
: <Row icon="download" iconTint="var(--acc)" title={t('Get the Android app')}
|
||||
subtitle={t('Download the APK from opengym.duarte-santos.ch')} accessory="chevron"
|
||||
onClick={() => window.open('https://opengym.duarte-santos.ch/#download', '_blank', 'noopener')} />}
|
||||
subtitle={t('Download the APK from gym.dploy.lol')} accessory="chevron"
|
||||
onClick={() => window.open('https://gym.dploy.lol/#download', '_blank', 'noopener')} />}
|
||||
</Section>}
|
||||
|
||||
{/* The version, at the bottom of Settings — which is where the support template has been
|
||||
@@ -432,8 +432,8 @@ export default function Settings() {
|
||||
address bar and no about box, so without this there is no way to tell which build you
|
||||
are running, or whether an update actually installed. */}
|
||||
<div className="dim small" style={{ textAlign: 'center', marginTop: 4, lineHeight: 1.6 }}>
|
||||
openGym v{__APP_VERSION__} · {t('free & open source (AGPL v3)')}<br />
|
||||
<a href="https://gitlab.com/DuarteSantos8/opengym" target="_blank" rel="noopener">source code</a> · exercise data: hasaneyldrm/exercises-dataset (MIT)<br />
|
||||
KuentaGYM v{__APP_VERSION__} · {t('free & open source (AGPL v3)')}<br />
|
||||
<a href={REPO} target="_blank" rel="noopener">source code</a> · exercise data: hasaneyldrm/exercises-dataset (MIT)<br />
|
||||
exercise images and animations © <a href="https://gymvisual.com/" target="_blank" rel="noopener">Gym visual</a>
|
||||
</div>
|
||||
</div>
|
||||
@@ -610,7 +610,7 @@ function PushCard({ S, update, toast }) {
|
||||
(S.reminder?.tz ? ' ' + t('Timezone: {0} (auto-detected, updates if you travel).', S.reminder.tz) : '')
|
||||
: null}
|
||||
>
|
||||
<Row icon="bell" iconTint="var(--red)" title={t('Push notifications')} subtitle={t('Rest-timer alerts, even if openGym is closed.')}>
|
||||
<Row icon="bell" iconTint="var(--red)" title={t('Push notifications')} subtitle={t('Rest-timer alerts, even if KuentaGYM is closed.')}>
|
||||
<Switch checked={on} disabled={busy} onChange={toggle} />
|
||||
</Row>
|
||||
{on && (
|
||||
@@ -670,7 +670,7 @@ function PairSheet({ close }) {
|
||||
return <>
|
||||
<h3>{t('Pair the mobile app')}</h3>
|
||||
<div className="muted small" style={{ marginBottom: 14 }}>
|
||||
{t('On the openGym app, choose “Connect to my server”, then enter this address and the code below. It expires in 5 minutes.')}
|
||||
{t('On the KuentaGYM app, choose “Connect to my server”, then enter this address and the code below. It expires in 5 minutes.')}
|
||||
</div>
|
||||
{err ? <div className="dim small">{err}</div> : (
|
||||
<div className="card" style={{ textAlign: 'center', fontSize: 30, fontWeight: 700, letterSpacing: '.16em', padding: '18px 0' }}>
|
||||
|
||||
@@ -23,7 +23,7 @@ const mocks = vi.hoisted(() => {
|
||||
replaceState: vi.fn(), setUser: vi.fn(), pullState: vi.fn(), pushState: vi.fn(),
|
||||
signOut: vi.fn(), signOutAll: vi.fn(), resetDemo: vi.fn(), disconnectServer: vi.fn(),
|
||||
})
|
||||
state.checkForUpdate = vi.fn(() => Promise.resolve({ hasUpdate: true, latestVersion: '9.9.9', apkUrl: 'https://x/opengym.apk', hashUrl: null }))
|
||||
state.checkForUpdate = vi.fn(() => Promise.resolve({ hasUpdate: true, latestVersion: '9.9.9', apkUrl: 'https://x/kuentagym.apk', hashUrl: null }))
|
||||
state.confirmSheet = vi.fn()
|
||||
return state
|
||||
})
|
||||
@@ -86,7 +86,7 @@ const mount = async () => {
|
||||
await act(async () => { root.render(<Settings />) })
|
||||
await act(async () => { await Promise.resolve(); await Promise.resolve() })
|
||||
}
|
||||
const updateRow = () => [...host.querySelectorAll('.lrow')].find(r => r.textContent.includes('Update to openGym v9.9.9'))
|
||||
const updateRow = () => [...host.querySelectorAll('.lrow')].find(r => r.textContent.includes('Update to KuentaGYM v9.9.9'))
|
||||
const checkRow = () => [...host.querySelectorAll('.lrow')].find(r => r.textContent.includes('Check for updates'))
|
||||
const webRow = () => [...host.querySelectorAll('.lrow')].find(r => r.textContent.includes('Get the Android app'))
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ import { useNavigate } from 'react-router-dom'
|
||||
import { useStore } from '../store/useStore.js'
|
||||
import { EXIDX, matchExercise, betterWeight } from '../lib/exercises.js'
|
||||
import { lastBW, streakWeeks, setLabel, modeOf, effortOf, metricModeForEntry, metricRowsForEntry, bestWeightForEntry } from '../lib/history.js'
|
||||
import { fmtNum, fmtDate, fmtVol, todayISO, weekStartOf } from '../lib/format.js'
|
||||
import { fmtNum, fmtDate, fmtVol, todayISO, isoOf, weekStartOf } from '../lib/format.js'
|
||||
import { t, exerciseNameFor, getLang } from '../lib/i18n.js'
|
||||
import { bwSheet, goalSheet, calendarSheet, workoutDetailSheet, exerciseHistorySheet, WorkoutRow, bwDeltaColor } from '../sheets.jsx'
|
||||
import LineChart from '../components/LineChart.jsx'
|
||||
@@ -294,9 +294,12 @@ export default function Stats() {
|
||||
const kind = displayScale(S)
|
||||
const hd = scaleName(kind)
|
||||
|
||||
const bwPts = S.bodyweight.filter(b => range === 0 || (b.t || new Date(b.d).getTime()) > now - range * 86400000)
|
||||
.map(b => ({ t: b.t || new Date(b.d).getTime(), y: b.w, d: b.d }))
|
||||
const bw30 = S.bodyweight.filter(b => (b.t || new Date(b.d).getTime()) > now - 30 * 86400000)
|
||||
// Both the window and the x axis are measured on the day weighed (`d`), never on `t`: `t` is
|
||||
// when the entry was last edited, so a weigh-in backdated to before the app was installed
|
||||
// would otherwise qualify as today's and pull the 30-day delta toward a number from months ago.
|
||||
const bwPts = S.bodyweight.filter(b => range === 0 || b.d > isoOf(new Date(now - range * 86400000)))
|
||||
.map(b => ({ t: b.d ? new Date(b.d + 'T12:00:00').getTime() : (b.t || 0), y: b.w, d: b.d }))
|
||||
const bw30 = S.bodyweight.filter(b => b.d > isoOf(new Date(now - 30 * 86400000)))
|
||||
const bwDelta30 = bw30.length > 1 ? bw30[bw30.length - 1].w - bw30[0].w : null
|
||||
const workouts = S.workouts
|
||||
const monthW = workouts.filter(w => String(w.d || '').slice(0, 7) === todayISO().slice(0, 7)).length
|
||||
|
||||
Reference in new issue
Block a user