Modules

filter

 

Objects/Functions

module (N/translation)

SuiteScript 2.0

translation.Locale

translation.Locale.{}

N/translation Module
translation.Locale
Enum Description: Holds the string values for supported locales for Translation Collections. This enum is used to pass the locale argument to translation.get(options), translation.selectLocale(options), and translation.load(options). This enum lists all locales that are enabled for a company. This enum also includes two special values: CURRENT and COMPANY_DEFAULT. The CURRENT value represents the current user’s locale, and the COMPANY_DEFAULT value represents the default locale for the company.
Type: enum
Supported Script Types: Client and server-side scripts For additional information, see SuiteScript 2.0 Script Types.
Module: N/translation Module
Sibling Object Members: N/translation Module Members
Since: 2019.1
Search NetSuite - https://system.netsuite.com/app/help/helpcenter.nl?search=translation.Locale

Example:

// Code Example 1
// Add additional code
//...
var myMsg = message.create({
title: translation.get({
collection: 'custcollection_my_strings',
key: 'MY_TITLE',
locale: translation.Locale.COMPANY_DEFAULT
})(),
message: translation.get({
collection: 'custcollection_my_strings',
key: 'MY_MESSAGE',
locale: translation.Locale.COMPANY_DEFAULT
})(),
type: message.Type.CONFIRMATION
});
//...
// Add additional code

//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_1541709045.html