myrho/numeral-elm/1.0.1

NOTE: the latest version is 1.0.2

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.