mirror of
https://github.com/strapi/strapi.git
synced 2026-05-03 16:22:30 +00:00
fix(content-manager): wrap single type displayName with formatMessage (#25880)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user