remove watson (closes #37)
All checks were successful
mozhi pipeline / Push Docker image to Codeberg docker registry (push) Successful in 30m52s
mozhi pipeline / Build and publish artifacts (push) Successful in 1h31m31s

This commit is contained in:
2024-05-24 14:16:31 +05:30
parent c3415ae79e
commit 098bd9f577
6 changed files with 6 additions and 8 deletions

View File

@@ -34,7 +34,7 @@ func Sanitize(str string, strip string) string {
}
func EngineList() map[string]string {
engines := map[string]string{"all": "All Engines", "google": "Google", "deepl": "DeepL", "duckduckgo": "DuckDuckGo", "libre": "LibreTranslate", "mymemory": "MyMemory", "reverso": "Reverso", "watson": "Watson", "yandex": "Yandex"}
engines := map[string]string{"all": "All Engines", "google": "Google", "deepl": "DeepL", "duckduckgo": "DuckDuckGo", "libre": "LibreTranslate", "mymemory": "MyMemory", "reverso": "Reverso", "yandex": "Yandex"}
if EnvTrueNoExist("MOZHI_GOOGLE_ENABLED") == false {
delete(engines, "google")
} else if EnvTrueNoExist("MOZHI_DEEPL_ENABLED") == false {
@@ -47,8 +47,6 @@ func EngineList() map[string]string {
delete(engines, "mymemory")
} else if EnvTrueNoExist("MOZHI_REVERSO_ENABLED") == false {
delete(engines, "reverso")
} else if EnvTrueNoExist("MOZHI_WATSON_ENABLED") == false {
delete(engines, "watson")
} else if EnvTrueNoExist("MOZHI_YANDEX_ENABLED") == false {
delete(engines, "yandex")
}