fix: reference of localization file

This commit is contained in:
mahuan 2024-10-22 23:37:43 +08:00
parent df3f239959
commit ee3552e5a8

View File

@ -12,8 +12,8 @@ import { BaseError } from '@nocobase/database';
import { Plugin } from '@nocobase/server'; import { Plugin } from '@nocobase/server';
import lodash from 'lodash'; import lodash from 'lodash';
import { ErrorHandler } from './error-handler'; import { ErrorHandler } from './error-handler';
import enUS from './locale/en_US'; import enUS from './locale/en-US.json';
import zhCN from './locale/zh_CN'; import zhCN from './locale/zh-CN.json';
export class PluginErrorHandlerServer extends Plugin { export class PluginErrorHandlerServer extends Plugin {
errorHandler: ErrorHandler = new ErrorHandler(); errorHandler: ErrorHandler = new ErrorHandler();