|
|
|
@ -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/";
|
|
|
|
|
}
|
|
|
|
|