Removing unnecessary files
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");
|
||||
@ -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.
|
Loading…
Reference in New Issue