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

QtySKURateAmount
1Battery¥26,000¥26,000
Last modified: 12/08/2023

Author

Comments

Write a Reply or Comment

Your email address will not be published.