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",
"clearProcessor": "Clear Processor",
"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> = {
txt2img: {
id: 'txt2img',
translationKey: 'common.txt2img',
translationKey: 'ui.tabs.generation',
icon: <RiInputMethodLine />,
content: <TextToImageTab />,
},
unifiedCanvas: {
id: 'unifiedCanvas',
translationKey: 'common.unifiedCanvas',
translationKey: 'ui.tabs.canvas',
icon: <RiBrushLine />,
content: <UnifiedCanvasTab />,
},
nodes: {
id: 'nodes',
translationKey: 'common.nodes',
translationKey: 'ui.tabs.workflows',
icon: <PiFlowArrowBold />,
content: <NodesTab />,
},
modelManager: {
id: 'modelManager',
translationKey: 'modelManager.modelManager',
translationKey: 'ui.tabs.models',
icon: <RiBox2Line />,
content: <ModelManagerTab />,
},
queue: {
id: 'queue',
translationKey: 'queue.queue',
translationKey: 'ui.tabs.queue',
icon: <RiPlayList2Fill />,
content: <QueueTab />,
},