From 30303a3ad0d0f31d93c25f42bfd10d70e8277b72 Mon Sep 17 00:00:00 2001 From: Minteck Date: Sat, 10 Dec 2022 22:27:08 +0100 Subject: Update --- updatepages.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 updatepages.js (limited to 'updatepages.js') diff --git a/updatepages.js b/updatepages.js new file mode 100644 index 0000000..a22bef4 --- /dev/null +++ b/updatepages.js @@ -0,0 +1,17 @@ +let original = require('./includes/pages.json'); + +let languages = [ + "fr" +] + +for (let page in original) { + let data = original[page]; + + for (let lang of languages) { + data["name"][lang] = data["name"]["en"]; + } + + original[page] = data; +} + +require('fs').writeFileSync("./includes/pages.json", JSON.stringify(original, null, 2)); \ No newline at end of file -- cgit