mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
feat(ui): updated field type translations
This commit is contained in:
parent
e88b807a13
commit
1c29b3bd85
@ -780,8 +780,9 @@
|
|||||||
"missingFieldTemplate": "Missing field template",
|
"missingFieldTemplate": "Missing field template",
|
||||||
"nodePack": "Node pack",
|
"nodePack": "Node pack",
|
||||||
"collection": "Collection",
|
"collection": "Collection",
|
||||||
"collectionFieldType": "{{name}} Collection",
|
"singleFieldType": "{{name}} (Single)",
|
||||||
"collectionOrScalarFieldType": "{{name}} Collection|Scalar",
|
"collectionFieldType": "{{name}} (Collection)",
|
||||||
|
"collectionOrScalarFieldType": "{{name}} (Single or Collection)",
|
||||||
"colorCodeEdges": "Color-Code Edges",
|
"colorCodeEdges": "Color-Code Edges",
|
||||||
"colorCodeEdgesHelp": "Color-code edges according to their connected fields",
|
"colorCodeEdgesHelp": "Color-code edges according to their connected fields",
|
||||||
"connectionWouldCreateCycle": "Connection would create a cycle",
|
"connectionWouldCreateCycle": "Connection would create a cycle",
|
||||||
|
@ -16,7 +16,7 @@ export const useFieldTypeName = (fieldType?: FieldType): string => {
|
|||||||
if (isSingleOrCollection(fieldType)) {
|
if (isSingleOrCollection(fieldType)) {
|
||||||
return t('nodes.collectionOrScalarFieldType', { name });
|
return t('nodes.collectionOrScalarFieldType', { name });
|
||||||
}
|
}
|
||||||
return name;
|
return t('nodes.singleFieldType', { name });
|
||||||
}, [fieldType, t]);
|
}, [fieldType, t]);
|
||||||
|
|
||||||
return name;
|
return name;
|
||||||
|
Loading…
Reference in New Issue
Block a user