From ee3552e5a8be4f17ec075fb1297fc11d6f93fb84 Mon Sep 17 00:00:00 2001 From: mahuan <1007409254@qq.com> Date: Tue, 22 Oct 2024 23:37:43 +0800 Subject: [PATCH] fix: reference of localization file --- .../@nocobase/plugin-error-handler/src/server/server.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/plugins/@nocobase/plugin-error-handler/src/server/server.ts b/packages/plugins/@nocobase/plugin-error-handler/src/server/server.ts index 2c6e38c1ce..1bdf89de6b 100644 --- a/packages/plugins/@nocobase/plugin-error-handler/src/server/server.ts +++ b/packages/plugins/@nocobase/plugin-error-handler/src/server/server.ts @@ -12,8 +12,8 @@ import { BaseError } from '@nocobase/database'; import { Plugin } from '@nocobase/server'; import lodash from 'lodash'; import { ErrorHandler } from './error-handler'; -import enUS from './locale/en_US'; -import zhCN from './locale/zh_CN'; +import enUS from './locale/en-US.json'; +import zhCN from './locale/zh-CN.json'; export class PluginErrorHandlerServer extends Plugin { errorHandler: ErrorHandler = new ErrorHandler();