feat(ui): rename tabs

- "Text to Image" -> "Generation"
- "Unified Canvas" -> "Canvas"
- "Model Manager" -> "Models"
This commit is contained in:
psychedelicious 2024-05-03 06:27:25 +10:00 committed by Kent Keirsey
parent a6ac184211
commit 7c1f1076b4
2 changed files with 14 additions and 5 deletions

View File

@ -1557,5 +1557,14 @@
"opacityFilter": "Opacity Filter", "opacityFilter": "Opacity Filter",
"clearProcessor": "Clear Processor", "clearProcessor": "Clear Processor",
"resetProcessor": "Reset Processor to Defaults" "resetProcessor": "Reset Processor to Defaults"
},
"ui": {
"tabs": {
"generation": "Generation",
"canvas": "Canvas",
"workflows": "Workflows",
"models": "Models",
"queue": "Queue"
}
} }
} }

View File

@ -46,31 +46,31 @@ type TabData = {
const TAB_DATA: Record<InvokeTabName, TabData> = { const TAB_DATA: Record<InvokeTabName, TabData> = {
txt2img: { txt2img: {
id: 'txt2img', id: 'txt2img',
translationKey: 'common.txt2img', translationKey: 'ui.tabs.generation',
icon: <RiInputMethodLine />, icon: <RiInputMethodLine />,
content: <TextToImageTab />, content: <TextToImageTab />,
}, },
unifiedCanvas: { unifiedCanvas: {
id: 'unifiedCanvas', id: 'unifiedCanvas',
translationKey: 'common.unifiedCanvas', translationKey: 'ui.tabs.canvas',
icon: <RiBrushLine />, icon: <RiBrushLine />,
content: <UnifiedCanvasTab />, content: <UnifiedCanvasTab />,
}, },
nodes: { nodes: {
id: 'nodes', id: 'nodes',
translationKey: 'common.nodes', translationKey: 'ui.tabs.workflows',
icon: <PiFlowArrowBold />, icon: <PiFlowArrowBold />,
content: <NodesTab />, content: <NodesTab />,
}, },
modelManager: { modelManager: {
id: 'modelManager', id: 'modelManager',
translationKey: 'modelManager.modelManager', translationKey: 'ui.tabs.models',
icon: <RiBox2Line />, icon: <RiBox2Line />,
content: <ModelManagerTab />, content: <ModelManagerTab />,
}, },
queue: { queue: {
id: 'queue', id: 'queue',
translationKey: 'queue.queue', translationKey: 'ui.tabs.queue',
icon: <RiPlayList2Fill />, icon: <RiPlayList2Fill />,
content: <QueueTab />, content: <QueueTab />,
}, },