Skip to content

Commit

Permalink
Add single/multiple text strings, remove console statement
Browse files Browse the repository at this point in the history
  • Loading branch information
smb2268 committed Oct 15, 2024
1 parent 8aa6e7a commit 19f93c4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
4 changes: 3 additions & 1 deletion app/src/assets/localization/en/protocol_command_text.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
"move_to_coordinates": "Moving to (X: {{x}}, Y: {{y}}, Z: {{z}})",
"move_to_slot": "Moving to Slot {{slot_name}}",
"move_to_well": "Moving to well {{well_name}} of {{labware}} in {{labware_location}}",
"multiple": "multiple",
"notes": "notes",
"off_deck": "off deck",
"offdeck": "offdeck",
Expand All @@ -70,9 +71,10 @@
"setting_temperature_module_temp": "Setting Temperature Module to {{temp}} (rounded to nearest integer)",
"setting_thermocycler_block_temp": "Setting Thermocycler block temperature to {{temp}} with hold time of {{hold_time_seconds}} seconds after target reached",
"setting_thermocycler_lid_temp": "Setting Thermocycler lid temperature to {{temp}}",
"single": "single",
"slot": "Slot {{slot_name}}",
"turning_rail_lights_off": "Turning rail lights off",
"turning_rail_lights_on": "Turning rail lights on",
"slot": "Slot {{slot_name}}",
"target_temperature": "target temperature",
"tc_awaiting_for_duration": "Waiting for Thermocycler profile to complete",
"tc_run_profile_steps": "Temperature: {{celsius}}°C, hold time: {{duration}}",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,13 @@ export const getAbsorbanceReaderCommandText = ({
command,
t,
}: GetAbsorbanceReaderCommandText): string => {
console.log(t(KEYS_BY_COMMAND_TYPE[command.commandType]))
if (command.commandType === 'absorbanceReader/initialize') {
const wavelengths = command.params.sampleWavelengths.join(' nm, ') + ` nm`
const mode =
command.params.measureMode === 'multi' ? t('multiple') : t('single')
return t('absorbance_reader_initialize', {
mode: command.params.measureMode,
wavelengths: wavelengths,
mode,
wavelengths,
})
}
return t(KEYS_BY_COMMAND_TYPE[command.commandType])
Expand Down

0 comments on commit 19f93c4

Please sign in to comment.