-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
TranslationLanguage.cs
42 lines (36 loc) · 1.9 KB
/
TranslationLanguage.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System;
using Azure.Core;
namespace Azure.AI.Translation.Text
{
/// <summary>
/// The value of the translation property is a dictionary of (key, value) pairs. Each key is a BCP 47 language tag.
/// A key identifies a language for which text can be translated to or translated from.
/// </summary>
public partial class TranslationLanguage
{
/// <summary> Initializes a new instance of TranslationLanguage. </summary>
/// <param name="name"> Display name of the language in the locale requested via Accept-Language header. </param>
/// <param name="nativeName"> Display name of the language in the locale native for this language. </param>
/// <param name="dir"> Directionality, which is rtl for right-to-left languages or ltr for left-to-right languages. </param>
/// <exception cref="ArgumentNullException"> <paramref name="name"/>, <paramref name="nativeName"/> or <paramref name="dir"/> is null. </exception>
internal TranslationLanguage(string name, string nativeName, string dir)
{
Argument.AssertNotNull(name, nameof(name));
Argument.AssertNotNull(nativeName, nameof(nativeName));
Argument.AssertNotNull(dir, nameof(dir));
Name = name;
NativeName = nativeName;
Dir = dir;
}
/// <summary> Display name of the language in the locale requested via Accept-Language header. </summary>
public string Name { get; }
/// <summary> Display name of the language in the locale native for this language. </summary>
public string NativeName { get; }
/// <summary> Directionality, which is rtl for right-to-left languages or ltr for left-to-right languages. </summary>
public string Dir { get; }
}
}