Class LanguageRegistryApi
Inheritance
System.Object
LanguageRegistryApi
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: Sdl.Core.Globalization.dll
Syntax
public sealed class LanguageRegistryApi
Properties
Instance
Declaration
public static LanguageRegistryApi Instance { get; }
Property Value
Methods
DeserializeObject(String)
Declaration
public void DeserializeObject(string value)
Parameters
Type |
Name |
Description |
System.String |
value |
|
GetAllLanguages()
Declaration
public IList<Language> GetAllLanguages()
Returns
Type |
Description |
System.Collections.Generic.IList<Language> |
|
GetAllNeutralLanguages()
Declaration
public IList<Language> GetAllNeutralLanguages()
Returns
Type |
Description |
System.Collections.Generic.IList<Language> |
|
GetAllRegisteredProducts()
Declaration
public IList<Product> GetAllRegisteredProducts()
Returns
Type |
Description |
System.Collections.Generic.IList<Product> |
|
GetAllSpecificLanguages()
Declaration
public IList<Language> GetAllSpecificLanguages()
Returns
Type |
Description |
System.Collections.Generic.IList<Language> |
|
GetAlternativeLanguageCodes(String, String)
Declaration
public IList<AlternativeLanguageCode> GetAlternativeLanguageCodes(string productId, string languageCode)
Parameters
Type |
Name |
Description |
System.String |
productId |
|
System.String |
languageCode |
|
Returns
GetLanguage(String)
Declaration
public Language GetLanguage(string languageCode)
Parameters
Type |
Name |
Description |
System.String |
languageCode |
|
Returns
GetLanguage(String, String)
Declaration
public Language GetLanguage(string alternativeLanguageCode, string productId)
Parameters
Type |
Name |
Description |
System.String |
alternativeLanguageCode |
|
System.String |
productId |
|
Returns
GetProductSpecificCodeWithFallback(String, String, String, out MappingType)
Declaration
public IList<AlternativeLanguageCode> GetProductSpecificCodeWithFallback(string sourceProductId, string sourceLanguageCode, string targetProductId, out MappingType mappingType)
Parameters
Type |
Name |
Description |
System.String |
sourceProductId |
|
System.String |
sourceLanguageCode |
|
System.String |
targetProductId |
|
MappingType |
mappingType |
|
Returns
GetSupportedLanguages(String)
Declaration
public IList<Language> GetSupportedLanguages(string productId)
Parameters
Type |
Name |
Description |
System.String |
productId |
|
Returns
Type |
Description |
System.Collections.Generic.IList<Language> |
|
Initialize()
Declaration
SerializeObject()
Declaration
public string SerializeObject()
Returns
Type |
Description |
System.String |
|