Skip to content

Commit

Permalink
chore: 添加国际化字段
Browse files Browse the repository at this point in the history
  • Loading branch information
fxzer committed Apr 22, 2024
1 parent a5cfcae commit e8ec062
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ const canvasIconList = [
</el-tooltip>
</template>

<el-tooltip content="自动渲染">
<el-tooltip :content="$t(autoRender ? 'autoRender':'manualRender')">
<span class="iconfont icon-auto" @click="toggleExecuteMode()"
:class="autoRender ? '!text-green-500' : ''" />
</el-tooltip>
Expand Down
1 change: 1 addition & 0 deletions src/locales/en-US.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export default {
center: 'Center',
nodes: 'Nodes',
autoRender: 'Auto Render',
manualRender: 'Manual Render',
execute: 'Render',
import: 'Import',
export: 'Export',
Expand Down
1 change: 1 addition & 0 deletions src/locales/zh-CN.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export default {
center: '居中',
nodes: '节点',
autoRender: '自动渲染',
manualRender: '手动渲染',
execute: '渲染',
import: '导入',
export: '导出',
Expand Down

0 comments on commit e8ec062

Please sign in to comment.