DataWeb
Search Results for

    Show / Hide Table of Contents

    Interface ITranslationService

    Namespace: DataWeb.Localization
    Assembly: DataWeb.Core.dll
    Syntax
    public interface ITranslationService

    Methods

    GetTranslationRules(TranslationRuleFilter, CancellationToken)

    Declaration
    Task<IEnumerable<TranslationRule>> GetTranslationRules(TranslationRuleFilter filter, CancellationToken cancellationToken = default)
    Parameters
    Type Name Description
    TranslationRuleFilter filter
    CancellationToken cancellationToken
    Returns
    Type Description
    Task<IEnumerable<TranslationRule>>

    TranslateSectionData(IEnumerable<Control>, Dictionary<string, object>, Dictionary<string, object>, string, string, IUser, string, NavigationContext, CancellationToken)

    Declaration
    Task<Dictionary<string, string>> TranslateSectionData(IEnumerable<Control> localizationControls, Dictionary<string, object> sectionData, Dictionary<string, object> sourceSectionData, string culture, string sourceCulture, IUser user, string itemId = null, NavigationContext navigationContext = null, CancellationToken cancellationToken = default)
    Parameters
    Type Name Description
    IEnumerable<Control> localizationControls
    Dictionary<string, object> sectionData
    Dictionary<string, object> sourceSectionData
    string culture
    string sourceCulture
    IUser user
    string itemId
    NavigationContext navigationContext
    CancellationToken cancellationToken
    Returns
    Type Description
    Task<Dictionary<string, string>>

    TranslateValueAsync(string, string, string, TranslationTextType, IEnumerable<TranslationRule>, CancellationToken)

    Declaration
    Task<string> TranslateValueAsync(string value, string sourceCulture, string targetCulture, TranslationTextType textType = TranslationTextType.Plain, IEnumerable<TranslationRule> translationRules = null, CancellationToken cancellationToken = default)
    Parameters
    Type Name Description
    string value
    string sourceCulture
    string targetCulture
    TranslationTextType textType
    IEnumerable<TranslationRule> translationRules
    CancellationToken cancellationToken
    Returns
    Type Description
    Task<string>

    TranslateValuesAsync(IEnumerable<string>, string, string, TranslationTextType, IEnumerable<TranslationRule>, CancellationToken)

    Declaration
    Task<IEnumerable<string>> TranslateValuesAsync(IEnumerable<string> values, string sourceCulture, string targetCulture, TranslationTextType textType = TranslationTextType.Plain, IEnumerable<TranslationRule> translationRules = null, CancellationToken cancellationToken = default)
    Parameters
    Type Name Description
    IEnumerable<string> values
    string sourceCulture
    string targetCulture
    TranslationTextType textType
    IEnumerable<TranslationRule> translationRules
    CancellationToken cancellationToken
    Returns
    Type Description
    Task<IEnumerable<string>>
    In this article
    Back to top Generated by DocFX