fix(api): respect user locale for artist biography
- Add locale field to QobuzClient for API language preference - Pass lang parameter to Qobuz artist detail endpoints - Create set_api_locale command to update client locale - Sync API locale with UI i18n settings automatically - Render artist biography HTML tags properly using @html - Fix syntax error in FavoritesView (missing comma) cp
This commit is contained in:
1 parent
72693e184f
commit
42349f14dd
6 files changed
+49
-7
No files matched your search
@@ -141,3 +141,11 @@ pub async fn auto_login(state: State<'_, AppState>) -> Result<LoginResponse, Str
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#[tauri::command]
|
||||
pub async fn set_api_locale(locale: String, state: State<'_, AppState>) -> Result<(), String> {
|
||||
log::info!("Command: set_api_locale {}", locale);
|
||||
let client = state.client.lock().await;
|
||||
client.set_locale(locale).await;
|
||||
Ok(())
|
||||
}
|
||||
Reference in new issue
Block a user