diff --git a/front-end/h5/src/components/common/header/links.js b/front-end/h5/src/components/common/header/links.js index 01516c6e..ffc5aa4c 100644 --- a/front-end/h5/src/components/common/header/links.js +++ b/front-end/h5/src/components/common/header/links.js @@ -15,16 +15,17 @@ export default { - 交流群 + {this.$t('header.chat')} - 文档 + {/* 文档 */} + {this.$t('header.chineseDocument')} Document(En) diff --git a/front-end/h5/src/components/common/header/logo.js b/front-end/h5/src/components/common/header/logo.js index 1cc17203..36ffc215 100644 --- a/front-end/h5/src/components/common/header/logo.js +++ b/front-end/h5/src/components/common/header/logo.js @@ -1,5 +1,8 @@ export default { render () { - return + return } } diff --git a/front-end/h5/src/views/work-manager/form-stat/column.js b/front-end/h5/src/views/work-manager/form-stat/column.js index 6df1d1f9..eec4057d 100644 --- a/front-end/h5/src/views/work-manager/form-stat/column.js +++ b/front-end/h5/src/views/work-manager/form-stat/column.js @@ -1,6 +1,6 @@ export const columns = [ { - title: '标题', + title: 'Title', dataIndex: 'title', key: 'title' }, @@ -15,7 +15,7 @@ export const columns = [ key: 'uv' }, { - title: '表单数', + title: 'Form Count', key: 'formCount', dataIndex: 'formCount' }, diff --git a/front-end/h5/src/views/work-manager/form-stat/detail.vue b/front-end/h5/src/views/work-manager/form-stat/detail.vue index bd622aa8..f3ef4608 100644 --- a/front-end/h5/src/views/work-manager/form-stat/detail.vue +++ b/front-end/h5/src/views/work-manager/form-stat/detail.vue @@ -81,7 +81,8 @@ export default {
查看数据] + // 查看数据 + return [{this.$t('basicData.viewData')}] } }}> diff --git a/front-end/h5/src/views/work-manager/form-stat/index.vue b/front-end/h5/src/views/work-manager/form-stat/index.vue index e22e70a9..9dc082a5 100644 --- a/front-end/h5/src/views/work-manager/form-stat/index.vue +++ b/front-end/h5/src/views/work-manager/form-stat/index.vue @@ -37,11 +37,13 @@ export default { } }, render (h) { + const that = this return (
查看数据] + // 查看数据 + return [{that.$t('basicData.viewData')}] } }}> diff --git a/front-end/h5/src/views/work-manager/index.vue b/front-end/h5/src/views/work-manager/index.vue index ade525d3..0dbcbb2c 100644 --- a/front-end/h5/src/views/work-manager/index.vue +++ b/front-end/h5/src/views/work-manager/index.vue @@ -4,10 +4,12 @@ import '@/components/core/styles/index.scss' import LogoOfHeader from '@/components/common/header/logo.js' import ExternalLinksOfHeader from '@/components/common/header/links.js' +import LangSelect from '@/components/common/header/LangSelect.vue' const sidebarMenus = [ { label: '我的作品', + i18nLabel: 'sidebar.myWorks', value: 'workManager', antIcon: 'bars', key: '1', @@ -15,12 +17,14 @@ const sidebarMenus = [ }, { label: '数据中心', + i18nLabel: 'sidebar.dataCenter', value: 'dataCenter', antIcon: 'snippets', key: '2', children: [ { label: '基础数据', + i18nLabel: 'sidebar.basicData', value: 'basicData', antIcon: 'snippets', key: '2-1', @@ -30,12 +34,14 @@ const sidebarMenus = [ }, { label: '模板中心', + i18nLabel: 'sidebar.templateCenter', value: 'templateCenter', antIcon: 'snippets', key: '3', children: [ { - label: '免费模板', + label: '模板列表', + i18nLabel: 'sidebar.freeTemplates', value: 'freeTemplates', antIcon: 'snippets', key: '3-1', @@ -45,6 +51,7 @@ const sidebarMenus = [ }, { label: '账号中心', + i18nLabel: 'sidebar.accountCenter', value: 'freeTemplate', antIcon: 'appstore', key: '4' @@ -56,17 +63,20 @@ export default { // PreView, // Sidebar LogoOfHeader, - ExternalLinksOfHeader + ExternalLinksOfHeader, + LangSelect }, methods: { renderSidebar (menus) { - const renderLabel = menu => menu.routerName ? {menu.label} : menu.label + // const renderLabel = menu => menu.routerName ? {menu.label} : menu.label + const renderLabel = menu => menu.routerName ? {this.$t(menu.i18nLabel)} : this.$t(menu.i18nLabel) return menus.map(menu => ( menu.children ? ( - {menu.label} + {/** {menu.label} */} + {this.$t(menu.i18nLabel)} { (menu.children).map(submenu => ( {renderLabel(submenu)} @@ -89,6 +99,7 @@ export default { + {/* TODO we can show the plugins shortcuts here */} {}}> @@ -116,7 +127,7 @@ export default { {this.renderSidebar(sidebarMenus)} - + diff --git a/front-end/h5/src/views/work-manager/list.vue b/front-end/h5/src/views/work-manager/list.vue index 54b21f24..fdd42b55 100644 --- a/front-end/h5/src/views/work-manager/list.vue +++ b/front-end/h5/src/views/work-manager/list.vue @@ -45,13 +45,15 @@ const ListItemCard = {