Skip to content

Commit

Permalink
revert changes to admin.js since that uses a different i18n.js
Browse files Browse the repository at this point in the history
  • Loading branch information
InfiniteLee committed Aug 21, 2020
1 parent 7213278 commit 2aba686
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions admin/src/admin.js
Expand Up @@ -162,7 +162,7 @@ class AdminUI extends Component {
}

import { IntlProvider } from "react-intl";
import { getLocale, getMessages } from "./utils/i18n";
import { lang, messages } from "./utils/i18n";

const mountUI = async (retPhxChannel, customRoutes, layout) => {
let dataProvider;
Expand Down Expand Up @@ -196,7 +196,7 @@ const mountUI = async (retPhxChannel, customRoutes, layout) => {
};

ReactDOM.render(
<IntlProvider locale={getLocale()} messages={getMessages()}>
<IntlProvider locale={lang} messages={messages}>
<AdminUI
dataProvider={dataProvider}
authProvider={authProvider}
Expand Down

0 comments on commit 2aba686

Please sign in to comment.