Table of Contents

Class TcgDexLanguages

Namespace
TcgDex
Assembly
TcgDex.CSharpSdk.dll

The language codes the TCGdex API accepts.

public static class TcgDexLanguages

Inheritance

Inherited Members

Remarks

This list is not guesswork: requesting an unsupported code makes the API enumerate the valid set in its error body, and these are exactly those values. Note that GraphQL ignores language entirely and always answers in English.

Fields

ChineseSimplified

Chinese (Simplified).

public const string ChineseSimplified = "zh-cn"

Field Value

string

ChineseTraditional

Chinese (Traditional).

public const string ChineseTraditional = "zh-tw"

Field Value

string

Dutch

Dutch.

public const string Dutch = "nl"

Field Value

string

English

English — the API's default.

public const string English = "en"

Field Value

string

French

French.

public const string French = "fr"

Field Value

string

German

German.

public const string German = "de"

Field Value

string

Indonesian

Indonesian.

public const string Indonesian = "id"

Field Value

string

Italian

Italian.

public const string Italian = "it"

Field Value

string

Japanese

Japanese.

public const string Japanese = "ja"

Field Value

string

Korean

Korean.

public const string Korean = "ko"

Field Value

string

Polish

Polish.

public const string Polish = "pl"

Field Value

string

Portuguese

Portuguese.

public const string Portuguese = "pt"

Field Value

string

PortugueseBrazil

Portuguese (Brazil).

public const string PortugueseBrazil = "pt-br"

Field Value

string

PortuguesePortugal

Portuguese (Portugal).

public const string PortuguesePortugal = "pt-pt"

Field Value

string

Russian

Russian.

public const string Russian = "ru"

Field Value

string

Spanish

Spanish.

public const string Spanish = "es"

Field Value

string

SpanishMexico

Spanish (Mexico).

public const string SpanishMexico = "es-mx"

Field Value

string

Thai

Thai.

public const string Thai = "th"

Field Value

string

Properties

All

Every supported language code.

public static IReadOnlyList<string> All { get; }

Property Value

IReadOnlyList<string>

Methods

IsSupported(string?)

Whether the API supports language. Comparison ignores case, matching how the API treats the path segment.

public static bool IsSupported(string? language)

Parameters

language string?

The language code to test, such as "pt-br".

Returns

bool

true when the code is supported.