瀏覽代碼

恢复翻译

vothin 2 年之前
父節點
當前提交
15c827b1f9
共有 1 個文件被更改,包括 7 次插入3 次删除
  1. 7 3
      src/layout/components/Navbar.vue

+ 7 - 3
src/layout/components/Navbar.vue

@@ -13,7 +13,7 @@
 
         <screenfull id="screenfull" class="right-menu-item hover-effect" />
 
-        <el-tooltip content="字体大小" effect="dark" placement="bottom">
+        <el-tooltip :content="this.$t('action.FontSize')" effect="dark" placement="bottom">
           <size-select id="size-select" class="right-menu-item hover-effect" />
         </el-tooltip>
 
@@ -94,6 +94,9 @@ export default {
         {
           value: 'zh',
           label: '中文简体'
+        },{
+          value: 'es',
+          label: 'Español'
         }
       ]
 
@@ -135,7 +138,7 @@ export default {
       API_Part.syncHis().then(res => {
         this.$message({
           type: 'success',
-          message: '开启HIS信息同步!'
+          message: this.$t("action.SynchronizeHISInformation")
         })
       })
     },
@@ -149,9 +152,10 @@ export default {
     switchLanguage(value) {
       if (value === 'zh') {
         this.$i18n.locale = 'zh'
-
       } else if (value === 'en') {
         this.$i18n.locale = 'en'
+      } else if (value === 'es') {
+        this.$i18n.locale = 'es'
       }
       // 在选择了显示的语言后,将配置保存到缓存里
       Storage.setItem('DefaultLanguage', value)