Language API object

Constructors

Properties

Constructors

  • Create a Language component for a Template message

    Parameters

    • code: string

      The code of the language or locale to use. Accepts both language and language_locale formats (e.g., en and en_US).

    • policy: "deterministic" = "deterministic"

      The language policy the message should follow. The only supported option is 'deterministic'.

    Returns Language

Properties

code: string

The code of the language or locale to use. Accepts both language and language_locale formats (e.g., en and en_US).

policy: "deterministic"

The language policy