From 7535d2e1881cae577f65a3dcfe0ba97cfc9c7f08 Mon Sep 17 00:00:00 2001 From: psychedelicious <4822129+psychedelicious@users.noreply.github.com> Date: Mon, 20 Jan 2025 08:42:50 +1100 Subject: [PATCH] feat(ui): use translation for load from file buttons --- invokeai/frontend/web/public/locales/en.json | 1 + .../fields/inputs/GeneratorTextareaWithFileUpload.tsx | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/invokeai/frontend/web/public/locales/en.json b/invokeai/frontend/web/public/locales/en.json index 3d610939b1..4fba5abcb2 100644 --- a/invokeai/frontend/web/public/locales/en.json +++ b/invokeai/frontend/web/public/locales/en.json @@ -870,6 +870,7 @@ "generatorNRandomValues_other": "{{count}} random values", "generatorNoValues": "empty", "generatorLoading": "loading", + "generatorLoadFromFile": "Load from File", "dynamicPromptsRandom": "Dynamic Prompts (Random)", "dynamicPromptsCombinatorial": "Dynamic Prompts (Combinatorial)", "addNode": "Add Node", diff --git a/invokeai/frontend/web/src/features/nodes/components/flow/nodes/Invocation/fields/inputs/GeneratorTextareaWithFileUpload.tsx b/invokeai/frontend/web/src/features/nodes/components/flow/nodes/Invocation/fields/inputs/GeneratorTextareaWithFileUpload.tsx index 78150bff16..88926b690b 100644 --- a/invokeai/frontend/web/src/features/nodes/components/flow/nodes/Invocation/fields/inputs/GeneratorTextareaWithFileUpload.tsx +++ b/invokeai/frontend/web/src/features/nodes/components/flow/nodes/Invocation/fields/inputs/GeneratorTextareaWithFileUpload.tsx @@ -62,8 +62,8 @@ export const GeneratorTextareaWithFileUpload = memo(({ value, onChange }: Props) {t('common.input')} } variant="link" {...getRootProps()}