From 41d935cef8be154d887beffef2f2741d74c80e86 Mon Sep 17 00:00:00 2001 From: Marten Schiwek Date: Mon, 7 Oct 2024 07:56:13 +0200 Subject: [PATCH] Update localization.js --- lib/localization.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {