this repo has no description
1import fs from 'fs';
2
3fetch('https://translang.phanpy.social/api/v1/languages')
4 .then((response) => response.json())
5 .then((json) => {
6 const file = './src/data/translang-languages.json';
7 console.log(`Writing ${file}...`);
8 fs.writeFileSync(file, JSON.stringify(json, null, '\t'), 'utf8');
9 });