Interface ICultureMetadataManager
Assembly: Sdl.Core.Globalization.Async.dll
public interface ICultureMetadataManager
Methods
Declaration
Task<LanguageBase[]> GetAllNeutralLanguagesAsync(bool ignoreMachineCultures = false, bool excludeDeprecated = true)
Parameters
Type |
Name |
Description |
bool |
ignoreMachineCultures |
|
bool |
excludeDeprecated |
|
Returns
Declaration
Task<Product[]> GetAllRegisteredProductsAsync()
Returns
Declaration
Task<LanguageBase[]> GetAllSpecificLanguagesAsync(bool ignoreMachineCultures = false, bool excludeDeprecated = true)
Parameters
Type |
Name |
Description |
bool |
ignoreMachineCultures |
|
bool |
excludeDeprecated |
|
Returns
Declaration
Task<List<UnitMetadata>> GetAllUnitMetadataAsync(string languageCode)
Parameters
Type |
Name |
Description |
string |
languageCode |
|
Returns
Declaration
Task<List<UnitMetadata>> GetAllUnitMetadataFromLabelAsync(string label, string languageCode)
Parameters
Returns
Declaration
Task<IList<AlternativeLanguageCode>> GetAlternativeLanguageCodesAsync(string productId, string languageCode)
Parameters
Returns
Declaration
Task<LanguageMetadata[]> GetApplicableLanguageMetadataAsync(string[] languageCodes)
Parameters
Type |
Name |
Description |
string |
languageCodes |
|
Returns
Declaration
Task<string> GetDataVersionAsync()
Returns
Declaration
Task<LanguageBase> GetLanguageAsync(string languageCode)
Parameters
Type |
Name |
Description |
string |
languageCode |
|
Returns
Declaration
Task<LanguageBase> GetLanguageAsync(string languageCodeInProduct, string productId)
Parameters
Type |
Name |
Description |
string |
languageCodeInProduct |
|
string |
productId |
|
Returns
Declaration
Task<LanguageMetadata[]> GetLanguageMetadataAsync(string[] languageCodes = null)
Parameters
Type |
Name |
Description |
string |
languageCodes |
|
Returns
Declaration
Task<LanguageBase[]> GetLanguagesAsync(string[] languageCodes = null, bool ignoreMachineCulturesUnlessNamed = false, bool excludeDeprecatedUnlessNamed = true)
Parameters
Type |
Name |
Description |
string |
languageCodes |
|
bool |
ignoreMachineCulturesUnlessNamed |
|
bool |
excludeDeprecatedUnlessNamed |
|
Returns
Declaration
Task<NumberMetadata> GetNumberMetadataAsync(string languageCode)
Parameters
Type |
Name |
Description |
string |
languageCode |
|
Returns
Declaration
Task<LabelValueSet> GetPreferredLabelValueSetAsync(string unitKey, string languageCode)
Parameters
Returns
Declaration
Task<IScriptDetails[]> GetScriptDetailsAsync(string scriptCode = null)
Parameters
Type |
Name |
Description |
string |
scriptCode |
|
Returns
Declaration
Task<StableCultureInfo> GetStableCultureInfoAsync(string languageCode)
Parameters
Type |
Name |
Description |
string |
languageCode |
|
Returns
Declaration
Task<StableCultureInfo[]> GetStableCultureInfosAsync(string[] languageCodes)
Parameters
Type |
Name |
Description |
string |
languageCodes |
|
Returns
Declaration
Task<LanguageBase[]> GetSupportedLanguagesAsync(string productId)
Parameters
Type |
Name |
Description |
string |
productId |
|
Returns
Declaration
Task<UnitDefinition[]> GetUnitDefinitionsAsync()
Returns
Declaration
Task<List<UnitMetadata>> GetUnitMetadataAsync(string languageCode)
Parameters
Type |
Name |
Description |
string |
languageCode |
|
Returns
Declaration
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
Task<UnitMetadata> GetUnitMetadataFromLabelAsync(string label, string languageCode)
Parameters
Returns