Class SupportedLanguageUtils
Inheritance
System.Object
SupportedLanguageUtils
Assembly: Eco.Shared.dll
Syntax
public static class SupportedLanguageUtils : Object
Fields
DictToCrowdinLangCode
Declaration
public static Dictionary<SupportedLanguage, string> DictToCrowdinLangCode
Field Value
Type |
Description |
System.Collections.Generic.Dictionary<SupportedLanguage, System.String> |
|
DictToCultureLangCode
Declaration
public static Dictionary<SupportedLanguage, string> DictToCultureLangCode
Field Value
Type |
Description |
System.Collections.Generic.Dictionary<SupportedLanguage, System.String> |
|
DictToISOLangCode
Table for converting eco lang to ISO 639-1 language codes for use with external services.
Declaration
public static Dictionary<SupportedLanguage, string> DictToISOLangCode
Field Value
Type |
Description |
System.Collections.Generic.Dictionary<SupportedLanguage, System.String> |
|
Methods
GetLanguageFromSteamOrISOLangCode(String)
Declaration
public static SupportedLanguage GetLanguageFromSteamOrISOLangCode(string langCode)
Parameters
Type |
Name |
Description |
System.String |
langCode |
|
Returns
Parse(String)
Declaration
public static SupportedLanguage Parse(string s)
Parameters
Type |
Name |
Description |
System.String |
s |
|
Returns
ToCrowdinLangCode(SupportedLanguage)
Declaration
public static string ToCrowdinLangCode(this SupportedLanguage lang)
Parameters
Returns
Type |
Description |
System.String |
|
ToCultureLangCode(SupportedLanguage)
Declaration
public static string ToCultureLangCode(this SupportedLanguage lang)
Parameters
Returns
Type |
Description |
System.String |
|
ToISOLangCode(SupportedLanguage)
Declaration
public static string ToISOLangCode(this SupportedLanguage lang)
Parameters
Returns
Type |
Description |
System.String |
|