Module

Simple.I18n.Translation

Package
purescript-simple-i18n
Repository
oreshinya/purescript-simple-i18n

#Translation Source

newtype Translation :: SList -> Typenewtype Translation (xs :: SList)

A representation of translated words.

SList parameter is a label list.

NOTE: Labels are ordered alphabetically.

#fromRecord Source

fromRecord :: forall r rl xs. RowToList r rl => SListToRowList xs rl => Homogeneous r String => Record r -> Translation xs

Create a Translation from a homogeneous record with String fields.

#toRecord Source

toRecord :: forall rl r xs. ListToRow rl r => SListToRowList xs rl => Homogeneous r String => Translation xs -> Record r