Indented and sorted data
This commit is contained in:
parent
6a41d56a82
commit
093efbe357
2 changed files with 10430 additions and 2 deletions
10428
res/data.json
10428
res/data.json
File diff suppressed because one or more lines are too long
|
@ -565,8 +565,10 @@ const sortRecursive = (obj) => {
|
|||
};
|
||||
|
||||
const saveUpdatedData = () => {
|
||||
sortRecursive(data);
|
||||
|
||||
localStorage.setItem('tunic_manual_translation.data', JSON.stringify(data));
|
||||
console.debug("Updated data:", JSON.stringify(data));
|
||||
console.debug("Updated data:", JSON.stringify(data, null, " "));
|
||||
};
|
||||
|
||||
data = /** @type {Database | null}*/(JSON.parse(localStorage.getItem('tunic_manual_translation.data') || 'null')) ?? data;
|
||||
|
|
Loading…
Reference in a new issue