Prism · Locale
$localeNumber
A number for a reader in a given locale: grouping and the decimal mark follow the locale. locale is required, and style may be percent.
{ attendance: 1234.5 }{
$localeNumber: {
value: { $ref: '$.attendance' },
locale: 'de-DE',
minDigits: 1,
},
}'1.234,5'
Runs in this page on the installed package. The input and the expected output are defined by the example.