this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

at main 17 lines 635 B view raw
1import fs from 'fs'; 2 3fetch('https://lingva.phanpy.social/api/v1/languages/source') 4 .then((response) => response.json()) 5 .then((json) => { 6 const file = './src/data/lingva-source-languages.json'; 7 console.log(`Writing ${file}...`); 8 fs.writeFileSync(file, JSON.stringify(json.languages, null, '\t'), 'utf8'); 9 }); 10 11fetch('https://lingva.phanpy.social/api/v1/languages/target') 12 .then((response) => response.json()) 13 .then((json) => { 14 const file = './src/data/lingva-target-languages.json'; 15 console.log(`Writing ${file}...`); 16 fs.writeFileSync(file, JSON.stringify(json.languages, null, '\t'), 'utf8'); 17 });