Skip to content
This repository has been archived by the owner on Dec 14, 2022. It is now read-only.

Commit

Permalink
feat: init i18n and blocks
Browse files Browse the repository at this point in the history
Signed-off-by: Mike Murray <hellomikemurray@gmail.com>
  • Loading branch information
mikemurray committed Apr 7, 2020
1 parent 6e3e427 commit f4cda84
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions package/src/lib/core/reaction.js
Expand Up @@ -3,6 +3,8 @@ import ReactDOM from "react-dom";
import initApollo from "../graphql/initApollo";
import { getOidcProps } from "./authentication";
import { plugins } from "./plugins";
import { initI18next } from "./i18n";
import { loadRegisteredBlocks } from "./blocks";

/**
* The starting point for the web-app
Expand All @@ -25,6 +27,12 @@ export function Reaction(props) {
// Initialize apollo client to be used for the ApolloProvider in the AppComponent
const apolloClient = initApollo({ graphqlApiUrl: PUBLIC_GRAPHQL_API_URL });

// Init i18next
initI18next();

// Load registered blocks
loadRegisteredBlocks();

// Create OIDC props to be used on the AuthenticationProvider in the AppComponent
const authenticationProviderProps = getOidcProps({
oidcClientId: PUBLIC_OIDC_CLIENT_ID,
Expand Down

0 comments on commit f4cda84

Please sign in to comment.