fix(translate): remove argos translate from configs containing it
This commit is contained in:
parent
bc874434a2
commit
b9e02d5fd5
|
@ -12,6 +12,8 @@ public class TranslateConfig implements JfCustomConfig {
|
|||
|
||||
public static void ensureValid() {
|
||||
if (translationService == null) translationService = GoogleTranslateService.NAME;
|
||||
if ("https://translate.argosopentech.com".equals(libreTranslateHost))
|
||||
libreTranslateHost = null;
|
||||
if (translationService.equals(LibreTranslateService.NAME) && (libreTranslateHost == null || libreTranslateHost.isBlank()))
|
||||
translationService = GoogleTranslateService.NAME;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user