Update Index.cshtml.cs

pull/1428/head
Yunus Emre Kalkan 6 years ago
parent c4ced2dea9
commit 84a3073a0d

@ -104,14 +104,11 @@ namespace Volo.Docs.Pages.Documents.Project
private bool IsDocumentCultureDifferentThanCurrent()
{
var currentCulture = CultureInfo.CurrentCulture;
CultureInfo newCulture;
try
{
newCulture = CultureInfo.GetCultureInfo(LanguageCode);
var newCulture = CultureInfo.GetCultureInfo(LanguageCode);
return currentCulture.Name != newCulture.Name;
return CultureInfo.CurrentCulture.Name != newCulture.Name;
}
catch (CultureNotFoundException)
{

Loading…
Cancel
Save