mirror of
https://github.com/labring/FastGPT.git
synced 2025-10-14 15:11:13 +00:00

* feat: workflow catch error (#5220) * feat: error catch * feat: workflow catch error * perf: add catch error to node * feat: system tool error catch * catch error * fix: ts * update doc * perf: training queue code (#5232) * doc * perf: training queue code * Feat: 优化错误提示与重试逻辑 (#5192) * feat: 批量重试异常数据 & 报错信息国际化 - 新增“全部重试”按钮,支持批量重试所有训练异常数据 - 报错信息支持国际化,常见错误自动映射为 i18n key - 相关文档和 i18n 资源已同步更新 * feat: enhance error message and retry mechanism * feat: enhance error message and retry mechanism * feat: add retry_failed i18n key * feat: enhance error message and retry mechanism * feat: enhance error message and retry mechanism * feat: enhance error message and retry mechanism : 5 * feat: enhance error message and retry mechanism : 6 * feat: enhance error message and retry mechanism : 7 * feat: enhance error message and retry mechanism : 8 * perf: catch chat error * perf: copy hook (#5246) * perf: copy hook * doc * doc * add app evaluation (#5083) * add app evaluation * fix * usage * variables * editing condition * var ui * isplus filter * migrate code * remove utils * name * update type * build * fix * fix * fix * delete comment * fix * perf: eval code * eval code * eval code * feat: ttfb time in model log * Refactor chat page (#5253) * feat: update side bar layout; add login and logout logic at chat page * refactor: encapsulate login logic and reuse it in `LoginModal` and `Login` page * chore: improve some logics and comments * chore: improve some logics * chore: remove redundant side effect; add translations --------- Co-authored-by: Archer <545436317@qq.com> * perf: chat page code * doc * perf: provider redirect * chore: ui improvement (#5266) * Fix: SSE * Fix: SSE * eval pagination (#5264) * eval scroll pagination * change eval list to manual pagination * number * fix build * fix * version doc (#5267) * version doc * version doc * doc * feat: eval model select * config eval model * perf: eval detail modal ui * doc * doc * fix: chat store reload * doc --------- Co-authored-by: colnii <1286949794@qq.com> Co-authored-by: heheer <heheer@sealos.io> Co-authored-by: 酒川户 <76519998+chuanhu9@users.noreply.github.com>
67 lines
2.4 KiB
TypeScript
67 lines
2.4 KiB
TypeScript
import 'i18next';
|
|
import type account_team from './zh-CN/account_team.json';
|
|
import type account from './zh-CN/account.json';
|
|
import type account_thirdParty from './zh-CN/account_thirdParty.json';
|
|
import type account_promotion from './zh-CN/account_promotion.json';
|
|
import type account_inform from './zh-CN/account_inform.json';
|
|
import type account_setting from './zh-CN/account_setting.json';
|
|
import type account_apikey from './zh-CN/account_apikey.json';
|
|
import type account_bill from './zh-CN/account_bill.json';
|
|
import type account_usage from './zh-CN/account_usage.json';
|
|
import type account_info from './zh-CN/account_info.json';
|
|
import type common from './zh-CN/common.json';
|
|
import type dataset from './zh-CN/dataset.json';
|
|
import type app from './zh-CN/app.json';
|
|
import type file from './zh-CN/file.json';
|
|
import type publish from './zh-CN/publish.json';
|
|
import type workflow from './zh-CN/workflow.json';
|
|
import type user from './zh-CN/user.json';
|
|
import type chat from './zh-CN/chat.json';
|
|
import type login from './zh-CN/login.json';
|
|
import type account_model from './zh-CN/account_model.json';
|
|
import type dashboard_mcp from './zh-CN/dashboard_mcp.json';
|
|
import type { I18N_NAMESPACES } from './constants';
|
|
|
|
export interface I18nNamespaces {
|
|
common: typeof common;
|
|
dataset: typeof dataset;
|
|
app: typeof app;
|
|
file: typeof file;
|
|
publish: typeof publish;
|
|
workflow: typeof workflow;
|
|
user: typeof user;
|
|
chat: typeof chat;
|
|
login: typeof login;
|
|
account_info: typeof account_info;
|
|
account_usage: typeof account_usage;
|
|
account_bill: typeof account_bill;
|
|
account_apikey: typeof account_apikey;
|
|
account_setting: typeof account_setting;
|
|
account_inform: typeof account_inform;
|
|
account_promotion: typeof account_promotion;
|
|
account: typeof account;
|
|
account_team: typeof account_team;
|
|
account_thirdParty: typeof account_thirdParty;
|
|
account_model: typeof account_model;
|
|
dashboard_mcp: typeof dashboard_mcp;
|
|
dashboard_evaluation: typeof dashboard_evaluation;
|
|
}
|
|
|
|
export type I18nNsType = (keyof I18nNamespaces)[];
|
|
|
|
export type ParseKeys<Ns extends keyof I18nNamespaces = keyof I18nNamespaces> = {
|
|
[K in Ns]: `${K}:${keyof I18nNamespaces[K] & string}`;
|
|
}[Ns];
|
|
|
|
export type I18nKeyFunction = {
|
|
<Key extends ParseKeys>(key: Key): Key;
|
|
};
|
|
|
|
declare module 'i18next' {
|
|
interface CustomTypeOptions {
|
|
returnNull: false;
|
|
defaultNS: I18N_NAMESPACES;
|
|
resources: I18nNamespaces;
|
|
}
|
|
}
|