mirror of
https://codeberg.org/aryak/mozhi
synced 2025-06-04 00:41:07 +05:30
remove watson (closes #37)
This commit is contained in:
@@ -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")
|
||||
}
|
||||
|
Reference in New Issue
Block a user