From eab6e5fc9ce5d53d48201a7dc89d05d1f210ebe3 Mon Sep 17 00:00:00 2001 From: Presley Pizzo Date: Mon, 8 Aug 2022 18:27:44 +0000 Subject: [PATCH] Pull out strings --- .../WorkspaceScheduleForm.tsx | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/site/src/components/WorkspaceScheduleForm/WorkspaceScheduleForm.tsx b/site/src/components/WorkspaceScheduleForm/WorkspaceScheduleForm.tsx index 3cbcc46035..c9f3e01789 100644 --- a/site/src/components/WorkspaceScheduleForm/WorkspaceScheduleForm.tsx +++ b/site/src/components/WorkspaceScheduleForm/WorkspaceScheduleForm.tsx @@ -55,6 +55,11 @@ export const Language = { ttlCausesShutdownHelperText: "Your workspace will shut down", ttlCausesShutdownAfterStart: "after start", ttlCausesNoShutdownHelperText: "Your workspace will not automatically shut down.", + formTitle: "Workspace schedule", + startSection: "Start", + startSwitch: "Auto-start", + stopSection: "Stop", + stopSwitch: "Auto-stop" } export interface WorkspaceScheduleFormProps { @@ -204,14 +209,14 @@ export const WorkspaceScheduleForm: FC = ({ ] return ( - +
{submitScheduleError && } -
+
} - label="Auto-start" + label={Language.startSwitch} /> = ({
-
+
} - label="Auto-stop" + label={Language.stopSwitch} />