mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-23 23:04:04 +00:00
Update index.js
This commit is contained in:
parent
381605aca1
commit
96289fe014
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
@ -62,7 +62,7 @@ for (const file of files) {
|
|||
|
||||
// En first
|
||||
for (const key in en) {
|
||||
if (!obj[key]) {
|
||||
if (! obj[key]) {
|
||||
obj[key] = en[key];
|
||||
}
|
||||
}
|
||||
|
@ -70,7 +70,7 @@ for (const file of files) {
|
|||
if (baseLang !== en) {
|
||||
// Base second
|
||||
for (const key in baseLang) {
|
||||
if (!obj[key]) {
|
||||
if (! obj[key]) {
|
||||
obj[key] = key;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue