fix(content-manager): wrap single type displayName with formatMessage (#25880)

This commit is contained in:
guoyangzhen
2026-04-02 19:58:10 +08:00
committed by GitHub
parent e26d2748a2
commit 2ea4c8ccbe
@@ -140,7 +140,10 @@ const useDocument: UseDocument = (args, opts) => {
// When it's a singleType without a mainField, use the contentType displayName
if (schema?.kind === 'singleType' && schema.info.displayName) {
return schema.info.displayName;
return formatMessage({
id: schema.info.displayName,
defaultMessage: schema.info.displayName,
});
}
// Otherwise, use a fallback