Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Translation is partially not present on ReferenceInput when used as a filter #7817

Closed
soullivaneuh opened this issue Jun 11, 2022 · 1 comment · Fixed by #7825
Closed

Translation is partially not present on ReferenceInput when used as a filter #7817

soullivaneuh opened this issue Jun 11, 2022 · 1 comment · Fixed by #7825

Comments

@soullivaneuh
Copy link
Contributor

What you were expecting:
A filter using the ReferenceInput should be translated.

What happened instead:
A filter using the ReferenceInput is translated on the filter selector, but not on the input label.

Steps to reproduce:

  1. Change the language of the dashboard to french
  2. Go to the comment list
  3. Click on "Filter"
  4. Select the "Article" filter

Related code:

https://codesandbox.io/s/github/marmelab/react-admin/tree/master/examples/simple

Note: No need to fork and modify the base sandbox, the bug is already present on it.

Other information:

Translated filter on choice list ![image](https://user-images.githubusercontent.com/1698357/173192409-20ebc639-c22d-47a0-9c1f-63628e06988f.png)
Not translated filter when set ![image](https://user-images.githubusercontent.com/1698357/173192434-fcad4b81-f3c7-4748-a57a-c4f5e3c38928.png)

Environment

  • React-admin version: v4
  • Last version that did not exhibit the issue (if applicable): v3
  • React version: v17
@antoinefricker
Copy link
Contributor

Thanks for pointing this out. Bug confirmed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants