lisiyan 2 hónapja
szülő
commit
b87a2ab1e0

+ 1 - 1
src/components/common/Aside.vue

@@ -177,7 +177,7 @@ export default class Aside extends Vue {
                 this.$nextTick(() => {
                   setTimeout(() => {
                     driverObj.moveNext()
-                  }, 250)
+                  }, 1000)
                 })
               },
               side: 'left',

+ 9 - 9
src/components/common/Header.vue

@@ -23,25 +23,25 @@
       </div>
       <nav>
         <a class="link" :href="apiDomain">API Tools</a>
-        <a class="link" :href="apiDomain + '/api/docs/introduction'">Documentation</a>
-        <a class="link" :href="apiDomain + '/api-libraries/overview'">API Libraries</a>
-        <a class="link" :href="apiDomain + '/api/pricing'">Pricing</a>
-        <a class="link btn" :href="apiDomain + '/contact-us'">Contact Us</a>
+        <a class="link" :href="apiDomain + '/api/docs/introduction'">{{ $t('aside.document') }}</a>
+        <a class="link" :href="apiDomain + '/api-libraries/overview'">{{ $t('aside.libraries') }}</a>
+        <a class="link" :href="apiDomain + '/api/pricing'">{{ $t('aside.pricing') }}</a>
+        <a class="link btn" :href="apiDomain + '/contact-us'">{{ $t('aside.contact') }}</a>
       </nav>
     </div>
     <div v-show="dropdownShow" class="dropdown-menu" :class="dropdownShow && 'active'">
-      <router-link @click.native="toggleDropdown" to="/dashboard" class="dropdown-item"><Dashboard /><span>Dashboard</span></router-link>
-      <div class="dropdown-item login-out" @click="loginOut"><Logout /><span>Log out</span></div>
+      <router-link @click.native="toggleDropdown" to="/dashboard" class="dropdown-item"><Dashboard /><span>{{ $t('aside.dashboard') }}</span></router-link>
+      <div class="dropdown-item login-out" @click="loginOut"><Logout /><span>{{ $t('aside.logout') }}/span></div>
     </div>
     <div v-if="$route.name !== 'login'" class="nav-right">
       <el-popover ref="popover" placement="bottom-start" popper-class="dropdown-content" trigger="hover" :visible-arrow="false">
-        <router-link class="dropdown-item" to="/dashboard"><Dashboard /><span>Dashboard</span></router-link>
+        <router-link class="dropdown-item" to="/dashboard"><Dashboard /><span>{{ $t('aside.dashboard') }}</span></router-link>
         <div class="dropdown-item login-out" @click="loginOut">
-          <Logout /><span>Log out</span>
+          <Logout /><span>{{ $t('aside.logout') }}</span>
         </div>
       </el-popover>
       <div class="user-photo" v-popover:popover><p>{{ user && user.name.slice(0, 1) }}</p></div>
-      <a class="link btn" :href="apiDomain + '/contact-us'">Contact Us</a>
+      <a class="link btn" :href="apiDomain + '/contact-us'">{{ $t('aside.contact') }}</a>
     </div>
   </div>
 </template>

+ 4 - 2
src/locales/en.ts

@@ -15,9 +15,11 @@ export default {
     information: 'Billing Information ',
     invoices: 'Invoices Center',
     support: 'Support',
-    document: 'Documentation ',
+    document: 'API Reference ',
     contact: 'Contact Us',
-    libraries: 'API Libraries'
+    pricing: 'Pricing',
+    logout: 'Log out',
+    libraries: 'Documentation'
   },
   dashboard: {
     title: 'Dashboard',

+ 4 - 2
src/locales/zh.ts

@@ -15,9 +15,11 @@ export default {
     information: '账单信息',
     invoices: '发票中心',
     support: '支持',
-    document: '开发文档 ',
+    document: 'API参考文档',
     contact: '联系我们',
-    libraries: 'API 库'
+    pricing: '价格',
+    logout: '退出登录',
+    libraries: 'API开发文档'
   },
   dashboard: {
     title: '看板',