summaryrefslogtreecommitdiff
path: root/resources/js/memory.js
diff options
context:
space:
mode:
Diffstat (limited to 'resources/js/memory.js')
-rw-r--r--resources/js/memory.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/resources/js/memory.js b/resources/js/memory.js
index 81acf89..1732472 100644
--- a/resources/js/memory.js
+++ b/resources/js/memory.js
@@ -131,6 +131,9 @@ const Memory = {
*/
const loadedState = JSON.parse(atob(saveData));
+ Memory.state.language = loadedState.language;
+ await fetchTranslation(Memory.state.language);
+
Memory.state.turn = loadedState.turn;
Memory.state.money = loadedState.money;
Memory.state.monsters = await Promise.all(loadedState.monsters.map(async (monsterData) => await loadMonster(monsterData)));