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

Not working #2

Closed
cgarrotti opened this issue Jul 6, 2020 · 3 comments
Closed

Not working #2

cgarrotti opened this issue Jul 6, 2020 · 3 comments
Labels
invalid This doesn't seem right

Comments

@cgarrotti
Copy link

Not working, button SAVE appear: RA.ACTION.SAVE

@gucarletto
Copy link
Owner

The referred key exists. Try removing package-lock.json and node_modules and then npm install again. Take a look at this issue:
marmelab/react-admin#3007

@gucarletto gucarletto added the invalid This doesn't seem right label Jul 7, 2020
@cgarrotti
Copy link
Author

I deleted the package-lock and did the npm install again, but the error remains.

My codesandbox:
https://codesandbox.io/s/material-demo-d66fk?file=/demo.js

@luankjs
Copy link

luankjs commented Nov 13, 2020

@cgarrotti property 'locale' is deprecated.
You should create the provider specifing the language or getting it from the browser

import { resolveBrowserLocale } from 'react-admin'
const i18nProvider = polyglotI18nProvider(locale => messages[locale], resolveBrowserLocale()) // or 'pt-br'

https://stackoverflow.com/questions/60391967/understanding-react-admin-translation

I had the same problem and solve it removing 'locale' and force 'pt-br' on provider creation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

3 participants