Skip to content

Commit

Permalink
add reference wavelength to command text if it exits
Browse files Browse the repository at this point in the history
  • Loading branch information
smb2268 committed Oct 15, 2024
1 parent 19f93c4 commit d2df4bf
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
3 changes: 2 additions & 1 deletion app/src/assets/localization/en/protocol_command_text.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,5 +90,6 @@
"waiting_for_tc_block_to_reach": "Waiting for Thermocycler block to reach target temperature and holding for specified time",
"waiting_for_tc_lid_to_reach": "Waiting for Thermocycler lid to reach target temperature",
"waiting_to_reach_temp_module": "Waiting for Temperature Module to reach {{temp}}",
"waste_chute": "Waste Chute"
"waste_chute": "Waste Chute",
"with_reference_of": "with reference of {{wavelength}} nm"
}
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,17 @@ export const getAbsorbanceReaderCommandText = ({
const wavelengths = command.params.sampleWavelengths.join(' nm, ') + ` nm`
const mode =
command.params.measureMode === 'multi' ? t('multiple') : t('single')
return t('absorbance_reader_initialize', {

return `${t('absorbance_reader_initialize', {
mode,
wavelengths,
})
})} ${
command.params.referenceWavelength != null
? t('with_reference_of', {
wavelength: command.params.referenceWavelength,
})
: ''
}`
}
return t(KEYS_BY_COMMAND_TYPE[command.commandType])
}

0 comments on commit d2df4bf

Please sign in to comment.