Skip to content

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.

Merge remote-tracking branch 'pr/458'

Duarte Santosfde11eefaeb4
diff --cc frontend/src/lib/pt-br-locale.test.js
index dc13dca69,9b202f4d9..834c8bac1
--- a/frontend/src/lib/pt-br-locale.test.js
+++ b/frontend/src/lib/pt-br-locale.test.js
@@@ -41,9 -41,15 +41,15 @@@ describe('Brazilian Portuguese locale'
// has to be taught is a number nobody reads. What the numbers stood for is asserted above.
// If the hash fails, review the changed keys and wording before accepting a new one. From
// frontend/: node scripts/pt-br-inheritance-fingerprint.mjs --list
- expect(fingerprint, 'pt-PT inheritance changed; review the inherited pt-BR wording').toBe('5304c30895afe32bf14334f32497355b645f481f695c582e3b28161a23cba864')
+ expect(fingerprint, 'pt-PT inheritance changed; review the inherited pt-BR wording').toBe('099bc2e39ef6dd7d07ea9ead592a4c0b9da9e6883e89cc29562308ef128c3bb3')
})
+ // pt-PT labelled Unpair 'Desfazer': Undo, in Portuguese (it is pt-BR's Undo), on the button that
+ // takes an exercise out of a superset. Neither pack may give Unpair a word either of them uses for Undo.
+ test('does not label Unpair with an Undo word in either Portuguese pack', () => {
+ for (const [name, pack] of [['pt', pt], ['pt-BR', ptBR]]) expect([pt.Undo, ptBR.Undo], name).not.toContain(pack.Unpair)
+ })
+
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