Skip to content

Open-source download manager & offline media toolbox for YouTube, music, social media, learning platforms & 1,800+ sites. Built with Tauri 2.0, Rust & Svelte.

feat: translate authentication error message to English

Tonhoacfa22fc038b
diff --git a/src-tauri/src/commands/courses.rs b/src-tauri/src/commands/courses.rs
index 4adaee20..72faaf07 100644
--- a/src-tauri/src/commands/courses.rs
+++ b/src-tauri/src/commands/courses.rs
@@ -9,7 +9,7 @@ async fn fetch_courses_from_api(state: &tauri::State<'_, AppState>) -> Result<Ve
let guard = state.hotmart_session.lock().await;
let session = guard
.as_ref()
- .ok_or_else(|| "Não autenticado. Faça login primeiro.".to_string())?;
+ .ok_or_else(|| "Not authenticated. Please log in first.".to_string())?;
let subdomains = api::get_subdomains(session).await.unwrap_or_default();
@@ -68,7 +68,7 @@ pub async fn hotmart_get_modules(
let guard = state.hotmart_session.lock().await;
let session = guard
.as_ref()
- .ok_or_else(|| "Não autenticado. Faça login primeiro.".to_string())?;
+ .ok_or_else(|| "Not authenticated. Please log in first.".to_string())?;
api::get_modules(session, &slug, course_id)
.await