Skip to content

Commit e2b87f3

Browse files
committed
Include a polyfill for Intl needed for Safari to work
1 parent 3d9b7fa commit e2b87f3

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@
101101
"es6-shim": "^0.33.3",
102102
"express": "^4.13.1",
103103
"gulp": "^3.8.11",
104+
"intl": "^1.1.0",
104105
"jquery": "^2.1.4",
105106
"jquery-ui": "^1.10.5",
106107
"moment": "^2.10.6",

tools/config.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,9 @@ export const DEV_NPM_DEPENDENCIES: InjectableDependency[] = normalizeDependencie
7272
{ src: 'angular2/bundles/http.js', inject: 'libs', dest: JS_DEST },
7373

7474
{ src: 'bootstrap/dist/css/bootstrap.css', inject: true, dest: CSS_DEST },
75-
{ src: 'jquery-ui/themes/base/jquery-ui.css', inject: true, dest: CSS_DEST }
75+
{ src: 'jquery-ui/themes/base/jquery-ui.css', inject: true, dest: CSS_DEST },
76+
{ src: 'intl/dist/Intl.js', inject: 'shims', dest: JS_DEST }, // Fixes Safari Intl support
77+
{ src: 'intl/locale-data/jsonp/en.js', inject: 'shims', dest: JS_DEST } // Need this too.
7678
]);
7779

7880
export const PROD_NPM_DEPENDENCIES: InjectableDependency[] = normalizeDependencies([
@@ -83,8 +85,9 @@ export const PROD_NPM_DEPENDENCIES: InjectableDependency[] = normalizeDependenci
8385
{ src: 'angular2/bundles/angular2-polyfills.min.js', inject: 'libs' },
8486

8587
{ src: 'bootstrap/dist/css/bootstrap.css', inject: true, dest: CSS_DEST },
86-
{ src: 'jquery-ui/themes/base/jquery-ui.css', inject: true, dest: CSS_DEST }
87-
88+
{ src: 'jquery-ui/themes/base/jquery-ui.css', inject: true, dest: CSS_DEST },
89+
{ src: 'intl/dist/Intl.js', inject: 'shims'}, // Fixes Safari Intl support
90+
{ src: 'intl/locale-data/jsonp/en.js', inject: 'shims'} // Need this too.
8891
]);
8992

9093
// Declare local files that needs to be injected

0 commit comments

Comments
 (0)