diff options
author | Daniel Weipert <code@drogueronin.de> | 2023-08-19 21:04:02 +0200 |
---|---|---|
committer | Daniel Weipert <code@drogueronin.de> | 2023-08-19 21:04:02 +0200 |
commit | 1a3489d4026656f83504a0154c294a5b6cf76a61 (patch) | |
tree | 94ad14426b175116b50e6d9a42c47f6d95110ada /resources/js/memory.js | |
parent | c1fe94a630a88c4f7203d54f34985c109030791c (diff) |
settings menu with language selection
Diffstat (limited to 'resources/js/memory.js')
-rw-r--r-- | resources/js/memory.js | 3 |
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))); |