Skip to content

Commit

Permalink
Fix outdated i18n syntax in ra-tree-material-ui documentation
Browse files Browse the repository at this point in the history
Closes marmelab#2980 for good
  • Loading branch information
fzaninotto authored and ghodsizadeh committed May 21, 2019
1 parent 6d20334 commit 1e487f8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/ra-tree-ui-materialui/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,13 @@ import tags from './tags';
const messages = {
'en': mergeTranslations(englishMessages, treeEnglishMessages),
};
const i18nProvider = locale => messages[locale];

const App = () => (
<Admin
dataProvider={dataProvider}
i18nProvider={i18nProvider}
locale="en"
messages={messages}
customReducers={{ tree }}
>
<Resource name="posts" {...posts} />
Expand Down

0 comments on commit 1e487f8

Please sign in to comment.