feat(ui): updated field type translations

This commit is contained in:
psychedelicious 2024-05-19 23:24:16 +10:00
parent e88b807a13
commit 1c29b3bd85
2 changed files with 4 additions and 3 deletions

View File

@ -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",

View File

@ -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;