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",
"nodePack": "Node pack",
"collection": "Collection",
"collectionFieldType": "{{name}} Collection",
"collectionOrScalarFieldType": "{{name}} Collection|Scalar",
"singleFieldType": "{{name}} (Single)",
"collectionFieldType": "{{name}} (Collection)",
"collectionOrScalarFieldType": "{{name}} (Single or Collection)",
"colorCodeEdges": "Color-Code Edges",
"colorCodeEdgesHelp": "Color-code edges according to their connected fields",
"connectionWouldCreateCycle": "Connection would create a cycle",

View File

@ -16,7 +16,7 @@ export const useFieldTypeName = (fieldType?: FieldType): string => {
if (isSingleOrCollection(fieldType)) {
return t('nodes.collectionOrScalarFieldType', { name });
}
return name;
return t('nodes.singleFieldType', { name });
}, [fieldType, t]);
return name;