add yandex to API

This commit is contained in:
Arya 2023-07-22 19:52:38 +05:30
parent 2179e682d4
commit e559ec9214
Signed by: arya
GPG Key ID: 842D12BDA50DF120

View File

@ -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 {