more strings and translations added

This commit is contained in:
Rohinish 2024-01-21 16:54:33 +05:30 committed by psychedelicious
parent ea1d2d6a4c
commit de0b43c81d
4 changed files with 15 additions and 4 deletions

View File

@ -1098,6 +1098,7 @@
"boundingBoxHeader": "Bounding Box", "boundingBoxHeader": "Bounding Box",
"boundingBoxHeight": "Bounding Box Height", "boundingBoxHeight": "Bounding Box Height",
"boundingBoxWidth": "Bounding Box Width", "boundingBoxWidth": "Bounding Box Width",
"boxBlur": "Box Blur",
"cancel": { "cancel": {
"cancel": "Cancel", "cancel": "Cancel",
"immediate": "Cancel immediately", "immediate": "Cancel immediately",
@ -1372,6 +1373,7 @@
"promptNotSet": "Prompt Not Set", "promptNotSet": "Prompt Not Set",
"promptNotSetDesc": "Could not find prompt for this image.", "promptNotSetDesc": "Could not find prompt for this image.",
"promptSet": "Prompt Set", "promptSet": "Prompt Set",
"resetInitialImage":"Reset Initial Image",
"seedNotSet": "Seed Not Set", "seedNotSet": "Seed Not Set",
"seedNotSetDesc": "Could not find seed for this image.", "seedNotSetDesc": "Could not find seed for this image.",
"seedSet": "Seed Set", "seedSet": "Seed Set",
@ -1388,6 +1390,7 @@
"uploadFailed": "Upload failed", "uploadFailed": "Upload failed",
"uploadFailedInvalidUploadDesc": "Must be single PNG or JPEG image", "uploadFailedInvalidUploadDesc": "Must be single PNG or JPEG image",
"uploadFailedUnableToLoadDesc": "Unable to load file", "uploadFailedUnableToLoadDesc": "Unable to load file",
"uploadInitialImage":"Upload Initial Image",
"upscalingFailed": "Upscaling Failed", "upscalingFailed": "Upscaling Failed",
"workflowLoaded": "Workflow Loaded", "workflowLoaded": "Workflow Loaded",
"problemRetrievingWorkflow": "Problem Retrieving Workflow", "problemRetrievingWorkflow": "Problem Retrieving Workflow",

View File

@ -3,8 +3,8 @@ import type { AnimationProps } from 'framer-motion';
import { motion } from 'framer-motion'; import { motion } from 'framer-motion';
import type { ReactNode } from 'react'; import type { ReactNode } from 'react';
import { memo, useRef } from 'react'; import { memo, useRef } from 'react';
import { v4 as uuidv4 } from 'uuid';
import { useTranslation } from 'react-i18next'; import { useTranslation } from 'react-i18next';
import { v4 as uuidv4 } from 'uuid';
type Props = { type Props = {
isOver: boolean; isOver: boolean;
label?: ReactNode; label?: ReactNode;

View File

@ -3,7 +3,6 @@ import { createMemoizedSelector } from 'app/store/createMemoizedSelector';
import { useAppDispatch, useAppSelector } from 'app/store/storeHooks'; import { useAppDispatch, useAppSelector } from 'app/store/storeHooks';
import IAIDndImage from 'common/components/IAIDndImage'; import IAIDndImage from 'common/components/IAIDndImage';
import { IAINoContentFallback } from 'common/components/IAIImageFallback'; import { IAINoContentFallback } from 'common/components/IAIImageFallback';
import { useTranslation } from 'react-i18next';
import type { import type {
TypesafeDraggableData, TypesafeDraggableData,
TypesafeDroppableData, TypesafeDroppableData,
@ -13,6 +12,7 @@ import {
selectGenerationSlice, selectGenerationSlice,
} from 'features/parameters/store/generationSlice'; } from 'features/parameters/store/generationSlice';
import { memo, useEffect, useMemo } from 'react'; import { memo, useEffect, useMemo } from 'react';
import { useTranslation } from 'react-i18next';
import { useGetImageDTOQuery } from 'services/api/endpoints/images'; import { useGetImageDTOQuery } from 'services/api/endpoints/images';
const selectInitialImage = createMemoizedSelector( const selectInitialImage = createMemoizedSelector(
@ -62,9 +62,11 @@ const InitialImage = () => {
draggableData={draggableData} draggableData={draggableData}
isUploadDisabled={true} isUploadDisabled={true}
fitContainer fitContainer
dropLabel="Set as Initial Image" dropLabel={t('toast.setInitialImage')}
noContentFallback={ noContentFallback={
<IAINoContentFallback label={t('parameters.invoke.noInitialImageSelected')} /> <IAINoContentFallback
label={t('parameters.invoke.noInitialImageSelected')}
/>
} }
dataTestId="initial-image" dataTestId="initial-image"
/> />

View File

@ -87,9 +87,15 @@ const InitialImageDisplay = () => {
onClick={handleUseSizeInitialImage} onClick={handleUseSizeInitialImage}
isDisabled={!initialImage} isDisabled={!initialImage}
/> />
<<<<<<< HEAD
<IconButton <IconButton
tooltip="Reset Initial Image" tooltip="Reset Initial Image"
aria-label="Reset Initial Image" aria-label="Reset Initial Image"
=======
<InvIconButton
tooltip={t('toast.resetInitialImage')}
aria-label={t('toast.resetInitialImage')}
>>>>>>> a94e09658 (more strings and translations added)
icon={<PiArrowCounterClockwiseBold />} icon={<PiArrowCounterClockwiseBold />}
onClick={handleReset} onClick={handleReset}
isDisabled={!initialImage} isDisabled={!initialImage}