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": "علي", "of": "علي",
"with the email address": " بعنوان بريدك الالكتروني", "with the email address": " بعنوان بريدك الالكتروني",
"with this tag": " بهذا التصنيف" "with this tag": " بهذا التصنيف"
} }

View file

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

View file

@ -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"
} }

View file

@ -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"
} }

View file

@ -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"
} }

View file

@ -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"
} }

View file

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

View file

@ -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é"
} }

View file

@ -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é"
} }

View file

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

View file

@ -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"
} }

View file

@ -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"
} }

View file

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

View file

@ -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"
} }

View file

@ -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"
} }

View file

@ -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"
} }

View file

@ -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"
} }

View file

@ -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"
} }

View file

@ -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"
} }

View file

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

View file

@ -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"
} }

View file

@ -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"
} }

View file

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

View file

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

View file

@ -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')
); );
}); });
}); });