mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-27 00:17:31 +00:00
I18n Translations (#2267)
* rebase * i18n-1 * add error info i18n * fix * fix * refactor: 删除error.json * delete useI18n
This commit is contained in:
@@ -1,20 +1,22 @@
|
||||
import { ErrType } from '../errorCode';
|
||||
|
||||
import { i18nT } from '../../../../web/i18n/utils';
|
||||
/* dataset: 508000 */
|
||||
export enum PluginErrEnum {
|
||||
unExist = 'pluginUnExist',
|
||||
unAuth = 'pluginUnAuth'
|
||||
}
|
||||
|
||||
const errList = [
|
||||
{
|
||||
statusText: PluginErrEnum.unExist,
|
||||
message: '插件不存在'
|
||||
message: i18nT('common:code_error.plugin_error.not_exist')
|
||||
},
|
||||
{
|
||||
statusText: PluginErrEnum.unAuth,
|
||||
message: '无权操作该插件'
|
||||
message: i18nT('common:code_error.plugin_error.un_auth')
|
||||
}
|
||||
];
|
||||
|
||||
export default errList.reduce((acc, cur, index) => {
|
||||
return {
|
||||
...acc,
|
||||
|
Reference in New Issue
Block a user