fix(ui): fix missing/incorrect translation keys

This commit is contained in:
psychedelicious
2023-09-19 21:52:11 +10:00
parent f051daea4f
commit 25ecf08962
14 changed files with 29 additions and 23 deletions

View File

@@ -13,14 +13,15 @@
"reset": "Reset",
"rotateClockwise": "Rotate Clockwise",
"rotateCounterClockwise": "Rotate Counter-Clockwise",
"showGallery": "Show Gallery",
"showGalleryPanel": "Show Gallery Panel",
"showOptionsPanel": "Show Side Panel",
"toggleAutoscroll": "Toggle autoscroll",
"toggleLogViewer": "Toggle Log Viewer",
"uploadImage": "Upload Image",
"useThisParameter": "Use this parameter",
"zoomIn": "Zoom In",
"zoomOut": "Zoom Out"
"zoomOut": "Zoom Out",
"loadMore": "Load More"
},
"boards": {
"addBoard": "Add Board",
@@ -694,7 +695,8 @@
"collectionItemDescription": "TODO",
"colorCodeEdges": "Color-Code Edges",
"colorCodeEdgesHelp": "Color-code edges according to their connected fields",
"colorCollectionDescription": "A collection of colors.",
"colorCollection": "A collection of colors.",
"colorCollectionDescription": "TODO",
"colorField": "Color",
"colorFieldDescription": "A RGBA color.",
"colorPolymorphic": "Color Polymorphic",
@@ -741,7 +743,8 @@
"imageFieldDescription": "Images may be passed between nodes.",
"imagePolymorphic": "Image Polymorphic",
"imagePolymorphicDescription": "A collection of images.",
"inputFields": "Input Feilds",
"inputField": "Input Field",
"inputFields": "Input Fields",
"inputMayOnlyHaveOneConnection": "Input may only have one connection",
"inputNode": "Input Node",
"integer": "Integer",
@@ -759,6 +762,7 @@
"latentsPolymorphicDescription": "Latents may be passed between nodes.",
"loadingNodes": "Loading Nodes...",
"loadWorkflow": "Load Workflow",
"noWorkflow": "No Workflow",
"loRAModelField": "LoRA",
"loRAModelFieldDescription": "TODO",
"mainModelField": "Model",
@@ -780,14 +784,15 @@
"noImageFoundState": "No initial image found in state",
"noMatchingNodes": "No matching nodes",
"noNodeSelected": "No node selected",
"noOpacity": "Node Opacity",
"nodeOpacity": "Node Opacity",
"noOutputRecorded": "No outputs recorded",
"noOutputSchemaName": "No output schema name found in ref object",
"notes": "Notes",
"notesDescription": "Add notes about your workflow",
"oNNXModelField": "ONNX Model",
"oNNXModelFieldDescription": "ONNX model field.",
"outputFields": "Output Feilds",
"outputField": "Output Field",
"outputFields": "Output Fields",
"outputNode": "Output node",
"outputSchemaNotFound": "Output schema not found",
"pickOne": "Pick One",
@@ -836,6 +841,7 @@
"unknownNode": "Unknown Node",
"unknownTemplate": "Unknown Template",
"unkownInvocation": "Unknown Invocation type",
"updateNode": "Update Node",
"updateApp": "Update App",
"vaeField": "Vae",
"vaeFieldDescription": "Vae submodel.",
@@ -952,7 +958,7 @@
"sendTo": "Send to",
"sendToImg2Img": "Send to Image to Image",
"sendToUnifiedCanvas": "Send To Unified Canvas",
"showOptionsPanel": "Show Options Panel",
"showOptionsPanel": "Show Side Panel (O or T)",
"showPreview": "Show Preview",
"shuffle": "Shuffle Seed",
"steps": "Steps",

View File

@@ -33,7 +33,7 @@ export const addCommitStagingAreaImageListener = () => {
log.debug(`Canceled ${canceled} canvas batches`);
dispatch(
addToast({
title: t('queue.cancelByBatchIdsSucceeded'),
title: t('queue.cancelBatchSucceeded'),
status: 'success',
})
);
@@ -43,7 +43,7 @@ export const addCommitStagingAreaImageListener = () => {
log.error('Failed to cancel canvas batches');
dispatch(
addToast({
title: t('queue.cancelByBatchIdsFailed'),
title: t('queue.cancelBatchFailed'),
status: 'error',
})
);

View File

@@ -28,7 +28,7 @@ const ParamDynamicPromptsCombinatorial = () => {
return (
<IAISwitch
label={t('prompt.combinatorial')}
label={t('dynamicPrompts.combinatorial')}
isChecked={combinatorial}
onChange={handleChange}
/>

View File

@@ -47,7 +47,7 @@ const ParamDynamicPromptsMaxPrompts = () => {
return (
<IAISlider
label={t('prompt.maxPrompts')}
label={t('dynamicPrompts.maxPrompts')}
isDisabled={isDisabled}
min={min}
max={sliderMax}

View File

@@ -103,7 +103,7 @@ const ImageMetadataActions = (props: Props) => {
)}
{metadata.negative_prompt && (
<ImageMetadataItem
label={t('metadata.NegativePrompt')}
label={t('metadata.negativePrompt')}
labelPosition="top"
value={metadata.negative_prompt}
onClick={handleRecallNegativePrompt}

View File

@@ -96,7 +96,7 @@ const ImageMetadataViewer = ({ image }: ImageMetadataViewerProps) => {
{workflow ? (
<DataViewer data={workflow} label={t('metadata.workflow')} />
) : (
<IAINoContentFallback label={t('metadata.noWorkFlow')} />
<IAINoContentFallback label={t('nodes.noWorkflow')} />
)}
</TabPanel>
</TabPanels>

View File

@@ -96,7 +96,7 @@ const AddNodePopover = () => {
(nodeType: AnyInvocationType) => {
const invocation = buildInvocation(nodeType);
if (!invocation) {
const errorMessage = t('nodes.unknownInvocation', {
const errorMessage = t('nodes.unknownNode', {
nodeType: nodeType,
});
toaster({

View File

@@ -38,7 +38,7 @@ const EditableFieldTitle = forwardRef((props: Props, ref) => {
const dispatch = useAppDispatch();
const [localTitle, setLocalTitle] = useState(
label || fieldTemplateTitle || t('nodes.unknownFeild')
label || fieldTemplateTitle || t('nodes.unknownField')
);
const handleSubmit = useCallback(

View File

@@ -83,7 +83,7 @@ const InspectorOutputsTab = () => {
/>
))
) : (
<DataViewer data={nes.outputs} label={t('nodes.nodesOutputs')} />
<DataViewer data={nes.outputs} label={t('nodes.nodeOutputs')} />
)}
</Flex>
</ScrollableContent>

View File

@@ -38,7 +38,7 @@ const NodeTemplateInspector = () => {
);
}
return <DataViewer data={template} label={t('nodes.NodeTemplate')} />;
return <DataViewer data={template} label={t('nodes.nodeTemplate')} />;
};
export default memo(NodeTemplateInspector);

View File

@@ -73,7 +73,7 @@ export const validateWorkflow = (
!(edge.sourceHandle in sourceNode.data.outputs)
) {
issues.push(
`${i18n.t('nodes.outputNodes')} "${edge.source}.${
`${i18n.t('nodes.outputNode')} "${edge.source}.${
edge.sourceHandle
}" ${i18n.t('nodes.doesNotExist')}`
);
@@ -89,7 +89,7 @@ export const validateWorkflow = (
!(edge.targetHandle in targetNode.data.inputs)
) {
issues.push(
`${i18n.t('nodes.inputFeilds')} "${edge.target}.${
`${i18n.t('nodes.inputField')} "${edge.target}.${
edge.targetHandle
}" ${i18n.t('nodes.doesNotExist')}`
);

View File

@@ -37,7 +37,7 @@ const FloatingGalleryButton = ({
<IAIIconButton
tooltip="Show Gallery (G)"
tooltipProps={{ placement: 'top' }}
aria-label={t('common.showGalleryPanel')}
aria-label={t('accessibility.showGalleryPanel')}
onClick={handleShowGallery}
icon={<MdPhotoLibrary />}
sx={{

View File

@@ -47,8 +47,8 @@ const FloatingSidePanelButtons = ({
>
<ButtonGroup isAttached orientation="vertical" flexGrow={3}>
<IAIIconButton
tooltip="Show Side Panel (O, T)"
aria-label={t('common.showOptionsPanel')}
tooltip={t('parameters.showOptionsPanel')}
aria-label={t('parameters.showOptionsPanel')}
onClick={handleShowSidePanel}
sx={floatingButtonStyles}
icon={<FaSlidersH />}

View File

@@ -49,7 +49,7 @@ export default function SimpleAddModels() {
dispatch(
addToast(
makeToast({
title: t('toast.modelAddSimple'),
title: t('toast.modelAddedSimple'),
status: 'success',
})
)