Interface ITranslationService
Assembly: DataWeb.Core.dll
Syntax
public interface ITranslationService
Methods
GetTranslationRules(TranslationRuleFilter, CancellationToken)
Declaration
Task<IEnumerable<TranslationRule>> GetTranslationRules(TranslationRuleFilter filter, CancellationToken cancellationToken = default)
Parameters
Returns
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
Returns
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
Returns
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
Returns