diff --git a/src/components/observation/ObservationCard.tsx b/src/components/observation/ObservationCard.tsx index 00fa83eb..a9787488 100644 --- a/src/components/observation/ObservationCard.tsx +++ b/src/components/observation/ObservationCard.tsx @@ -46,6 +46,7 @@ function describeZone( z: ObservationZone, bones: Map, locale: Locale, + t: (key: string) => string, ): string { const label = boneLabel(bones.get(z.boneId), locale, z.boneId) if (z.vertebrae?.length) { @@ -54,6 +55,12 @@ function describeZone( .join(', ') return `${label} (${vs})` } + if (z.side) { + const sideLabel = t( + z.side === 'left' ? 'lateral.left_short' : 'lateral.right_short', + ) + return `${label} (${sideLabel})` + } return label } @@ -245,7 +252,7 @@ export default function ObservationCard({ return (
  • - {describeZone(z, bones, locale)} + {describeZone(z, bones, locale, t)} {supportsVertebrae && (