Interface ITranslationsClient
Version: 4.0
Contains functionality to manage translations.
Namespace: StylelabsStylelabs.MSdkClients
Assembly: Stylelabs.M.Sdk.dll
Syntax
RequestResponse
public interface ITranslationsClient
Methods
LocalizeAsync(string, CultureInfo, params Parameter[])
Retrieves the localized string for the given entryName
.
Declaration
RequestResponse
Task<string> LocalizeAsync(string entryName, CultureInfo culture = null, params Parameter[] parameters)
Parameters
Type | Name | Description |
---|---|---|
string | entryName |
The name of the translation entry. |
CultureInfo | culture |
The culture to load the translation in. |
Parameter | parameters |
The named or positional parameters that will be inserted into the returned value. |
Returns
Type | Description |
---|---|
Task<>string |
The localized string for the given |
LocalizeAsync(string, string, CultureInfo, params Parameter[])
Retrieves the localized string for the given entryName
.
Declaration
RequestResponse
Task<string> LocalizeAsync(string contextName, string entryName, CultureInfo culture = null, params Parameter[] parameters)
Parameters
Type | Name | Description |
---|---|---|
string | contextName |
The name of the translation context. |
string | entryName |
The name of the translation entry. |
CultureInfo | culture |
The culture to load the translation in. |
Parameter | parameters |
The named or positional parameters that will be inserted into the returned value. |
Returns
Type | Description |
---|---|
Task<>string |
The localized string for the given |