using System.Linq.Expressions; using Nop.Core; using Nop.Core.Domain.Localization; namespace Nop.Services.Localization; /// /// Localized entity service interface /// public partial interface ILocalizedEntityService { /// /// Find localized properties /// /// Entity identifier /// Locale key group /// Locale key /// /// A task that represents the asynchronous operation /// The task result contains the found localized properties /// Task> GetEntityLocalizedPropertiesAsync(int entityId, string localeKeyGroup, string localeKey); /// /// Find localized value /// /// Language identifier /// Entity identifier /// Locale key group /// Locale key /// /// A task that represents the asynchronous operation /// The task result contains the found localized value /// Task GetLocalizedValueAsync(int languageId, int entityId, string localeKeyGroup, string localeKey); /// /// Save localized value /// /// Type /// Entity /// Key selector /// Locale value /// Language ID /// A task that represents the asynchronous operation Task SaveLocalizedValueAsync(T entity, Expression> keySelector, string localeValue, int languageId) where T : BaseEntity, ILocalizedEntity; /// /// Save localized value /// /// Type /// Property type /// Entity /// Key selector /// Locale value /// Language ID /// A task that represents the asynchronous operation Task SaveLocalizedValueAsync(T entity, Expression> keySelector, TPropType localeValue, int languageId) where T : BaseEntity, ILocalizedEntity; }