You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What you were expecting:
When nesting Field Components into a SimpleShowLayout the Label should be correctly translated. What happened instead:
After migration to react-admin v5 the Fields in a SimpleShow Layout have not the correct translation Steps to reproduce:
Just nest Fields into a SimpleShowLayout with a translation of fields to a resource in place Related code:
According to my initial analysis, it doesn't come from a Resource Context problem, but from a logic problem in useTranslateLabel or getFieldTranslationArgs.
What you were expecting:
When nesting Field Components into a SimpleShowLayout the Label should be correctly translated.
What happened instead:
After migration to react-admin v5 the Fields in a SimpleShow Layout have not the correct translation
Steps to reproduce:
Just nest Fields into a SimpleShowLayout with a translation of fields to a resource in place
Related code:
SimpleShowLayout is not passing resource to Labeled
https://github.com/marmelab/react-admin/blob/master/packages/ra-ui-materialui/src/detail/SimpleShowLayout.tsx
Labeled ist only using the passed resource prop and not also the ResourceContext
https://github.com/marmelab/react-admin/blob/master/packages/ra-ui-materialui/src/Labeled.tsx
Environment
The text was updated successfully, but these errors were encountered: