Removing unnecessary files

pull/14/head
aandrew-me 3 years ago
parent abc7f3cf07
commit 10e8c1c847

@ -1,44 +0,0 @@
// Converts the csv translation file to json and puts in translations folder
// Language of output file
const language = "en";
const { readFileSync, writeFileSync } = require("fs");
let csvFile = readFileSync("translate.csv", { encoding: "utf-8" });
let result = "";
let count = 0;
let size = csvFile.length;
let index = 0;
result += "{";
for (let letter of csvFile) {
if (letter === `"`) {
count++;
if (count < 4) {
result += letter;
index++;
} else {
index++;
if (index == size - 1) {
result += `${letter}`;
} else {
result += `${letter},`;
}
count = 0;
}
} else if (letter == "," && count == 2) {
index++
result += ":"
} else {
result += letter;
index++;
}
}
result += "}";
writeFileSync(`translations/${language}.json`, result);
console.log(`Converted and saved to translations/${language}.json`);

@ -1,11 +0,0 @@
// Converts translate.json file to translate.csv file
const fs = require("fs")
let inputFile = JSON.parse(fs.readFileSync('translations/translate.json', 'utf8'))
fs.writeFileSync("translate.csv", "")
for (const [key, value] of Object.entries(inputFile)){
fs.appendFileSync("translate.csv", `"${key}":"${key}"` + "\n")
}
console.log("Saved to translate.csv");

@ -266,7 +266,7 @@ async function getInfo(url) {
"<option value='" + "<option value='" +
format_id + format_id +
"'>" + "'>" +
"Quality: " + i18n.__("Quality") + ": " +
(format.format_note || i18n.__("Unknown quality")) + (format.format_note || i18n.__("Unknown quality")) +
" | " + " | " +
audio_ext + audio_ext +

@ -1,26 +0,0 @@
"Click to paste video URL or ID [Ctrl + V]":"Click to paste video URL or ID [Ctrl + V]"
"Preferences":"Preferences"
"About":"About"
"Download location":"Download location"
"Current download location - ":"Current download location - "
"Enable transparent dark mode(only Linux, needs restart)":"Enable transparent dark mode(only Linux, needs restart)"
"Please wait, yt-dlp is being downloaded":"Please wait, yt-dlp is being downloaded"
"Video":"Video"
"Audio":"Audio"
"Title ":"Title "
"Select Format ":"Select Format "
"Download":"Download"
"Select Download Location":"Select Download Location"
"More options":"More options"
"Start":"Start"
"Select Language":"Select Language"
"Download particular time-range":"Download particular time-range"
"End":"End"
"If kept empty, it will start from the beginning":"If kept empty, it will start from the beginning"
"If kept empty, it will be downloaded to the end":"If kept empty, it will be downloaded to the end"
"Homepage":"Homepage"
"ytDownloader lets you download videos (and sometimes audios) from hundreds of sites like Youtube, Facebook, Instagram, Tiktok, Twitter and so on":"ytDownloader lets you download videos (and sometimes audios) from hundreds of sites like Youtube, Facebook, Instagram, Tiktok, Twitter and so on"
"It's a Free and Open Source app built on top of Node.js and Electron. yt-dlp has been used for downloading":"It's a Free and Open Source app built on top of Node.js and Electron. yt-dlp has been used for downloading"
"Source Code is available ":"Source Code is available "
"here":"here"
"Processing":"Processing"
Can't render this file because it contains an unexpected character in line 1 and column 43.

@ -37,5 +37,6 @@
"File saved. Click to Open":"File saved. Click to Open", "File saved. Click to Open":"File saved. Click to Open",
"Preparing":"Preparing", "Preparing":"Preparing",
"Progress":"Progress", "Progress":"Progress",
"Speed":"Speed" "Speed":"Speed",
"Quality":"Quality"
} }

Loading…
Cancel
Save