From 4c2f7de4157dc2db83d60f876e938677641a1f1a Mon Sep 17 00:00:00 2001 From: znaim Date: Mon, 21 Oct 2024 14:36:28 -0400 Subject: [PATCH] moved to strings from the protocol generator instead of hard coded ones --- .../src/assets/localization/en/protocol_generator.json | 2 ++ opentrons-ai-client/src/molecules/Header/index.tsx | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/opentrons-ai-client/src/assets/localization/en/protocol_generator.json b/opentrons-ai-client/src/assets/localization/en/protocol_generator.json index f44eff34e73..e2b17863095 100644 --- a/opentrons-ai-client/src/assets/localization/en/protocol_generator.json +++ b/opentrons-ai-client/src/assets/localization/en/protocol_generator.json @@ -1,4 +1,5 @@ { + "ai": "AI", "api": "API: An API level is 2.15", "application": "Application: Your protocol's name, describing what it does.", "commands": "Commands: List the protocol's steps, specifying quantities in microliters (uL) and giving exact source and destination locations.", @@ -15,6 +16,7 @@ "make_sure_your_prompt": "Write a prompt in a natural language for OpentronsAI to generate a protocol using the Opentrons Python Protocol API v2. The better the prompt, the better the quality of the protocol produced by OpentronsAI.", "modules_and_adapters": "Modules and adapters: Specify the modules and labware adapters required by your protocol.", "notes": "A few important things to note:", + "opentrons": "Opentrons", "opentronsai": "OpentronsAI", "ot2_pipettes": "OT-2 pipettes: Include volume, number of channels, and generation.", "pcr_flex": "PCR (Flex)", diff --git a/opentrons-ai-client/src/molecules/Header/index.tsx b/opentrons-ai-client/src/molecules/Header/index.tsx index 1963cf8f434..e909aeaf691 100644 --- a/opentrons-ai-client/src/molecules/Header/index.tsx +++ b/opentrons-ai-client/src/molecules/Header/index.tsx @@ -53,10 +53,10 @@ export function Header(): JSX.Element { - {'Opentrons'} - {'AI'} + {t('opentrons')} + {t('ai')} - logout()}>{t('Log out')} + logout()}>{t('logout')} )