diff --git a/app/src/main/java/eu/faircode/email/DeepL.java b/app/src/main/java/eu/faircode/email/DeepL.java index 2b7c9aae4c..31653945a5 100644 --- a/app/src/main/java/eu/faircode/email/DeepL.java +++ b/app/src/main/java/eu/faircode/email/DeepL.java @@ -238,16 +238,7 @@ public class DeepL { if (html) request += "&tag_handling=html"; - ensureLanguages(context); - for (int i = 0; i < jlanguages.length(); i++) { - JSONObject jlanguage = jlanguages.getJSONObject(i); - if (Objects.equals(target, jlanguage.getString("language"))) { - boolean supports_formality = jlanguage.optBoolean("supports_formality"); - if (supports_formality) - request += "&formality=" + (formality ? "more" : "less"); - break; - } - } + request += "&formality=" + (formality ? "prefer_more" : "prefer_less"); URL url = new URL(getBaseUri(key) + "translate"); HttpsURLConnection connection = (HttpsURLConnection) url.openConnection();