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

Doesn't work with react-admin v3 #10

Open
1 of 2 tasks
rreckonerr opened this issue Feb 3, 2021 · 0 comments
Open
1 of 2 tasks

Doesn't work with react-admin v3 #10

rreckonerr opened this issue Feb 3, 2021 · 0 comments

Comments

@rreckonerr
Copy link

react-admin-intl

Before opening a new issue, please take a moment to review our community guidelines to make the contribution process easy and effective for everyone involved.

Before opening a new issue, you may find an answer in already closed issues:
https://github.com/yeutech-lab/react-admin-intl/issues?q=is%3Aissue+is%3Aclosed

Issue Type

Description

react-admin-intl doesn't support react-admin v3. Specifically the swapPolyglotWithReactIntl won't actually replace the TranslationProvider provided by the react-admin.
Alias for ../i18n/TranslationProvider (notice the one extra dot in the beginning of the path) will result in error:

Uncaught TypeError: can't access property "locale", state.i18n is undefined

Steps to reproduce

Follow the installation instructions, see that bundle doesn't include the TranslationProvider from react-admin-intl after overriding webpack config with swapPolyglotWithReactIntl

Versions

  • Node/NPM: latest
  • OS: latest
  • react-admin-intl: latest
  • react-admin: latest
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant