cuducos/elm-format-number/4.0.0

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
}

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.

spanishLocale : Locale

Locale used in Spain, Italy and Norway. It has 2 decimals digits, uses a . as thousand separator and a , as decimal separator.

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.