ILocalizationManager.cs 737 B

123456789101112131415161718192021222324
  1. using System.Collections.Generic;
  2. using Abp.Localization.Sources;
  3. namespace Abp.Localization
  4. {
  5. /// <summary>
  6. /// This interface is used to manage localization system.
  7. /// </summary>
  8. public interface ILocalizationManager
  9. {
  10. /// <summary>
  11. /// Gets a localization source with name.
  12. /// </summary>
  13. /// <param name="name">Unique name of the localization source</param>
  14. /// <returns>The localization source</returns>
  15. ILocalizationSource GetSource(string name);
  16. /// <summary>
  17. /// Gets all registered localization sources.
  18. /// </summary>
  19. /// <returns>List of sources</returns>
  20. IReadOnlyList<ILocalizationSource> GetAllSources();
  21. }
  22. }