2019-03-27 12:41:02 +11:00
|
|
|
|
namespace Umbraco.Core.Persistence.Repositories.Implement
|
|
|
|
|
|
{
|
|
|
|
|
|
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
|
|
|
|
}
|