From 2aceba638e01cf649f4e47f4d776da3414bc1542 Mon Sep 17 00:00:00 2001
From: "HUGO.CM" <156796551@qq.com>
Date: Tue, 20 Jun 2023 11:24:09 +0800
Subject: [PATCH] =?UTF-8?q?feat:=20=E8=A7=A3=E5=86=B3=E5=A4=9A=E4=B8=AAISt?=
=?UTF-8?q?ringLocalizerFactory=E5=AE=9E=E7=8E=B0=E6=97=B6=EF=BC=8C?=
=?UTF-8?q?=E7=9B=B8=E4=BA=92=E5=86=B2=E7=AA=81=E9=97=AE=E9=A2=98=E3=80=82?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/BootstrapBlazor/Services/CacheManager.cs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/BootstrapBlazor/Services/CacheManager.cs b/src/BootstrapBlazor/Services/CacheManager.cs
index 4d5838faa..a0bec805a 100644
--- a/src/BootstrapBlazor/Services/CacheManager.cs
+++ b/src/BootstrapBlazor/Services/CacheManager.cs
@@ -160,7 +160,7 @@ internal class CacheManager : ICacheManager
///
public static IStringLocalizer? CreateLocalizerByType(Type resourceSource) => resourceSource.Assembly.IsDynamic
? null
- : Instance.Provider.GetRequiredService().Create(resourceSource);
+ : Instance.Provider.GetServices().FirstOrDefault(f => f.GetType() == typeof(JsonStringLocalizerFactory))?.Create(resourceSource);
///
///
--
Gitee