Skip to content

Commit

Permalink
🍒feat:添加翻译程序
Browse files Browse the repository at this point in the history
  • Loading branch information
durunsong committed Nov 8, 2024
1 parent a7bbe5a commit cd279e1
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/i18n/package/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,7 @@ const en = {
Selecting_a_Character: "Selecting a Character",
Get_Success: "Get Success",
error_occurs: "Error occurs",
router_translation_process: "Translation process",
};

export default en;
1 change: 1 addition & 0 deletions src/i18n/package/zh.ts
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,7 @@ const zh = {
Selecting_a_Character: "选择角色",
Get_Success: "获取成功",
error_occurs: "发生错误",
router_translation_process: "翻译程序",
};

export default zh;
9 changes: 9 additions & 0 deletions src/router/modules/constantRoutes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,15 @@ export const constant_Routes: RouteRecordRaw[] = [
title: "router_Functions_and_Components",
},
},
{
path: "translation-process",
component: () =>
import("@/views/function-card/translation-process.vue"),
name: "translationProcess",
meta: {
title: "router_translation_process",
},
},
],
},
{
Expand Down
30 changes: 30 additions & 0 deletions src/views/function-card/translation-process.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<template>
111
<div class="iframe-container">
<iframe
:src="url"
frameborder="0"
class="iframe"
title="Embedded Page"
></iframe>
</div>
</template>

<script setup lang="ts">
import { ref } from "vue";
const url = ref("https://translation-tools.vercel.app/");
</script>

<style scoped>
.iframe-container {
width: 100%;
height: 100vh;
}
.iframe {
width: 100%;
height: 100%;
min-height: 500px;
}
</style>

0 comments on commit cd279e1

Please sign in to comment.