feat(pdf): include laterality side in zone labels

Append side suffix (e.g. "(Gauche)" / "(Left)") after each zone label
in the PDF observation page, using the existing lateral.left/lateral.right
i18n keys.

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Bastien ChanotandClaude committed 2026-05-23 22:19:44 +02:00
1 parent 3323d4e45d
commit 773b00282f
1 file changed
+4 -1
+4 -1
View File
@@ -374,7 +374,10 @@ export async function addObservationPage(
const v = z.vertebrae?.length const v = z.vertebrae?.length
? ` (${z.vertebrae.map((x) => `${x.region}${x.index}`).join(', ')})` ? ` (${z.vertebrae.map((x) => `${x.region}${x.index}`).join(', ')})`
: '' : ''
return `${label}${v}` const side = z.side
? ` (${dict[z.side === 'left' ? 'lateral.left' : 'lateral.right']})`
: ''
return `${label}${v}${side}`
}) })
.join(' · ') .join(' · ')