Added ECMAScript Internationalization API support

-Most modern browsers already have ECMAScript Internationalization API support built-in, but many older browsers do not. For these unsupported browsers, Luxon would fail to load the formatted dates on many of the explorer pages which would cause a cascading effect of not loading other data leading to a broken experience. A polyfilled version of Intl.js is now being loaded into the site which will only be downloaded when using a browser that does not already have Internationalization API support
This commit is contained in:
Joe Uhren
2023-09-29 21:46:45 -06:00
parent e436b9bee4
commit 3dca953980
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -1,3 +1,4 @@
script(type='text/javascript', src='https://polyfill.io/v3/polyfill.min.js?version=3.111.0&features=Intl')
script(type='text/javascript', src='https://cdn.jsdelivr.net/npm/luxon@2.1.1/build/global/luxon.min.js')
script.
function format_unixtime(unixtime, alt) {