We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f0cac5b commit be55c40Copy full SHA for be55c40
proxy/js/ui.js
@@ -54,7 +54,12 @@ function getFlagEmoji(countryCode) {
54
return String.fromCodePoint(...codePoints);
55
}
56
57
-const locale = new Intl.Locale(navigator.language);
+let locale = new Intl.Locale(navigator.language);
58
+window.addEventListener('languagechange', () => {
59
+ locale = new Intl.Locale(navigator.language);
60
+ console.info(`Browser language changed to ${locale.language}`);
61
+ onStyleChange();
62
+})
63
64
const icons = {
65
railway: {
0 commit comments