fix(l10n): build issue

This commit is contained in:
xilesun 2024-10-23 00:20:59 +08:00
parent d7c8db97c8
commit 3b91f37975
8 changed files with 0 additions and 76 deletions

View File

@ -8,16 +8,11 @@
*/
import { Plugin } from '@nocobase/server';
import { namespace } from '..';
import { downloadXlsxTemplate, importXlsx } from './actions';
import { enUS, zhCN } from './locale';
import { importMiddleware } from './middleware';
export class PluginActionImportServer extends Plugin {
beforeLoad() {
this.app.i18n.addResources('zh-CN', namespace, zhCN);
this.app.i18n.addResources('en-US', namespace, enUS);
this.app.on('afterInstall', async () => {
if (!this.app.db.getRepository('roles')) {
return;

View File

@ -1,11 +0,0 @@
/**
* This file is part of the NocoBase (R) project.
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
* Authors: NocoBase Team.
*
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
* For more information, please refer to: https://www.nocobase.com/agreement.
*/
export { default as enUS } from './en-US';
export { default as zhCN } from './zh-CN';

View File

@ -1,11 +0,0 @@
/**
* This file is part of the NocoBase (R) project.
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
* Authors: NocoBase Team.
*
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
* For more information, please refer to: https://www.nocobase.com/agreement.
*/
export { default as enUS } from './en-US';
export { default as zhCN } from './zh-CN';

View File

@ -1,12 +0,0 @@
/**
* This file is part of the NocoBase (R) project.
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
* Authors: NocoBase Team.
*
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
* For more information, please refer to: https://www.nocobase.com/agreement.
*/
export { default as enUS } from './en-US';
export { default as zhCN } from './zh-CN';
export { default as ptBR } from './pt-BR';

View File

@ -1,12 +0,0 @@
/**
* This file is part of the NocoBase (R) project.
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
* Authors: NocoBase Team.
*
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
* For more information, please refer to: https://www.nocobase.com/agreement.
*/
export { default as enUS } from './en-US';
export { default as zhCN } from './zh-CN';
export { default as ptBR } from './pt-BR';

View File

@ -1,12 +0,0 @@
/**
* This file is part of the NocoBase (R) project.
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
* Authors: NocoBase Team.
*
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
* For more information, please refer to: https://www.nocobase.com/agreement.
*/
export { default as enUS } from './en-US';
export { default as zhCN } from './zh-CN';
export { default as ptBR } from './pt-BR';

View File

@ -18,7 +18,6 @@ import { Registry } from '@nocobase/utils';
import { Provider, namespace } from '.';
import initActions from './actions';
import { CODE_STATUS_UNUSED, CODE_STATUS_USED, PROVIDER_TYPE_SMS_ALIYUN } from './constants';
import { zhCN } from './locale';
import initProviders from './providers';
export interface Interceptor {
@ -134,8 +133,6 @@ export default class PluginVerficationServer extends Plugin {
async load() {
const { app, db, options } = this;
app.i18n.addResources('zh-CN', namespace, zhCN);
await this.importCollections(path.resolve(__dirname, 'collections'));
await initProviders(this);

View File

@ -1,10 +0,0 @@
/**
* This file is part of the NocoBase (R) project.
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
* Authors: NocoBase Team.
*
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
* For more information, please refer to: https://www.nocobase.com/agreement.
*/
export { default as zhCN } from './zh-CN';