Add newline at the end of locales files
This commit is contained in:
parent
010f2f0135
commit
116d799497
|
@ -36,4 +36,4 @@
|
|||
"of": "علي",
|
||||
"with the email address": " بعنوان بريدك الالكتروني",
|
||||
"with this tag": " بهذا التصنيف"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -37,4 +37,4 @@
|
|||
"of": "от",
|
||||
"with the email address": "с имейл адресa",
|
||||
"with this tag": "с този таг"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -44,4 +44,4 @@
|
|||
"of": "von",
|
||||
"with the email address": "erfolgreich mit folgender E-Mail Adresse abonniert",
|
||||
"with this tag": "mit diesem Tag"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -44,4 +44,4 @@
|
|||
"of": "von",
|
||||
"with the email address": "erfolgreich mit folgender E-Mail Adresse abonniert",
|
||||
"with this tag": "mit diesem Tag"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -45,4 +45,4 @@
|
|||
"of": "of",
|
||||
"with the email address": "with the email address",
|
||||
"with this tag": "with this tag"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -45,4 +45,4 @@
|
|||
"of": "de",
|
||||
"with the email address": "con la dirección de correo electrónico",
|
||||
"with this tag": "con esta etiqueta"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -45,4 +45,4 @@
|
|||
"of": "از",
|
||||
"with the email address": "با آدرس ایمیل",
|
||||
"with this tag": "با این تگ"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -44,4 +44,4 @@
|
|||
"of": "de",
|
||||
"with the email address": "avec l'adresse email",
|
||||
"with this tag": "avec ce mot clé"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -44,4 +44,4 @@
|
|||
"of": "de",
|
||||
"with the email address": "avec l'adresse email",
|
||||
"with this tag": "avec ce mot clé"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -36,4 +36,4 @@
|
|||
"of": "של",
|
||||
"with the email address": "עם כתובת האימייל",
|
||||
"with this tag": "עם התגית הזו"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -37,4 +37,4 @@
|
|||
"of": "dari",
|
||||
"with the email address": "dengan alamat email",
|
||||
"with this tag": "dengan tag ini"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -36,4 +36,4 @@
|
|||
"of": "di",
|
||||
"with the email address": "con l'indirizzo email",
|
||||
"with this tag": "con questo tag"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -45,4 +45,4 @@
|
|||
"of": "/",
|
||||
"with the email address": "email-дарек менен",
|
||||
"with this tag": "ушундай эле тег менен"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -44,4 +44,4 @@
|
|||
"of": "iš",
|
||||
"with the email address": "Su pašto adresu",
|
||||
"with this tag": "Su šia žyme"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -45,4 +45,4 @@
|
|||
"of": "of",
|
||||
"with the email address": "met het email adres",
|
||||
"with this tag": "met de tag"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -37,4 +37,4 @@
|
|||
"of": "z",
|
||||
"with the email address": "z adresem e-mail",
|
||||
"with this tag": "z tagiem"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -35,4 +35,4 @@
|
|||
"of": "de",
|
||||
"with the email address": "com seu email",
|
||||
"with this tag": "com este marcador"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -36,4 +36,4 @@
|
|||
"of": "de",
|
||||
"with the email address": "com endereço de email",
|
||||
"with this tag": "com esta etiqueta"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -37,4 +37,4 @@
|
|||
"of": "din",
|
||||
"with the email address": "cu adresa de email",
|
||||
"with this tag": "cu acest tag"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -36,4 +36,4 @@
|
|||
"of": "из",
|
||||
"with the email address": "с email-адресом",
|
||||
"with this tag": "с таким же тегом"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -37,4 +37,4 @@
|
|||
"of": "/",
|
||||
"with the email address": "e-posta ile",
|
||||
"with this tag": ", bu etiket ile"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -37,4 +37,4 @@
|
|||
"of": " / ",
|
||||
"with the email address": "在此邮箱",
|
||||
"with this tag": "包含此标签"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -37,4 +37,4 @@
|
|||
"of": " / ",
|
||||
"with the email address": "在此郵箱",
|
||||
"with this tag": "包含此標籤"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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')
|
||||
);
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue