cuducos/elm-format-number/5.0.5

NOTE: this package is not compatible with Elm 0.19.1

FormatNumber.Locales

These locales and its names are based on this International Language Environments Guide

type alias Locale =
{ decimals : Int
, thousandSeparator : String
, decimalSeparator : String
, negativePrefix : String
, negativeSuffix : String
}

This is the Locale type and constructor.

Pre-defined locales

frenchLocale : Locale

Locale used in France, Canada, Finland and Sweden. It has 3 decimals digits, uses a thin space (U+202F) as thousand separator and a , as decimal separator. It uses a minus sign (not a hyphen).

spanishLocale : Locale

Locale used in Spain, Italy and Norway. It has 3 decimals digits, uses a . as thousand separator and a , as decimal separator. It uses a minus sign (not a hyphen).

usLocale : Locale

Locale used in the United States, Great Britain and Thailand. It has 2 decimals digits, uses a , as thousand separator and a . as decimal separator. It uses a minus sign (not a hyphen).