diff --git a/app-down/400.html b/app-down/400.html index 50c7b9d..d45e9c0 100644 --- a/app-down/400.html +++ b/app-down/400.html @@ -71,17 +71,17 @@
-

Bad Request

-

The server did not understand the request

+

Bad Request

+

The server did not understand the request

-

Double-check the URL.

+

Double-check the URL.

@@ -201,6 +201,15 @@ $el.style.display = 'none'; // hide the element } }); + + if (navigator.language.substring(0, 2).toLowerCase() !== 'en') { + ((s, p) => { // localize the page (details here - https://github.com/tarampampam/error-pages/tree/master/l10n) + s.src = 'https://cdn.jsdelivr.net/gh/tarampampam/error-pages@2/l10n/l10n.min.js'; // '../l10n/l10n.js'; + s.async = s.defer = true; + s.addEventListener('load', () => p.removeChild(s)); + p.appendChild(s); + })(document.createElement('script'), document.body); + }