From 2f81f9fb223b2a3c7c9aa581b41f82b4ad93fe1e Mon Sep 17 00:00:00 2001 From: psychedelicious <4822129+psychedelicious@users.noreply.github.com> Date: Thu, 30 Nov 2023 21:06:50 +1100 Subject: [PATCH] fix(ui): add missing star image translation key --- invokeai/frontend/web/public/locales/en.json | 3 ++- .../components/ImageContextMenu/SingleSelectionMenuItems.tsx | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/invokeai/frontend/web/public/locales/en.json b/invokeai/frontend/web/public/locales/en.json index 8f93f32d90..8663815adb 100644 --- a/invokeai/frontend/web/public/locales/en.json +++ b/invokeai/frontend/web/public/locales/en.json @@ -243,7 +243,6 @@ "setControlImageDimensions": "Set Control Image Dimensions To W/H", "showAdvanced": "Show Advanced", "toggleControlNet": "Toggle this ControlNet", - "unstarImage": "Unstar Image", "w": "W", "weight": "Weight", "enableIPAdapter": "Enable IP Adapter", @@ -378,6 +377,8 @@ "showGenerations": "Show Generations", "showUploads": "Show Uploads", "singleColumnLayout": "Single Column Layout", + "starImage": "Star Image", + "unstarImage": "Unstar Image", "unableToLoad": "Unable to load Gallery", "uploads": "Uploads", "deleteSelection": "Delete Selection", diff --git a/invokeai/frontend/web/src/features/gallery/components/ImageContextMenu/SingleSelectionMenuItems.tsx b/invokeai/frontend/web/src/features/gallery/components/ImageContextMenu/SingleSelectionMenuItems.tsx index fdb0809364..1b4e642e64 100644 --- a/invokeai/frontend/web/src/features/gallery/components/ImageContextMenu/SingleSelectionMenuItems.tsx +++ b/invokeai/frontend/web/src/features/gallery/components/ImageContextMenu/SingleSelectionMenuItems.tsx @@ -234,14 +234,14 @@ const SingleSelectionMenuItems = (props: SingleSelectionMenuItemsProps) => { icon={customStarUi ? customStarUi.off.icon : } onClickCapture={handleUnstarImage} > - {customStarUi ? customStarUi.off.text : t('controlnet.unstarImage')} + {customStarUi ? customStarUi.off.text : t('gallery.unstarImage')} ) : ( } onClickCapture={handleStarImage} > - {customStarUi ? customStarUi.on.text : `Star Image`} + {customStarUi ? customStarUi.on.text : t('gallery.starImage')} )}