Previous Docs Version

The documentation you are viewing is for a previous version of the Vendr product. Click here to jump to the current stable version.

ITranslationServiceExtensions

API reference for ITranslationServiceExtensions in Vendr, the eCommerce solution for Umbraco v8+

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

Edit this page on GitHub

Site + logo design © 2025 Outfield Digital Ltd. Content contributions licensed under MIT.
Vendr® is a Registered Trademark of Outfield Digital Ltd.