summaryrefslogtreecommitdiff
path: root/updatepages.js
diff options
context:
space:
mode:
authorMinteck <contact@minteck.org>2022-12-10 22:27:08 +0100
committerMinteck <contact@minteck.org>2022-12-10 22:27:08 +0100
commit30303a3ad0d0f31d93c25f42bfd10d70e8277b72 (patch)
tree622964e7895c759232aff28230394aa5cc747be9 /updatepages.js
parentf850a8a53efd719fef6c8784c5af7b89dd9a6a2f (diff)
downloadpluralconnect-30303a3ad0d0f31d93c25f42bfd10d70e8277b72.tar.gz
pluralconnect-30303a3ad0d0f31d93c25f42bfd10d70e8277b72.tar.bz2
pluralconnect-30303a3ad0d0f31d93c25f42bfd10d70e8277b72.zip
Update
Diffstat (limited to 'updatepages.js')
-rw-r--r--updatepages.js17
1 files changed, 17 insertions, 0 deletions
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