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
EnGb
English (United Kingdom) locale.
public static Locale EnGb { get; }
Property Value
EnUs
English (United States) locale. This is the default locale.
public static Locale EnUs { get; }
Property Value
EsEs
Spanish (Spain) locale.
public static Locale EsEs { get; }
Property Value
EsMx
Spanish (Mexico) locale.
public static Locale EsMx { get; }
Property Value
EsUs
Spanish (United States) locale.
public static Locale EsUs { get; }
Property Value
FrFr
French (France) locale.
public static Locale FrFr { get; }
Property Value
HiIn
Hindi (India) locale.
public static Locale HiIn { get; }
Property Value
IdId
Indonesian (Indonesia) locale.
public static Locale IdId { get; }
Property Value
ItIt
Italian (Italy) locale.
public static Locale ItIt { get; }
Property Value
JaJp
Japanese (Japan) locale.
public static Locale JaJp { get; }
Property Value
Language
The IETF BCP 47 language tag (e.g., "en-us", "de-de").
public string Language { get; }
Property Value
PtBr
Portuguese (Brazil) locale.
public static Locale PtBr { get; }
Property Value
PtPt
Portuguese (Portugal) locale.
public static Locale PtPt { get; }
Property Value
RuRu
Russian (Russia) locale.
public static Locale RuRu { get; }
Property Value
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
valuestringThe 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
valueLocaleThe locale.
Returns
- string
The IETF BCP 47 language tag.