From eff3887f351717346828d875d2bd5e655568940d Mon Sep 17 00:00:00 2001 From: mrbusysky <58412572+mrbusysky@users.noreply.github.com> Date: Mon, 19 Sep 2022 17:49:03 -0700 Subject: [PATCH] updates for static words part 1 --- .../build_src/src/Translation/locales/en/home.json | 2 ++ .../advancedSettings/gpuSettings/index.tsx | 11 ++++++----- .../organisms/creationPanel/basicCreation/index.tsx | 6 +++++- .../creationPanel/basicCreation/seedImage/index.tsx | 13 +++++++++---- 4 files changed, 22 insertions(+), 10 deletions(-) diff --git a/ui/frontend/build_src/src/Translation/locales/en/home.json b/ui/frontend/build_src/src/Translation/locales/en/home.json index 90474a0c..93be356c 100644 --- a/ui/frontend/build_src/src/Translation/locales/en/home.json +++ b/ui/frontend/build_src/src/Translation/locales/en/home.json @@ -77,6 +77,8 @@ "turbo-disc": "Generates images faster, but uses an additional 1 GB of GPU memory", "cpu": "Use CPU instead of GPU", "cpu-disc": "Warning: this will be *very* slow", + "gpu": "Use full precision", + "gpu-disc": "(for GPU-only. warning: this will consume more VRAM)", "beta": "Beta Features", "beta-disc": "Get the latest features immediately (but could be less stable). \nPlease restart the program after changing this.", "save": "SAVE" diff --git a/ui/frontend/build_src/src/components/organisms/creationPanel/advancedSettings/gpuSettings/index.tsx b/ui/frontend/build_src/src/components/organisms/creationPanel/advancedSettings/gpuSettings/index.tsx index 2453275e..8dd66069 100644 --- a/ui/frontend/build_src/src/components/organisms/creationPanel/advancedSettings/gpuSettings/index.tsx +++ b/ui/frontend/build_src/src/components/organisms/creationPanel/advancedSettings/gpuSettings/index.tsx @@ -10,8 +10,11 @@ import { import { MenuButton, // @ts-expect-error } from "../advancedsettings.css.ts"; +import {useTranslation} from "react-i18next"; export default function GpuSettings() { + const { t } = useTranslation(); + const turbo = useImageCreate((state) => state.getValueForRequestKey("turbo")); const useCpu = useImageCreate((state) => state.getValueForRequestKey("use_cpu") @@ -39,8 +42,7 @@ export default function GpuSettings() { onChange={(e) => setRequestOption("turbo", e.target.checked)} type="checkbox" /> - Turbo mode (generates images faster, but uses an additional 1 GB - of GPU memory) + {t("advanced-settings.turbo")} {t("advanced-settings.turbo-disc")}
Prompt
+{t("home.editor-title")}