2021-02-09 11:26:22 +01:00
|
|
|
|
using Umbraco.Cms.Core.Persistence.Repositories;
|
|
|
|
|
|
using Umbraco.Extensions;
|
2021-02-09 10:22:42 +01:00
|
|
|
|
|
2021-02-12 13:36:50 +01:00
|
|
|
|
namespace Umbraco.Cms.Infrastructure.Persistence.Repositories.Implement
|
2019-03-27 12:41:02 +11:00
|
|
|
|
{
|
|
|
|
|
|
internal static class LanguageRepositoryExtensions
|
|
|
|
|
|
{
|
|
|
|
|
|
public static bool IsDefault(this ILanguageRepository repo, string culture)
|
|
|
|
|
|
{
|
2019-03-27 16:31:53 +11:00
|
|
|
|
if (culture == null || culture == "*") return false;
|
2019-03-27 12:41:02 +11:00
|
|
|
|
return repo.GetDefaultIsoCode().InvariantEquals(culture);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
2019-03-27 16:31:53 +11:00
|
|
|
|
}
|