From 0623874a52f88a62e274e4ddc2d4658a5590737a Mon Sep 17 00:00:00 2001 From: zouap Date: Wed, 24 Aug 2022 17:26:46 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9B=BD=E9=99=85=E5=8C=96=E4=BF=A1=E6=81=AF?= =?UTF-8?q?=E6=8F=90=E4=BA=A4=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zouap --- web_src/js/components/Model.vue | 34 +++++++++++++++++++-------------- web_src/js/features/i18nVue.js | 24 +++++++++++++++++++++++ 2 files changed, 44 insertions(+), 14 deletions(-) diff --git a/web_src/js/components/Model.vue b/web_src/js/components/Model.vue index 57c730d30..a76fe324b 100644 --- a/web_src/js/components/Model.vue +++ b/web_src/js/components/Model.vue @@ -14,7 +14,7 @@ > @@ -28,7 +28,7 @@ @@ -39,7 +39,7 @@ @@ -50,7 +50,7 @@ @@ -60,7 +60,7 @@ @@ -70,7 +70,7 @@ @@ -80,7 +80,7 @@ @@ -90,7 +90,7 @@ @@ -101,12 +101,12 @@ - + @@ -141,7 +141,7 @@ export default { }, data() { return { - + i18n: {}, currentPage:1, pageSize:10, totalNum:0, @@ -451,7 +451,13 @@ export default { this.url_create_newVersion = this.url + 'create_model' this.url_create_newModel = this.url + 'create_new_model' }, - + created() { + if (document.documentElement.attributes["lang"].nodeValue == "en-US") { + this.i18n = this.$locale.US; + } else { + this.i18n = this.$locale.CN; + } + }, beforeDestroy() { // 实例销毁之前对点击事件进行解绑 this.submitId.removeEventListener('click', this.submit); } diff --git a/web_src/js/features/i18nVue.js b/web_src/js/features/i18nVue.js index 386f2435f..49f810373 100644 --- a/web_src/js/features/i18nVue.js +++ b/web_src/js/features/i18nVue.js @@ -83,6 +83,18 @@ export const i18nVue = { dataset_ok:"确定", dataset_not_equal_file:"不能选择相同名称的数据文件", dataset_most:"最多不超过五个文件", + model_name:"模型名称", + model_version:"版本", + model_version_num:"版本数", + model_size:"模型大小", + model_egine:"模型框架", + model_compute_resource:"计算资源", + model_create_time:"创建时间", + model_creator:"创建者", + model_operation:"操作", + model_create_new_ver:"创建新版本", + model_download:"下载", + model_delete:"删除", }, US: { computer_vision: "computer vision", @@ -171,5 +183,17 @@ export const i18nVue = { dataset_ok:"OK", dataset_not_equal_file:"Cannot select a data file with the same name.", dataset_most:"Up to five files.", + model_name:"Model Name", + model_version:"Version", + model_version_num:"Version Nums", + model_size:"Model Size", + model_egine:"Model Engine", + model_compute_resource:"Compute Resource", + model_create_time:"Created Time", + model_creator:"Creator", + model_operation:"Operation", + model_create_new_ver:"Create New Version", + model_download:"Download", + model_delete:"Delete", }, };