diff --git a/CHANGELOG.md b/CHANGELOG.md index c6134b6..d8f5de1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -114,6 +114,11 @@ animations are © Gym visual, not CC, which matters if you redistribute them. openGym or anywhere else, commercially or not — needs your own licence from Gym visual. See [NOTICE.md](NOTICE.md). +### Features + +- 🇧🇷 **Brazilian Portuguese UI** — Portuguese now has separate Portugal and + Brazil options, with Brazilian terminology and date formatting. + ### Fixes - 🔔 **Server-generated notifications follow Brazilian Portuguese** — rest-timer diff --git a/README.md b/README.md index 1e64169..47a2f97 100644 --- a/README.md +++ b/README.md @@ -84,7 +84,7 @@ as a home-screen app, passkey sign-in, offline support, sync across your phone a - 🔑 **Passkeys, not passwords** — Face ID / Touch ID / fingerprint login; each profile keeps its own data, synced across devices. Sign-ins last 90 days by default (configurable), and “sign out everywhere” in Settings ends every session on every device at once - 🛠️ **Admin dashboard** (optional) — for whoever runs the instance: who's training right now, per-user history, disable accounts, invite-only signup, and an **activity log** of sign-ins, failed attempts and admin actions. Off by default, so a fresh instance stays open with no admin - 🎨 **Designed, not assembled** — light/dark themes and 8 accent colors saved to your profile, over a hand-drawn icon set instead of emoji, so it looks the same on every phone -- 🌍 **12 languages** — full UI translation (EN, DE, ES, FR, IT, PT, PL, TR, RU, ZH, KO, HI); exercise instructions localized in 10 of them, loaded on demand so the app stays fast +- 🌍 **13 languages** — full UI translation (EN, DE, ES, FR, IT, PT (Portugal), PT (Brazil), PL, TR, RU, ZH, KO, HI); exercise instructions localized in 10 of them, loaded on demand so the app stays fast - 📥 **Bring your history with you** — import from **FitNotes** (Android and iOS), **Strong** and **Hevy**, or body weight straight out of an **Apple Health** export. Exercise names are matched against the library and anything unrecognised becomes one of your own exercises, so nothing in the file is dropped - 📦 **Yours to keep** — one-tap JSON export/import, guest mode, **no telemetry** - 🤖 **Ask an AI about your training** (optional) — an [MCP server](mcp/README.md) lets a client like Claude Desktop or Cursor read your history in your own words: *"what did I bench last week?"*. Read-only, spawned locally by the client, nothing leaves your box. Not in the Docker build — if you don't use an AI assistant, it isn't there diff --git a/frontend/scripts/pt-br-inheritance-fingerprint.mjs b/frontend/scripts/pt-br-inheritance-fingerprint.mjs new file mode 100644 index 0000000..53a61a1 --- /dev/null +++ b/frontend/scripts/pt-br-inheritance-fingerprint.mjs @@ -0,0 +1,17 @@ +#!/usr/bin/env node + +import { createHash } from 'node:crypto' +import pt from '../src/locales/pt.js' +import { PT_BR_OVERRIDES } from '../src/locales/pt-BR.js' + +const inherited = Object.entries(pt) + .filter(([key]) => !(key in PT_BR_OVERRIDES)) + .sort(([a], [b]) => (a < b ? -1 : a > b ? 1 : 0)) +const fingerprint = createHash('sha256').update(JSON.stringify(inherited)).digest('hex') + +console.log(JSON.stringify({ + overrides: Object.keys(PT_BR_OVERRIDES).length, + inherited: inherited.length, + fingerprint, + ...(process.argv.includes('--list') ? { entries: inherited } : {}) +}, null, 2)) diff --git a/frontend/src/lib/i18n-core.js b/frontend/src/lib/i18n-core.js index cfa4924..248cb32 100644 --- a/frontend/src/lib/i18n-core.js +++ b/frontend/src/lib/i18n-core.js @@ -4,12 +4,13 @@ export const LANGS = { en: 'English', de: 'Deutsch', es: 'Español', fr: 'Français', it: 'Italiano', - pt: 'Português', pl: 'Polski', tr: 'Türkçe', ru: 'Русский', zh: '中文', + pt: 'Português (Portugal)', 'pt-BR': 'Português (Brasil)', pl: 'Polski', + tr: 'Türkçe', ru: 'Русский', zh: '中文', ko: '한국어', hi: 'हिन्दी' } export const INSTR_LANGS = ['en', 'es', 'fr', 'it', 'tr', 'ru', 'zh', 'hi', 'pl', 'ko'] export const DATE_LOCALES = { - en: 'en-GB', de: 'de-DE', es: 'es-ES', fr: 'fr-FR', it: 'it-IT', pt: 'pt-PT', + en: 'en-GB', de: 'de-DE', es: 'es-ES', fr: 'fr-FR', it: 'it-IT', pt: 'pt-PT', 'pt-BR': 'pt-BR', pl: 'pl-PL', tr: 'tr-TR', ru: 'ru-RU', zh: 'zh-CN', ko: 'ko-KR', hi: 'hi-IN' } diff --git a/frontend/src/lib/pt-br-locale.test.js b/frontend/src/lib/pt-br-locale.test.js new file mode 100644 index 0000000..ed5dff7 --- /dev/null +++ b/frontend/src/lib/pt-br-locale.test.js @@ -0,0 +1,54 @@ +import { describe, expect, test } from 'vitest' +import { createHash } from 'node:crypto' +import pt from '../locales/pt.js' +import ptBR, { PT_BR_OVERRIDES } from '../locales/pt-BR.js' +import { DATE_LOCALES, LANGS } from './i18n-core.js' + +const placeholders = value => [...String(value).matchAll(/\{\d+\}/g)].map(match => match[0]).sort() +const byCodeUnit = ([a], [b]) => (a < b ? -1 : a > b ? 1 : 0) + +describe('Brazilian Portuguese locale', () => { + test('is a separately selectable locale with Brazilian date formatting', () => { + expect(LANGS.pt).toBe('Português (Portugal)') + expect(LANGS['pt-BR']).toBe('Português (Brasil)') + expect(DATE_LOCALES['pt-BR']).toBe('pt-BR') + }) + + test('matches the source key set and preserves interpolation placeholders', () => { + expect(Object.keys(ptBR).sort()).toEqual(Object.keys(pt).sort()) + for (const [source, translated] of Object.entries(ptBR)) { + expect(placeholders(translated), source).toEqual(placeholders(source)) + } + }) + + test('makes every inherited pt-PT value an explicit reviewed snapshot', () => { + const inherited = Object.entries(pt) + .filter(([key]) => !(key in PT_BR_OVERRIDES)) + .sort(byCodeUnit) + const fingerprint = createHash('sha256').update(JSON.stringify(inherited)).digest('hex') + + expect(Object.keys(PT_BR_OVERRIDES)).toHaveLength(242) + expect(inherited).toHaveLength(412) + // 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('ae2c8df077f5c4e80be84e07176291eebfac6d60c9503b0f13dd31809a3bfa12') + }) + + test('does not leak European Portuguese UI terms', () => { + const text = Object.values(ptBR).join('\n') + const europeanPortuguese = /(?:^|[^\p{L}])(?:ficheiro\p{L}*|telemóvel\p{L}*|ecrã\p{L}*|regist(?:o|am|ado|ada|ados|adas)|eliminad\p{L}*|definições|cronómetro|detetad\p{L}*|gémeos|abdómen|anca|coifa dos rotadores|escadora|completaste|acabaste|aguentas|definires|completares|aguenta|aguentaste|ficaste|viajares)(?=$|[^\p{L}])/iu + expect(text).not.toMatch(europeanPortuguese) + expect(text).not.toMatch(/[«»]/u) + expect(ptBR.Save).toBe('Salvar') + expect(ptBR.Settings).toBe('Configurações') + expect(ptBR['Delete workout']).toBe('Excluir treino') + expect(ptBR.Superset).toBe('Superset') + expect(ptBR['Guest mode — data lives only in this browser.']).toContain('visitante') + expect(ptBR['Sign in with passkey']).toContain('chave de acesso') + expect(ptBR.band).toBe('elástico') + expect(ptBR['resistance band']).toBe('faixa elástica') + expect(ptBR.soleus).toBe('sóleo') + expect(ptBR.Unpair).toBe('Desvincular') + expect(ptBR['Starter plan loaded — Mon Push · Wed Pull · Fri Legs']).toContain('Seg Push · Qua Pull') + }) +}) diff --git a/frontend/src/locales/pt-BR.js b/frontend/src/locales/pt-BR.js new file mode 100644 index 0000000..7d9906d --- /dev/null +++ b/frontend/src/locales/pt-BR.js @@ -0,0 +1,253 @@ +// Brazilian Portuguese overrides. Shared, region-neutral strings inherit from pt-PT. +// Tests fingerprint every deliberately inherited entry so upstream changes require review. +// Some byte-identical overrides intentionally pin wording that must not drift with pt-PT. +import pt from './pt.js' + +export const PT_BR_OVERRIDES = { + 'Press back again to exit': 'Pressione voltar novamente para sair', + 'Delete': 'Excluir', + 'Save': 'Salvar', + 'Log': 'Registrar', + 'Settings': 'Configurações', + 'Log body weight': 'Registrar peso corporal', + 'Slide or tap to set your weight — tracked before every workout so your curve stays honest.': 'Deslize ou toque para informar seu peso — ele é registrado antes de cada treino para manter a curva precisa.', + 'Save & start workout': 'Salvar e iniciar treino', + 'Start without weighing in': 'Iniciar sem se pesar', + 'Choose a different workout': 'Escolher outro treino', + 'Recent weigh-ins': 'Pesagens recentes', + 'Enter a valid weight': 'Informe um peso válido', + 'Weight saved': 'Peso salvo', + 'Your goal is drawn as a line through the weight charts, and gains/losses are colored by whether they move toward it.': 'Sua meta aparece como uma linha nos gráficos de peso, e os ganhos ou perdas mudam de cor conforme você se aproxima dela.', + 'Save goal': 'Salvar meta', + "No entries yet — log your weight to start the curve. It's also asked before every workout.": 'Ainda não há registros — informe seu peso para começar a curva. Ele também será solicitado antes de cada treino.', + 'Add to my plan': 'Adicionar ao meu plano', + 'Add “{0}”': 'Adicionar “{0}”', + '“{0}” added to {1}': '“{0}” adicionado a {1}', + 'Pick a routine — sets, reps & weight come next.': 'Escolha uma rotina — séries, repetições e peso vêm em seguida.', + 'Create one and start with this exercise': 'Crie uma e comece com este exercício', + 'Search {0} exercises…': 'Buscar entre {0} exercícios…', + 'Nothing chosen yet — add exercises and they’ll show up here.': 'Nenhum exercício escolhido — adicione exercícios e eles aparecerão aqui.', + 'The sets you logged for this exercise in this session will be lost.': 'As séries registradas para este exercício nesta sessão serão perdidas.', + 'This removes the exercise from your current session.': 'Isso remove o exercício da sua sessão atual.', + 'Which exercise in this superset do you want to remove?': 'Qual exercício deste superset você quer remover?', + 'Pick an icon': 'Escolha um ícone', + 'Sick, missed a day or want a different session? Pick what to train instead.': 'Ficou doente, perdeu um dia ou quer outro treino? Escolha o que treinar no lugar.', + 'Tap a trained day for details · tap any other day to plan a session': 'Toque em um dia treinado para ver detalhes · toque em outro dia para planejar uma sessão', + 'Delete workout?': 'Excluir treino?', + 'This removes it from your history for good.': 'Isso remove o treino definitivamente do seu histórico.', + 'Delete workout': 'Excluir treino', + 'Confirm the weight you worked with — your highest becomes the default next time.': 'Confirme o peso usado — o maior valor será o padrão na próxima vez.', + 'Then finish the superset partner.': 'Depois, termine o outro exercício do superset.', + 'Save & next exercise': 'Salvar e ir para o próximo exercício', + 'Save weight': 'Salvar peso', + 'Tracked — next time starts at {0}': 'Registrado — na próxima vez você começa em {0}', + 'Every exercise done — great work. Finish up, or keep going and add another exercise.': 'Todos os exercícios concluídos — ótimo trabalho! Finalize ou continue e adicione outro exercício.', + 'Keep going — tap “+ Add exercise” below': 'Continue — toque em “+ Adicionar exercício” abaixo', + 'Nothing logged yet': 'Ainda não há nada registrado', + 'You haven’t checked off any sets. Finish the workout anyway?': 'Você não marcou nenhuma série. Deseja finalizar o treino mesmo assim?', + 'Freestyle workout (pick as you go)': 'Treino livre (escolha durante o treino)', + 'Build a plan first': 'Crie um plano primeiro', + 'Cardio logged': 'Cardio registrado', + 'The sets you logged in this session will be lost.': 'As séries registradas nesta sessão serão perdidas.', + 'Superset · do these back-to-back, rest when done': 'Superset · faça estes exercícios em sequência e descanse ao terminar', + 'Freestyle workout — add your first exercise.': 'Treino livre — adicione seu primeiro exercício.', + 'Set up your weekly routine to get going — or load a ready-made Push / Pull / Legs plan.': 'Configure sua rotina semanal para começar ou carregue um plano pronto de Push / Pull / Legs.', + 'Load starter plan (PPL)': 'Carregar plano inicial (PPL)', + 'Build my own plan': 'Criar meu próprio plano', + 'Finish your first workout to see progress curves here.': 'Finalize seu primeiro treino para ver os gráficos de progresso aqui.', + 'Your weekly routine': 'Sua rotina semanal', + 'Create one or load the starter plan.': 'Crie uma ou carregue o plano inicial.', + 'Load starter plan (Push / Pull / Legs)': 'Carregar plano inicial (Push / Pull / Legs)', + 'No exercises yet — add your first one.': 'Ainda não há exercícios — adicione o primeiro.', + 'Tap the link button on an exercise to superset it with the one above — you’ll do them back-to-back.': 'Toque no botão de vínculo de um exercício para combiná-lo em um superset com o exercício acima — eles serão feitos em sequência.', + 'Delete routine?': 'Excluir rotina?', + 'Delete routine': 'Excluir rotina', + 'Search…': 'Buscar…', + 'Starter plan loaded — Mon Push · Wed Pull · Fri Legs': 'Plano inicial carregado — Seg Push · Qua Pull · Sex Pernas', + '{0} planned for {1}': '{0} planejado para {1}', + 'Planned': 'Planejado', + 'Enter a name': 'Informe um nome', + 'Registration failed': 'Falha no cadastro', + 'Create your profile': 'Crie seu perfil', + 'Pick a name, then confirm with {0}. The passkey is saved in your device — no password needed.': 'Escolha um nome e confirme com {0}. A chave de acesso fica salva no seu dispositivo — não é preciso usar senha.', + 'Pick a name, then confirm with your device.': 'Escolha um nome e confirme com seu dispositivo.', + 'Your name': 'Seu nome', + 'Create passkey': 'Criar chave de acesso', + 'Your workouts. Your weights. Your profile.': 'Seus treinos. Seus pesos. Seu perfil.', + 'Create new profile': 'Criar novo perfil', + "This browser doesn't support passkeys — you can still use openGym locally on this device.": 'Este navegador não oferece suporte a chaves de acesso — você ainda pode usar o openGym localmente neste dispositivo.', + 'Signed in with passkey — data syncs to this profile.': 'Sessão iniciada com chave de acesso — os dados são sincronizados com este perfil.', + 'Sign out?': 'Sair?', + 'Your data is synced to your profile first, then cleared from this device.': 'Seus dados serão sincronizados com o perfil e depois apagados deste dispositivo.', + 'Sign out': 'Sair', + 'Sign out everywhere?': 'Sair de todos os dispositivos?', + 'Signs this profile out on every device, including this one. Your passkeys keep working — sign in with them again anytime.': 'Encerra a sessão deste perfil em todos os dispositivos, inclusive neste. Suas chaves de acesso continuam funcionando — entre novamente quando quiser.', + 'Sign out everywhere': 'Sair de todos os dispositivos', + 'Ends this profile’s sessions on all your devices.': 'Encerra as sessões deste perfil em todos os seus dispositivos.', + 'Signed out on all devices': 'Sessão encerrada em todos os dispositivos', + 'Could not sign out everywhere — you are still signed in.': 'Não foi possível sair de todos os dispositivos — sua sessão continua ativa.', + 'Guest mode — data lives only in this browser. Create a passkey profile to keep it safe and separate per person.': 'Modo visitante — os dados ficam somente neste navegador. Crie um perfil com chave de acesso para mantê-los seguros e separados por pessoa.', + 'Create passkey profile': 'Criar perfil com chave de acesso', + 'synced with your profile': 'sincronizado com seu perfil', + 'The screen stays on while a workout is running, so you don’t have to unlock your phone between sets.': 'A tela permanece ligada durante o treino, para você não precisar desbloquear o celular entre as séries.', + 'Note: switching units only changes the label — logged numbers are not converted.': 'Observação: trocar a unidade altera somente o rótulo — os valores registrados não são convertidos.', + 'Export backup (JSON)': 'Exportar backup (JSON)', + 'Import backup': 'Importar backup', + 'Reset everything?': 'Redefinir tudo?', + 'Reset everything': 'Redefinir tudo', + 'Deletes your plan, workouts and body weight on this device. This cannot be undone.': 'Exclui seu plano, seus treinos e seu peso corporal deste dispositivo. Esta ação não pode ser desfeita.', + 'Delete everything': 'Excluir tudo', + 'Backup exported': 'Backup exportado', + 'Import backup?': 'Importar backup?', + 'This replaces all current data with the backup file.': 'Isso substitui todos os dados atuais pelo arquivo de backup.', + 'Backup imported': 'Backup importado', + 'In Chrome: ⋮ menu → Add to Home screen': 'No Chrome: menu ⋮ → Adicionar à tela inicial', + 'In Safari: Share → Add to Home Screen': 'No Safari: Compartilhar → Adicionar à Tela de Início', + 'Your data syncs with your profile — sign in anywhere to see it.': 'Seus dados são sincronizados com o perfil — entre em qualquer dispositivo para acessá-los.', + 'Guest data stays on this device — export a backup now and then!': 'Os dados de visitante ficam neste dispositivo — exporte um backup de vez em quando!', + 'Only sent on days you have a routine planned and haven\'t logged a workout yet.': 'Enviado somente nos dias em que há uma rotina planejada e você ainda não registrou um treino.', + 'Could not change notification settings': 'Não foi possível alterar as configurações de notificação', + 'tap to pause': 'toque para pausar', + 'tap to play': 'toque para reproduzir', + 'Keeps your data safe and separate per person.': 'Mantém seus dados seguros e separados por pessoa.', + 'Create your own exercise': 'Crie seu próprio exercício', + 'Give it a name': 'Dê um nome', + 'Description (optional) — setup, cues, anything you want to remember': 'Descrição (opcional) — preparação, dicas ou qualquer observação que você queira guardar', + 'Name it and pick a body part — it behaves like any other exercise, just without an animation.': 'Dê um nome e escolha uma parte do corpo — ele funciona como qualquer outro exercício, mas sem animação.', + 'Pick a body part': 'Escolha uma parte do corpo', + 'Saved': 'Salvo', + 'Delete “{0}”?': 'Excluir “{0}”?', + 'It will be removed from your routines. Already-logged workouts keep their sets.': 'Ele será removido das suas rotinas. Os treinos já registrados manterão suas séries.', + 'Finish your current workout first': 'Finalize o treino atual primeiro', + 'Delete exercise': 'Excluir exercício', + 'Edit or delete this exercise': 'Editar ou excluir este exercício', + 'This app is invite-only — enter the code you were given.': 'Este aplicativo é somente para convidados — informe o código que você recebeu.', + 'Passkeys use {0} — no passwords.': 'As chaves de acesso usam {0} — sem senhas.', + 'Strength shows retained muscle strength. Train again to reset it.': 'A força mostra quanto da força muscular foi mantida. Treine novamente para redefinir o valor.', + 'Added as your own': 'Adicionados como seus', + 'The file is in {0} and your profile is in {1} — weights will be converted.': 'O arquivo está em {0} e seu perfil em {1} — os pesos serão convertidos.', + 'The file does not say which unit it uses — numbers are imported as they are.': 'O arquivo não informa qual unidade utiliza — os valores serão importados como estão.', + 'The file mixes kg and lb — each set is converted to {0}.': 'O arquivo mistura kg e lb — cada série será convertida para {0}.', + '{0} days already have data here and will be left alone.': '{0} dias já têm dados aqui e não serão alterados.', + 'Not in the library — added as your own exercises': 'Não estão na biblioteca — foram adicionados como exercícios próprios', + 'Could not read that file': 'Não foi possível ler esse arquivo', + 'That file\'s columns aren\'t recognised — see the docs for supported apps.': 'Colunas não reconhecidas — consulte a documentação dos aplicativos compatíveis.', + 'That file is empty': 'Esse arquivo está vazio', + 'Nothing to import from that file': 'Não há nada para importar desse arquivo', + 'Your data': 'Seus dados', + 'All data stays on this phone': 'Todos os dados ficam neste celular', + 'No account, no cloud — back it up anytime with Export below.': 'Sem conta e sem nuvem — faça um backup quando quiser usando a opção Exportar abaixo.', + '{0} is on the plan today — let’s go!': 'Hoje tem {0} no plano — vamos lá!', + 'Share your plan': 'Compartilhar seu plano', + 'Shared routine': 'Rotina compartilhada', + 'Got a plan from a friend?': 'Recebeu um plano de um amigo?', + 'Send your routines to a friend, or put your week on paper.': 'Envie suas rotinas para um amigo ou coloque sua semana no papel.', + 'Export plan file': 'Exportar arquivo do plano', + 'A small file a friend imports into their own openGym — routines only, none of your workouts or weigh-ins.': 'Um pequeno arquivo que um amigo pode importar no próprio openGym — somente rotinas, sem seus treinos ou pesagens.', + 'Print / Save as PDF': 'Imprimir / Salvar como PDF', + 'Add an exercise to a routine first — an empty plan has nothing to share.': 'Adicione primeiro um exercício a uma rotina — um plano vazio não tem nada para compartilhar.', + 'Import a plan file': 'Importar arquivo do plano', + 'Plan file saved — send it to a friend': 'Arquivo do plano salvo — envie-o para um amigo', + 'These are added as new routines — nothing you already have is changed.': 'Elas serão adicionadas como novas rotinas — nada do que você já tem será alterado.', + '{0} exercise in the file isn’t in your library and was left out.': '{0} exercício do arquivo não está na sua biblioteca e foi ignorado.', + '{0} exercises in the file aren’t in your library and were left out.': '{0} exercícios do arquivo não estão na sua biblioteca e foram ignorados.', + 'Replaces your current Mon–Sun assignments.': 'Substitui os dias definidos de segunda a domingo.', + 'Added {0} routines to your plan': '{0} rotinas adicionadas ao seu plano', + 'this isn’t an openGym plan file': 'este não é um arquivo de plano do openGym', + 'This screen could not be drawn. Your data is safe on this device.': 'Não foi possível exibir esta tela. Seus dados estão seguros neste dispositivo.', + 'From your log:': 'Do seu registro:', + 'Enter a weight and 1–{0} reps — beyond that an estimate is guesswork.': 'Informe um peso e de 1 a {0} repetições — acima disso, a estimativa é apenas um palpite.', + 'Hold logged': 'Isometria registrada', + 'Work up through a rep range at the same weight. Reach the top of the range in every set and the weight goes up, reps back to the bottom.': 'Avance por uma faixa de repetições com o mesmo peso. Ao atingir o topo da faixa em todas as séries, o peso aumenta e as repetições voltam ao mínimo.', + 'Nothing logged yet — this session sets the baseline.': 'Ainda não há nada registrado — esta sessão define o ponto de partida.', + 'Reminds you at this time on days that have a routine planned.': 'Lembra você neste horário nos dias em que há uma rotina planejada.', + 'Each profile keeps its own plan, workouts & body weight.': 'Cada perfil mantém seu próprio plano, seus treinos e seu peso corporal.', + 'Short {0} sessions in a row — back off to {1}s and build up again.': '{0} sessões seguidas abaixo da meta — reduza para {1} s e volte a progredir.', + 'Top of the rep range in every set — {0} {1} more, back to {2} reps.': 'Topo da faixa de repetições em todas as séries — aumente {0} {1} e volte para {2} repetições.', + 'Missed reps {0} sessions running — reset to {1} {2} and work back up.': 'Repetições não concluídas em {0} sessões seguidas — volte para {1} {2} e progrida novamente.', + 'Missed reps — reset to {0} {1} and work back up.': 'Repetições não concluídas — volte para {0} {1} e progrida novamente.', + 'Missed reps last time — same weight again ({0} of {1} to go).': 'Você não concluiu as repetições na última vez — mantenha o mesmo peso (faltam {0} de {1}).', + '{0} sets bring an {1} with them — switch on Effort per set in Settings to see it.': '{0} séries incluem um {1} — ative “Esforço por série” nas Configurações para exibi-lo.', + 'RIR counts the reps you left; RPE reads the same effort off a 10-point scale — so RPE ≈ 10 − RIR. Pick the one you already think in.': 'O RIR conta as repetições que você ainda conseguiria fazer; o RPE representa o mesmo esforço em uma escala de 10 — portanto, RPE ≈ 10 − RIR. Escolha a escala que você já usa.', + 'The highlighted row is where most working sets land. Sets you have already logged keep their own scale, and nothing else reads the value — progression and estimated 1RM are unaffected.': 'A linha destacada representa a maioria das séries de trabalho. As séries já registradas mantêm sua escala, e nenhum outro recurso usa esse valor — a progressão e o 1RM estimado não são afetados.', + 'Effort per set is switched off — turn it on in Settings to keep rating.': 'O esforço por série está desativado — ative-o nas Configurações para continuar avaliando.', + 'No weight to enter — just log the reps.': 'Não é preciso informar peso — registre apenas as repetições.', + 'Reps climb by one whenever every set was clean. Set a ceiling to add sets instead of reps forever.': 'As repetições aumentam em uma quando todas as séries são concluídas. Defina um limite para adicionar séries em vez de aumentar repetições indefinidamente.', + '{0} reps in every set — add a set and go back to {1}.': '{0} repetições em todas as séries — adicione uma série e volte para {1}.', + 'You still log the total: {0} is {1} per side.': 'Você ainda registra o total: {0} corresponde a {1} de cada lado.', + 'Two straight sets plus a final set taken to failure. Beat the target on that set and the weight goes up — double if you double the reps. One failure resets 10 %.': 'Duas séries normais mais uma série final até a falha. Se você superar a meta nessa série, o peso aumenta — em dobro se você dobrar as repetições. Uma falha reduz 10%.', + 'Reps climb to {0}, then a set is added and the reps start over. At {1} sets it asks you to add weight instead.': 'As repetições aumentam até {0}; depois, uma série é adicionada e as repetições recomeçam. Ao chegar a {1} séries, o app sugere adicionar peso.', + + // Regional wording inherited from pt-PT would otherwise leak into pt-BR. + 'Next': 'Próximo', + '{0} to gain': '{0} para ganhar', + '{0} to lose': '{0} para perder', + '{0} set still unchecked. Finish the workout now?': 'Falta {0} série sem marcar. Finalizar o treino agora?', + '{0} sets still unchecked. Finish the workout now?': 'Faltam {0} séries sem marcar. Finalizar o treino agora?', + 'band': 'elástico', + 'resistance band': 'faixa elástica', + 'core': 'abdômen', + 'lower back': 'lombar', + 'shins': 'canelas', + 'soleus': 'sóleo', + 'Lower back': 'Lombar', + 'Shins': 'Canelas', + 'Import from another app': 'Importar de outro aplicativo', + 'Stalled {0} sessions — deload to {1} {2}.': '{0} sessões sem progresso — reduza a carga para {1} {2}.', + 'Bodyweight — every rep last time, so go for {0} this time.': 'Peso corporal — você concluiu todas as repetições na última vez; tente {0} desta vez.', + 'Bodyweight — same target again until every set is clean.': 'Peso corporal — mantenha a mesma meta até concluir todas as séries.', + 'Top of the range': 'Topo da faixa', + 'Unpair': 'Desvincular', + 'Skip': 'Pular', + 'Rest / skip this day': 'Descansar / pular este dia', + 'Workout deleted': 'Treino excluído', + 'Last time you hit all reps — try {0}': 'Na última vez você concluiu todas as repetições — tente {0}', + '{0} — in progress': '{0} — em andamento', + '“{0}” and its exercises will be removed.': '“{0}” e seus exercícios serão removidos.', + 'Sign-in failed': 'Falha ao entrar', + "This browser doesn't support passkeys, and this instance requires an account. Try a browser or device with passkey support.": 'Este navegador não oferece suporte a chaves de acesso e este servidor exige uma conta. Tente usar outro navegador ou dispositivo compatível.', + 'Keep screen awake': 'Manter a tela ligada', + 'All data reset': 'Todos os dados redefinidos', + 'to install openGym as a full-screen app.': 'para instalar o openGym como aplicativo em tela cheia.', + 'Timezone: {0} (auto-detected, updates if you travel).': 'Fuso horário: {0} (detectado automaticamente e atualizado se você viajar).', + 'lower legs': 'panturrilhas', + 'waist': 'abdômen', + 'stepmill machine': 'simulador de escada', + 'upper body ergometer': 'ergômetro de braços', + 'calves': 'panturrilhas', + 'levator scapulae': 'levantador da escápula', + 'hip flexors': 'flexores do quadril', + 'rotator cuff': 'manguito rotador', + '“{0}” already exists': '“{0}” já existe', + '“{0}” created': '“{0}” criado', + 'Cardio exercises log time + speed instead of weight × reps.': 'Exercícios de cardio registram tempo e velocidade em vez de peso × repetições.', + 'Exercise deleted': 'Exercício excluído', + 'What you just trained': 'O que você acabou de treinar', + 'Import “{0}”': 'Importar “{0}”', + 'Something went wrong': 'Algo deu errado', + 'Discard the running workout': 'Descartar o treino em andamento', + 'A timer runs while you hold the set. Leave the weight at 0 for bodyweight holds.': 'Um cronômetro funciona enquanto você mantém a posição. Deixe o peso em 0 para isometrias com o peso do corpo.', + 'Targets stay where you set them.': 'As metas permanecem como você definir.', + 'Hit every rep in every set and the weight goes up. Repeated misses trigger a deload.': 'Conclua todas as repetições de todas as séries para aumentar o peso. Falhas repetidas acionam uma redução de carga.', + 'Hold every set for the full duration and the target goes up.': 'Mantenha todas as séries pela duração completa para aumentar a meta.', + 'Held every set for the full time — target up by {0}s.': 'Você manteve todas as séries pelo tempo completo — meta aumentada em {0} s.', + 'Last time came up short — same target again.': 'Na última vez você ficou abaixo da meta — repita a mesma meta.', + 'Same weight — aim for {0} reps this time.': 'Mesmo peso — desta vez, tente fazer {0} repetições.', + 'Nothing left — went to failure': 'Sem repetições restantes — até a falha', + 'Tap a muscle to see its exercises.': 'Toque em um músculo para ver seus exercícios.', + 'Superset': 'Superset', + 'Superset {0} / {1}': 'Superset {0} / {1}', + 'Superset with exercise above': 'Superset com o exercício acima', + 'Guest mode — data lives only in this browser.': 'Modo visitante — os dados ficam somente neste navegador.', + 'Sign in with passkey': 'Entrar com chave de acesso', + 'Passkeys not supported in this browser.': 'Chaves de acesso não são compatíveis com este navegador.', + 'Su': 'D', + 'Mo': 'S', + 'Tu': 'T', + 'We': 'Q', + 'Th': 'Q', + 'Fr': 'S', + 'Sa': 'S' +} + +export default { ...pt, ...PT_BR_OVERRIDES } diff --git a/frontend/src/views/Workout.remove.test.jsx b/frontend/src/views/Workout.remove.test.jsx index 77516cb..2b50bf8 100644 --- a/frontend/src/views/Workout.remove.test.jsx +++ b/frontend/src/views/Workout.remove.test.jsx @@ -110,8 +110,8 @@ describe('remove-exercise locale coverage', () => { ] const packs = import.meta.glob('../locales/*.js', { eager: true, import: 'default' }) - it('defines every new prompt in all eleven locale packs', () => { - expect(Object.keys(packs)).toHaveLength(11) + it('defines every new prompt in all twelve locale packs', () => { + expect(Object.keys(packs)).toHaveLength(12) Object.entries(packs).forEach(([path, pack]) => { required.forEach(key => expect(pack, `${path} is missing ${key}`).toHaveProperty(key)) }) diff --git a/website/about.html b/website/about.html index b767419..ecf042e 100644 --- a/website/about.html +++ b/website/about.html @@ -70,7 +70,7 @@
Then friends wanted in. That brought passkey profiles — sign in with your fingerprint, no passwords, everyone's data separate — and sync, so the log survives any phone. Somewhere along the way the little page got rewritten into a proper React app, learned - 12 languages, grew a muscle map that reads three ways — where the volume went, what is + 13 languages, grew a muscle map that reads three ways — where the volume went, what is still recovering, and what each muscle is actually strong at — plus importers for FitNotes, Strong, Hevy and Apple Health, and finally became a native Android app you can install from this site.
diff --git a/website/index.html b/website/index.html index 15cfb54..8362cd1 100644 --- a/website/index.html +++ b/website/index.html @@ -112,7 +112,7 @@Rate a set as RIR or RPE — whichever scale you already think in. Optional, and every set keeps the scale it was logged with.
No unlocking the phone between sets. The screen stays lit while a workout runs, and lets go the moment you finish.
Import from FitNotes, Strong, Hevy — including the RPE they recorded — or body weight straight out of an Apple Health export.
Full UI translation, exercise instructions in 10 languages, loaded on demand.
Full UI translation, exercise instructions in 10 languages, loaded on demand.
Self-hosted profiles sign in with Face ID / fingerprint. Each person's data stays their own.
Light & dark themes, 8 accent colors, a hand-drawn icon set. Looks the same on every phone.
Mark the ramp-up rows as warm-ups and they stay out of your 1RM, your progression and the fatigue map — present in the session, absent from the numbers.