summaryrefslogtreecommitdiff
path: root/resources/js/db.js
diff options
context:
space:
mode:
authorDaniel Weipert <code@drogueronin.de>2023-09-01 22:32:45 +0200
committerDaniel Weipert <code@drogueronin.de>2023-09-01 22:32:45 +0200
commit1d29ee6d87d3794a9319bca5bf36afdfe176072c (patch)
tree1e7e89ca87afd313b1806fcc80d456796b0af6db /resources/js/db.js
parent6b3a8aef783368d0ed9a2c104eea3ff5cf9984da (diff)
translations with fallback
Diffstat (limited to 'resources/js/db.js')
-rw-r--r--resources/js/db.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/resources/js/db.js b/resources/js/db.js
index 6e53b7e..d564851 100644
--- a/resources/js/db.js
+++ b/resources/js/db.js
@@ -123,6 +123,7 @@ async function initializeDB () {
DB.elements[element] = await fetchDBData(`/modules/tuxemon/mods/tuxemon/db/element/${element}.json`).then((response) => response.json());
}
+ await fetchTranslation('en_US'); // fallback
await fetchTranslation(Memory.state.Settings.language);
applyTranslation();