Skip to content

Commit 7535d2e

Browse files
feat(ui): use translation for load from file buttons
1 parent 3dff87a commit 7535d2e

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

invokeai/frontend/web/public/locales/en.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -870,6 +870,7 @@
870870
"generatorNRandomValues_other": "{{count}} random values",
871871
"generatorNoValues": "empty",
872872
"generatorLoading": "loading",
873+
"generatorLoadFromFile": "Load from File",
873874
"dynamicPromptsRandom": "Dynamic Prompts (Random)",
874875
"dynamicPromptsCombinatorial": "Dynamic Prompts (Combinatorial)",
875876
"addNode": "Add Node",

invokeai/frontend/web/src/features/nodes/components/flow/nodes/Invocation/fields/inputs/GeneratorTextareaWithFileUpload.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ export const GeneratorTextareaWithFileUpload = memo(({ value, onChange }: Props)
6262
{t('common.input')}
6363
<Spacer />
6464
<IconButton
65-
tooltip="Load from file"
66-
aria-label="Load from file"
65+
tooltip={t('nodes.generatorLoadFromFile')}
66+
aria-label={t('nodes.generatorLoadFromFile')}
6767
icon={<PiUploadFill />}
6868
variant="link"
6969
{...getRootProps()}

0 commit comments

Comments
 (0)