The translation language class, which contains the information of the translation languages.

Constructors

Properties

Constructors

  • Parameters

    • params: {
          code: string;
          name: string;
          nativeName: string;
      }
      • code: string
      • name: string
      • nativeName: string

    Returns ChatTranslateLanguage

Properties

code: string

The code of a target language. For example, the code for simplified Chinese is "zh-Hans".

name: string

The language name. For example, the name for simplified Chinese is "Chinese Simplified".

nativeName: string

The native name of the language. For example, the native name of simplified Chinese is "Chinese (Simplified)".