@lingxiteam/assets 4.3.2-alpha.6 → 4.3.2-alpha.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/error/errorDisplay/Mobile/Drawer/Drawer.js +3 -2
- package/es/error/errorDisplay/Mobile/ErrorMsg/index.js +4 -3
- package/es/error/errorDisplay/Mobile/defaultGlobalConfig.js +3 -2
- package/es/error/errorDisplay/Web/Drawer/Drawer.js +4 -3
- package/es/error/errorDisplay/Web/ErrorMsg/index.js +12 -11
- package/es/error/errorDisplay/Web/defaultGlobalConfig.js +3 -2
- package/es/error/errorDisplay/const.js +26 -24
- package/es/i18n/index.d.ts +6 -0
- package/es/i18n/index.js +62 -0
- package/es/i18n/locales/en-US.d.ts +74 -0
- package/es/i18n/locales/en-US.js +75 -0
- package/es/i18n/locales/zh-CN.d.ts +74 -0
- package/es/i18n/locales/zh-CN.js +75 -0
- package/es/rootConfig/locales/enus/config-locales-es.pc.js +2 -0
- package/es/rootConfig/locales/zhcn/config-locales-cn.pc.js +2 -0
- package/es/rootConfig/locales/zhhk/config-locales-hk.pc.js +2 -0
- package/es/rootConfig/pc/LargeScreen.d.ts +51 -0
- package/es/rootConfig/pc/LargeScreen.js +56 -0
- package/es/rootConfig/pc/index.d.ts +1 -0
- package/es/rootConfig/pc/index.js +2 -1
- package/es/utils/url.js +4 -2
- package/lib/error/errorDisplay/Mobile/Drawer/Drawer.js +3 -2
- package/lib/error/errorDisplay/Mobile/ErrorMsg/index.js +4 -3
- package/lib/error/errorDisplay/Mobile/defaultGlobalConfig.js +3 -2
- package/lib/error/errorDisplay/Web/Drawer/Drawer.js +4 -3
- package/lib/error/errorDisplay/Web/ErrorMsg/index.js +12 -11
- package/lib/error/errorDisplay/Web/defaultGlobalConfig.js +3 -2
- package/lib/error/errorDisplay/const.js +25 -24
- package/lib/i18n/index.d.ts +6 -0
- package/lib/i18n/index.js +70 -0
- package/lib/i18n/locales/en-US.d.ts +74 -0
- package/lib/i18n/locales/en-US.js +81 -0
- package/lib/i18n/locales/zh-CN.d.ts +74 -0
- package/lib/i18n/locales/zh-CN.js +81 -0
- package/lib/rootConfig/locales/enus/config-locales-es.pc.js +2 -0
- package/lib/rootConfig/locales/zhcn/config-locales-cn.pc.js +2 -0
- package/lib/rootConfig/locales/zhhk/config-locales-hk.pc.js +2 -0
- package/lib/rootConfig/pc/LargeScreen.d.ts +51 -0
- package/lib/rootConfig/pc/LargeScreen.js +62 -0
- package/lib/rootConfig/pc/index.d.ts +1 -0
- package/lib/rootConfig/pc/index.js +7 -0
- package/lib/utils/url.js +3 -2
- package/package.json +1 -1
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { t } from "../../../../i18n";
|
|
1
2
|
import React, { forwardRef, isValidElement } from 'react';
|
|
2
3
|
import classnames from 'classnames';
|
|
3
4
|
import { BackIcon } from "../../SVGstring";
|
|
@@ -8,7 +9,7 @@ import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
8
9
|
var isDomEle = function isDomEle(target) {
|
|
9
10
|
return typeof target === 'string' || /*#__PURE__*/isValidElement(target);
|
|
10
11
|
};
|
|
11
|
-
var emptyTxt = '暂无匹配信息,请联系平台管理员';
|
|
12
|
+
var emptyTxt = t('ZAN_WU_PI_PEI_XIN_XI', {}, '暂无匹配信息,请联系平台管理员');
|
|
12
13
|
var Drawer = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
13
14
|
var visible = props.visible,
|
|
14
15
|
title = props.title,
|
|
@@ -50,7 +51,7 @@ var Drawer = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
50
51
|
}
|
|
51
52
|
return /*#__PURE__*/_jsx("div", {
|
|
52
53
|
className: "lxm-drawer-empty",
|
|
53
|
-
children: getLocale('noData', '暂无数据')
|
|
54
|
+
children: getLocale('noData', t('ZAN_WU_SHU_JU', {}, '暂无数据'))
|
|
54
55
|
});
|
|
55
56
|
};
|
|
56
57
|
var renderContent = function renderContent() {
|
|
@@ -7,6 +7,7 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
|
|
|
7
7
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
8
8
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
9
9
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
10
|
+
import { t } from "../../../../i18n";
|
|
10
11
|
import { isValidElement } from 'react';
|
|
11
12
|
import Modal from "../Modal";
|
|
12
13
|
import Drawer from "../Drawer";
|
|
@@ -126,17 +127,17 @@ var ErrorMsg = {
|
|
|
126
127
|
break;
|
|
127
128
|
case 25:
|
|
128
129
|
// eslint-disable-next-line no-console
|
|
129
|
-
console.error(new Error('ErrorMsg组件: 无效resolve'));
|
|
130
|
+
console.error(new Error(t('E_R_R_O_R_M', {}, 'ErrorMsg组件: 无效resolve')));
|
|
130
131
|
case 26:
|
|
131
132
|
Drawer.open({
|
|
132
133
|
getLocale: opts.getLocale,
|
|
133
134
|
title: title,
|
|
134
135
|
tabs: [{
|
|
135
136
|
key: 'article',
|
|
136
|
-
tab: opts.getLocale('ErrorMsg.solution', '解决方案')
|
|
137
|
+
tab: opts.getLocale('ErrorMsg.solution', t('JIE_JUE_FANG_AN', {}, '解决方案'))
|
|
137
138
|
}, {
|
|
138
139
|
key: 'extend',
|
|
139
|
-
tab: opts.getLocale('ErrorMsg.errorMsgMatch', '错误信息匹配')
|
|
140
|
+
tab: opts.getLocale('ErrorMsg.errorMsgMatch', t('CUO_WU_XIN_XI_PI_PEI', {}, '错误信息匹配'))
|
|
140
141
|
}],
|
|
141
142
|
activeTabsKey: 'article',
|
|
142
143
|
mode: 'content',
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { t } from "../../../i18n";
|
|
1
2
|
import { resolveRequestPath } from "../compUtils";
|
|
2
3
|
import { errTypeTitMap, getArticle } from "../const";
|
|
3
4
|
export var defaultGlobalConfig = {
|
|
@@ -9,8 +10,8 @@ export var defaultGlobalConfig = {
|
|
|
9
10
|
showErrorCode: true,
|
|
10
11
|
// 在错误提示框里展示错误编码
|
|
11
12
|
resolve: process.env.LingXi_ERROR_RESOLVE || resolveRequestPath('/lcdp/error/queryErrorInfoByCodeOrMsg'),
|
|
12
|
-
okText: '查看详情',
|
|
13
|
-
cancelText: '知道了',
|
|
13
|
+
okText: t('CHA_KAN_XIANG_QING', {}, '查看详情'),
|
|
14
|
+
cancelText: t('ZHI_DAO_LE', {}, '知道了'),
|
|
14
15
|
getLocale: function getLocale(k, p) {
|
|
15
16
|
return p !== null && p !== void 0 ? p : '';
|
|
16
17
|
},
|
|
@@ -14,6 +14,7 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
|
|
|
14
14
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
15
15
|
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
16
16
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
17
|
+
import { t } from "../../../../i18n";
|
|
17
18
|
import React, { forwardRef, isValidElement, useEffect, useState } from 'react';
|
|
18
19
|
import classnames from 'classnames';
|
|
19
20
|
import { CloseIcon, CloseWhiteIcon, ArrowIcon } from "../../SVGstring";
|
|
@@ -118,7 +119,7 @@ var Drawer = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
118
119
|
return [].concat(_toConsumableArray(cloneList), [item[contentRowKey]]);
|
|
119
120
|
});
|
|
120
121
|
},
|
|
121
|
-
children: extraConts.includes(item[contentRowKey]) ? getLocale('packUp', '收起') : getLocale('open', '展开')
|
|
122
|
+
children: extraConts.includes(item[contentRowKey]) ? getLocale('packUp', t('SHOU_QI', {}, '收起')) : getLocale('open', t('ZHAN_KAI', {}, '展开'))
|
|
122
123
|
}) : null]
|
|
123
124
|
}) : null]
|
|
124
125
|
}, item[contentRowKey]);
|
|
@@ -169,7 +170,7 @@ var Drawer = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
169
170
|
return _objectSpread(_objectSpread({}, pre), {}, _defineProperty({}, item[tabsRowKey], !errorCollapseMap[item[tabsRowKey]]));
|
|
170
171
|
});
|
|
171
172
|
},
|
|
172
|
-
children: [errorCollapseMap[item[tabsRowKey]] ? getLocale('packUp', '收起') : getLocale('open', '展开'), /*#__PURE__*/_jsx("img", {
|
|
173
|
+
children: [errorCollapseMap[item[tabsRowKey]] ? getLocale('packUp', t('SHOU_QI', {}, '收起')) : getLocale('open', t('ZHAN_KAI', {}, '展开')), /*#__PURE__*/_jsx("img", {
|
|
173
174
|
src: getSvgImageBase64(ArrowIcon),
|
|
174
175
|
alt: "",
|
|
175
176
|
className: classnames('lx-drawer-err-item-head-extra-arrow', {
|
|
@@ -193,7 +194,7 @@ var Drawer = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
193
194
|
href: item.url,
|
|
194
195
|
target: "_blank",
|
|
195
196
|
rel: "noreferrer",
|
|
196
|
-
children: getLocale('documentLink', '文档链接')
|
|
197
|
+
children: getLocale('documentLink', t('WEN_DANG_LIAN_JIE', {}, '文档链接'))
|
|
197
198
|
})]
|
|
198
199
|
})]
|
|
199
200
|
})]
|
|
@@ -14,6 +14,7 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
|
|
|
14
14
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
15
15
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
16
16
|
/* eslint-disable react/no-unknown-property */
|
|
17
|
+
import { t } from "../../../../i18n";
|
|
17
18
|
import React, { isValidElement } from 'react';
|
|
18
19
|
import Notification, { notificationInstance } from "../Notification";
|
|
19
20
|
import { resolveRequestPath, debounce } from "../../compUtils";
|
|
@@ -27,18 +28,18 @@ import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
27
28
|
var isElm = function isElm(val) {
|
|
28
29
|
return ['number', 'string'].includes(_typeof(val)) || /*#__PURE__*/isValidElement(val);
|
|
29
30
|
};
|
|
30
|
-
var emptyTxt = '暂无匹配信息,请联系平台管理员';
|
|
31
|
+
var emptyTxt = t('ZAN_WU_PI_PEI_XIN_XI', {}, '暂无匹配信息,请联系平台管理员');
|
|
31
32
|
var defaultFeedbackUrl = process.env.LingXi_ERROR_FEEBACK_URL || resolveRequestPath('/portal/IssueFeedback/addUserIssueFeedback');
|
|
32
33
|
var feedbackPlacements = ['notification', 'drawer'];
|
|
33
34
|
var feedbackTxts = [{
|
|
34
35
|
code: 'faultReport',
|
|
35
|
-
title: '故障上报'
|
|
36
|
+
title: t('GU_ZHANG_SHANG_BAO', {}, '故障上报')
|
|
36
37
|
}, {
|
|
37
38
|
code: 'hasReported',
|
|
38
|
-
title: '故障已上报'
|
|
39
|
+
title: t('GU_ZHANG_YI_SHANG_BAO', {}, '故障已上报')
|
|
39
40
|
}, {
|
|
40
41
|
code: 'reporting',
|
|
41
|
-
title: '故障上报中...'
|
|
42
|
+
title: t('GU_ZHANG_SHANG_BAO_ZHONG', {}, '故障上报中...')
|
|
42
43
|
}];
|
|
43
44
|
var targetTypes = ['request', 'dom', 'event'];
|
|
44
45
|
var btnDisableClass = ['lx-notification-btn-disabled', 'lx-drawer-btn-disabled'];
|
|
@@ -77,7 +78,7 @@ var renderErrList = function renderErrList(errList, opts) {
|
|
|
77
78
|
})
|
|
78
79
|
});
|
|
79
80
|
},
|
|
80
|
-
children: getLocale('detail', ' 详情')
|
|
81
|
+
children: getLocale('detail', t('XIANG_QING', {}, '详情'))
|
|
81
82
|
})
|
|
82
83
|
};
|
|
83
84
|
});
|
|
@@ -101,7 +102,7 @@ var renderGuidance = function renderGuidance(guidance, opts) {
|
|
|
101
102
|
onClick: function onClick() {
|
|
102
103
|
window.open(guidance === null || guidance === void 0 ? void 0 : guidance.guidanceUrl, '_blank');
|
|
103
104
|
},
|
|
104
|
-
children: opts.getLocale('documentLink', '文档链接')
|
|
105
|
+
children: opts.getLocale('documentLink', t('WEN_DANG_LIAN_JIE', {}, '文档链接'))
|
|
105
106
|
})
|
|
106
107
|
}) : null]
|
|
107
108
|
}) : /*#__PURE__*/_jsx("div", {
|
|
@@ -152,7 +153,7 @@ var ErrorMsg = {
|
|
|
152
153
|
feedbackUrl = defaultFeedbackUrl; // 是否显示故障上报
|
|
153
154
|
isShowFeedback = true; // 页面请求路径
|
|
154
155
|
pageUrl = window.location.href;
|
|
155
|
-
getDes = "<h3>".concat(opts.getLocale('PageRequestPath', '页面请求路径'), "<h3><p>").concat(pageUrl, "</p><h3>").concat(opts.getLocale('PageRequestPath', '接口请求路径'), "<h3><p>").concat(target === null || target === void 0 ? void 0 : target.id, "</p><h3>").concat(opts.getLocale('PageRequestPath', '接口返回报文'), "<h3><p>").concat(resMsg, " ").concat(stack, "</p>"); // 故障上报数据
|
|
156
|
+
getDes = "<h3>".concat(opts.getLocale('PageRequestPath', t('YE_MIAN_QING_QIU_LU_JING', {}, '页面请求路径')), "<h3><p>").concat(pageUrl, "</p><h3>").concat(opts.getLocale('PageRequestPath', t('JIE_KOU_QING_QIU_LU_JING', {}, '接口请求路径')), "<h3><p>").concat(target === null || target === void 0 ? void 0 : target.id, "</p><h3>").concat(opts.getLocale('PageRequestPath', t('JIE_KOU_FAN_HUI_BAO_WEN', {}, '接口返回报文')), "<h3><p>").concat(resMsg, " ").concat(stack, "</p>"); // 故障上报数据
|
|
156
157
|
feedbackParams = {
|
|
157
158
|
feedbackType: '5000',
|
|
158
159
|
feedbackProductType: '5000',
|
|
@@ -346,11 +347,11 @@ var ErrorMsg = {
|
|
|
346
347
|
break;
|
|
347
348
|
case 21:
|
|
348
349
|
// eslint-disable-next-line no-console
|
|
349
|
-
console.error(new Error('ErrorMsg组件: 无效resolve'));
|
|
350
|
+
console.error(new Error(t('E_R_R_O_R_M', {}, 'ErrorMsg组件: 无效resolve')));
|
|
350
351
|
case 22:
|
|
351
352
|
renderSubTitle = function renderSubTitle() {
|
|
352
353
|
if (target.type === targetTypes[0] && target !== null && target !== void 0 && target.id) {
|
|
353
|
-
return "".concat(opts.getLocale('serviceURL', '服务地址'), "\uFF1A").concat(target === null || target === void 0 ? void 0 : target.id);
|
|
354
|
+
return "".concat(opts.getLocale('serviceURL', t('FU_WU_DI_ZHI', {}, '服务地址')), "\uFF1A").concat(target === null || target === void 0 ? void 0 : target.id);
|
|
354
355
|
}
|
|
355
356
|
return null;
|
|
356
357
|
};
|
|
@@ -371,10 +372,10 @@ var ErrorMsg = {
|
|
|
371
372
|
errorInfoProps: {
|
|
372
373
|
tabs: [{
|
|
373
374
|
key: 'article',
|
|
374
|
-
tab: opts.getLocale('ErrorMsg.solution', '解决方案')
|
|
375
|
+
tab: opts.getLocale('ErrorMsg.solution', t('JIE_JUE_FANG_AN', {}, '解决方案'))
|
|
375
376
|
}, {
|
|
376
377
|
key: 'extend',
|
|
377
|
-
tab: opts.getLocale('ErrorMsg.errorMsgMatch', '错误信息匹配')
|
|
378
|
+
tab: opts.getLocale('ErrorMsg.errorMsgMatch', t('CUO_WU_XIN_XI_PI_PEI', {}, '错误信息匹配'))
|
|
378
379
|
}],
|
|
379
380
|
tabsActiveKey: 'article',
|
|
380
381
|
tabsContent: renderGuidance((_detRes = detRes) === null || _detRes === void 0 ? void 0 : _detRes.article, opts),
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { t } from "../../../i18n";
|
|
1
2
|
import { resolveRequestPath } from "../compUtils";
|
|
2
3
|
import { errTypeTitMap, getArticle } from "../const";
|
|
3
4
|
export var defaultGlobalConfig = {
|
|
@@ -21,8 +22,8 @@ export var defaultGlobalConfig = {
|
|
|
21
22
|
resolve: process.env.LingXi_ERROR_RESOLVE || resolveRequestPath('/lcdp/error/queryErrorInfoByCodeOrMsg'),
|
|
22
23
|
feebackAction: false,
|
|
23
24
|
// 故障上报地址,默认不展示故障上报
|
|
24
|
-
okText: '查看异常详情',
|
|
25
|
-
cancelText: '取消',
|
|
25
|
+
okText: t('CHA_KAN_YI_CHANG_XIANG_QING', {}, '查看异常详情'),
|
|
26
|
+
cancelText: t('QU_XIAO', {}, '取消'),
|
|
26
27
|
getLocale: function getLocale(k, p) {
|
|
27
28
|
return p !== null && p !== void 0 ? p : '';
|
|
28
29
|
},
|
|
@@ -1,13 +1,15 @@
|
|
|
1
|
+
import { t } from "../../i18n";
|
|
2
|
+
|
|
1
3
|
// 因运行态多语言需要,调整至 该文件只作为默认值配置,如果需要添加配置,请记得运行态一起修改。
|
|
2
4
|
export var errTypeTitMap = {
|
|
3
|
-
'01': '网络请求异常',
|
|
4
|
-
'02': '程序处理异常',
|
|
5
|
-
'03': '业务数据异常',
|
|
6
|
-
'04': '服务数据异常',
|
|
7
|
-
'05': '配置数据异常',
|
|
8
|
-
'06': '客户端请求异常',
|
|
9
|
-
'07': '业务处理异常',
|
|
10
|
-
'08': '服务器处理异常'
|
|
5
|
+
'01': t('WANG_LUO_QING_QIU_YI_CHANG', {}, '网络请求异常'),
|
|
6
|
+
'02': t('CHENG_XU_CHU_LI_YI_CHANG', {}, '程序处理异常'),
|
|
7
|
+
'03': t('YE_WU_SHU_JU_YI_CHANG', {}, '业务数据异常'),
|
|
8
|
+
'04': t('FU_WU_SHU_JU_YI_CHANG', {}, '服务数据异常'),
|
|
9
|
+
'05': t('PEI_ZHI_SHU_JU_YI_CHANG', {}, '配置数据异常'),
|
|
10
|
+
'06': t('KE_HU_DUAN_QING_QIU_YI', {}, '客户端请求异常'),
|
|
11
|
+
'07': t('YE_WU_CHU_LI_YI_CHANG', {}, '业务处理异常'),
|
|
12
|
+
'08': t('FU_WU_QI_CHU_LI_YI', {}, '服务器处理异常')
|
|
11
13
|
};
|
|
12
14
|
export var statusClrMap = {
|
|
13
15
|
config: 'purple',
|
|
@@ -16,20 +18,20 @@ export var statusClrMap = {
|
|
|
16
18
|
export var httpErrorMap = {
|
|
17
19
|
404: {
|
|
18
20
|
code: '01-00-2-000-000404',
|
|
19
|
-
msg: '服务请求失败,请求资源不存在(404): ${url}'
|
|
21
|
+
msg: t('FU_WU_QING_QIU_SHI_BAI', {}, '服务请求失败,请求资源不存在(404): ${url}')
|
|
20
22
|
},
|
|
21
23
|
// eslint-disable-line
|
|
22
24
|
413: {
|
|
23
25
|
code: '01-00-2-000-000413',
|
|
24
|
-
msg: '服务请求失败,请求报文体超过网关限制'
|
|
26
|
+
msg: t('FU_WU_QING_QIU_SHI_BAI_1', {}, '服务请求失败,请求报文体超过网关限制')
|
|
25
27
|
},
|
|
26
28
|
502: {
|
|
27
29
|
code: '06-00-3-000-000502',
|
|
28
|
-
msg: '服务请求失败,请稍后再试或者联系系统管理员'
|
|
30
|
+
msg: t('FU_WU_QING_QIU_SHI_BAI_2', {}, '服务请求失败,请稍后再试或者联系系统管理员')
|
|
29
31
|
},
|
|
30
32
|
504: {
|
|
31
33
|
code: '06-00-3-000-000504',
|
|
32
|
-
msg: '服务请求失败,请稍后再试或者联系系统管理员'
|
|
34
|
+
msg: t('FU_WU_QING_QIU_SHI_BAI_2', {}, '服务请求失败,请稍后再试或者联系系统管理员')
|
|
33
35
|
}
|
|
34
36
|
};
|
|
35
37
|
|
|
@@ -43,33 +45,33 @@ try {
|
|
|
43
45
|
export var defaultArticleMap = {
|
|
44
46
|
// 网络异常
|
|
45
47
|
'01-00-2-000-000001': {
|
|
46
|
-
title: '服务请求失败,网络出现异常',
|
|
47
|
-
content: "<dl>\n <dt
|
|
48
|
+
title: t('FU_WU_QING_QIU_SHI_BAI_3', {}, '服务请求失败,网络出现异常'),
|
|
49
|
+
content: "<dl>\n <dt>".concat(t('WANG_LUO_YI_CHANG_YUAN_YIN', {}, '网络异常原因:'), "</dt>\n <dd>\n <ol>\n <li>").concat(t('WANG_LUO_GU_ZHANG_NIN_DE', {}, '网络故障,您的计算机/手机无Internet访问;'), "</li>\n <li>").concat(t('JI_SUAN_JI_SHOU_JI', {}, '计算机/手机开启了其他网络代理;'), "</li>\n <li>").concat(t('QING_QIU_BEI_WANG_LUO_AN', {}, '请求被网络安全拦截;'), "</li>\n </ol>\n <dd>\n <dt>").concat(t('JIE_JUE_FANG_FA', {}, '解决方法:'), "</dt>\n <dd>\n <ol>\n <li>").concat(t('SHOU_XIAN_QUE_BAO_NIN_DE', {}, '首先确保您的计算机/手机已经通过Wi-Fi或电缆方式正常接入网络;'), "</li>\n <li>").concat(t('RU_GUO_SHI_YONG_GONG_WANG', {}, '如果使用公网访问系统,检查您的计算机/手机是否已连接到Internet,如无Internet访问,你可以尝试:'), "<br />\n ").concat(t('ZHONG_QI_DIAN_NAO_GUANG', {}, '- 重启电脑、光猫、路由器、手机网络'), "<br />\n ").concat(t('TIAO_ZHENG_D_N_S', {}, '- 调整DNS配置'), "<br />\n ").concat(t('ZHONG_ZHI_T_C_P', {}, '- 重置TCP/IP网络配置'), "<br />\n ").concat(t('SHI_YONG_QI_TA_LIU', {}, '- 使用其他浏览器'), "<br />\n ").concat(t('RU_GUO_WEN_TI_RENG_RAN', {}, '如果问题仍然存,您应该联系您的互联网服务提供商并检查是否有任何技术问题。'), "\n </li>\n <li>").concat(t('JIAN_CHA_SHI_FOU_KAI_QI', {}, '检查是否开启其他网络代理,如开启请尝试关闭。'), "</li>\n </ol>\n </dd>\n </dl>\n ")
|
|
48
50
|
},
|
|
49
51
|
// 请求超时
|
|
50
52
|
'01-00-2-000-000002': {
|
|
51
|
-
title: '服务请求失败,请求超时',
|
|
52
|
-
content: "<dl>\n <dt
|
|
53
|
+
title: t('FU_WU_QING_QIU_SHI_BAI_4', {}, '服务请求失败,请求超时'),
|
|
54
|
+
content: "<dl>\n <dt>".concat(t('QING_QIU_SHI_BAI_KE_NENG', {}, '请求失败可能原因:'), "</dt>\n <dd>\n <ol>\n <li>").concat(t('DANG_QIAN_XI_TONG_CHU_YU', {}, '当前系统处于使用高峰期,响应较慢;'), "</li>\n <li>").concat(t('WANG_LUO_SHANG_XING_XIA_XING', {}, '网络上行下行速率慢;'), "</li>\n <li>").concat(t('QING_QIU_BAO_WEN_GUO_DA', {}, '请求报文过大,上传需要较多时间;'), "</li>\n <li>").concat(t('WEN_JIAN_XIA_ZAI_WEN_JIAN', {}, '文件下载,文件大小过大,需要较多时间;'), "</li>\n </ol>\n </dd>\n </dl>\n <dt>").concat(t('JIE_JUE_FANG_FA', {}, '解决方法:'), "</dt>\n <dd>\n <ol>\n <li>").concat(t('QING_SHAO_HOU_ZAI_SHI', {}, '请稍后再试;'), "</li>\n <li>").concat(t('JIAN_CHA_WANG_LUO_CE_SHI', {}, '检查网络,测试网络速度,并优化;'), "</li>\n <li>").concat(t('RU_NEI_RONG_GUO_DA_LIAN', {}, '如内容过大,联系管理员调整超时时长;'), "</li>\n </ol>\n </dd>\n </dl>\n ")
|
|
53
55
|
},
|
|
54
56
|
// 请求404
|
|
55
57
|
'01-00-2-000-000404': {
|
|
56
|
-
title: '服务请求失败,请求资源不存在(404)',
|
|
57
|
-
content: "<dl>\n <dt
|
|
58
|
+
title: t('FU_WU_QING_QIU_SHI_BAI_5', {}, '服务请求失败,请求资源不存在(404)'),
|
|
59
|
+
content: "<dl>\n <dt>".concat(t('QING_QIU_SHI_BAI_KE_NENG', {}, '请求失败可能原因:'), "</dt>\n <dd>\n <ol>\n <li>").concat(t('ZI_YUAN_DI_ZHI_BU_ZHENG', {}, '资源地址不正确;'), "</li>\n <li>").concat(t('ZI_YUAN_YI_BEI_SHAN_CHU', {}, '资源已被删除,浏览器缓存导致资源地址没更新;'), "</li>\n <li>").concat(t('YE_MIAN_BAN_BEN_GEN_FU', {}, '页面版本跟服务版本不一致;'), "</li>\n </ol>\n </dd>\n </dl>\n <dt>").concat(t('JIE_JUE_FANG_FA', {}, '解决方法:'), "</dt>\n <dd>\n <ol>\n <li>").concat(t('QING_CHU_LIU_LAN_QI_HUAN', {}, '清除浏览器缓存再重试;'), "</li>\n <li>").concat(t('LIAN_XI_XI_TONG_GUAN_LI', {}, '联系系统管理员排查资源地址和版本信息;'), "</li>\n </ol>\n </dd>\n </dl>\n ")
|
|
58
60
|
},
|
|
59
61
|
// 请求413
|
|
60
62
|
'01-00-2-000-000413': {
|
|
61
|
-
title: '服务请求失败,请求报文体超过网关限制',
|
|
62
|
-
content: "<dl>\n <dt
|
|
63
|
+
title: t('FU_WU_QING_QIU_SHI_BAI_1', {}, '服务请求失败,请求报文体超过网关限制'),
|
|
64
|
+
content: "<dl>\n <dt>".concat(t('QING_QIU_SHI_BAI_YUAN_YIN', {}, '请求失败原因:'), "</dt>\n <dd>\n <ol>\n <li>").concat(t('QING_QIU_BAO_WEN_TI_GUO', {}, '请求报文体过大引起的,请求长度超过了网关默认的缓存大小和最大客户端最大请求大小;'), "</li>\n </ol>\n </dd>\n </dl>\n <dt>").concat(t('JIE_JUE_FANG_FA', {}, '解决方法:'), "</dt>\n <dd>\n <ol>\n <li>").concat(t('QING_LIAN_XI_XI_TONG_GUAN', {}, '请联系系统管理员,调整网关配置'), "</li>\n </ol>\n </dd>\n </dl>\n ")
|
|
63
65
|
},
|
|
64
66
|
// 网关错误
|
|
65
67
|
'06-00-3-000-000502': {
|
|
66
|
-
title: '服务请求失败,请稍后再试或者联系系统管理员',
|
|
67
|
-
content: "<dl>\n <dt
|
|
68
|
+
title: t('FU_WU_QING_QIU_SHI_BAI_2', {}, '服务请求失败,请稍后再试或者联系系统管理员'),
|
|
69
|
+
content: "<dl>\n <dt>".concat(t('QING_QIU_SHI_BAI_KE_NENG', {}, '请求失败可能原因:'), "</dt>\n <dd>\n <ol>\n <li>").concat(t('XI_TONG_ZHENG_ZAI_FA_BAN', {}, '系统正在发版;'), "</li>\n <li>").concat(t('DANG_QIAN_XI_TONG_CHU_YU', {}, '当前系统处于使用高峰期,响应较慢;'), "</li>\n <li>").concat(t('XI_TONG_CUN_ZAI_NEI_BU', {}, '系统存在内部错误;'), "</li>\n </ol>\n </dd>\n </dl>\n <dt>").concat(t('JIE_JUE_FANG_FA', {}, '解决方法:'), "</dt>\n <dd>\n <ol>\n <li>").concat(t('QING_SHAO_HOU_ZAI_SHI', {}, '请稍后再试;'), "</li>\n <li>").concat(t('QING_LIAN_XI_XI_TONG_GUAN_1', {}, '请联系系统管理员,核查:'), "<br />\n ").concat(t('CONG_FU_WU_DUAN_TUN', {}, '- 从服务端吞吐量承载考虑,是否需要进行系统扩容;'), "<br />\n ").concat(t('CONG_FU_WU_DUAN_CHENG', {}, '- 从服务端程序问题方面考虑,是否需要进行程序优化;'), "<br />\n ").concat(t('CONG_WANG_LUO_WEN_TI', {}, '- 从网络问题方面考虑,是否需要检查网络消耗、负载均衡配置是否正确。'), "\n </li>\n </ol>\n </dd>\n </dl>\n ")
|
|
68
70
|
},
|
|
69
71
|
// 网关超时
|
|
70
72
|
'06-00-3-000-000504': {
|
|
71
|
-
title: '服务请求失败,请稍后再试或者联系系统管理员',
|
|
72
|
-
content: "<dl>\n <dt
|
|
73
|
+
title: t('FU_WU_QING_QIU_SHI_BAI_2', {}, '服务请求失败,请稍后再试或者联系系统管理员'),
|
|
74
|
+
content: "<dl>\n <dt>".concat(t('QING_QIU_SHI_BAI_KE_NENG', {}, '请求失败可能原因:'), "</dt>\n <dd>\n <ol>\n <li>").concat(t('DANG_QIAN_XI_TONG_CHU_YU', {}, '当前系统处于使用高峰期,响应较慢;'), "</li>\n </ol>\n </dd>\n </dl>\n <dt>").concat(t('JIE_JUE_FANG_FA', {}, '解决方法:'), "</dt>\n <dd>\n <ol>\n <li>").concat(t('QING_SHAO_HOU_ZAI_SHI', {}, '请稍后再试;'), "</li>\n <li>").concat(t('QING_LIAN_XI_XI_TONG_GUAN_1', {}, '请联系系统管理员,核查:'), "<br />\n ").concat(t('CONG_FU_WU_DUAN_TUN', {}, '- 从服务端吞吐量承载考虑,是否需要进行系统扩容;'), "<br />\n ").concat(t('CONG_WANG_LUO_WEN_TI', {}, '- 从网络问题方面考虑,是否需要检查网络消耗、负载均衡配置是否正确。'), "\n </li>\n </ol>\n </dd>\n </dl>\n ")
|
|
73
75
|
}
|
|
74
76
|
};
|
|
75
77
|
export var articleMap = {
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare type Language = 'zh-CN' | 'en-US';
|
|
2
|
+
export interface I18nOptions {
|
|
3
|
+
fallbackLocale?: Language;
|
|
4
|
+
}
|
|
5
|
+
export declare function t(key: string, variables?: Record<string, any>, defaultValue?: string): string;
|
|
6
|
+
export declare function useT(lang?: Language): (key: string, variables?: Record<string, any>) => string;
|
package/es/i18n/index.js
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import zhCN from "./locales/zh-CN";
|
|
2
|
+
import enUS from "./locales/en-US";
|
|
3
|
+
function getLingxiLocaleFlag(lang) {
|
|
4
|
+
if (lang) return lang;
|
|
5
|
+
try {
|
|
6
|
+
if (typeof window === 'undefined' || !window.localStorage) return false;
|
|
7
|
+
var locale = window.localStorage.getItem('lingxiLocale');
|
|
8
|
+
// 如果没有设置,默认使用中文
|
|
9
|
+
if (!locale) {
|
|
10
|
+
locale = 'zh-CN';
|
|
11
|
+
} else {
|
|
12
|
+
// 检查是否是中文场景
|
|
13
|
+
var lc = String(locale || '').toLowerCase();
|
|
14
|
+
if (lc === 'zh-cn' || lc === 'zh_cn' || lc === 'zh') {
|
|
15
|
+
locale = 'zh-CN';
|
|
16
|
+
} else {
|
|
17
|
+
// 其他情况使用英文
|
|
18
|
+
locale = 'en-US';
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
return locale;
|
|
22
|
+
} catch (e) {
|
|
23
|
+
return false;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
function getTranslations(lang) {
|
|
27
|
+
var locale = getLingxiLocaleFlag(lang);
|
|
28
|
+
if (!locale) {
|
|
29
|
+
return zhCN;
|
|
30
|
+
}
|
|
31
|
+
var lc = String(locale || '').toLowerCase();
|
|
32
|
+
if (lc.includes('en')) {
|
|
33
|
+
return enUS;
|
|
34
|
+
}
|
|
35
|
+
return zhCN;
|
|
36
|
+
}
|
|
37
|
+
export function t(key) {
|
|
38
|
+
var _ref, _l$key;
|
|
39
|
+
var variables = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
40
|
+
var defaultValue = arguments.length > 2 ? arguments[2] : undefined;
|
|
41
|
+
var l = getTranslations();
|
|
42
|
+
var value = (_ref = (_l$key = l === null || l === void 0 ? void 0 : l[key]) !== null && _l$key !== void 0 ? _l$key : defaultValue) !== null && _ref !== void 0 ? _ref : key;
|
|
43
|
+
|
|
44
|
+
// 替换变量占位符,例如 {name1}、{name2} -> variables.name1、variables.name2
|
|
45
|
+
// 支持多个变量替换,如 "在{name1}下{name2}要做什么"
|
|
46
|
+
try {
|
|
47
|
+
value = value.replace(/\{(\w+)\}/g, function (match, varName) {
|
|
48
|
+
var varValue = variables[varName];
|
|
49
|
+
return varValue !== undefined ? String(varValue) : match;
|
|
50
|
+
});
|
|
51
|
+
} catch (error) {
|
|
52
|
+
// 如果替换过程中出错,返回原始值
|
|
53
|
+
console.warn("Translation variable replacement failed for key \"".concat(key, "\":"), error);
|
|
54
|
+
return value;
|
|
55
|
+
}
|
|
56
|
+
return value;
|
|
57
|
+
}
|
|
58
|
+
export function useT(lang) {
|
|
59
|
+
return function (key, variables) {
|
|
60
|
+
return t(key, variables);
|
|
61
|
+
};
|
|
62
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
declare const enUS: {
|
|
2
|
+
CHA_KAN_XIANG_QING: string;
|
|
3
|
+
CHA_KAN_YI_CHANG_XIANG_QING: string;
|
|
4
|
+
CHENG_XU_CHU_LI_YI_CHANG: string;
|
|
5
|
+
CONG_FU_WU_DUAN_CHENG: string;
|
|
6
|
+
CONG_FU_WU_DUAN_TUN: string;
|
|
7
|
+
CONG_WANG_LUO_WEN_TI: string;
|
|
8
|
+
CUO_WU_XIN_XI_PI_PEI: string;
|
|
9
|
+
DANG_QIAN_XI_TONG_CHU_YU: string;
|
|
10
|
+
E_R_R_O_R_M: string;
|
|
11
|
+
FU_WU_DI_ZHI: string;
|
|
12
|
+
FU_WU_QING_QIU_SHI_BAI: string;
|
|
13
|
+
FU_WU_QING_QIU_SHI_BAI_1: string;
|
|
14
|
+
FU_WU_QING_QIU_SHI_BAI_2: string;
|
|
15
|
+
FU_WU_QING_QIU_SHI_BAI_3: string;
|
|
16
|
+
FU_WU_QING_QIU_SHI_BAI_4: string;
|
|
17
|
+
FU_WU_QING_QIU_SHI_BAI_5: string;
|
|
18
|
+
FU_WU_QI_CHU_LI_YI: string;
|
|
19
|
+
FU_WU_SHU_JU_YI_CHANG: string;
|
|
20
|
+
GU_ZHANG_SHANG_BAO: string;
|
|
21
|
+
GU_ZHANG_SHANG_BAO_ZHONG: string;
|
|
22
|
+
GU_ZHANG_YI_SHANG_BAO: string;
|
|
23
|
+
JIAN_CHA_SHI_FOU_KAI_QI: string;
|
|
24
|
+
JIAN_CHA_WANG_LUO_CE_SHI: string;
|
|
25
|
+
JIE_JUE_FANG_AN: string;
|
|
26
|
+
JIE_JUE_FANG_FA: string;
|
|
27
|
+
JIE_KOU_FAN_HUI_BAO_WEN: string;
|
|
28
|
+
JIE_KOU_QING_QIU_LU_JING: string;
|
|
29
|
+
JI_SUAN_JI_SHOU_JI: string;
|
|
30
|
+
KE_HU_DUAN_QING_QIU_YI: string;
|
|
31
|
+
LIAN_XI_XI_TONG_GUAN_LI: string;
|
|
32
|
+
PEI_ZHI_SHU_JU_YI_CHANG: string;
|
|
33
|
+
P_A_R_S_E_U: string;
|
|
34
|
+
P_A_R_S_E_U_1: string;
|
|
35
|
+
QING_CHU_LIU_LAN_QI_HUAN: string;
|
|
36
|
+
QING_LIAN_XI_XI_TONG_GUAN: string;
|
|
37
|
+
QING_LIAN_XI_XI_TONG_GUAN_1: string;
|
|
38
|
+
QING_QIU_BAO_WEN_GUO_DA: string;
|
|
39
|
+
QING_QIU_BAO_WEN_TI_GUO: string;
|
|
40
|
+
QING_QIU_BEI_WANG_LUO_AN: string;
|
|
41
|
+
QING_QIU_SHI_BAI_KE_NENG: string;
|
|
42
|
+
QING_QIU_SHI_BAI_YUAN_YIN: string;
|
|
43
|
+
QING_SHAO_HOU_ZAI_SHI: string;
|
|
44
|
+
QU_XIAO: string;
|
|
45
|
+
RU_GUO_SHI_YONG_GONG_WANG: string;
|
|
46
|
+
RU_GUO_WEN_TI_RENG_RAN: string;
|
|
47
|
+
RU_NEI_RONG_GUO_DA_LIAN: string;
|
|
48
|
+
SHI_YONG_QI_TA_LIU: string;
|
|
49
|
+
SHOU_QI: string;
|
|
50
|
+
SHOU_XIAN_QUE_BAO_NIN_DE: string;
|
|
51
|
+
TIAO_ZHENG_D_N_S: string;
|
|
52
|
+
WANG_LUO_GU_ZHANG_NIN_DE: string;
|
|
53
|
+
WANG_LUO_QING_QIU_YI_CHANG: string;
|
|
54
|
+
WANG_LUO_SHANG_XING_XIA_XING: string;
|
|
55
|
+
WANG_LUO_YI_CHANG_YUAN_YIN: string;
|
|
56
|
+
WEN_DANG_LIAN_JIE: string;
|
|
57
|
+
WEN_JIAN_XIA_ZAI_WEN_JIAN: string;
|
|
58
|
+
XIANG_QING: string;
|
|
59
|
+
XI_TONG_CUN_ZAI_NEI_BU: string;
|
|
60
|
+
XI_TONG_ZHENG_ZAI_FA_BAN: string;
|
|
61
|
+
YE_MIAN_BAN_BEN_GEN_FU: string;
|
|
62
|
+
YE_MIAN_QING_QIU_LU_JING: string;
|
|
63
|
+
YE_WU_CHU_LI_YI_CHANG: string;
|
|
64
|
+
YE_WU_SHU_JU_YI_CHANG: string;
|
|
65
|
+
ZAN_WU_PI_PEI_XIN_XI: string;
|
|
66
|
+
ZAN_WU_SHU_JU: string;
|
|
67
|
+
ZHAN_KAI: string;
|
|
68
|
+
ZHI_DAO_LE: string;
|
|
69
|
+
ZHONG_QI_DIAN_NAO_GUANG: string;
|
|
70
|
+
ZHONG_ZHI_T_C_P: string;
|
|
71
|
+
ZI_YUAN_DI_ZHI_BU_ZHENG: string;
|
|
72
|
+
ZI_YUAN_YI_BEI_SHAN_CHU: string;
|
|
73
|
+
};
|
|
74
|
+
export default enUS;
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
var enUS = {
|
|
2
|
+
CHA_KAN_XIANG_QING: 'View Details',
|
|
3
|
+
CHA_KAN_YI_CHANG_XIANG_QING: 'View Exception Details',
|
|
4
|
+
CHENG_XU_CHU_LI_YI_CHANG: 'Program Processing Exception',
|
|
5
|
+
CONG_FU_WU_DUAN_CHENG: '- Consider server-side program issues and whether program optimization is needed;',
|
|
6
|
+
CONG_FU_WU_DUAN_TUN: '- Consider server-side throughput capacity and whether system expansion is needed;',
|
|
7
|
+
CONG_WANG_LUO_WEN_TI: '- Consider network issues and whether network consumption and load balancing configuration need to be checked.',
|
|
8
|
+
CUO_WU_XIN_XI_PI_PEI: 'Error Message Matching',
|
|
9
|
+
DANG_QIAN_XI_TONG_CHU_YU: 'The system is currently in peak usage period and response is slow;',
|
|
10
|
+
E_R_R_O_R_M: 'ErrorMsg component: Invalid resolve',
|
|
11
|
+
FU_WU_DI_ZHI: 'Service Address',
|
|
12
|
+
// eslint-disable-next-line no-template-curly-in-string
|
|
13
|
+
FU_WU_QING_QIU_SHI_BAI: 'Service request failed, requested resource does not exist (404): ${url}',
|
|
14
|
+
FU_WU_QING_QIU_SHI_BAI_1: 'Service request failed, request body exceeds gateway limit',
|
|
15
|
+
FU_WU_QING_QIU_SHI_BAI_2: 'Service request failed, please try again later or contact the system administrator',
|
|
16
|
+
FU_WU_QING_QIU_SHI_BAI_3: 'Service request failed, network exception occurred',
|
|
17
|
+
FU_WU_QING_QIU_SHI_BAI_4: 'Service request failed, request timeout',
|
|
18
|
+
FU_WU_QING_QIU_SHI_BAI_5: 'Service request failed, requested resource does not exist (404)',
|
|
19
|
+
FU_WU_QI_CHU_LI_YI: 'Server Processing Exception',
|
|
20
|
+
FU_WU_SHU_JU_YI_CHANG: 'Service Data Exception',
|
|
21
|
+
GU_ZHANG_SHANG_BAO: 'Report Issue',
|
|
22
|
+
GU_ZHANG_SHANG_BAO_ZHONG: 'Reporting issue...',
|
|
23
|
+
GU_ZHANG_YI_SHANG_BAO: 'Issue has been reported',
|
|
24
|
+
JIAN_CHA_SHI_FOU_KAI_QI: 'Check if other network proxies are enabled, and try disabling them if enabled.',
|
|
25
|
+
JIAN_CHA_WANG_LUO_CE_SHI: 'Check network, test network speed, and optimize;',
|
|
26
|
+
JIE_JUE_FANG_AN: 'Solution',
|
|
27
|
+
JIE_JUE_FANG_FA: 'Solution:',
|
|
28
|
+
JIE_KOU_FAN_HUI_BAO_WEN: 'API Response Message',
|
|
29
|
+
JIE_KOU_QING_QIU_LU_JING: 'API Request Path',
|
|
30
|
+
JI_SUAN_JI_SHOU_JI: 'Computer/mobile device has other network proxies enabled;',
|
|
31
|
+
KE_HU_DUAN_QING_QIU_YI: 'Client Request Exception',
|
|
32
|
+
LIAN_XI_XI_TONG_GUAN_LI: 'Contact system administrator to check resource address and version information;',
|
|
33
|
+
PEI_ZHI_SHU_JU_YI_CHANG: 'Configuration Data Exception',
|
|
34
|
+
P_A_R_S_E_U: 'parseUrlExpression parameter error: extended parameters must be an object',
|
|
35
|
+
P_A_R_S_E_U_1: 'parseUrlExpression execution error:',
|
|
36
|
+
QING_CHU_LIU_LAN_QI_HUAN: 'Clear browser cache and try again;',
|
|
37
|
+
QING_LIAN_XI_XI_TONG_GUAN: 'Please contact system administrator to adjust gateway configuration',
|
|
38
|
+
QING_LIAN_XI_XI_TONG_GUAN_1: 'Please contact system administrator to verify:',
|
|
39
|
+
QING_QIU_BAO_WEN_GUO_DA: 'Request message is too large, upload requires more time;',
|
|
40
|
+
QING_QIU_BAO_WEN_TI_GUO: 'Caused by request body being too large, request length exceeds gateway default cache size and maximum client request size;',
|
|
41
|
+
QING_QIU_BEI_WANG_LUO_AN: 'Request was intercepted by network security;',
|
|
42
|
+
QING_QIU_SHI_BAI_KE_NENG: 'Possible reasons for request failure:',
|
|
43
|
+
QING_QIU_SHI_BAI_YUAN_YIN: 'Reason for request failure:',
|
|
44
|
+
QING_SHAO_HOU_ZAI_SHI: 'Please try again later;',
|
|
45
|
+
QU_XIAO: 'Cancel',
|
|
46
|
+
RU_GUO_SHI_YONG_GONG_WANG: 'If using public network to access the system, check if your computer/mobile device is connected to the Internet. If there is no Internet access, you can try:',
|
|
47
|
+
RU_GUO_WEN_TI_RENG_RAN: 'If the problem persists, you should contact your Internet service provider and check for any technical issues.',
|
|
48
|
+
RU_NEI_RONG_GUO_DA_LIAN: 'If content is too large, contact administrator to adjust timeout duration;',
|
|
49
|
+
SHI_YONG_QI_TA_LIU: '- Use other browsers',
|
|
50
|
+
SHOU_QI: 'Collapse',
|
|
51
|
+
SHOU_XIAN_QUE_BAO_NIN_DE: 'First, ensure your computer/mobile device is properly connected to the network via Wi-Fi or cable;',
|
|
52
|
+
TIAO_ZHENG_D_N_S: '- Adjust DNS configuration',
|
|
53
|
+
WANG_LUO_GU_ZHANG_NIN_DE: 'Network failure, your computer/mobile device has no Internet access;',
|
|
54
|
+
WANG_LUO_QING_QIU_YI_CHANG: 'Network Request Exception',
|
|
55
|
+
WANG_LUO_SHANG_XING_XIA_XING: 'Network upload/download speed is slow;',
|
|
56
|
+
WANG_LUO_YI_CHANG_YUAN_YIN: 'Network exception reason:',
|
|
57
|
+
WEN_DANG_LIAN_JIE: 'Documentation Link',
|
|
58
|
+
WEN_JIAN_XIA_ZAI_WEN_JIAN: 'File download, file size is too large, requires more time;',
|
|
59
|
+
XIANG_QING: 'Details',
|
|
60
|
+
XI_TONG_CUN_ZAI_NEI_BU: 'System has internal error;',
|
|
61
|
+
XI_TONG_ZHENG_ZAI_FA_BAN: 'System is being deployed;',
|
|
62
|
+
YE_MIAN_BAN_BEN_GEN_FU: 'Page version is inconsistent with service version;',
|
|
63
|
+
YE_MIAN_QING_QIU_LU_JING: 'Page Request Path',
|
|
64
|
+
YE_WU_CHU_LI_YI_CHANG: 'Business Processing Exception',
|
|
65
|
+
YE_WU_SHU_JU_YI_CHANG: 'Business Data Exception',
|
|
66
|
+
ZAN_WU_PI_PEI_XIN_XI: 'No matching information, please contact platform administrator',
|
|
67
|
+
ZAN_WU_SHU_JU: 'No Data',
|
|
68
|
+
ZHAN_KAI: 'Expand',
|
|
69
|
+
ZHI_DAO_LE: 'Got it',
|
|
70
|
+
ZHONG_QI_DIAN_NAO_GUANG: '- Restart computer, modem, router, mobile network',
|
|
71
|
+
ZHONG_ZHI_T_C_P: '- Reset TCP/IP network configuration',
|
|
72
|
+
ZI_YUAN_DI_ZHI_BU_ZHENG: 'Resource address is incorrect;',
|
|
73
|
+
ZI_YUAN_YI_BEI_SHAN_CHU: 'Resource has been deleted, browser cache caused resource address not to be updated;'
|
|
74
|
+
};
|
|
75
|
+
export default enUS;
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
declare const zhCN: {
|
|
2
|
+
CHA_KAN_XIANG_QING: string;
|
|
3
|
+
CHA_KAN_YI_CHANG_XIANG_QING: string;
|
|
4
|
+
CHENG_XU_CHU_LI_YI_CHANG: string;
|
|
5
|
+
CONG_FU_WU_DUAN_CHENG: string;
|
|
6
|
+
CONG_FU_WU_DUAN_TUN: string;
|
|
7
|
+
CONG_WANG_LUO_WEN_TI: string;
|
|
8
|
+
CUO_WU_XIN_XI_PI_PEI: string;
|
|
9
|
+
DANG_QIAN_XI_TONG_CHU_YU: string;
|
|
10
|
+
E_R_R_O_R_M: string;
|
|
11
|
+
FU_WU_DI_ZHI: string;
|
|
12
|
+
FU_WU_QING_QIU_SHI_BAI: string;
|
|
13
|
+
FU_WU_QING_QIU_SHI_BAI_1: string;
|
|
14
|
+
FU_WU_QING_QIU_SHI_BAI_2: string;
|
|
15
|
+
FU_WU_QING_QIU_SHI_BAI_3: string;
|
|
16
|
+
FU_WU_QING_QIU_SHI_BAI_4: string;
|
|
17
|
+
FU_WU_QING_QIU_SHI_BAI_5: string;
|
|
18
|
+
FU_WU_QI_CHU_LI_YI: string;
|
|
19
|
+
FU_WU_SHU_JU_YI_CHANG: string;
|
|
20
|
+
GU_ZHANG_SHANG_BAO: string;
|
|
21
|
+
GU_ZHANG_SHANG_BAO_ZHONG: string;
|
|
22
|
+
GU_ZHANG_YI_SHANG_BAO: string;
|
|
23
|
+
JIAN_CHA_SHI_FOU_KAI_QI: string;
|
|
24
|
+
JIAN_CHA_WANG_LUO_CE_SHI: string;
|
|
25
|
+
JIE_JUE_FANG_AN: string;
|
|
26
|
+
JIE_JUE_FANG_FA: string;
|
|
27
|
+
JIE_KOU_FAN_HUI_BAO_WEN: string;
|
|
28
|
+
JIE_KOU_QING_QIU_LU_JING: string;
|
|
29
|
+
JI_SUAN_JI_SHOU_JI: string;
|
|
30
|
+
KE_HU_DUAN_QING_QIU_YI: string;
|
|
31
|
+
LIAN_XI_XI_TONG_GUAN_LI: string;
|
|
32
|
+
PEI_ZHI_SHU_JU_YI_CHANG: string;
|
|
33
|
+
P_A_R_S_E_U: string;
|
|
34
|
+
P_A_R_S_E_U_1: string;
|
|
35
|
+
QING_CHU_LIU_LAN_QI_HUAN: string;
|
|
36
|
+
QING_LIAN_XI_XI_TONG_GUAN: string;
|
|
37
|
+
QING_LIAN_XI_XI_TONG_GUAN_1: string;
|
|
38
|
+
QING_QIU_BAO_WEN_GUO_DA: string;
|
|
39
|
+
QING_QIU_BAO_WEN_TI_GUO: string;
|
|
40
|
+
QING_QIU_BEI_WANG_LUO_AN: string;
|
|
41
|
+
QING_QIU_SHI_BAI_KE_NENG: string;
|
|
42
|
+
QING_QIU_SHI_BAI_YUAN_YIN: string;
|
|
43
|
+
QING_SHAO_HOU_ZAI_SHI: string;
|
|
44
|
+
QU_XIAO: string;
|
|
45
|
+
RU_GUO_SHI_YONG_GONG_WANG: string;
|
|
46
|
+
RU_GUO_WEN_TI_RENG_RAN: string;
|
|
47
|
+
RU_NEI_RONG_GUO_DA_LIAN: string;
|
|
48
|
+
SHI_YONG_QI_TA_LIU: string;
|
|
49
|
+
SHOU_QI: string;
|
|
50
|
+
SHOU_XIAN_QUE_BAO_NIN_DE: string;
|
|
51
|
+
TIAO_ZHENG_D_N_S: string;
|
|
52
|
+
WANG_LUO_GU_ZHANG_NIN_DE: string;
|
|
53
|
+
WANG_LUO_QING_QIU_YI_CHANG: string;
|
|
54
|
+
WANG_LUO_SHANG_XING_XIA_XING: string;
|
|
55
|
+
WANG_LUO_YI_CHANG_YUAN_YIN: string;
|
|
56
|
+
WEN_DANG_LIAN_JIE: string;
|
|
57
|
+
WEN_JIAN_XIA_ZAI_WEN_JIAN: string;
|
|
58
|
+
XIANG_QING: string;
|
|
59
|
+
XI_TONG_CUN_ZAI_NEI_BU: string;
|
|
60
|
+
XI_TONG_ZHENG_ZAI_FA_BAN: string;
|
|
61
|
+
YE_MIAN_BAN_BEN_GEN_FU: string;
|
|
62
|
+
YE_MIAN_QING_QIU_LU_JING: string;
|
|
63
|
+
YE_WU_CHU_LI_YI_CHANG: string;
|
|
64
|
+
YE_WU_SHU_JU_YI_CHANG: string;
|
|
65
|
+
ZAN_WU_PI_PEI_XIN_XI: string;
|
|
66
|
+
ZAN_WU_SHU_JU: string;
|
|
67
|
+
ZHAN_KAI: string;
|
|
68
|
+
ZHI_DAO_LE: string;
|
|
69
|
+
ZHONG_QI_DIAN_NAO_GUANG: string;
|
|
70
|
+
ZHONG_ZHI_T_C_P: string;
|
|
71
|
+
ZI_YUAN_DI_ZHI_BU_ZHENG: string;
|
|
72
|
+
ZI_YUAN_YI_BEI_SHAN_CHU: string;
|
|
73
|
+
};
|
|
74
|
+
export default zhCN;
|