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

chore: 翻译内容优化

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