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", }, };