From fb5df06835b618cb17bdc70172aea0b308256472 Mon Sep 17 00:00:00 2001
From: Kent Keirsey <31807370+hipsterusername@users.noreply.github.com>
Date: Tue, 24 Jun 2025 13:03:49 -0400
Subject: [PATCH] Updating toinclude translations and import fixes
---
invokeai/frontend/web/public/locales/en.json | 9 ++++++---
.../modelManagerV2/hooks/useStarterBundleInstall.ts | 5 +++--
.../AddModelPanel/LaunchpadForm/LaunchpadForm.tsx | 10 +++++-----
3 files changed, 14 insertions(+), 10 deletions(-)
diff --git a/invokeai/frontend/web/public/locales/en.json b/invokeai/frontend/web/public/locales/en.json
index 8b8797074f..fb0301f85c 100644
--- a/invokeai/frontend/web/public/locales/en.json
+++ b/invokeai/frontend/web/public/locales/en.json
@@ -335,7 +335,7 @@
"images": "Images",
"assets": "Assets",
"alwaysShowImageSizeBadge": "Always Show Image Size Badge",
- "assetsTab": "Files you’ve uploaded for use in your projects.",
+ "assetsTab": "Files you've uploaded for use in your projects.",
"autoAssignBoardOnClick": "Auto-Assign Board on Click",
"autoSwitchNewImages": "Auto-Switch to New Images",
"boardsSettings": "Boards Settings",
@@ -357,7 +357,7 @@
"gallerySettings": "Gallery Settings",
"go": "Go",
"image": "image",
- "imagesTab": "Images you’ve created and saved within Invoke.",
+ "imagesTab": "Images you've created and saved within Invoke.",
"imagesSettings": "Gallery Images Settings",
"jump": "Jump",
"loading": "Loading",
@@ -885,7 +885,10 @@
"exploreStarter": "Browse all available starter models",
"quickStart": "Quick Start Bundles",
"bundleDescription": "Each bundle includes essential models for each model family and curated base models to get started",
- "browseAll": "Or browse all available models:"
+ "browseAll": "Or browse all available models:",
+ "stableDiffusion15": "Stable Diffusion 1.5",
+ "sdxl": "SDXL",
+ "fluxDev": "FLUX.1 dev"
},
"controlLora": "Control LoRA",
"downloadBundle": "Download {bundleName} Bundle",
diff --git a/invokeai/frontend/web/src/features/modelManagerV2/hooks/useStarterBundleInstall.ts b/invokeai/frontend/web/src/features/modelManagerV2/hooks/useStarterBundleInstall.ts
index d1e73942ab..6322b6d45a 100644
--- a/invokeai/frontend/web/src/features/modelManagerV2/hooks/useStarterBundleInstall.ts
+++ b/invokeai/frontend/web/src/features/modelManagerV2/hooks/useStarterBundleInstall.ts
@@ -1,11 +1,12 @@
+import { toast } from 'features/toast/toast';
import { flatMap, negate, uniqWith } from 'lodash-es';
import { useCallback } from 'react';
import { useTranslation } from 'react-i18next';
import { useInstallModelMutation } from 'services/api/endpoints/models';
-import { toast } from 'features/toast/toast';
-import { flattenStarterModel, useBuildModelInstallArg } from './useBuildModelsToInstall';
import type { StarterModel } from 'services/api/types';
+import { flattenStarterModel, useBuildModelInstallArg } from './useBuildModelsToInstall';
+
export const useStarterBundleInstall = () => {
const [installModel] = useInstallModelMutation();
const { getIsInstalled, buildModelInstallArg } = useBuildModelInstallArg();
diff --git a/invokeai/frontend/web/src/features/modelManagerV2/subpanels/AddModelPanel/LaunchpadForm/LaunchpadForm.tsx b/invokeai/frontend/web/src/features/modelManagerV2/subpanels/AddModelPanel/LaunchpadForm/LaunchpadForm.tsx
index 14bc240fe6..5e389bf0ac 100644
--- a/invokeai/frontend/web/src/features/modelManagerV2/subpanels/AddModelPanel/LaunchpadForm/LaunchpadForm.tsx
+++ b/invokeai/frontend/web/src/features/modelManagerV2/subpanels/AddModelPanel/LaunchpadForm/LaunchpadForm.tsx
@@ -1,7 +1,7 @@
import { Box, Button, Flex, Grid, Heading, Text } from '@invoke-ai/ui-library';
-import { $installModelsTab } from 'features/modelManagerV2/store/installModelsStore';
-import { useStarterBundleInstall } from 'features/modelManagerV2/hooks/useStarterBundleInstall';
import ScrollableContent from 'common/components/OverlayScrollbars/ScrollableContent';
+import { useStarterBundleInstall } from 'features/modelManagerV2/hooks/useStarterBundleInstall';
+import { $installModelsTab } from 'features/modelManagerV2/store/installModelsStore';
import { memo, useCallback } from 'react';
import { useTranslation } from 'react-i18next';
import { PiFolderOpenBold, PiLinkBold, PiStarBold } from 'react-icons/pi';
@@ -185,7 +185,7 @@ export const LaunchpadForm = memo(() => {
whiteSpace="normal"
>
- Stable Diffusion 1.5
+ {t('modelManager.launchpad.stableDiffusion15')}