You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by sh...@apache.org on 2020/12/29 09:03:01 UTC
[incubator-echarts-examples] branch next updated: i18n in tabs
This is an automated email from the ASF dual-hosted git repository.
shenyi pushed a commit to branch next
in repository https://gitbox.apache.org/repos/asf/incubator-echarts-examples.git
The following commit(s) were added to refs/heads/next by this push:
new ff1c0df i18n in tabs
ff1c0df is described below
commit ff1c0df3cffff99fe2e9c7f082bcb467e53d15e3
Author: pissang <bm...@gmail.com>
AuthorDate: Tue Dec 29 17:02:48 2020 +0800
i18n in tabs
---
src/common/i18n.js | 6 ++++++
src/editor/Editor.vue | 10 +++++-----
2 files changed, 11 insertions(+), 5 deletions(-)
diff --git a/src/common/i18n.js b/src/common/i18n.js
index 667785b..162fdd4 100644
--- a/src/common/i18n.js
+++ b/src/common/i18n.js
@@ -18,6 +18,9 @@ export default {
edit: 'Edit',
monacoMode: 'Enable Type Checking',
+ tabEditor: 'Edit Example',
+ tabFullCodePreview: 'Full Code',
+ tabOptionPreview: 'Option Preview',
minimalImport: 'Minimal Import'
},
@@ -81,6 +84,9 @@ export default {
edit: '编辑',
monacoMode: '开启类型检查',
+ tabEditor: '示例编辑',
+ tabFullCodePreview: '完整代码',
+ tabOptionPreview: '配置项',
minimalImport: '最少引入'
},
diff --git a/src/editor/Editor.vue b/src/editor/Editor.vue
index 347c7ff..e95d4d2 100644
--- a/src/editor/Editor.vue
+++ b/src/editor/Editor.vue
@@ -2,7 +2,7 @@
<div id="main-container">
<div id="editor-left-container" :style="{width: leftContainerSize + '%'}" v-if="!shared.isMobile">
<el-tabs v-model="currentTab" type="border-card">
- <el-tab-pane label="示例编辑" name="code-editor">
+ <el-tab-pane :label="$t('editor.tabEditor')" name="code-editor">
<el-container>
<el-header id="editor-control-panel">
<div id="code-info">
@@ -26,11 +26,11 @@
</el-container>
</el-tab-pane>
- <el-tab-pane label="完整代码" name="full-code" :lazy="true">
+ <el-tab-pane :label="$t('editor.tabFullCodePreview')" name="full-code" :lazy="true">
<el-container style="width: 100%; height: 100%">
<el-header id="full-code-generate-config">
<span class="full-code-generate-config-label">
- <i class="el-icon-setting"></i> 配置
+ <!-- <i class="el-icon-setting"></i> 配置 -->
</span>
<el-switch
class="enable-decal"
@@ -44,7 +44,7 @@
</el-main>
</el-container>
</el-tab-pane>
- <el-tab-pane label="配置项" name="full-option" :lazy="true">
+ <el-tab-pane :label="$t('editor.tabOptionPreview')" name="full-option" :lazy="true">
</el-tab-pane>
</el-tabs>
</div>
@@ -298,7 +298,7 @@ $handler-width: 5px;
height: $control-panel-height;
line-height: $control-panel-height;
vertical-align: middle;
- margin: 0 20px;
+ margin: 0 0 0 20px;
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org