Thousand separator (number mustache formatting)

Hello,
I'm using mustache formatting to set decimal places on numbers in gauge with great success.
However, I cannot set a locale as describe here:

The result is that I have a comma as thousand separator that I would like to get rid off.
Is there a way to set locale preference somewhere (in config files maybe)? Or a special formatting like:

{{value | number:1}}

to set custom locale preferences?

I guess the more versatile way would be a change node to set the string exactly to what I need before sending values to the dashboard. What do you think?

Thanks,

The ui nodes do not use mustache, it looks similar but is angular js.

It looks like the local machine or something in the ui nodes is overriding the locale.
As this should work
{{msg.payload | number : 1 : "fr"}}

Try setting the locale of the device displaying the ui nodes to the locale you need.

You can not feed 23,4 into ui nodes as it will not see them as numbers and therefore will not be displayed.

Thank you,
Alas, none of the 2 solutions work (adding locale to the format field and setting locale of the PC).
I guess I will format the string with function node before the ui nodes.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.