提交 9b227cf7 authored 作者: 王鹏飞's avatar 王鹏飞

chore: 翻译内容优化

上级 91293b35
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<div> <div>
<header class="main-header"> <header class="main-header">
<template v-if="!searchVisible"> <template v-if="!searchVisible">
<nuxt-link to="/" :class="$cookies.get('lang') == 'en-US' ? 'logo-en' : 'logo'"></nuxt-link> <nuxt-link to="/" :class="$store.state.locale == 'en-US' ? 'logo-en' : 'logo'"></nuxt-link>
<div class="search" @click="toggleSearch"></div> <div class="search" @click="toggleSearch"></div>
<div class="menu" :class="menuClasses" @click="toggleMenu"></div> <div class="menu" :class="menuClasses" @click="toggleMenu"></div>
</template> </template>
......
...@@ -111,9 +111,9 @@ export default { ...@@ -111,9 +111,9 @@ export default {
this.$notify({ type: 'primary', message: '暂未开通,尽请期待' }) this.$notify({ type: 'primary', message: '暂未开通,尽请期待' })
}, },
switchLocale() { switchLocale() {
const lang = this.$cookies.get('lang') === 'zh-CN' ? 'en-US' : 'zh-CN' const lang = this.$store.state.locale === 'zh-CN' ? 'en-US' : 'zh-CN'
this.$store.dispatch('switchLocale', lang) this.$cookies.set('lang', lang, { domain: 'ezijing.com' })
location.reload() process.client && location.reload()
} }
} }
} }
...@@ -137,24 +137,24 @@ export default { ...@@ -137,24 +137,24 @@ export default {
padding: 0; padding: 0;
} }
} }
.tool-box{ .tool-box {
padding: .85rem 0; padding: 0.85rem 0;
display: flex; display: flex;
justify-content: center; justify-content: center;
background: #fff; background: #fff;
.item{ .item {
.icon{ .icon {
width: .5rem; width: 0.5rem;
height: .5rem; height: 0.5rem;
background: url(https://webapp-pub.oss-cn-beijing.aliyuncs.com/www/h5/images/change-lang.png); background: url(https://webapp-pub.oss-cn-beijing.aliyuncs.com/www/h5/images/change-lang.png);
background-size: 100% 100%; background-size: 100% 100%;
margin: 0 auto; margin: 0 auto;
} }
.text{ .text {
font-size: .14rem; font-size: 0.14rem;
line-height: 100%; line-height: 100%;
color: #999999; color: #999999;
margin-top: .1rem; margin-top: 0.1rem;
text-align: center; text-align: center;
} }
} }
......
...@@ -44,8 +44,8 @@ export default { ...@@ -44,8 +44,8 @@ export default {
mbaChild: { mbaChild: {
mba: 'MBA', mba: 'MBA',
finance: 'MBA IN FINANCE', finance: 'MBA IN FINANCE',
internatidnal: 'MBA IN INTERNATIONAL', internatidnal: 'MBA IN HOSPITALITY',
caas: 'CAAS MBA' caas: 'MBA IN FOOD AND BEVERAGE MANAGEMENT'
}, },
doctorChild: { doctorChild: {
dba: 'Doctor of Psychology DBA (coming soon)', dba: 'Doctor of Psychology DBA (coming soon)',
...@@ -73,7 +73,7 @@ export default { ...@@ -73,7 +73,7 @@ export default {
international: 'MBA<br />IN INTERNATIONAL', international: 'MBA<br />IN INTERNATIONAL',
dba: 'Doctor of<br />Psychology DBA<br />(coming soon)', dba: 'Doctor of<br />Psychology DBA<br />(coming soon)',
edd: 'Doctor of Business<br />Administration EDD(coming soon)', edd: 'Doctor of Business<br />Administration EDD(coming soon)',
caas: 'CAAS MBA' caas: 'MBA IN FOOD AND BEVERAGE MANAGEMENT'
}, },
service: { service: {
x: '1+x', x: '1+x',
...@@ -126,7 +126,7 @@ export default { ...@@ -126,7 +126,7 @@ export default {
formBtn: 'Schedule Service', formBtn: 'Schedule Service',
project1: 'MBA', project1: 'MBA',
project2: 'MBA IN FINANCE', project2: 'MBA IN FINANCE',
project3: 'MBA IN INTERNATIONAL', project3: 'MBA IN HOSPITALITY',
project4: 'MSF', project4: 'MSF',
project5: 'MAP', project5: 'MAP',
project6: 'MED (Childhood Psychology and Education)', project6: 'MED (Childhood Psychology and Education)',
......
...@@ -23,7 +23,6 @@ export const actions = { ...@@ -23,7 +23,6 @@ export const actions = {
switchLocale({ commit }, locale) { switchLocale({ commit }, locale) {
commit('setLocale', locale) commit('setLocale', locale)
this.app.i18n.locale = locale this.app.i18n.locale = locale
this.app.$cookies.set('lang', locale) this.$cookies.set('lang', locale, { domain: 'ezijing.com' })
// process.client && location.reload()
} }
} }
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论