ggb/numeral-elm/1.0.0

NOTE: this package is not compatible with Elm 0.19.1

Language

Type definition for language configurations.

To implement a new language configuration, copy an existing one and modify it.

type alias Ordinal =
Float -> String

Type of a function that takes a float as input and returns an ordinal abbreviation string.

type alias Language =
{ delimiters : Delimiters
, abbreviations : Abbreviations
, ordinal : Ordinal
, currency : Currency
}

Language defines the delimiters, abbreviations, ordinal and currency symbol.