Convert Number Format to French

Hello, is there an easy way to convert number/currency formats to different language standards without a complex script? Specifically I’m looking for something to go from English and French. Example is below:
$1,234,567 → 1 234 567 $
$1,000 → 1 000 $

I’m looking to do this in the designer template, but will do it in the datamapper if needed.

Thanks for the help

Thank you,

This is achieved by setting the Locale for the document (choose Edit > Locale), this handles formatting for numbers (including currencies) and dates. You can set a specific local or use one provided via the data (as described in the linked post).

The following screenshot shows the Locale dialog (set to fr-FR). I used an expression with the “currency” helper to apply the currency format to the “price” data field ({{currency price}})

Hope this helps,

Erik

PS1. Recently described dynamically setting the Locale here:

PS2. Formatting can also be applied via the Scripting API.

This is great, thank you Erik!

1 Like