-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #29576 from situchan/revert-29113-fix/27927
[No QA] Revert "Add `DateTimeFormat` polyfill" (cherry picked from commit c5aa2aa)
- Loading branch information
Showing
3 changed files
with
3 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
import polyfillNumberFormat from './polyfillNumberFormat'; | ||
import IntlPolyfill from './types'; | ||
import polyfillDateTimeFormat from './polyfillDateTimeFormat'; | ||
|
||
/** | ||
* Polyfill the Intl API if the ICU version is old. | ||
* This ensures that the currency data is consistent across platforms and browsers. | ||
*/ | ||
const intlPolyfill: IntlPolyfill = () => { | ||
// Just need to polyfill Intl.NumberFormat for web based platforms | ||
polyfillNumberFormat(); | ||
polyfillDateTimeFormat(); | ||
require('@formatjs/intl-datetimeformat'); | ||
}; | ||
export default intlPolyfill; |
This file was deleted.
Oops, something went wrong.