using Umbraco.Core.Services;
namespace Umbraco.Web.PublishedCache
{
///
/// Provides the default implementation of .
///
public class DefaultCultureAccessor : IDefaultCultureAccessor
{
private readonly ILocalizationService _localizationService;
///
/// Initializes a new instance of the class.
///
///
public DefaultCultureAccessor(ILocalizationService localizationService)
{
_localizationService = localizationService;
}
///
public string DefaultCulture => _localizationService.GetDefaultLanguageIsoCode() ?? ""; // fast
}
}