diff --git a/frontend/src/common/js/ajax.js b/frontend/src/common/js/ajax.js index d09247f619..d65dca89c1 100644 --- a/frontend/src/common/js/ajax.js +++ b/frontend/src/common/js/ajax.js @@ -1,5 +1,7 @@ import {Message, MessageBox} from 'element-ui'; import axios from "axios"; +import i18n from '../../i18n/i18n' + export default { install(Vue) { @@ -14,7 +16,7 @@ export default { } let login = function () { - MessageBox.alert("The authentication information has expired, please login again", "Prompt", { + MessageBox.alert(i18n.t('commons.tips'), i18n.t('commons.prompt'), { callback: () => { window.location.href = "/login" } diff --git a/frontend/src/i18n/en-US.js b/frontend/src/i18n/en-US.js index 955d0c2a62..bb3cb305f4 100644 --- a/frontend/src/i18n/en-US.js +++ b/frontend/src/i18n/en-US.js @@ -95,6 +95,7 @@ export default { 'remove_success': 'Remove Success', 'tips': 'The authentication information has expired, please login again', 'not_performed_yet': 'Not performed yet', + }, workspace: { 'create': 'Create Workspace', diff --git a/frontend/src/i18n/zh-CN.js b/frontend/src/i18n/zh-CN.js index ead4e33f55..e7de9bcb3d 100644 --- a/frontend/src/i18n/zh-CN.js +++ b/frontend/src/i18n/zh-CN.js @@ -94,6 +94,7 @@ export default { 'remove_success': '移除成功', 'tips': '认证信息已过期,请重新登录', 'not_performed_yet': '尚未执行', + }, workspace: { 'create': '创建工作空间', @@ -196,7 +197,8 @@ export default { 'start_status': '测试处于开始状态,请稍后查看报告!', 'run_status': '测试处于运行状态,请稍后查看报告!', 'user_name': '创建人', - 'project_name': '所属项目' + 'project_name': '所属项目', + }, load_test: { 'operating': '操作',