This repository was archived by the owner on Jan 4, 2018. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +20
-7
lines changed Expand file tree Collapse file tree 2 files changed +20
-7
lines changed Original file line number Diff line number Diff line change @@ -5,8 +5,20 @@ import ReactDOM from 'react-dom'
5
5
import { Provider } from 'react-redux'
6
6
import Root , { store } from './Root'
7
7
8
- ReactDOM . render (
9
- < Provider store = { store } >
10
- < Root />
11
- </ Provider >
12
- , document . getElementById ( 'app' ) )
8
+ // All modern browsers, expect `Safari`, have implemented
9
+ // the `ECMAScript Internationalization API`.
10
+ // For that we need to patch in on runtime.
11
+ if ( ! global . Intl )
12
+ require . ensure ( [ 'intl' ] , require => {
13
+ require ( 'intl' )
14
+ start ( )
15
+ } , 'IntlBundle' )
16
+ else start ( )
17
+
18
+ function start ( ) {
19
+ ReactDOM . render (
20
+ < Provider store = { store } >
21
+ < Root />
22
+ </ Provider >
23
+ , document . getElementById ( 'app' ) )
24
+ }
Original file line number Diff line number Diff line change 28
28
"babel-runtime" : " ^5.8.29" ,
29
29
"classnames" : " ^2.2.0" ,
30
30
"history" : " ^1.13.0" ,
31
+ "intl" : " ^1.0.1" ,
31
32
"parse-link-header" : " ^0.4.1" ,
32
33
"purecss" : " ^0.6.0" ,
33
34
"react" : " ^0.14.1" ,
34
35
"react-dom" : " ^0.14.1" ,
35
- "react-intl" : " 2.0.0-pr-3 " ,
36
+ "react-intl" : " 2.0.0-beta-1 " ,
36
37
"react-pure-render" : " ^1.0.2" ,
37
38
"react-redux" : " ^4.0.0" ,
38
39
"react-router" : " ^1.0.0-rc3" ,
39
40
"redux" : " ^3.0.4" ,
40
41
"redux-devtools" : " ^3.0.0-beta-3" ,
41
- "redux-devtools-log-monitor" : " ^1.0.0-beta-3" ,
42
42
"redux-devtools-dock-monitor" : " ^1.0.0-beta-3" ,
43
+ "redux-devtools-log-monitor" : " ^1.0.0-beta-3" ,
43
44
"redux-router" : " ^1.0.0-beta3" ,
44
45
"redux-thunk" : " ^1.0.0" ,
45
46
"whatwg-fetch" : " ^0.10.0"
You can’t perform that action at this time.
0 commit comments