mirror of
https://github.com/tiennm99/WPlace-AutoBOT.git
synced 2026-10-14 22:17:16 +00:00
ReferenceError: Cannot access 'loadedTranslations' before initialization should now be fixed
This commit is contained in:
1 parent
8313fed149
commit
7940410f8f
1 file changed
+6
-6
+6
-6
@@ -211,6 +211,12 @@
|
||||
}
|
||||
}
|
||||
|
||||
// Simple translation cache
|
||||
const translationCache = new Map();
|
||||
|
||||
// Dynamically loaded translations
|
||||
let loadedTranslations = {};
|
||||
|
||||
const loadLanguagePreference = async () => {
|
||||
const savedLanguage = localStorage.getItem("wplace_language")
|
||||
|
||||
@@ -250,12 +256,6 @@
|
||||
await loadTranslations("en")
|
||||
}
|
||||
|
||||
// Simple translation cache
|
||||
const translationCache = new Map();
|
||||
|
||||
// Dynamically loaded translations
|
||||
let loadedTranslations = {};
|
||||
|
||||
// Available languages
|
||||
const AVAILABLE_LANGUAGES = ['en', 'ru', 'pt', 'vi', 'fr', 'id', 'tr', 'zh-CN', 'zh-TW', 'ja', 'ko', 'uk'];
|
||||
|
||||
|
||||
Reference in new issue
Block a user