From 83e9a445110f988fed5a252303147840dabccd9f Mon Sep 17 00:00:00 2001 From: S S Mercy Queen Date: Tue, 2 May 2023 15:29:28 +0530 Subject: [PATCH] backend/fix/#100/added-bengali-to-language-data --- lib/mobility-core/src/Kernel/External/Types.hs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/mobility-core/src/Kernel/External/Types.hs b/lib/mobility-core/src/Kernel/External/Types.hs index e9127da12..bcb06e79f 100644 --- a/lib/mobility-core/src/Kernel/External/Types.hs +++ b/lib/mobility-core/src/Kernel/External/Types.hs @@ -26,6 +26,7 @@ data Language | KANNADA | TAMIL | MALAYALAM + | BENGALI deriving (Eq, Show, Ord, Read, Generic, ToJSON, FromJSON, ToParamSchema, ToSchema) deriving (PrettyShow) via Showable Language @@ -35,6 +36,7 @@ instance FromHttpApiData Language where parseUrlPiece "kn" = pure KANNADA parseUrlPiece "ml" = pure MALAYALAM parseUrlPiece "ta" = pure TAMIL + parseUrlPiece "bn" = pure BENGALI parseUrlPiece _ = Left "Unable to parse Language" instance ToHttpApiData Language where @@ -43,3 +45,4 @@ instance ToHttpApiData Language where toUrlPiece KANNADA = "kn" toUrlPiece MALAYALAM = "ml" toUrlPiece TAMIL = "ta" + toUrlPiece BENGALI = "bn"