Always load translate

This commit is contained in:
Thomas Ricouard 2023-03-16 07:09:59 +01:00
parent d00b66034d
commit 022b068ce8
1 changed files with 3 additions and 3 deletions

View File

@ -288,11 +288,11 @@ public class StatusRowViewModel: ObservableObject {
}
func translate(userLang: String) async {
withAnimation {
isLoadingTranslation = true
}
if !alwaysTranslateWithDeepl {
do {
withAnimation {
isLoadingTranslation = true
}
// We first use instance translation API if available.
let translation: StatusTranslation = try await client.post(endpoint: Statuses.translate(id: finalStatus.id,
lang: userLang))