Skip to content

Commit

Permalink
alphabetize quick_transfer.json
Browse files Browse the repository at this point in the history
explicit check for undefined
  • Loading branch information
vegano1 committed Jul 6, 2024
1 parent 24451bc commit 7157f49
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 55 deletions.
98 changes: 50 additions & 48 deletions app/src/assets/localization/en/quick_transfer.json
Original file line number Diff line number Diff line change
@@ -1,90 +1,93 @@
{
"add_or_remove_columns": "add or remove columns",
"add_or_remove": "add or remove",
"add_or_remove_columns": "add or remove columns",
"advanced_setting_disabled": "Advanced setting disabled for this transfer",
"advanced_settings": "Advanced settings",
"air_gap": "Air gap",
"air_gap_before_aspirating": "Air gap before aspirating",
"air_gap_before_dispensing": "Air gap before dispensing",
"air_gap_value": "{{volume}} µL",
"air_gap_volume_µL": "Air gap volume (µL)",
"all": "All labware",
"always": "Before every aspirate",
"aspirate_volume": "Aspirate volume per well",
"aspirate_volume_µL": "Aspirate volume per well (µL)",
"aspirate_flow_rate": "Aspirate flow rate",
"aspirate_flow_rate_µL": "Aspirate flow rate (µL/s)",
"mix": "Mix",
"mix_value": "{{volume}} µL, {{reps}} times",
"mix_before_aspirating": "Mix before aspirating",
"mix_before_dispensing": "Mix before dispensing",
"mix_volume_µL": "Mix volume (µL)",
"mix_repetitions": "Mix repetitions",
"aspirate_tip_position": "Aspirate tip position",
"aspirate_settings": "Aspirate Settings",
"option_enabled": "Enabled",
"option_disabled": "Disabled",
"air_gap": "Air gap",
"air_gap_value": "{{volume}} µL",
"air_gap_volume_µL": "Air gap volume (µL)",
"air_gap_before_aspirating": "Air gap before aspirating",
"air_gap_before_dispensing": "Air gap before dispensing",
"flow_rate_value": "{{flow_rate}} µL/s",
"both_mounts": "Left + Right Mount",
"aspirate_tip_position": "Aspirate tip position",
"aspirate_volume": "Aspirate volume per well",
"aspirate_volume_µL": "Aspirate volume per well (µL)",
"blow_out": "Blowout",
"blow_out_trash_bin": "Trash bin",
"blow_out_waste_chute": "Waste chute",
"blow_out_source_well": "Source well",
"blow_out_after_dispensing": "Blowout after dispensing",
"blow_out_destination_well": "Destination well",
"blow_out_into_trash_bin": "Into trash bin",
"blow_out_into_waste_chute": "Into waste chute",
"blow_out_into_destination_well": "Into destination well",
"blow_out_into_source_well": "Into source well",
"blow_out_after_dispensing": "Blowout after dispensing",
"blow_out_into_trash_bin": "Into trash bin",
"blow_out_into_waste_chute": "Into waste chute",
"blow_out_source_well": "Source well",
"blow_out_trash_bin": "Trash bin",
"blow_out_waste_chute": "Waste chute",
"both_mounts": "Left + Right Mount",
"change_tip": "Change tip",
"character_limit_error": "Character limit exceeded",
"column": "column",
"columns": "columns",
"create_new_transfer": "Create new quick transfer",
"create_transfer": "Create transfer",
"delay": "Delay",
"delay_before_aspirating": "Delay before aspirating",
"delay_before_dispensing": "Delay before dispensing",
"delay_duration_s": "Delay duration (seconds)",
"delay_position_mm": "Delay position from bottom of well (mm)",
"delay_value": "{{delay}}s, {{position}} mm from bottom",
"destination": "Destination",
"destination_labware": "Destination labware",
"dispense_flow_rate": "Dispense flow rate",
"dispense_flow_rate_µL": "Dispense flow rate (µL/s)",
"dispense_settings": "Dispense Settings",
"dispense_tip_position": "Dispense tip position",
"dispense_volume": "Dispense volume per well",
"dispense_volume_µL": "Dispense volume per well (µL)",
"dispense_flow_rate": "Dispense flow rate",
"dispense_flow_rate_µL": "Dispense flow rate (µL/s)",
"disposal_volume_µL": "Disposal volume (µL)",
"distance_bottom_of_well_mm": "Distance from bottom of well (mm)",
"delay_before_aspirating": "Delay before aspirating",
"delay_before_dispensing": "Delay before dispensing",
"delay_duration_s": "Delay duration (seconds)",
"delay_position_mm": "Delay position from bottom of well (mm)",
"delay": "Delay",
"delay_value": "{{delay}}s, {{position}} mm from bottom",
"enter_characters": "Enter up to 60 characters",
"exit_quick_transfer": "Exit quick transfer?",
"flow_rate_value": "{{flow_rate}} µL/s",
"grid": "grid",
"grids": "grids",
"labware": "Labware",
"learn_more": "Learn more",
"left_mount": "Left Mount",
"lose_all_progress": "You will lose all progress on this quick transfer.",
"mix": "Mix",
"mix_before_aspirating": "Mix before aspirating",
"mix_before_dispensing": "Mix before dispensing",
"mix_repetitions": "Mix repetitions",
"mix_value": "{{volume}} µL, {{reps}} times",
"mix_volume_µL": "Mix volume (µL)",
"name_your_transfer": "Name your quick transfer",
"number_wells_selected_error_learn_more": "Quick transfers with multiple source {{selectionUnits}} can either be one-to-one (select {{wellCount}} destination {{selectionUnits}} for this transfer) or consolidate (select 1 destination {{selectionUnit}}).",
"number_wells_selected_error_message": "Select 1 or {{wellCount}} {{selectionUnits}} to make this transfer.",
"once": "Once at the start of the transfer",
"option_disabled": "Disabled",
"option_enabled": "Enabled",
"overview": "Overview",
"perDest": "Per destination well",
"perSource": "Per source well",
"pipette": "Pipette",
"pipette_currently_attached": "Quick transfer options depend on the pipettes currently attached to your robot.",
"pipette_path": "Pipette path",
"pipette_path_single": "Single transfers",
"pipette_path_multi_aspirate": "Multi-aspirate",
"pipette_path_multi_dispense": "Multi-dispense",
"pipette_path_single": "Single transfers",
"pre_wet_tip": "Pre-wet tip",
"quick_transfer_volume": "Quick Transfer {{volume}}µL",
"right_mount": "Right Mount",
"reservoir": "Reservoirs",
"right_mount": "Right Mount",
"run_now": "Run now",
"run_quick_transfer_now": "Do you want to run your quick transfer now?",
"save": "Save",
"save_to_run_later": "Save your quick transfer to run it in the future.",
"save_for_later": "Save for later",
"source": "Source",
"save_to_run_later": "Save your quick transfer to run it in the future.",
"select_attached_pipette": "Select attached pipette",
"select_by": "select by",
"select_dest_labware": "Select destination labware",
Expand All @@ -95,33 +98,32 @@
"set_aspirate_volume": "Set aspirate volume",
"set_dispense_volume": "Set dispense volume",
"set_transfer_volume": "Set transfer volume",
"source": "Source",
"source_labware": "Source labware",
"source_labware_d2": "Source labware in D2",
"starting_well": "starting well",
"use_deck_slots": "<block>Quick transfers use deck slots B2-D2. These slots hold a tip rack, a source labware, and a destination labware.</block><block>Make sure that your deck configuration is up to date to avoid collisions.</block>",
"tip_drop_location": "Tip drop location",
"tip_management": "Tip management",
"tip_rack": "Tip rack",
"tip_position": "Tip position",
"tip_position_value": "{{position}} mm from the bottom",
"trashBin": "Trash bin",
"trashBin_location": "Trash bin in {{slotName}}",
"tubeRack": "Tube racks",
"tip_rack": "Tip rack",
"touch_tip": "Touch tip",
"touch_tip_value": "{{position}} mm from bottom",
"touch_tip_before_aspirating": "Touch tip before aspirating",
"touch_tip_before_dispensing": "Touch tip before dispensing",
"touch_tip_position_mm": "Touch tip position from bottom of well (mm)",
"touch_tip_value": "{{position}} mm from bottom",
"trashBin": "Trash bin",
"trashBin_location": "Trash bin in {{slotName}}",
"tubeRack": "Tube racks",
"use_deck_slots": "<block>Quick transfers use deck slots B2-D2. These slots hold a tip rack, a source labware, and a destination labware.</block><block>Make sure that your deck configuration is up to date to avoid collisions.</block>",
"value_out_of_range": "Value must be between {{min}}-{{max}}",
"volume_per_well": "Volume per well",
"volume_per_well_µL": "Volume per well (µL)",
"value_out_of_range": "Value must be between {{min}}-{{max}}",
"labware": "Labware",
"pipette_currently_attached": "Quick transfer options depend on the pipettes currently attached to your robot.",
"wasteChute": "Waste chute",
"wasteChute_location": "Waste chute in {{slotName}}",
"well": "well",
"wellPlate": "Well plates",
"well_selection": "Well selection",
"well_ratio": "Quick transfers with multiple source wells can either be one-to-one (select {{wells}} for this transfer) or consolidate (select 1 destination well).",
"well": "well",
"well_selection": "Well selection",
"wells": "wells"
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import type {
} from '../types'
import { ACTIONS } from '../constants'
import { useTranslation } from 'react-i18next'
import { useToaster } from '../../../organisms/ToasterOven'
import { ListItem } from '../../../atoms/ListItem'
import { FlowRateEntry } from './FlowRate'
import { PipettePath } from './PipettePath'
Expand All @@ -40,10 +41,14 @@ export function QuickTransferAdvancedSettings(
): JSX.Element | null {
const { state, dispatch } = props
const { t } = useTranslation(['quick_transfer', 'shared'])
const { makeSnackbar } = useToaster()

Check failure on line 44 in app/src/organisms/QuickTransferFlow/QuickTransferAdvancedSettings/index.tsx

View workflow job for this annotation

GitHub Actions / js checks

'makeSnackbar' is assigned a value but never used
const [selectedSetting, setSelectedSetting] = React.useState<string | null>(
null
)

// TODO: Determine when we need to display snackbar
// makeSnackbar(t('advanced_setting_disabled'))

let pipettePath: string = ''
if (state.path === 'single') {
pipettePath = t('pipette_path_single')
Expand Down Expand Up @@ -122,7 +127,7 @@ export function QuickTransferAdvancedSettings(
{
option: t('mix'),
value:
state.mixOnAspirate !== null
state.mixOnAspirate !== undefined
? t('mix_value', {
volume: state.mixOnAspirate?.mixVolume,
reps: state.mixOnAspirate?.repititions,
Expand Down Expand Up @@ -150,7 +155,7 @@ export function QuickTransferAdvancedSettings(
{
option: t('touch_tip'),
value:
state.touchTipAspirate !== null
state.touchTipAspirate !== undefined
? t('touch_tip_value', { position: state.touchTipAspirate })
: '',
enabled: true,
Expand All @@ -161,7 +166,7 @@ export function QuickTransferAdvancedSettings(
{
option: t('air_gap'),
value:
state.airGapAspirate !== null
state.airGapAspirate !== undefined
? t('air_gap_value', { volume: state.airGapAspirate })
: '',
enabled: true,
Expand All @@ -175,7 +180,7 @@ export function QuickTransferAdvancedSettings(
{
option: t('tip_position'),
value:
state.tipPositionDispense !== null
state.tipPositionDispense !== undefined
? t('tip_position_value', { position: state.tipPositionDispense })
: '',
enabled: true,
Expand All @@ -186,7 +191,7 @@ export function QuickTransferAdvancedSettings(
{
option: t('mix'),
value:
state.mixOnDispense !== null
state.mixOnDispense !== undefined
? t('mix_value', {
volume: state.mixOnDispense?.mixVolume,
reps: state.mixOnDispense?.repititions,
Expand Down Expand Up @@ -214,7 +219,7 @@ export function QuickTransferAdvancedSettings(
{
option: t('touch_tip'),
value:
state.touchTipDispense !== null
state.touchTipDispense !== undefined
? t('touch_tip_value', { position: state.touchTipDispense })
: '',
enabled: true,
Expand All @@ -225,7 +230,7 @@ export function QuickTransferAdvancedSettings(
{
option: t('air_gap'),
value:
state.airGapDispense !== null
state.airGapDispense !== undefined
? t('air_gap_value', { volume: state.airGapDispense })
: '',
enabled: true,
Expand Down

0 comments on commit 7157f49

Please sign in to comment.