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