AnsweredAssumed Answered

Changing Locale in Velocity Script (outputting £ instead of $)

Question asked by Neil Robertson-Ravo on Aug 4, 2015
Latest reply on Sep 8, 2015 by Neil Robertson-Ravo

Hi,

 

I am outputting some currency values which are in GBP but by default Marketo will output these values as $ when formatting using the following script:

 

$number.format("currency",$tokenvalue) or number.currency($tokenvalue)

 

I can see that the server Locale is "en_US" when using this

 

#set ( $serverLocale = $number.getLocale() )

 

But I need programmatic control of this and number.setLocale() doesnt seem to work when adding en_GB.

 

Anyone had to or managed an output to non US currencies?

Outcomes