ViewSettingsMenu doesnt display translated column name
Y
Yannis Kommana
I have translated my column names and they appear correctly in the conent manager table view. But in the view settings, the original, un-translated names appear.
Relevant code line:
strapi/packages/core/content-manager/admin/src/pages/ListView/components/ViewSettingsMenu.tsx
Line 165 in 6d1dbc9
<Typography fontSize={1}>{header.label}</Typography>
My thoughts on this, shouldn't it be implemented like it is here?
strapi/packages/core/content-manager/admin/src/pages/ListView/ListViewPage.tsx
Lines 158 to 171 in 6d1dbc9
const translation =
typeof header.label === 'string'
? {
id:
content-manager.content-types.${model}.${header.name}
, defaultMessage: header.label,
}
: header.label;
return {
...header,
label: formatMessage(translation),
};
});
This issue was first posted to Github but apparently never moved here https://github.com/strapi/strapi/issues/23041