Show / Hide Table of Contents

Class SupportedLanguageUtils

Inheritance
System.Object
SupportedLanguageUtils
Namespace: Eco.Shared.Localization
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

Table for converting eco lang to .NET culture codes for use with external ASP.NET restful services. A complete list of supported CultureInfo codes can be found here: https://docs.microsoft.com/en-us/bingmaps/rest-services/common-parameters-and-types/supported-culture-codes

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
Type Description
SupportedLanguage

Parse(String)

Declaration
public static SupportedLanguage Parse(string s)
Parameters
Type Name Description
System.String s
Returns
Type Description
SupportedLanguage

ToCrowdinLangCode(SupportedLanguage)

Declaration
public static string ToCrowdinLangCode(this SupportedLanguage lang)
Parameters
Type Name Description
SupportedLanguage lang
Returns
Type Description
System.String

ToCultureLangCode(SupportedLanguage)

Declaration
public static string ToCultureLangCode(this SupportedLanguage lang)
Parameters
Type Name Description
SupportedLanguage lang
Returns
Type Description
System.String

ToISOLangCode(SupportedLanguage)

Declaration
public static string ToISOLangCode(this SupportedLanguage lang)
Parameters
Type Name Description
SupportedLanguage lang
Returns
Type Description
System.String
☀
☾
In This Article
Back to top
Copyright (c) Strange Loop Games 2021
☀
☾