serokell-util-0.8.0: General-purpose functions by Serokell

Safe HaskellNone
LanguageHaskell2010

Serokell.Util.I18N

Documentation

type Translations lang token = Map lang (Map token Text) Source #

fromYaml :: (YamlMapKey lang, YamlMapKey token) => ByteString -> Translations lang token Source #

replaceTranslations :: (ToReplaceToken token, Ord lang) => Translations lang token -> lang -> Text -> Maybe Text Source #

class (Eq a, Ord a, FromJSONKey a, FromJSON a) => YamlMapKey a Source #

Instances

class (Ord a, Eq a) => ToReplaceToken a where Source #

Minimal complete definition

toReplaceToken

Methods

toReplaceToken :: a -> Text Source #

Instances

(Ord a, Eq a, Generic a, GToJSON Zero (Rep a)) => ToReplaceToken a Source # 

Methods

toReplaceToken :: a -> Text Source #