---
title: "Interface ITranslationsClient"
slug: "sdk--stylelabs.m.sdk.clients.itranslationsclient"
abstract: ""
---
# Interface ITranslationsClient

Contains functionality to manage translations.

## Namespace: StylelabsStylelabs.MSdkClients

## Assembly: Stylelabs.M.Sdk.dll

## Syntax

```csharp
public interface ITranslationsClient
```

## Methods

### LocalizeAsync(string, CultureInfo, params Parameter\[\])

Retrieves the localized string for the given `entryName`.

#### Declaration

```csharp
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](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.sdk.models.localization.parameter.html) | 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

```csharp
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](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.sdk.models.localization.parameter.html) | 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`. |
