add translations for new model types in MM, remove clip vision from filter since its not displayed in list

This commit is contained in:
Mary Hipp 2024-08-27 09:46:34 -04:00 committed by Mary Hipp Rogers
parent 576f1cbb75
commit b3d2eb4178
3 changed files with 10 additions and 7 deletions

View File

@ -696,6 +696,8 @@
"availableModels": "Available Models", "availableModels": "Available Models",
"baseModel": "Base Model", "baseModel": "Base Model",
"cancel": "Cancel", "cancel": "Cancel",
"clipEmbed": "Clip Embed",
"clipVision": "Clip Vision",
"config": "Config", "config": "Config",
"convert": "Convert", "convert": "Convert",
"convertingModelBegin": "Converting Model. Please wait.", "convertingModelBegin": "Converting Model. Please wait.",
@ -783,6 +785,7 @@
"settings": "Settings", "settings": "Settings",
"simpleModelPlaceholder": "URL or path to a local file or diffusers folder", "simpleModelPlaceholder": "URL or path to a local file or diffusers folder",
"source": "Source", "source": "Source",
"spandrelImageToImage": "Image to Image (Spandrel)",
"starterModels": "Starter Models", "starterModels": "Starter Models",
"starterModelsInModelManager": "Starter Models can be found in Model Manager", "starterModelsInModelManager": "Starter Models can be found in Model Manager",
"syncModels": "Sync Models", "syncModels": "Sync Models",
@ -791,6 +794,7 @@
"loraTriggerPhrases": "LoRA Trigger Phrases", "loraTriggerPhrases": "LoRA Trigger Phrases",
"mainModelTriggerPhrases": "Main Model Trigger Phrases", "mainModelTriggerPhrases": "Main Model Trigger Phrases",
"typePhraseHere": "Type phrase here", "typePhraseHere": "Type phrase here",
"t5Encoder": "T5 Encoder",
"upcastAttention": "Upcast Attention", "upcastAttention": "Upcast Attention",
"uploadImage": "Upload Image", "uploadImage": "Upload Image",
"urlOrLocalPath": "URL or Local Path", "urlOrLocalPath": "URL or Local Path",

View File

@ -175,12 +175,12 @@ const ModelList = () => {
{/* T5 Encoders List */} {/* T5 Encoders List */}
{isLoadingT5EncoderModels && <FetchingModelsLoader loadingMessage="Loading T5 Encoder Models..." />} {isLoadingT5EncoderModels && <FetchingModelsLoader loadingMessage="Loading T5 Encoder Models..." />}
{!isLoadingT5EncoderModels && filteredT5EncoderModels.length > 0 && ( {!isLoadingT5EncoderModels && filteredT5EncoderModels.length > 0 && (
<ModelListWrapper title="T5 Encoder" modelList={filteredT5EncoderModels} key="t5-encoder" /> <ModelListWrapper title={t('modelManager.t5Encoder')} modelList={filteredT5EncoderModels} key="t5-encoder" />
)} )}
{/* Clip Embed List */} {/* Clip Embed List */}
{isLoadingClipEmbedModels && <FetchingModelsLoader loadingMessage="Loading Clip Embed Models..." />} {isLoadingClipEmbedModels && <FetchingModelsLoader loadingMessage="Loading Clip Embed Models..." />}
{!isLoadingClipEmbedModels && filteredClipEmbedModels.length > 0 && ( {!isLoadingClipEmbedModels && filteredClipEmbedModels.length > 0 && (
<ModelListWrapper title="Clip Embed" modelList={filteredClipEmbedModels} key="clip-embed" /> <ModelListWrapper title={t('modelManager.clipEmbed')} modelList={filteredClipEmbedModels} key="clip-embed" />
)} )}
{/* Spandrel Image to Image List */} {/* Spandrel Image to Image List */}
{isLoadingSpandrelImageToImageModels && ( {isLoadingSpandrelImageToImageModels && (
@ -188,7 +188,7 @@ const ModelList = () => {
)} )}
{!isLoadingSpandrelImageToImageModels && filteredSpandrelImageToImageModels.length > 0 && ( {!isLoadingSpandrelImageToImageModels && filteredSpandrelImageToImageModels.length > 0 && (
<ModelListWrapper <ModelListWrapper
title="Image-to-Image" title={t('modelManager.spandrelImageToImage')}
modelList={filteredSpandrelImageToImageModels} modelList={filteredSpandrelImageToImageModels}
key="spandrel-image-to-image" key="spandrel-image-to-image"
/> />

View File

@ -19,11 +19,10 @@ export const ModelTypeFilter = memo(() => {
controlnet: 'ControlNet', controlnet: 'ControlNet',
vae: 'VAE', vae: 'VAE',
t2i_adapter: t('common.t2iAdapter'), t2i_adapter: t('common.t2iAdapter'),
t5_encoder: 'T5Encoder', t5_encoder: t('modelManager.t5Encoder'),
clip_embed: 'Clip Embed', clip_embed: t('modelManager.clipEmbed'),
ip_adapter: t('common.ipAdapter'), ip_adapter: t('common.ipAdapter'),
clip_vision: 'Clip Vision', spandrel_image_to_image: t('modelManager.spandrelImageToImage'),
spandrel_image_to_image: 'Image-to-Image',
}), }),
[t] [t]
); );