forked from louislam/uptime-kuma
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix weblate conflict and new translations (louislam#5232)
Co-authored-by: Jochem Pluim <jochem@pluim.nu> Co-authored-by: Zandor Smith <info@zsinfo.nl> Co-authored-by: Anonymous <noreply@weblate.org> Co-authored-by: Ryo Hanafusa <ryo7gumi@gmail.com> Co-authored-by: Eduard Dev <legocuedy09@gmail.com> Co-authored-by: Gunnar Norin <gunnar.norin@gmail.com> Co-authored-by: AmadeusGraves <angelfx19@gmail.com> Co-authored-by: Dan Misener <dan@misener.org> Co-authored-by: Алексей Добрый <support@diera.ru> Co-authored-by: Ilkka Myller <ilkka.myller@nodefield.com> Co-authored-by: Nelson Chan <chakflying@hotmail.com> Co-authored-by: Lance <2124757129@qq.com> Co-authored-by: Peter Dave Hello <hsu@peterdavehello.org> Co-authored-by: PhongPham <pttphong1202@gmail.com>
- Loading branch information
1 parent
d2f71d1
commit 7a82ae0
Showing
18 changed files
with
642 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// For #5231 | ||
|
||
const fs = require("fs"); | ||
|
||
let path = "../src/lang"; | ||
|
||
// list directories in the lang directory | ||
let jsonFileList = fs.readdirSync(path); | ||
|
||
for (let jsonFile of jsonFileList) { | ||
if (!jsonFile.endsWith(".json")) { | ||
continue; | ||
} | ||
|
||
let jsonPath = path + "/" + jsonFile; | ||
let langData = JSON.parse(fs.readFileSync(jsonPath, "utf8")); | ||
|
||
for (let key in langData) { | ||
if (langData[key] === "") { | ||
delete langData[key]; | ||
} | ||
} | ||
|
||
fs.writeFileSync(jsonPath, JSON.stringify(langData, null, 4) + "\n"); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.