Question
By default the locale of Advanced PDF Template is en_US
. How to set local for NetSuite Advanced PDF Template?
Answer
It works for me by placing <#setting locale="xzy">
above <#if .locale>
statements within <head>
.
<head>
<link name="NotoSans"/>
<#setting locale="ja_JP">
<#if .locale == "ja_JP">
<!-- some .local if-else statement-->
</#if>
<macrolist>
<!--macrolist here, like header, footer, etc-->
</macrolist>
</head>
The locale defines currency format, date format, etc for this template. Below is how the price table looks like when the locale is set to Japan
Qty | SKU | Rate | Amount |
1 | Battery | ¥26,000 | ¥26,000 |
Comments