We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 14be390 commit b3cfe24Copy full SHA for b3cfe24
packages/ra-i18n-polyglot/src/index.stories.tsx
@@ -51,7 +51,6 @@ export const Basic = () => {
51
};
52
53
export const AsynchronousLocaleChange = () => {
54
- const [locale, setLocale] = React.useState('en');
55
const getAsyncMessages = locale => {
56
if (locale === 'en') {
57
// initial call, must return synchronously
@@ -63,7 +62,7 @@ export const AsynchronousLocaleChange = () => {
63
62
}, 1000);
64
});
65
66
- const i18nProvider = polyglotI18nProvider(getAsyncMessages, locale, [
+ const i18nProvider = polyglotI18nProvider(getAsyncMessages, 'en', [
67
{ locale: 'en', name: 'English' },
68
{ locale: 'fr', name: 'Français' },
69
]);
0 commit comments