Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
AnnAngela authored Mar 27, 2022
1 parent 381605a commit 96289fe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions extra/update-language-files/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const files = fs.readdirSync("./languages");
console.log("Files:", files);

for (const file of files) {
if (!file.endsWith(".js")) {
if (! file.endsWith(".js")) {
console.log("Skipping " + file);
continue;
}
Expand All @@ -62,15 +62,15 @@ for (const file of files) {

// En first
for (const key in en) {
if (!obj[key]) {
if (! obj[key]) {
obj[key] = en[key];
}
}

if (baseLang !== en) {
// Base second
for (const key in baseLang) {
if (!obj[key]) {
if (! obj[key]) {
obj[key] = key;
}
}
Expand Down

0 comments on commit 96289fe

Please sign in to comment.