From e559ec92142df0dcc946a89e17cae3af5923d752 Mon Sep 17 00:00:00 2001 From: Arya Kiran Date: Sat, 22 Jul 2023 19:52:38 +0530 Subject: [PATCH] add yandex to API --- pages/api.go | 6 ++++++ 1 file changed, 6 insertions(+) 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 {