🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.
TypeScript agentagent-collaborationagent-harnessloop-engineeringmcppersonal-assistantproactive-agentskillssuper-agenttask-management
feat: add businessErrorsLocales and businessLocales to error handling
YuTengjingba4834ff844e
diff --git a/src/business/locales/errors.ts b/src/business/locales/errors.tsnew file mode 100644index 00000000000..601c6ca6538--- /dev/null+++ b/src/business/locales/errors.ts@@ -0,0 +1 @@+export const businessErrorsLocales = {};diff --git a/src/business/business-locales.ts b/src/business/locales/index.tssimilarity index 100%rename from src/business/business-locales.tsrename to src/business/locales/index.tsdiff --git a/src/locales/default/error.ts b/src/locales/default/error.tsindex 31e9f4a495e..a1179ebe29d 100644--- a/src/locales/default/error.ts+++ b/src/locales/default/error.ts@@ -1,3 +1,5 @@+import { businessErrorsLocales } from '@/business/locales/errors';+export default {'clerkAuth.loginSuccess.action': 'Continue Session','clerkAuth.loginSuccess.desc':@@ -234,4 +236,5 @@ export default {'upload.title': 'File upload failed. Please check your network connection or try again later','upload.unknownError': 'Error reason: {{reason}}','upload.uploadFailed': 'File upload failed.',+ ...businessErrorsLocales,};diff --git a/src/locales/default/index.ts b/src/locales/default/index.tsindex 12a32eeba50..e73af03cfaf 100644--- a/src/locales/default/index.ts+++ b/src/locales/default/index.ts@@ -1,4 +1,4 @@-import { businessLocales } from '@/business/business-locales';+import { businessLocales } from '@/business/locales/index';import auth from './auth';import authError from './authError';