Description
I upgraded a project to React Admin v4. (And to api-platform/admin v3) I use the same i18nProvider file (than before) and the same attributes to use my custom translations.
How to reproduce
Use the api-platform/admin v3 with React Admin v4 and create an i18nProvier. After you will see translations like this:
Possible Solution
Use the React Admin only. If you use import { Admin } from "react-admin" instead of import { HydraAdmin } from "@api-platform/admin" then the translation works w/ the new version too. (It is not an option on a lot of project, I think.)
Downgrade one major version. (To the react-admin v3 and the @api-platform/admin v2)
API Platform version(s) affected: 3.x
Description
I upgraded a project to React Admin v4. (And to api-platform/admin v3) I use the same i18nProvider file (than before) and the same attributes to use my custom translations.
admin.js
i18nProvider.js
en.messages.js
How to reproduce
Use the api-platform/admin v3 with React Admin v4 and create an i18nProvier. After you will see translations like this:
Possible Solution
import { Admin } from "react-admin"
instead ofimport { HydraAdmin } from "@api-platform/admin"
then the translation works w/ the new version too. (It is not an option on a lot of project, I think.)react-admin
v3 and the@api-platform/admin
v2)Additional Context