diff --git a/packages/ra-ui-materialui/src/input/TranslatableInputsTabContent.tsx b/packages/ra-ui-materialui/src/input/TranslatableInputsTabContent.tsx index f1a4f44fd49..a5ca53fb311 100644 --- a/packages/ra-ui-materialui/src/input/TranslatableInputsTabContent.tsx +++ b/packages/ra-ui-materialui/src/input/TranslatableInputsTabContent.tsx @@ -28,10 +28,9 @@ export const TranslatableInputsTabContent = ( () => ({ getSource: (source: string) => `${source}.${locale}`, getLabel: (source: string) => { - const itemSource = source.replace(`.${locale}`, ''); return parentSourceContext - ? parentSourceContext.getLabel(itemSource) - : getResourceFieldLabelKey(resource, itemSource); + ? parentSourceContext.getLabel(source) + : getResourceFieldLabelKey(resource, source); }, }), [locale, parentSourceContext, resource]