Module

JS.Intl

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

#getCanonicalLocales Source

getCanonicalLocales :: Array String -> Maybe (Array String)

Returns an array containing the canonical locale names. Duplicates will be omitted and elements will be validated as structurally valid language tags (returns Nothing if input contains invalid tags).

#supportedValuesOf Source

supportedValuesOf :: AvailableCanonical -> Array String

Returns an array containing the supported calendar, collation, currency, numbering systems, or unit values supported by the implementation.

> take 4 (supportedValuesOf Calendar)
["buddhist","chinese","coptic","dangi"]