Try your search with a different keyword or use * as a wildcard.
@inject INopFileProvider fileProvider;
@inject IWebHelper webHelper
@inject LocalizationSettings localizationSettings
@inject Microsoft.AspNetCore.Hosting.IWebHostEnvironment WebHostEnvironment
@using Nop.Core.Domain.Localization
@{
var supportRtl = (await workContext.GetWorkingLanguageAsync()).Rtl && !localizationSettings.IgnoreRtlPropertyForAdminArea;
var culture = CultureInfo.CurrentCulture;
var uiCulture = CultureInfo.CurrentUICulture;
//Code to get check if current cultures scripts are exists. If not, select parent cultures scripts
string GetDefaultCulture()
{
var localePattern = NopCommonDefaults.LocalePatternPath;
var cultureToUse = NopCommonDefaults.DefaultLocalePattern; //Default regionalisation to use
if (fileProvider.DirectoryExists(fileProvider.Combine(WebHostEnvironment.WebRootPath, string.Format(localePattern, culture.Name))))
cultureToUse = culture.Name;
else if (fileProvider.DirectoryExists(fileProvider.Combine(WebHostEnvironment.WebRootPath, string.Format(localePattern, culture.TwoLetterISOLanguageName))))
cultureToUse = culture.TwoLetterISOLanguageName;
return cultureToUse;
}
}
@*Google Font*@
@* CSS resources *@
@if (supportRtl)
{
}
else
{
}
@NopHtml.GenerateCssFiles()
@* scripts *@
@* cldr scripts (needed for globalize) *@
@* globalize scripts *@
@NopHtml.GenerateScripts(ResourceLocation.Head)
@NopHtml.GenerateInlineScripts(ResourceLocation.Head)