File tree 3 files changed +3
-56
lines changed
3 files changed +3
-56
lines changed Original file line number Diff line number Diff line change 1
1
import polyfillNumberFormat from './polyfillNumberFormat' ;
2
2
import polyfillListFormat from './polyfillListFormat' ;
3
3
import IntlPolyfill from './types' ;
4
- import polyfillDateTimeFormat from './polyfillDateTimeFormat' ;
5
4
6
5
/**
7
6
* Polyfill the Intl API, always performed for native devices.
@@ -11,8 +10,8 @@ const intlPolyfill: IntlPolyfill = () => {
11
10
require ( '@formatjs/intl-getcanonicallocales/polyfill' ) ;
12
11
require ( '@formatjs/intl-locale/polyfill' ) ;
13
12
require ( '@formatjs/intl-pluralrules/polyfill' ) ;
13
+ require ( '@formatjs/intl-datetimeformat' ) ;
14
14
polyfillNumberFormat ( ) ;
15
- polyfillDateTimeFormat ( ) ;
16
15
polyfillListFormat ( ) ;
17
16
} ;
18
17
Original file line number Diff line number Diff line change 1
1
import polyfillNumberFormat from './polyfillNumberFormat' ;
2
2
import IntlPolyfill from './types' ;
3
- import polyfillDateTimeFormat from './polyfillDateTimeFormat' ;
4
3
5
4
/**
6
5
* Polyfill the Intl API if the ICU version is old.
7
6
* This ensures that the currency data is consistent across platforms and browsers.
8
7
*/
9
8
const intlPolyfill : IntlPolyfill = ( ) => {
9
+ // Just need to polyfill Intl.NumberFormat for web based platforms
10
10
polyfillNumberFormat ( ) ;
11
- polyfillDateTimeFormat ( ) ;
11
+ require ( '@formatjs/intl-datetimeformat' ) ;
12
12
} ;
13
13
export default intlPolyfill ;
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments