Table of Contents

Struct Locale

Namespace
Vonage.VerifyV2.StartVerification
Assembly
Vonage.dll

Represents a language locale for verification request messages. The locale determines the language used in SMS and voice messages. Has no effect on Silent Auth channels.

public readonly struct Locale
Inherited Members

Properties

DeDe

German (Germany) locale.

public static Locale DeDe { get; }

Property Value

Locale

EnGb

English (United Kingdom) locale.

public static Locale EnGb { get; }

Property Value

Locale

EnUs

English (United States) locale. This is the default locale.

public static Locale EnUs { get; }

Property Value

Locale

EsEs

Spanish (Spain) locale.

public static Locale EsEs { get; }

Property Value

Locale

EsMx

Spanish (Mexico) locale.

public static Locale EsMx { get; }

Property Value

Locale

EsUs

Spanish (United States) locale.

public static Locale EsUs { get; }

Property Value

Locale

FrFr

French (France) locale.

public static Locale FrFr { get; }

Property Value

Locale

HiIn

Hindi (India) locale.

public static Locale HiIn { get; }

Property Value

Locale

IdId

Indonesian (Indonesia) locale.

public static Locale IdId { get; }

Property Value

Locale

ItIt

Italian (Italy) locale.

public static Locale ItIt { get; }

Property Value

Locale

JaJp

Japanese (Japan) locale.

public static Locale JaJp { get; }

Property Value

Locale

Language

The IETF BCP 47 language tag (e.g., "en-us", "de-de").

public string Language { get; }

Property Value

string

PtBr

Portuguese (Brazil) locale.

public static Locale PtBr { get; }

Property Value

Locale

PtPt

Portuguese (Portugal) locale.

public static Locale PtPt { get; }

Property Value

Locale

RuRu

Russian (Russia) locale.

public static Locale RuRu { get; }

Property Value

Locale

Operators

implicit operator Locale(string)

Creates a Locale from a string value. Use this for locales not predefined as static properties.

public static implicit operator Locale(string value)

Parameters

value string

The locale value in IETF BCP 47 format (e.g., "ko-kr" for Korean).

Returns

Locale

A Locale instance.

implicit operator string(Locale)

Converts the Locale to its string representation.

public static implicit operator string(Locale value)

Parameters

value Locale

The locale.

Returns

string

The IETF BCP 47 language tag.