feat(ui): "IP Adapter" -> "Global IP Adapter"

This commit is contained in:
psychedelicious
2024-09-01 20:56:24 +10:00
parent c246fc98b3
commit f49cee976d
6 changed files with 7 additions and 7 deletions

View File

@@ -1725,12 +1725,12 @@
"regionalGuidance_withCount_hidden": "Regional Guidance ({{count}} hidden)",
"controlLayers_withCount_hidden": "Control Layers ({{count}} hidden)",
"rasterLayers_withCount_hidden": "Raster Layers ({{count}} hidden)",
"ipAdapters_withCount_hidden": "IP Adapters ({{count}} hidden)",
"globalIPAdapters_withCount_hidden": "Global IP Adapters ({{count}} hidden)",
"inpaintMasks_withCount_hidden": "Inpaint Masks ({{count}} hidden)",
"regionalGuidance_withCount_visible": "Regional Guidance ({{count}})",
"controlLayers_withCount_visible": "Control Layers ({{count}})",
"rasterLayers_withCount_visible": "Raster Layers ({{count}})",
"ipAdapters_withCount_visible": "IP Adapters ({{count}})",
"globalIPAdapters_withCount_visible": "Global IP Adapters ({{count}})",
"inpaintMasks_withCount_visible": "Inpaint Masks ({{count}})",
"globalControlAdapter": "Global $t(controlnet.controlAdapter_one)",
"globalControlAdapterLayer": "Global $t(controlnet.controlAdapter_one) $t(unifiedCanvas.layer)",

View File

@@ -46,7 +46,7 @@ export const CanvasAddEntityButtons = memo(() => {
{t('controlLayers.controlLayer')}
</Button>
<Button variant="ghost" justifyContent="flex-start" leftIcon={<PiPlusBold />} onClick={addIPAdapter}>
{t('controlLayers.ipAdapter')}
{t('controlLayers.globalIPAdapter')}
</Button>
</ButtonGroup>
</Flex>

View File

@@ -48,7 +48,7 @@ export const CanvasEntityListMenuItems = memo(() => {
{t('controlLayers.controlLayer')}
</MenuItem>
<MenuItem icon={<PiPlusBold />} onClick={addIPAdapter}>
{t('controlLayers.ipAdapter')}
{t('controlLayers.globalIPAdapter')}
</MenuItem>
</>
);

View File

@@ -33,7 +33,7 @@ export const useEntityTitle = (entityIdentifier: CanvasEntityIdentifier) => {
case 'raster_layer':
return t('controlLayers.rasterLayer');
case 'ip_adapter':
return t('common.ipAdapter');
return t('controlLayers.globalIPAdapter');
case 'regional_guidance':
return t('controlLayers.regionalGuidance');
default:

View File

@@ -16,7 +16,7 @@ export const useEntityTypeString = (type: CanvasEntityIdentifier['type']): strin
case 'regional_guidance':
return t('controlLayers.regionalGuidance');
case 'ip_adapter':
return t('controlLayers.ipAdapter');
return t('controlLayers.globalIPAdapter');
default:
return '';
}

View File

@@ -22,7 +22,7 @@ export const useEntityTypeTitle = (type: CanvasEntityIdentifier['type']): string
case 'regional_guidance':
return t('controlLayers.regionalGuidance_withCount', { count, context });
case 'ip_adapter':
return t('controlLayers.ipAdapters_withCount', { count, context });
return t('controlLayers.globalIPAdapters_withCount', { count, context });
default:
return '';
}