This commit is contained in:
Dmitrii Selivanov committed 2022-04-27 00:56:05 +02:00
1 parent c3c13738e7
commit 0df5bb75e7
9 files changed
+92 -77

No files matched your search

+8
View File
@@ -36,6 +36,14 @@ function localize(localeString) {
function getNumberFormatter(optionSelect) {
let formatterNotation;
let formatterCompactDisplay;
let userLocales;
try {
userLocales = new URL(
Array.from(document.querySelectorAll("head > link[rel='search']"))
?.find((n) => n?.getAttribute("href")?.includes("?locale="))
?.getAttribute("href")
)?.searchParams?.get("locale");
} catch {}
switch (optionSelect) {
case "compactLong":