using Nop.Core.Domain.Localization; namespace Nop.Services.Localization; /// /// Language service interface /// public partial interface ILanguageService { /// /// Deletes a language /// /// Language /// A task that represents the asynchronous operation Task DeleteLanguageAsync(Language language); /// /// Gets all languages /// /// Load records allowed only in a specified store; pass 0 to load all records /// A value indicating whether to show hidden records /// /// A task that represents the asynchronous operation /// The task result contains the languages /// Task> GetAllLanguagesAsync(bool showHidden = false, int storeId = 0); /// /// Gets all languages /// /// Load records allowed only in a specified store; pass 0 to load all records /// A value indicating whether to show hidden records /// /// The languages /// IList GetAllLanguages(bool showHidden = false, int storeId = 0); /// /// Gets a language /// /// Language identifier /// /// A task that represents the asynchronous operation /// The task result contains the language /// Task GetLanguageByIdAsync(int languageId); /// /// Inserts a language /// /// Language /// A task that represents the asynchronous operation Task InsertLanguageAsync(Language language); /// /// Updates a language /// /// Language /// A task that represents the asynchronous operation Task UpdateLanguageAsync(Language language); /// /// Get 2 letter ISO language code /// /// Language /// ISO language code string GetTwoLetterIsoLanguageName(Language language); }