diff --git a/pages/api.go b/pages/api.go index 2e2a1f0..4e1fcd4 100644 --- a/pages/api.go +++ b/pages/api.go @@ -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 {