silverbulletmd / silverbullet

The knowledge tinkerer's notebook
https://silverbullet.md
MIT License
2.34k stars 169 forks source link

Add the Intl DateTimeFormat polyfill for space scripts without overwriting other Intl classes #836

Closed daniel-michel closed 6 months ago

daniel-michel commented 6 months ago

The Intl polyfill provided by js-temporal only includes the DateTimeFormat class. Because the global Intl is replaced with it, the other classes provided by Intl are not accessible.

I changed it, so the Intl polyfill gets applied to the global Intl, therefore only replacing the DateTimeFormat.

zefhemel commented 6 months ago

Nice!