maliming
4 years ago
No known key found for this signature in database
GPG Key ID: A646B9CB645ECEA4
1 changed files with
2 additions and
4 deletions
-
framework/src/Volo.Abp.AspNetCore.Mvc.UI.Packages/Volo/Abp/AspNetCore/Mvc/UI/Packages/Select2/Select2ScriptContributor.cs
|
|
|
@ -1,4 +1,5 @@ |
|
|
|
using System.Collections.Generic; |
|
|
|
using Microsoft.Extensions.Options; |
|
|
|
using Volo.Abp.AspNetCore.Mvc.UI.Bundling; |
|
|
|
using Volo.Abp.AspNetCore.Mvc.UI.Packages.Core; |
|
|
|
using Volo.Abp.Modularity; |
|
|
|
@ -17,10 +18,7 @@ public class Select2ScriptContributor : BundleContributor |
|
|
|
} |
|
|
|
public override void ConfigureDynamicResources(BundleConfigurationContext context) |
|
|
|
{ |
|
|
|
var fileName = context.LazyServiceProvider |
|
|
|
.LazyGetRequiredService<IOptions<AbpLocalizationOptions>>() |
|
|
|
.Value |
|
|
|
.GetCurrentUICultureLanguageFilesMap(PackageName); |
|
|
|
var fileName = context.LazyServiceProvider.LazyGetRequiredService<IOptions<AbpLocalizationOptions>>().Value.GetCurrentUICultureLanguageFilesMap(PackageName); |
|
|
|
var filePath = $"/libs/select2/js/i18n/{fileName}.js"; |
|
|
|
if (context.FileProvider.GetFileInfo(filePath).Exists) |
|
|
|
{ |
|
|
|
|