Refactor: Translate all comms in English

This commit is contained in:
MasterAcnolo
2026-02-21 12:27:13 +01:00
parent 1f103c20b9
commit b13c98dda2
13 changed files with 29 additions and 29 deletions

View File

@@ -7,7 +7,7 @@ const { logger } = require("../logger");
function getUserBrowser() {
const userProfile = os.homedir();
// Liste des navigateurs supportés par yt-dlp (Actuellement je peux que garantir Firefox, Désolé)
// List of browsers supported by yt-dlp (Currently I can only guarantee Firefox, Sorry)
const browsers = [
{ name: "firefox", path: path.join(userProfile, "AppData", "Roaming", "Mozilla", "Firefox", "Profiles") },
// { name: "chrome", path: path.join(userProfile, "AppData", "Local", "Google", "Chrome", "User Data", "Default") },
@@ -19,7 +19,7 @@ function getUserBrowser() {
// { name: "whale", path: path.join(userProfile, "AppData", "Local", "Naver", "Naver Whale", "User Data", "Default") }
];
// Chercher un navigateur disponible
// Search for an available browser
for (const browser of browsers) {
if (fs.existsSync(browser.path)) {
logger.info(`Browser found: ${browser.name}`);
@@ -27,12 +27,12 @@ function getUserBrowser() {
}
}
// Aucun navigateur trouvé - notifier l'utilisateur
// No browser found - notify user
logger.warn("No supported browser found on the system");
notify.notifyFirefoxBrowserMissing();
// Fallback: retourner "firefox" pour laisser yt-dlp gérer l'erreur
// plutôt que de crasher l'application
// Fallback: return "Firefox" to let YT-DLP manage error
// this avoid app crash
return "firefox";
}