Module

JS.Intl.ListFormat

Package
purescript-js-intl
Repository
pete-murphy/purescript-js-intl

#ListFormat Source

data ListFormat

Language-sensitive list formatting

#ListFormatOptions Source

type ListFormatOptions :: Row Typetype ListFormatOptions = (localeMatcher :: String, style :: String, type :: String)

#format Source

format :: ListFormat -> Array String -> String

Returns a string with a language-specific representation of the list

#formatToParts Source

formatToParts :: ListFormat -> Array String -> Array { type :: String, value :: String }

Returns an array of objects representing the different components that can be used to format a list of values in a locale-aware fashion