"en_EN.UTF-8". The values read from the default locale can be modified using Options. Options provided are:
- Give the locale a name.
- Specify the decimal point to use.
- Specify the string that delimits digit groups. Only effective is
groupingis also specified.
- Specify the grouping of digits. Groups are created from the right (least
significant) digits, left of the decimal point. List is a
list of integers, specifying the number of digits in each group,
counting from the right. If the last element is
repeat(Count), the remaining digits are grouped in groups of size Count. If the last element is a normal integer, digits further to the left are not grouped.
For example, the English locale uses
[ decimal_point('.'), thousands_sep(','), grouping([repeat(3)]) ]
Named locales exists until they are destroyed using locale_destroy/1 and they are no longer referenced. Unnamed locales are subject to (atom) garbage collection.