summaryrefslogtreecommitdiff
path: root/updatepages.js
diff options
context:
space:
mode:
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