ITranslationServiceExtensions
Extension methods for the Vendr Translation service
public static class ITranslationServiceExtensions
Namespace
Methods
TranslateValues (1 of 2)
Translates a series of values to the given language
public static IEnumerable<string> TranslateValues(this ITranslationService translationService,
IEnumerable<string> values, string languageIsoCode)
Parameters
Parameter | Description |
---|---|
translationService |
The ITranslationService instance |
values |
The values to attempt to translate |
languageIsoCode |
The ISO Code of the language to attempt to translate to |
Returns
A list of translated value, or the original value if a translation was unsuccessful
TranslateValues (2 of 2)
Translate a series of dictionary values to the given language
public static IDictionary<string, string> TranslateValues(
this ITranslationService translationService, IEnumerable<KeyValuePair<string, string>> values,
string languageIsoCode)
Parameters
Parameter | Description |
---|---|
translationService |
The ITranslationService instance |
values |
The values to attempt to translate |
languageIsoCode |
The ISO Code of the language to attempt to translate to |
Returns
A dictionary of translated values, or the original value if a translation was unsuccessful