summaryrefslogtreecommitdiff
path: root/updatepages.js
blob: a22bef4af52831dfbbfa7460433d0e0cc094db0d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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));