When using the English locale, numbers appear as follows: 111,111,222.00
, with a comma as the thousand separator and a point as the decimal separator. In languages like German, the same number would be represented as 111.111.222,00
, reversing the positions of the thousand and decimal separators. Is there a way to determine the correct thousand separator based on the chosen locale?
I came across the https://angular.io/api/common/getLocaleNumberFormat function in Angular, but I had trouble figuring out how to use it since it always seems to return the format for the English (en) locale.