Language selector for items in webui #407
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "webui-lang"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@ -88,3 +88,3 @@
const req = $.get("/custom/getItemLists");
const req = $.get(`/custom/getItemLists?lang=${localStorage.getItem("lang")}`);
req.done(data => {
window.archonCrystalUpgrades = data.archonCrystalUpgrades;
Is this not an issue when the localStorage does not have a "lang" field?
Also, I feel like it would be better to get the dict based on the language once and then do the lookups instead of having to find the dict for every single key we want to look up.
@ -88,3 +88,3 @@
const req = $.get("/custom/getItemLists");
const req = $.get(`/custom/getItemLists?lang=${localStorage.getItem("lang")}`);
req.done(data => {
window.archonCrystalUpgrades = data.archonCrystalUpgrades;
Nope, getString by default returns strings for en
@Sainan let me know once you think this is ready to be merged
This will be a funny merge conflict with my PR, but yeah, I can take that burden, given that I at least know how to use Git.
Pull request closed