From 41e8164c2e8a35ec1c59bc383d0ff1d30c2fafb0 Mon Sep 17 00:00:00 2001 From: hang <872297557@qq.com> Date: Thu, 17 Oct 2024 09:23:28 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95=E6=89=93=E5=8C=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Helper/InternationalizationHelper.cs | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/IRaCIS.Core.Application/Helper/InternationalizationHelper.cs b/IRaCIS.Core.Application/Helper/InternationalizationHelper.cs index 90c2c9120..767c0a66e 100644 --- a/IRaCIS.Core.Application/Helper/InternationalizationHelper.cs +++ b/IRaCIS.Core.Application/Helper/InternationalizationHelper.cs @@ -27,15 +27,15 @@ public static class InternationalizationHelper public static string USJsonPath = Path.Combine(JsonFileFolder, StaticData.En_US_Json); public static string CNJsonPath = Path.Combine(JsonFileFolder, StaticData.Zh_CN_Json); - static InternationalizationHelper() - { - if (!Directory.Exists(JsonFileFolder) || - !Directory.GetFiles(JsonFileFolder).Any(filePath => Path.GetExtension(filePath).Equals(".json", StringComparison.OrdinalIgnoreCase))|| - !File.Exists(USJsonPath) || !File.Exists(CNJsonPath)) - { - throw new BusinessValidationFailedException(I18n.T("IRaCISCHangfireJob_FileNotFound")); - } - } + //static InternationalizationHelper() + //{ + // if (!Directory.Exists(JsonFileFolder) || + // !Directory.GetFiles(JsonFileFolder).Any(filePath => Path.GetExtension(filePath).Equals(".json", StringComparison.OrdinalIgnoreCase))|| + // !File.Exists(USJsonPath) || !File.Exists(CNJsonPath)) + // { + // throw new BusinessValidationFailedException(I18n.T("IRaCISCHangfireJob_FileNotFound")); + // } + //}