Skip to content

Commit addab18

Browse files
committed
capitalize off deck
1 parent c7de17e commit addab18

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/src/organisms/InterventionModal/MoveLabwareInterventionContent.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export function MoveLabwareInterventionContent({
4747
robotType,
4848
isOnDevice,
4949
}: MoveLabwareInterventionProps): JSX.Element | null {
50-
const { t } = useTranslation('protocol_command_text')
50+
const { t, i18n } = useTranslation('protocol_command_text')
5151

5252
const analysisCommands = analysis?.commands ?? []
5353
const labwareDefsByUri = getLoadedLabwareDefinitionsByUri(analysisCommands)
@@ -128,10 +128,10 @@ export function MoveLabwareInterventionContent({
128128
type="location-arrow-location"
129129
labwareName={labwareName}
130130
currentLocationProps={{
131-
deckLabel: oldDisplayLabwareLocation,
131+
deckLabel: i18n.format(oldDisplayLabwareLocation, 'capitalize'),
132132
}}
133133
newLocationProps={{
134-
deckLabel: newDisplayLabwareLocation,
134+
deckLabel: i18n.format(newDisplayLabwareLocation, 'capitalize'),
135135
}}
136136
/>
137137
</Flex>

0 commit comments

Comments
 (0)