machineTranslation.Language

Note:

The content in this help topic pertains to SuiteScript 2.1.

Enum Description

The language to translate documents to or from.

Use this enum to set the value of the following properties:

Note:

JavaScript does not include an enumeration type. The SuiteScript 2.x documentation uses the term enumeration (or enum) to describe a plain JavaScript object with a flat, map-like structure. In this object, each key points to a read-only string value.

Module

N/machineTranslation Module

Supported Script Types

Server scripts

For more information, see SuiteScript 2.x Script Types.

Since

2025.1

Values

Value

ARABIC

BRAZILIAN_PORTUGUESE

CANADIAN_FRENCH

CROATIAN

CZECH

DANISH

DUTCH

ENGLISH

FINNISH

FRENCH

GERMAN

GREEK

HEBREW

HUNGARIAN

ITALIAN

JAPANESE

KOREAN

NORWEGIAN

POLISH

PORTUGUESE

ROMANIAN

RUSSIAN

SIMPLIFIED_CHINESE

SLOVAK

SLOVENIAN

SPANISH

SWEDISH

THAI

TRADITIONAL_CHINESE

TURKISH

VIETNAMESE

Syntax

Important:

The following code sample shows the syntax for this member. It is not a functional example. For a complete script example, see N/machineTranslation Module Script Samples.

            // Add additional code
...

const myDocument1 = machineTranslation.createDocument({
    id: 'myDoc1',
    text: 'This is a document to be translated.'
});

const myDocument2 = machineTranslation.createDocument({
    id: 'myDoc2',
    text: 'This is another document to be translated.'
});

const translationResults = machineTranslation.translate({
    documents: [myDocument1, myDocument2],
    targetLanguage: machineTranslation.Language.CZECH
});

...
// Add additional code 

          

General Notices