feat: 国际化
This commit is contained in:
parent
44ce2b4210
commit
2adece80e3
@ -5,13 +5,18 @@ import { computed } from 'vue'
|
||||
import { ElHeader } from 'element-plus-secondary'
|
||||
import { useRouter } from 'vue-router'
|
||||
import AccountOperator from '@/layout/components/AccountOperator.vue'
|
||||
import { propTypes } from '@/utils/propTypes'
|
||||
import { useAppearanceStoreWithOut } from '@/store/modules/appearance'
|
||||
import { useI18n } from '@/hooks/web/useI18n'
|
||||
const appearanceStore = useAppearanceStoreWithOut()
|
||||
const { push } = useRouter()
|
||||
const props = defineProps({
|
||||
title: propTypes.string.def('系统设置')
|
||||
})
|
||||
const { t } = useI18n()
|
||||
|
||||
const props = withDefaults(
|
||||
defineProps<{
|
||||
title: string
|
||||
}>(),
|
||||
{}
|
||||
)
|
||||
const backToMain = () => {
|
||||
push('/workbranch/index')
|
||||
}
|
||||
@ -25,17 +30,17 @@ const navigate = computed(() => appearanceStore.getNavigate)
|
||||
:class="{ 'header-light': navigateBg && navigateBg === 'light' }"
|
||||
>
|
||||
<img class="logo" v-if="navigate" :src="navigate" alt="" />
|
||||
<Icon class="de-logo" v-else className="logo" name="logo"
|
||||
><logo class="svg-icon logo de-logo"
|
||||
/></Icon>
|
||||
<Icon class="de-logo" v-else className="logo" name="logo">
|
||||
<logo class="svg-icon logo de-logo" />
|
||||
</Icon>
|
||||
<el-divider direction="vertical" />
|
||||
<span class="system">{{ props.title || '系统设置' }}</span>
|
||||
<span class="system">{{ title || t('commons.system_setting') }}</span>
|
||||
<div class="operate-setting">
|
||||
<span @click="backToMain" class="work-bar flex-align-center">
|
||||
<el-icon>
|
||||
<Icon name="icon_left_outlined"><icon_left_outlined class="svg-icon" /></Icon>
|
||||
</el-icon>
|
||||
<span class="work">返回工作台</span>
|
||||
<span class="work">{{ t('work_branch.back_to_work_branch') }}</span>
|
||||
</span>
|
||||
|
||||
<AccountOperator />
|
||||
|
||||
@ -359,6 +359,7 @@ export default {
|
||||
to_delete_: 'Are you sure to delete [100]?'
|
||||
},
|
||||
work_branch: {
|
||||
back_to_work_branch: 'Back to work branch',
|
||||
recommended_dashboard: 'Recommended dashboard',
|
||||
template_market_official:
|
||||
'If you have not obtained the template download link, please contact the template market official',
|
||||
@ -1001,7 +1002,6 @@ export default {
|
||||
task_finish_in_suffix: '',
|
||||
open_sub_task: 'Open Assigned Tasks'
|
||||
},
|
||||
on_the_left: 'Please select a form on the left',
|
||||
search_by_commit_name: 'Search by operator name'
|
||||
}
|
||||
}
|
||||
|
||||
@ -125,6 +125,7 @@ export default {
|
||||
exists_name_hint: '當前名稱已在模版管理中存在,請修改'
|
||||
},
|
||||
work_branch: {
|
||||
back_to_work_branch: '返回工作台',
|
||||
recommended_dashboard: '推薦儀表板',
|
||||
template_market_official: '未獲取模板下載鏈接請聯系模板市場官方',
|
||||
create_quickly: '快速創建',
|
||||
@ -3262,7 +3263,6 @@ export default {
|
||||
task_finish_in_suffix: '內完成填報',
|
||||
open_sub_task: '查看已下發任務'
|
||||
},
|
||||
on_the_left: '請在左側選擇表單',
|
||||
search_by_commit_name: '根據操作人名稱搜索'
|
||||
},
|
||||
threshold: {
|
||||
|
||||
@ -125,6 +125,7 @@ export default {
|
||||
exists_name_hint: '当前名称已在模版管理中存在,请修改'
|
||||
},
|
||||
work_branch: {
|
||||
back_to_work_branch: '返回工作台',
|
||||
recommended_dashboard: '推荐仪表板',
|
||||
template_market_official: '未获取模板下载链接请联系模板市场官方',
|
||||
create_quickly: '快速创建',
|
||||
@ -3320,7 +3321,6 @@ export default {
|
||||
task_finish_in_suffix: '内完成填报',
|
||||
open_sub_task: '查看已下发任务'
|
||||
},
|
||||
on_the_left: '请在左侧选择表单',
|
||||
search_by_commit_name: '根据操作人名称搜索'
|
||||
},
|
||||
threshold: {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user