3 Replies Latest reply on Sep 8, 2015 8:08 AM by Neil Robertson-Ravo

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

    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?