ggb / numeral-elm / Language

Type definition for language configurations.

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


type alias Ordinal =
Basics.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.