You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ytDownloader/src/translate_index.js

61 lines
2.8 KiB
JavaScript

function getId(id) {
return document.getElementById(id);
}
function querySelector(element) {
return document.querySelector(element);
}
const i18n = new (require("../translations/i18n"))();
// Translating texts
getId("pasteUrl").textContent = i18n.__(
"Click to paste video link from clipboard [Ctrl + V]"
);
querySelector("#popup p").textContent = i18n.__("yt-dlp is being downloaded");
getId("preferenceWin").textContent = i18n.__("Preferences");
getId("aboutWin").textContent = i18n.__("About");
getId("playlistWin").textContent = i18n.__("Download playlist");
document.querySelectorAll(".formatSelect").forEach((element) => {
element.textContent = i18n.__("Select Format ");
});
getId("videoDownload").textContent = i18n.__("Download");
getId("audioDownload").textContent = i18n.__("Download");
getId("videoToggle").textContent = i18n.__("Video");
getId("audioToggle").textContent = i18n.__("Audio");
getId("advancedVideoToggle").textContent = i18n.__("More options");
getId("advancedAudioToggle").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("processing").textContent = i18n.__("Processing");
getId("start").textContent = i18n.__("Start");
getId("end").textContent = i18n.__("End");
getId("subHeader").textContent = i18n.__("Subtitles");
getId("subTxt").textContent = i18n.__("Download subtitles if available");
getId("extractHeader").textContent = i18n.__("Extract Audio");
getId("extractBtn").textContent = i18n.__("Extract");
getId("errorBtn").textContent = i18n.__("Error Details")+" ▼"
getId("extractQualitySelectTxt").textContent = i18n.__("Select Quality")
getId("extractQualityNormal").textContent = i18n.__("Normal")
getId("extractQualityBest").textContent = i18n.__("Best")
getId("extractQualityGood").textContent = i18n.__("Good")
getId("extractQualityBad").textContent = i18n.__("Bad")
getId("extractQualityWorst").textContent = i18n.__("Worst")
getId("quitTxt").textContent = i18n.__("Close app when download finishes")
getId("clText").textContent = i18n.__("Current download location - ")
getId("selectLocation").textContent = i18n.__("Select Download Location");
getId("themeTxt").textContent = i18n.__("Theme");
getId("lightTxt").textContent = i18n.__("Light");
getId("darkTxt").textContent = i18n.__("Dark");
getId("frappeTxt").textContent = i18n.__("Frappé");
getId("onedarkTxt").textContent = i18n.__("One Dark");
getId("matrixTxt").textContent = i18n.__("Matrix");
getId("githubTxt").textContent = i18n.__("Github");
getId("latteTxt").textContent = i18n.__("Latte");
getId("solarizedDarkTxt").textContent = i18n.__("Solarized Dark");