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:
@@ -81,6 +81,7 @@ Table of Contents
|
||||
- chartjs-plugin-crosshair v1.2.0 ([https://github.com/abelheinsbroek/chartjs-plugin-crosshair](https://github.com/abelheinsbroek/chartjs-plugin-crosshair))
|
||||
- OverlayScrollbars v1.13.3
|
||||
- flag-icon-css v4.1.4 ([https://github.com/lipis/flag-icon-css](https://github.com/lipis/flag-icon-css))
|
||||
- Intl.js (uses the v3.111.0 polyfill service to only download if using a browser that doesn't already support the ECMAScript Internationalization API)
|
||||
- Platform independent (tested to run on Windows, MacOS and Linux) **NOTE:** Most of the instructions in this guide were written for use with Linux and may need to be modified when using another OS
|
||||
- Mobile-friendly
|
||||
- Sass support
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user