Webiant Logo Webiant Logo
  1. No results found.

    Try your search with a different keyword or use * as a wildcard.

ITranslationModelFactory.cs

using Nop.Web.Framework.Models;
using Nop.Web.Framework.Models.Translation;

namespace Nop.Web.Framework.Factories;

/// 
/// Represents translation model factory
/// 
public partial interface ITranslationModelFactory
{
    /// 
    /// Prepare translation model by the passed localized model
    /// 
    /// Localized model type
    /// The localized model to translate
    /// List of properties which should be translated
    /// 
    /// A task that represents the asynchronous operation
    /// The task result contains the translation model
    /// 
    Task PrepareTranslationModelAsync(ILocalizedModel model,
        params string[] propertiesToTranslate)
        where T : ILocalizedLocaleModel;

    /// 
    /// Prepare translation model by the passed localized model
    /// 
    /// Localized model type
    /// The localized model to translate
    /// List of properties which should be translated
    /// 
    /// A task that represents the asynchronous operation
    /// The task result contains the translation model
    /// 
    Task PrepareTranslationModelAsync(ILocalizedModel model,
        params (string PropertyName, bool IsHtml)[] propertiesToTranslate)
        where T : ILocalizedLocaleModel;
}