mirror of
https://github.com/M66B/FairEmail.git
synced 2025-03-01 01:06:11 +00:00
DeepL: URI
This commit is contained in:
parent
7e95e09c8b
commit
f14c44c0a2
1 changed files with 2 additions and 0 deletions
|
@ -337,6 +337,8 @@ public class DeepL {
|
|||
}
|
||||
|
||||
private static String getBaseUri(String key) {
|
||||
if (key != null && key.startsWith("https://"))
|
||||
return key;
|
||||
String domain = (key != null && key.endsWith(":fx") ? "api-free.deepl.com" : "api.deepl.com");
|
||||
return "https://" + domain + "/v2/";
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue