Skip to content

Commit dac10fc

Browse files
committed
capitalize off deck
1 parent db18989 commit dac10fc

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
@@ -49,7 +49,7 @@ export function MoveLabwareInterventionContent({
4949
robotType,
5050
isOnDevice,
5151
}: MoveLabwareInterventionProps): JSX.Element | null {
52-
const { t } = useTranslation('protocol_command_text')
52+
const { t, i18n } = useTranslation('protocol_command_text')
5353

5454
const analysisCommands = analysis?.commands ?? []
5555
const labwareDefsByUri = getLoadedLabwareDefinitionsByUri(analysisCommands)
@@ -117,10 +117,10 @@ export function MoveLabwareInterventionContent({
117117
type="location-arrow-location"
118118
labwareName={labwareName}
119119
currentLocationProps={{
120-
deckLabel: oldDisplayLabwareLocation,
120+
deckLabel: i18n.format(oldDisplayLabwareLocation, 'capitalize'),
121121
}}
122122
newLocationProps={{
123-
deckLabel: newDisplayLabwareLocation,
123+
deckLabel: i18n.format(newDisplayLabwareLocation, 'capitalize'),
124124
}}
125125
/>
126126
</Flex>

0 commit comments

Comments
 (0)