Class LanguageRegistryApiAsync
Inheritance
LanguageRegistryApiAsync
Assembly: Sdl.Core.Globalization.Async.dll
Syntax
public class LanguageRegistryApiAsync
Constructors
Declaration
public LanguageRegistryApiAsync(ICultureMetadataManager cultureMetadataManager)
Parameters
Properties
Declaration
public ICultureMetadataManager CultureMetadataManager { get; }
Property Value
Methods
GetAllLanguagesAsync()
Declaration
public Task<IList<LanguageBase>> GetAllLanguagesAsync()
Returns
GetAllNeutralLanguagesAsync(bool, bool)
Declaration
public Task<IList<LanguageBase>> GetAllNeutralLanguagesAsync(bool ignoreMachineCultures = false, bool excludeDeprecated = true)
Parameters
Type |
Name |
Description |
bool |
ignoreMachineCultures |
|
bool |
excludeDeprecated |
|
Returns
GetAllRegisteredProductsAsync()
Declaration
public Task<IList<Product>> GetAllRegisteredProductsAsync()
Returns
GetAllSpecificLanguagesAsync(bool, bool)
Declaration
public Task<IList<LanguageBase>> GetAllSpecificLanguagesAsync(bool ignoreMachineCultures = true, bool excludeDeprecated = true)
Parameters
Type |
Name |
Description |
bool |
ignoreMachineCultures |
|
bool |
excludeDeprecated |
|
Returns
GetAlternativeLanguageCodesAsync(string, string)
Declaration
public Task<IList<AlternativeLanguageCode>> GetAlternativeLanguageCodesAsync(string productId, string languageCode)
Parameters
Returns
Declaration
public Task<LanguageMetadata[]> GetApplicableLanguageMetadataAsync(string[] languageCodes)
Parameters
Type |
Name |
Description |
string |
languageCodes |
|
Returns
GetLanguageAsync(string, bool)
Declaration
public Task<LanguageBase> GetLanguageAsync(string languageCode, bool exceptionIfUnknown = false)
Parameters
Type |
Name |
Description |
string |
languageCode |
|
bool |
exceptionIfUnknown |
|
Returns
GetLanguageAsync(string, string)
Declaration
public Task<LanguageBase> GetLanguageAsync(string alternativeLanguageCode, string productId)
Parameters
Type |
Name |
Description |
string |
alternativeLanguageCode |
|
string |
productId |
|
Returns
Declaration
public Task<LanguageMetadata[]> GetLanguageMetadataAsync(string[] languageCodes)
Parameters
Type |
Name |
Description |
string |
languageCodes |
|
Returns
GetLanguagesAsync(string[])
Declaration
public Task<IList<LanguageBase>> GetLanguagesAsync(string[] languageCodes)
Parameters
Type |
Name |
Description |
string |
languageCodes |
|
Returns
GetProductSpecificCodeWithFallbackAsync(string, string, string)
Declaration
public Task<(IList<AlternativeLanguageCode> codes, MappingType mappingType)> GetProductSpecificCodeWithFallbackAsync(string sourceProductId, string sourceLanguageCode, string targetProductId)
Parameters
Type |
Name |
Description |
string |
sourceProductId |
|
string |
sourceLanguageCode |
|
string |
targetProductId |
|
Returns
Type |
Description |
TaskIListAlternativeLanguageCodeSystem.ValueTuple{System.Collections.Generic.IList{Sdl.Core.Globalization.LanguageRegistry.AlternativeLanguageCode},Sdl.Core.Globalization.LanguageRegistry.MappingType}.codesMappingTypeSystem.ValueTuple{System.Collections.Generic.IList{Sdl.Core.Globalization.LanguageRegistry.AlternativeLanguageCode},Sdl.Core.Globalization.LanguageRegistry.MappingType}.mappingType |
|
GetSupportedLanguagesAsync(string)
Declaration
public Task<IList<LanguageBase>> GetSupportedLanguagesAsync(string productId)
Parameters
Type |
Name |
Description |
string |
productId |
|
Returns
SerializeObject(LanguageDataContainer)
Declaration
public static string SerializeObject(LanguageDataContainer container)
Parameters
Returns
SetCompatibilityInstance(LanguageRegistryApiAsync)
Declaration
protected static void SetCompatibilityInstance(LanguageRegistryApiAsync instance)
Parameters