mirror of
https://codeberg.org/aryak/mozhi
synced 2024-11-17 01:32:57 +05:30
add yandex to API
This commit is contained in:
parent
2179e682d4
commit
e559ec9214
@ -22,6 +22,9 @@ func HandleSourceLanguages(c *fiber.Ctx) error {
|
||||
} else if engine == "watson" {
|
||||
data = utils.LangListWatson("sl")
|
||||
}
|
||||
} else if engine == "yandex" {
|
||||
data = utils.LangListYandex("sl")
|
||||
}
|
||||
return c.JSON(data)
|
||||
}
|
||||
func HandleTargetLanguages(c *fiber.Ctx) error {
|
||||
@ -41,6 +44,9 @@ func HandleTargetLanguages(c *fiber.Ctx) error {
|
||||
} else if engine == "watson" {
|
||||
data = utils.LangListWatson("tl")
|
||||
}
|
||||
} else if engine == "yandex" {
|
||||
data = utils.LangListYandex("tl")
|
||||
}
|
||||
return c.JSON(data)
|
||||
}
|
||||
func HandleTTS(c *fiber.Ctx) error {
|
||||
|
Loading…
Reference in New Issue
Block a user