mirror of
https://codeberg.org/aryak/mozhi
synced 2025-06-04 00:41:07 +05:30
add IBM Watson support
This commit is contained in:
@@ -41,6 +41,14 @@ var translateCmd = &cobra.Command{
|
||||
} else {
|
||||
fmt.Println(utils.TranslateLibreTranslate(dest, source, query))
|
||||
}
|
||||
} else if engine == "watson" {
|
||||
if langlist == "sl" {
|
||||
fmt.Println(utils.LangListWatson(langlist))
|
||||
} else if langlist == "tl" {
|
||||
fmt.Println(utils.LangListWatson(langlist))
|
||||
} else {
|
||||
fmt.Println(utils.TranslateWatson(dest, source, query))
|
||||
}
|
||||
} else if engine == "all" {
|
||||
fmt.Println(utils.TranslateAll(dest, source, query))
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user