Interface ITranslationsClient

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
TypeNameDescription
stringentryName

The name of the translation entry.

CultureInfoculture

The culture to load the translation in.

Parameterparameters

The named or positional parameters that will be inserted into the returned value.

Returns
TypeDescription
Task<>string

The localized string for the given entryName.

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
TypeNameDescription
stringcontextName

The name of the translation context.

stringentryName

The name of the translation entry.

CultureInfoculture

The culture to load the translation in.

Parameterparameters

The named or positional parameters that will be inserted into the returned value.

Returns
TypeDescription
Task<>string

The localized string for the given entryName.

Do you have some feedback for us?

If you have suggestions for improving this article,