Interface ITranslationsClient
Contains functionality to manage translations.
Namespace: StylelabsStylelabs.MSdkClients
Assembly: Stylelabs.M.Sdk.dll
Syntax
Methods
LocalizeAsync(string, CultureInfo, params Parameter[])
Retrieves the localized string for the given entryName.
Declaration
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 entryName. |
LocalizeAsync(string, string, CultureInfo, params Parameter[])
Retrieves the localized string for the given entryName.
Declaration
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 entryName. |
If you have suggestions for improving this article, let us know!