Class CultureMetadataManager
Inheritance
CultureMetadataManager
Assembly: Sdl.Core.Globalization.Async.dll
public class CultureMetadataManager : ICultureMetadataManager, IDisposable
Methods
Declaration
Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type |
Name |
Description |
bool |
disposing |
|
Declaration
public Task<LanguageBase[]> GetAllNeutralLanguagesAsync(bool ignoreMachineCultures = false, bool excludeDeprecated = true)
Parameters
Type |
Name |
Description |
bool |
ignoreMachineCultures |
|
bool |
excludeDeprecated |
|
Returns
Declaration
public Task<Product[]> GetAllRegisteredProductsAsync()
Returns
Declaration
public Task<LanguageBase[]> GetAllSpecificLanguagesAsync(bool ignoreMachineCultures = false, bool excludeDeprecated = true)
Parameters
Type |
Name |
Description |
bool |
ignoreMachineCultures |
|
bool |
excludeDeprecated |
|
Returns
Declaration
public Task<List<UnitMetadata>> GetAllUnitMetadataAsync(string languageCode)
Parameters
Type |
Name |
Description |
string |
languageCode |
|
Returns
Declaration
public Task<List<UnitMetadata>> GetAllUnitMetadataFromLabelAsync(string label, string languageCode)
Parameters
Returns
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
Declaration
public Task<string> GetDataVersionAsync()
Returns
Declaration
public Task<LanguageBase> GetLanguageAsync(string languageCode)
Parameters
Type |
Name |
Description |
string |
languageCode |
|
Returns
Declaration
public Task<LanguageBase> GetLanguageAsync(string languageCodeInProduct, string productId)
Parameters
Type |
Name |
Description |
string |
languageCodeInProduct |
|
string |
productId |
|
Returns
Declaration
public Task<LanguageMetadata[]> GetLanguageMetadataAsync(string[] languageCodes = null)
Parameters
Type |
Name |
Description |
string |
languageCodes |
|
Returns
Declaration
public Task<LanguageBase[]> GetLanguagesAsync(string[] languageCodes = null, bool ignoreMachineCulturesUnlessNamed = false, bool excludeDeprecatedUnlessNamed = true)
Parameters
Type |
Name |
Description |
string |
languageCodes |
|
bool |
ignoreMachineCulturesUnlessNamed |
|
bool |
excludeDeprecatedUnlessNamed |
|
Returns
Declaration
public Task<NumberMetadata> GetNumberMetadataAsync(string languageCode)
Parameters
Type |
Name |
Description |
string |
languageCode |
|
Returns
Declaration
public Task<LabelValueSet> GetPreferredLabelValueSetAsync(string unitKey, string languageCode)
Parameters
Returns
Declaration
public Task<IScriptDetails[]> GetScriptDetailsAsync(string scriptCode = null)
Parameters
Type |
Name |
Description |
string |
scriptCode |
|
Returns
Declaration
public Task<StableCultureInfo> GetStableCultureInfoAsync(string languageCode)
Parameters
Type |
Name |
Description |
string |
languageCode |
|
Returns
Declaration
public Task<StableCultureInfo[]> GetStableCultureInfosAsync(string[] languageCodes)
Parameters
Type |
Name |
Description |
string |
languageCodes |
|
Returns
Declaration
public Task<LanguageBase[]> GetSupportedLanguagesAsync(string productId)
Parameters
Type |
Name |
Description |
string |
productId |
|
Returns
Declaration
public Task<UnitDefinition[]> GetUnitDefinitionsAsync()
Returns
Declaration
public Task<List<UnitMetadata>> GetUnitMetadataAsync(string languageCode)
Parameters
Type |
Name |
Description |
string |
languageCode |
|
Returns
Declaration
public Task<(UnitMetadata unitMetadata, string languageCodeFound)> GetUnitMetadataFromKeyAsync(string unitKey, string languageCode)
Parameters
Returns
Type |
Description |
TaskUnitMetadataSystem.ValueTuple{Sdl.Core.Globalization.UnitMetadata.UnitMetadata,System.String}.unitMetadatastringSystem.ValueTuple{Sdl.Core.Globalization.UnitMetadata.UnitMetadata,System.String}.languageCodeFound |
|
Declaration
public Task<UnitMetadata> GetUnitMetadataFromLabelAsync(string label, string languageCode)
Parameters
Returns
Implements