Language

Language

Language API object

Constructor

new Language(code, policyopt)

Source:
Properties:
Name Type Description
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 String The language policy
Create a Language component for a Template message
Parameters:
Name Type Attributes Description
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 String <optional>
The language policy the message should follow. The only supported option is 'deterministic'. The variable isn't even read by my code :)
Throws:
If code is not provided
Type
Error