{-# LANGUAGE DeriveGeneric #-}

module Model.Json.Translation
  ( Translation(..)
  ) where

import GHC.Generics

import Data.Aeson
import Data.Text

import Model.Json.MessagePart

data Translation = Translation
  { key :: Text
  , message :: [MessagePart]
  } deriving (Show, Generic)

instance FromJSON Translation
instance ToJSON Translation