aboutsummaryrefslogtreecommitdiff
path: root/app/index.js
diff options
context:
space:
mode:
authorfreddytuxworth <freddytuxworth@gmail.com>2020-06-26 12:05:42 +0100
committerGitHub <noreply@github.com>2020-06-26 13:05:42 +0200
commit2efa8b057e050e32eb2a45750ba5e6e7bd251fe7 (patch)
tree8b2cf5832aa9645bf49c9ed7219713c7f56e40df /app/index.js
parent1c4f76e3b84ae33823474f8c7970ff6f839f0b66 (diff)
Introduce internationalisation
Diffstat (limited to 'app/index.js')
-rw-r--r--app/index.js9
1 files changed, 7 insertions, 2 deletions
diff --git a/app/index.js b/app/index.js
index 3a22f18..0fe93cb 100644
--- a/app/index.js
+++ b/app/index.js
@@ -5,9 +5,10 @@
*/
import '@atlaskit/css-reset';
+import Spinner from '@atlaskit/spinner';
import { SpotlightManager } from '@atlaskit/onboarding';
-import React, { Component } from 'react';
+import React, { Component, Suspense } from 'react';
import { render } from 'react-dom';
import { Provider } from 'react-redux';
import { PersistGate } from 'redux-persist/integration/react';
@@ -15,6 +16,8 @@ import { PersistGate } from 'redux-persist/integration/react';
import { App } from './features/app';
import { persistor, store } from './features/redux';
+import './i18n';
+
/**
* Component encapsulating App component with redux store using provider.
*/
@@ -31,7 +34,9 @@ class Root extends Component<*> {
loading = { null }
persistor = { persistor }>
<SpotlightManager>
- <App />
+ <Suspense fallback = { <Spinner /> } >
+ <App />
+ </Suspense>
</SpotlightManager>
</PersistGate>
</Provider>