More localization changes
This commit is contained in:
parent
d55fba8eb3
commit
54a9a25e07
28
csv2json.js
28
csv2json.js
@ -1,7 +1,7 @@
|
||||
// Converts the csv translation file to json and puts in translations folder
|
||||
|
||||
// Language of output file
|
||||
const language = "ru"
|
||||
const language = "ru";
|
||||
|
||||
const { readFileSync, writeFileSync } = require("fs");
|
||||
|
||||
@ -10,7 +10,7 @@ let result = "";
|
||||
|
||||
let count = 0;
|
||||
let size = csvFile.length;
|
||||
let index = 0
|
||||
let index = 0;
|
||||
|
||||
result += "{";
|
||||
for (let letter of csvFile) {
|
||||
@ -18,18 +18,20 @@ for (let letter of csvFile) {
|
||||
count++;
|
||||
if (count < 4) {
|
||||
result += letter;
|
||||
index ++;
|
||||
index++;
|
||||
} else {
|
||||
index ++;
|
||||
if (index == size-1){
|
||||
result += `${letter}`;
|
||||
}
|
||||
else{
|
||||
result += `${letter},`;
|
||||
}
|
||||
|
||||
index++;
|
||||
if (index == size - 1) {
|
||||
result += `${letter}`;
|
||||
} else {
|
||||
result += `${letter},`;
|
||||
}
|
||||
|
||||
count = 0;
|
||||
}
|
||||
} else if (letter == "," && count == 2) {
|
||||
index++
|
||||
result += ":"
|
||||
} else {
|
||||
result += letter;
|
||||
index++;
|
||||
@ -37,6 +39,6 @@ for (let letter of csvFile) {
|
||||
}
|
||||
result += "}";
|
||||
|
||||
writeFileSync(`translations/${language}.json`, result)
|
||||
writeFileSync(`translations/${language}.json`, result);
|
||||
|
||||
console.log(`Converted and saved to translations/${language}.json`)
|
||||
console.log(`Converted and saved to translations/${language}.json`);
|
||||
|
@ -54,7 +54,7 @@
|
||||
<button id="pasteUrl" class="submitBtn">Click to paste video URL or ID [Ctrl + V]</button>
|
||||
|
||||
<div id="loadingWrapper">
|
||||
<span>Processing </span>
|
||||
<span id="processing">Processing </span>
|
||||
<svg version="1.1" id="L4" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px"
|
||||
y="0px" viewBox="0 0 100 100" enable-background="new 0 0 0 0" xml:space="preserve">
|
||||
<circle fill="rgb(84, 171, 222)" stroke="none" cx="6" cy="50" r="6">
|
||||
|
@ -30,7 +30,7 @@
|
||||
|
||||
<br><br>
|
||||
|
||||
<label>Select Language</label>
|
||||
<label id="selectLn">Select Language</label>
|
||||
<select id="select" onchange="changeLanguage()">
|
||||
<option value="en">English</option>
|
||||
<option value="ru">Русский</option>
|
||||
|
24
input.csv
24
input.csv
@ -1,24 +0,0 @@
|
||||
"Click to paste video URL or ID [Ctrl + V]":"Нажмите, чтобы вставить URL-адрес или идентификатор видео [Ctrl + V]"
|
||||
"Preferences":"Настройки"
|
||||
"About":"О программе"
|
||||
"Download location":"Папка загрузки"
|
||||
"Current download location - ":"Текущее место загрузки - "
|
||||
"Enable transparent dark mode(only Linux, needs restart)":"Включить прозрачный темный режим (только для Linux, требуется перезагрузка)"
|
||||
"Please wait, yt-dlp is being downloaded":"Пожалуйста, подождите, yt-dlp загружается"
|
||||
"Video":"Видео"
|
||||
"Audio":"Аудио"
|
||||
"Title ":"Название "
|
||||
"Select Format ":"Выберите формат "
|
||||
"Download":"Скачать"
|
||||
"Select Download Location":"Выберите место загрузки"
|
||||
"More options":"Дополнительные опции"
|
||||
"Start":"Начало"
|
||||
"Download particular time-range":"Скачать определенную часть"
|
||||
"End":"Конец"
|
||||
"If kept empty, it will start from the beginning":"Если оставить пустым, оно начнется с начала"
|
||||
"If kept empty, it will be downloaded to the end":"Если оставить пустым, оно будет загружено до конца"
|
||||
"Homepage":"Главная страница"
|
||||
"ytDownloader lets you download videos (and sometimes audios) from hundreds of sites like Youtube, Facebook, Instagram, Tiktok, Twitter and so on":"ytDownloader позволяет вам загружать видео (и иногда аудио) с сотен таких сайтов, как Youtube, Facebook, Instagram, Tiktok, Twitter и т.д"
|
||||
"It's a Free and Open Source app built on top of Node.js and Electron. yt-dlp has been used for downloading":"Это бесплатное приложение с открытым исходным кодом, созданное поверх Node.js и Electron. yt-dlp используется для загрузки"
|
||||
"Source Code is available":"Исходный код доступен"
|
||||
"here":"здесь"
|
Can't render this file because it contains an unexpected character in line 1 and column 43.
|
@ -5,5 +5,7 @@ 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 + "\n")
|
||||
}
|
||||
fs.appendFileSync("translate.csv", `"${key}"` + "\n")
|
||||
}
|
||||
|
||||
console.log("Saved to translate.csv");
|
@ -18,4 +18,5 @@ getId("audioDownload").textContent = i18n.__("Download")
|
||||
getId("advancedToggle").textContent = i18n.__("More options")
|
||||
getId("rangeText").textContent= i18n.__("Download particular time-range")
|
||||
getId("startTime").title = i18n.__("If kept empty, it will start from the beginning")
|
||||
getId("endTime").title = i18n.__("If kept empty, it will be downloaded to the end")
|
||||
getId("endTime").title = i18n.__("If kept empty, it will be downloaded to the end")
|
||||
getId("processing").textContent = i18n.__("Processing ")
|
@ -13,4 +13,5 @@ getId("dlText").textContent = i18n.__("Download location")
|
||||
getId("clText").innerHTML = i18n.__("Current download location - ")
|
||||
getId("selectLocation").textContent = i18n.__("Select Download Location")
|
||||
getId("transparentText").textContent = i18n.__("Enable transparent dark mode(only Linux, needs restart)")
|
||||
getId("preferences").textContent = i18n.__("Preferences")
|
||||
getId("preferences").textContent = i18n.__("Preferences")
|
||||
getId("selectLn").textContent = i18n.__("Select Language")
|
@ -1,25 +1,26 @@
|
||||
Click to paste video URL or ID [Ctrl + V]
|
||||
Preferences
|
||||
About
|
||||
Download location
|
||||
Current download location -
|
||||
Enable transparent dark mode(only Linux, needs restart)
|
||||
Please wait, yt-dlp is being downloaded
|
||||
Video
|
||||
Audio
|
||||
Title
|
||||
Select Format
|
||||
Download
|
||||
Select Download Location
|
||||
More options
|
||||
Start
|
||||
Select Language
|
||||
Download particular time-range
|
||||
End
|
||||
If kept empty, it will start from the beginning
|
||||
If kept empty, it will be downloaded to the end
|
||||
Homepage
|
||||
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
|
||||
Source Code is available
|
||||
here
|
||||
"Click to paste video URL or ID [Ctrl + V]"
|
||||
"Preferences"
|
||||
"About"
|
||||
"Download location"
|
||||
"Current download location - "
|
||||
"Enable transparent dark mode(only Linux, needs restart)"
|
||||
"Please wait, yt-dlp is being downloaded"
|
||||
"Video"
|
||||
"Audio"
|
||||
"Title "
|
||||
"Select Format "
|
||||
"Download"
|
||||
"Select Download Location"
|
||||
"More options"
|
||||
"Start"
|
||||
"Select Language"
|
||||
"Download particular time-range"
|
||||
"End"
|
||||
"If kept empty, it will start from the beginning"
|
||||
"If kept empty, it will be downloaded to the end"
|
||||
"Homepage"
|
||||
"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"
|
||||
"Source Code is available "
|
||||
"here"
|
||||
"Processing"
|
||||
|
|
@ -13,13 +13,15 @@
|
||||
"Select Download Location":"Выберите место загрузки",
|
||||
"More options":"Дополнительные опции",
|
||||
"Start":"Начало",
|
||||
"Select Language":"Выберите язык",
|
||||
"Download particular time-range":"Скачать определенную часть",
|
||||
"End":"Конец",
|
||||
"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":"Главная страница",
|
||||
"ytDownloader lets you download videos (and sometimes audios) from hundreds of sites like Youtube, Facebook, Instagram, Tiktok, Twitter and so on":"ytDownloader позволяет вам загружать видео (и иногда аудио) с сотен таких сайтов, как Youtube, Facebook, Instagram, Tiktok, Twitter и т.д",
|
||||
"ytDownloader lets you download videos (and sometimes audios) from hundreds of sites like Youtube, Facebook, Instagram, Tiktok, Twitter and so on":"ytDownloader позволяет скачать видео (а иногда и аудио) с сотен сайтов, таких как Youtube, Facebook, Instagram, Tiktok, Twitter и так далее",
|
||||
"It's a Free and Open Source app built on top of Node.js and Electron. yt-dlp has been used for downloading":"Это бесплатное приложение с открытым исходным кодом, созданное поверх Node.js и Electron. yt-dlp используется для загрузки",
|
||||
"Source Code is available":"Исходный код доступен",
|
||||
"here":"здесь"
|
||||
"Source Code is available ":"Исходный код доступен ",
|
||||
"here":"здесь",
|
||||
"Processing":"Обрабатывается"
|
||||
}
|
@ -24,6 +24,7 @@
|
||||
|
||||
"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":"",
|
||||
"here":""
|
||||
"Source Code is available ":"",
|
||||
"here":"",
|
||||
"Processing":""
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user