Files
Umbraco-CMS/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/LanguageRepositoryExtensions.cs

15 lines
461 B
C#
Raw Normal View History

using Umbraco.Cms.Core.Persistence.Repositories;
using Umbraco.Extensions;
namespace Umbraco.Cms.Infrastructure.Persistence.Repositories.Implement
{
internal static class LanguageRepositoryExtensions
{
public static bool IsDefault(this ILanguageRepository repo, string culture)
{
if (culture == null || culture == "*") return false;
return repo.GetDefaultIsoCode().InvariantEquals(culture);
}
}
}