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 seems to be broken #3000

Closed
andrey-programmist opened this issue Mar 14, 2019 · 1 comment
Closed

Translation seems to be broken #3000

andrey-programmist opened this issue Mar 14, 2019 · 1 comment

Comments

@andrey-programmist
Copy link

What you were expecting:
Notifications and tooltips would be translated in corresponding language.

What happened instead:
Component shows translation key instead of translated phrase.
image

Sample code:
I use custom i18n provider like this:

import russianDomainMessages from './i18n/ru';
import russianMessages from 'ra-language-russian';
const messages = {
  ru: { ...russianMessages, ...russianDomainMessages },
};
const i18nProvider = locale => messages[locale];

const App = () => (
    <Admin
      locale="ru"
      i18nProvider={i18nProvider}
    >
        ...
    </Admin>
);

Helper info
translate HOC works fine.

Environment

  • React-admin version: 2.8.1
  • Last version that did not exhibit the issue (if applicable): 2.7.2
@andrey-programmist
Copy link
Author

Can't reproduce after clean cache and yarn reinstall

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