Coach-Onboarding: Trainingsdauer als Stunden:Minuten-Raeder statt Uhrzeit, '1 Tag pro Woche', Platz unter der Einwilligung

This commit is contained in:
Duarte Santos committed 2026-08-29 20:52:43 +02:00
1 parent 18dd33e9d3
commit 51bf980e89
15 files changed
+40 -18

No files matched your search

+1 -1
View File
@@ -316,7 +316,7 @@ export function profileLines(p) {
const lines = []
if (goal) lines.push(t(goal))
if (exp) lines.push(t(exp))
if (p.daysPerWeek) lines.push(t('{0} days a week', p.daysPerWeek))
if (p.daysPerWeek) lines.push(p.daysPerWeek === 1 ? t('1 day a week') : t('{0} days a week', p.daysPerWeek))
if (p.sessionMin) lines.push(t('{0} min per session', p.sessionMin))
if (p.equipment?.length) lines.push(p.equipment.join(', '))
if (p.limitations) lines.push(t('Limits: {0}', p.limitations))
+2 -2
View File
@@ -28,10 +28,10 @@ describe('Brazilian Portuguese locale', () => {
const fingerprint = createHash('sha256').update(JSON.stringify(inherited)).digest('hex')
expect(Object.keys(PT_BR_OVERRIDES)).toHaveLength(422)
expect(inherited).toHaveLength(541)
expect(inherited).toHaveLength(542)
// 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('d4f338190ba41fe089ddb45049a812c36fbbda0887cc4f6ab073114c98a49e90')
expect(fingerprint, 'pt-PT inheritance changed; review the inherited pt-BR wording').toBe('9e13b3bcfd80c38ae15ceb5518094b9f2243a7cd0011feb9cd68e818065b9909')
})
test('does not leak European Portuguese UI terms', () => {