Skip to content
This repository was archived by the owner on Apr 14, 2021. It is now read-only.

Commit a2da64d

Browse files
committed
Merge pull request #61 from caridy/global-intl
setting global.Intl if the runtime does not have a built-in version of Intl
2 parents 9f66bf0 + 71c1d4f commit a2da64d

File tree

4 files changed

+158
-134
lines changed

4 files changed

+158
-134
lines changed

Intl.complete.js

+134-128
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Intl.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,10 @@
2020
if (typeof exports === 'object') {
2121
module.exports = IntlPolyfill;
2222
}
23-
if (global) {
24-
global.IntlPolyfill = IntlPolyfill;
23+
if (!global.Intl) {
24+
global.Intl = IntlPolyfill;
2525
}
26+
global.IntlPolyfill = IntlPolyfill;
2627
})(typeof global !== 'undefined' ? global : this, function() {
2728
"use strict";
2829
var

0 commit comments

Comments
 (0)