1
0
Fork 0

Indented and sorted data

This commit is contained in:
Fabio Iotti 2024-12-09 20:23:31 +01:00
parent 6a41d56a82
commit 093efbe357
Signed by: bruce965
GPG key ID: 4EC13D9158A96B4C
2 changed files with 10430 additions and 2 deletions

File diff suppressed because one or more lines are too long

View file

@ -565,8 +565,10 @@ const sortRecursive = (obj) => {
}; };
const saveUpdatedData = () => { const saveUpdatedData = () => {
sortRecursive(data);
localStorage.setItem('tunic_manual_translation.data', JSON.stringify(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; data = /** @type {Database | null}*/(JSON.parse(localStorage.getItem('tunic_manual_translation.data') || 'null')) ?? data;