diff --git a/lib/localization.js b/lib/localization.js index 2fd5b39..2eeee21 100644 --- a/lib/localization.js +++ b/lib/localization.js @@ -98,7 +98,7 @@ const _getLabelI18nKeyOnEntity = function (entityName, /** optinal */ attribute) let def = cds.model.definitions[entityName]; if (attribute) def = def?.elements[attribute] if (!def) return ""; - return def['@Common.Label'] || def['@title']; + return def['@Common.Label'] || def['@title'] || def['@UI.HeaderInfo.TypeName']; }; const localizeLogFields = function (data, locale) {