Skip to content

Commit

Permalink
优化,中英文翻译
Browse files Browse the repository at this point in the history
  • Loading branch information
duolabmeng6 committed Nov 16, 2023
1 parent b65b332 commit 525ace9
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@ import Shape from "@/components/Shape.vue";
import {getItemStyle2, getItemStyleShape} from "@/public";
import {v4 as uuidv4} from 'uuid';
import {menusEvent} from "vue3-menus";
import {useI18n} from "vue-i18n";
const {t, te, availableLocales: languages, locale} = useI18n();
const {item} = defineProps(['item']);
Expand All @@ -103,7 +105,7 @@ tempCtx.font = "12px Arial";
tempCtx.fillStyle = "white";
tempCtx.strokeStyle = "rgb(112, 139, 219)";
tempCtx.strokeRect(0, 0, tempCanvas.width, tempCanvas.height);
tempCtx.fillText("松开放置", 10, 20);
tempCtx.fillText(t('app.ReleaseAndPlace'), 10, 20);
const shapeRect = ref({
Expand Down
3 changes: 2 additions & 1 deletion GoEasyDesigner/frontend/src/i18n/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
"system_components": "System",
"td_components": "T Design",
"updateCheck": "Check Update",
"inCompile": "in compile..."
"inCompile": "in compile...",
"ReleaseAndPlace": "Release and place"
},
"attr": {
"addEvent": "add event function",
Expand Down
4 changes: 3 additions & 1 deletion GoEasyDesigner/frontend/src/i18n/locales/zh-Hans.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@
"system_components": "系统组件",
"td_components": "t design",
"updateCheck": "检查更新",
"inCompile": "编译中..."
"inCompile": "编译中...",
"ReleaseAndPlace": "松开放置"

},
"attr": {
"addEvent": "在此处选择加入事件处理函数",
Expand Down

0 comments on commit 525ace9

Please sign in to comment.