mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-03-09 15:40:18 +00:00
Fixed ordering in translate.json.
This commit is contained in:
parent
ac440d931c
commit
90691f7273
3 changed files with 3123 additions and 3123 deletions
|
@ -251,7 +251,7 @@ module.exports.translationsToJson = function(t) {
|
|||
for (var i in arr) {
|
||||
var names = [], el = arr[i], el2 = {};
|
||||
for (var j in el) { names.push(j); }
|
||||
names.sort();
|
||||
names.sort(function (a, b) { if (a == b) { return 0; } if (a == 'xloc') { return 1; } if (b == 'xloc') { return -1; } return a - b });
|
||||
for (var j in names) { el2[names[j]] = el[names[j]]; }
|
||||
if (el2.xloc != null) { el2.xloc.sort(); }
|
||||
arr2.push(el2);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue