Merge pull request #213 from rakleed/patch-1

Extract language from `html` instead of browser UI
This commit is contained in:
Dmitrii Selivanov authored and GitHub committed 2021-12-06 01:41:30 +03:00
commit e14b452b65
1 file changed
+2 -2
@@ -289,7 +289,7 @@ function roundDown(num) {
}
function numberFormat(numberState) {
const userLocales = navigator.language;
const userLocales = document.documentElement.lang;
const formatter = Intl.NumberFormat(userLocales, {
notation: "compact",
@@ -369,4 +369,4 @@ if (isMobile) {
setInterval(() => {
getDislikeButton().querySelector(".button-renderer-text").innerText = mobileDislikes;
}, 1000);
}
}