Open-source gym & body-weight tracker, now in the App Store (iPhone + Apple Watch) and as an Android APK. Plan routines, log workouts, see which muscles are trained, import from Strong/Hevy/FitNotes. Self-host it or use it on the phone alone.
JavaScript apple-watchbodyweightdockerfitnessfitness-trackergymhealthiosmcpnodejspasskeysprogressive-web-applicationspwareactself-hostedself-hostingvitewebauthnweightliftingworkout-tracker
pt-BR: override the equipment-profile strings instead of inheriting them
Duarte Santosf37448aece7a
diff --git a/frontend/src/lib/pt-br-locale.test.js b/frontend/src/lib/pt-br-locale.test.jsindex ed5dff737..8c9aeeb01 100644--- a/frontend/src/lib/pt-br-locale.test.js+++ b/frontend/src/lib/pt-br-locale.test.js@@ -27,11 +27,11 @@ describe('Brazilian Portuguese locale', () => {.sort(byCodeUnit)const fingerprint = createHash('sha256').update(JSON.stringify(inherited)).digest('hex')- expect(Object.keys(PT_BR_OVERRIDES)).toHaveLength(242)- expect(inherited).toHaveLength(412)+ expect(Object.keys(PT_BR_OVERRIDES)).toHaveLength(260)+ expect(inherited).toHaveLength(413)// 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')+ expect(fingerprint, 'pt-PT inheritance changed; review the inherited pt-BR wording').toBe('241f027658796cc753f7f81f9e7511c02cc93c4d4480e98c532fe7b47f331beb')})test('does not leak European Portuguese UI terms', () => {diff --git a/frontend/src/locales/pt-BR.js b/frontend/src/locales/pt-BR.jsindex 7d9906d66..8214aaec8 100644--- a/frontend/src/locales/pt-BR.js+++ b/frontend/src/locales/pt-BR.js@@ -247,7 +247,27 @@ export const PT_BR_OVERRIDES = {'We': 'Q','Th': 'Q','Fr': 'S',- 'Sa': 'S'+ 'Sa': 'S',++ // --- equipment profiles ---+ 'Showing all equipment': 'Mostrando todos os equipamentos',+ 'Showing what you have in "{0}"': 'Mostrando o que você tem em “{0}”',+ 'Show all equipment': 'Mostrar todos os equipamentos',+ 'Filter by "{0}"': 'Filtrar por “{0}”',+ 'Edit profile': 'Editar perfil',+ 'New equipment profile': 'Novo perfil de equipamentos',+ 'Name it after where you train — e.g. "Home" or "Gym" — then check what you have there.': 'Dê a ele o nome do lugar onde você treina — por exemplo, “Casa” ou “Academia” — e marque o que você tem lá.',+ 'Profile name': 'Nome do perfil',+ 'Body-weight exercises are always available, in every profile.': 'Exercícios com o peso do corpo estão sempre disponíveis, em todos os perfis.',+ '{0} of {1} exercises need equipment outside "{2}"': '{0} de {1} exercícios precisam de equipamentos fora de “{2}”',+ 'Needs {0} — not in your active profile': 'Precisa de {0} — não está no seu perfil ativo',+ 'Filter by equipment': 'Filtrar por equipamento',+ 'Active profile': 'Perfil ativo',+ '{0} equipment types': '{0} tipos de equipamento',+ 'Add equipment profile': 'Adicionar perfil de equipamentos',+ 'Delete profile?': 'Excluir perfil?',+ '"{0}" and its equipment list will be removed.': '“{0}” e sua lista de equipamentos serão removidos.',+ 'Filters the exercise library and picker, and flags routine exercises that need something you don’t have in the active profile.': 'Filtra a biblioteca de exercícios e o seletor, e sinaliza os exercícios das rotinas que precisam de algo que você não tem no perfil ativo.'}export default { ...pt, ...PT_BR_OVERRIDES }