Add newline at the end of locales files

This commit is contained in:
Eduardo Gomez 2020-06-22 23:03:11 +02:00
parent 010f2f0135
commit 116d799497
25 changed files with 30 additions and 27 deletions

View file

@ -36,4 +36,4 @@
"of": "علي",
"with the email address": " بعنوان بريدك الالكتروني",
"with this tag": " بهذا التصنيف"
}
}

View file

@ -37,4 +37,4 @@
"of": "от",
"with the email address": "с имейл адресa",
"with this tag": "с този таг"
}
}

View file

@ -44,4 +44,4 @@
"of": "von",
"with the email address": "erfolgreich mit folgender E-Mail Adresse abonniert",
"with this tag": "mit diesem Tag"
}
}

View file

@ -44,4 +44,4 @@
"of": "von",
"with the email address": "erfolgreich mit folgender E-Mail Adresse abonniert",
"with this tag": "mit diesem Tag"
}
}

View file

@ -45,4 +45,4 @@
"of": "of",
"with the email address": "with the email address",
"with this tag": "with this tag"
}
}

View file

@ -45,4 +45,4 @@
"of": "de",
"with the email address": "con la dirección de correo electrónico",
"with this tag": "con esta etiqueta"
}
}

View file

@ -45,4 +45,4 @@
"of": "از",
"with the email address": "با آدرس ایمیل",
"with this tag": "با این تگ"
}
}

View file

@ -44,4 +44,4 @@
"of": "de",
"with the email address": "avec l'adresse email",
"with this tag": "avec ce mot clé"
}
}

View file

@ -44,4 +44,4 @@
"of": "de",
"with the email address": "avec l'adresse email",
"with this tag": "avec ce mot clé"
}
}

View file

@ -36,4 +36,4 @@
"of": "של",
"with the email address": "עם כתובת האימייל",
"with this tag": "עם התגית הזו"
}
}

View file

@ -37,4 +37,4 @@
"of": "dari",
"with the email address": "dengan alamat email",
"with this tag": "dengan tag ini"
}
}

View file

@ -36,4 +36,4 @@
"of": "di",
"with the email address": "con l'indirizzo email",
"with this tag": "con questo tag"
}
}

View file

@ -45,4 +45,4 @@
"of": "/",
"with the email address": "email-дарек менен",
"with this tag": "ушундай эле тег менен"
}
}

View file

@ -44,4 +44,4 @@
"of": "iš",
"with the email address": "Su pašto adresu",
"with this tag": "Su šia žyme"
}
}

View file

@ -45,4 +45,4 @@
"of": "of",
"with the email address": "met het email adres",
"with this tag": "met de tag"
}
}

View file

@ -37,4 +37,4 @@
"of": "z",
"with the email address": "z adresem e-mail",
"with this tag": "z tagiem"
}
}

View file

@ -35,4 +35,4 @@
"of": "de",
"with the email address": "com seu email",
"with this tag": "com este marcador"
}
}

View file

@ -36,4 +36,4 @@
"of": "de",
"with the email address": "com endereço de email",
"with this tag": "com esta etiqueta"
}
}

View file

@ -37,4 +37,4 @@
"of": "din",
"with the email address": "cu adresa de email",
"with this tag": "cu acest tag"
}
}

View file

@ -36,4 +36,4 @@
"of": "из",
"with the email address": "с email-адресом",
"with this tag": "с таким же тегом"
}
}

View file

@ -37,4 +37,4 @@
"of": "/",
"with the email address": "e-posta ile",
"with this tag": ", bu etiket ile"
}
}

View file

@ -36,4 +36,4 @@
"of": "của",
"with the email address": "với địa chỉ email",
"with this tag": "với thẻ tag này"
}
}

View file

@ -37,4 +37,4 @@
"of": " / ",
"with the email address": "在此邮箱",
"with this tag": "包含此标签"
}
}

View file

@ -37,4 +37,4 @@
"of": " / ",
"with the email address": "在此郵箱",
"with this tag": "包含此標籤"
}
}

View file

@ -2,21 +2,24 @@
const fs = require("fs");
const path = require("path");
const locales = "../locales";
fs.readdir(locales, function(err, files) {
files.forEach(function(file, index) {
if (err) return console.error(err);
files.forEach(function(file) {
const unordered = JSON.parse(fs.readFileSync(path.join(locales, file)));
const ordered = {};
Object.keys(unordered)
.sort()
.forEach(function(key) {
ordered[key] = unordered[key];
});
fs.writeFileSync(
path.join(locales, file),
JSON.stringify(ordered, null, 2)
JSON.stringify(ordered, null, 2).concat('\n')
);
});
});