What's the best way to add localization so that numbers are displayed correctly

  • 1
  • Question
  • Updated 2 years ago
  • Answered
So I have this page components:


When they display they look like this:



I want to be able to display the numbers correctly such as: 61,002 ( added separator).

What would be the appropriate way of adding this with skuid?

Thanks.
Photo of Sofware Developer Guy

Sofware Developer Guy

  • 1,354 Points 1k badge 2x thumb

Posted 2 years ago

  • 1
Photo of Janick

Janick

  • 916 Points 500 badge 2x thumb
Hey Software Developer Guy,

What kind of field ist this?

Could you try using two brackets instead of three? It would look like this: {{totalCount}}

I hope this helps,

Janick
Photo of Zach McElrath

Zach McElrath, Employee

  • 49,056 Points 20k badge 2x thumb
Janick's advice is correct, Skuid automatically applies locale-specific formatting to Number and Currency fields, but when you're using Merge syntax, this is ONLY done when you use two brackets, three brackets returns the raw, unformatted, unescaped data. 
Photo of Sofware Developer Guy

Sofware Developer Guy

  • 1,354 Points 1k badge 2x thumb
Great!!!  Worked Great.  Thank you.