Skip to content

Commit

Permalink
feat: adapt tooltips for multiple languages on frontend
Browse files Browse the repository at this point in the history
Simplified Chinese, Traditional Chinese, and English
  • Loading branch information
ZZHow1024 committed Feb 9, 2025
1 parent 957aae7 commit addbcf5
Show file tree
Hide file tree
Showing 16 changed files with 57 additions and 38 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.drawer .download-process-container[data-v-59ccf8fa],.drawer .content-container[data-v-59ccf8fa]{display:flex;align-items:center;justify-content:center}

This file was deleted.

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion backend/src/main/resources/static/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<link rel="icon" href="/favicon.png">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>MagicShare</title>
<script type="module" crossorigin src="/assets/index-BRfwU_Kw.js"></script>
<script type="module" crossorigin src="/assets/index-D8L44qi7.js"></script>
</head>
<body>
<div id="app"></div>
Expand Down
7 changes: 7 additions & 0 deletions frontend/src/lang/modules/en-US.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,13 @@ export default {
content3: 'Network abnormality',
button: 'Reconnect',
},
downloadBusy: {
title: 'MagicShare Alert',
cancelText: 'Cancel',
okText: 'View the current encrypted download progress',
content:
'The encrypted download task is occupied, and it does not support simultaneous encrypted download of multiple files.',
},
},
login: {
title: 'Please enter the connection password',
Expand Down
6 changes: 6 additions & 0 deletions frontend/src/lang/modules/zh-Hans.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ export default {
content3: '网络出现异常',
button: '重新连接',
},
downloadBusy: {
title: 'MagicShare 提示',
cancelText: '取消',
okText: '查看当前加密下载进度',
content: '加密下载任务被占用,不支持同时加密下载多个文件。',
},
},
login: {
title: '请输入连接密码',
Expand Down
6 changes: 6 additions & 0 deletions frontend/src/lang/modules/zh-Hant.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ export default {
content3: '網路出現異常',
button: '重新連接',
},
downloadBusy: {
title: 'MagicShare 提示',
cancelText: '取消',
okText: '查看目前加密下載進度',
content: '加密下載任務被佔用,不支援同時加密下載多個文件。',
},
},
login: {
title: '請輸入連線密碼',
Expand Down
8 changes: 4 additions & 4 deletions frontend/src/views/home/HomeIndex.vue
Original file line number Diff line number Diff line change
Expand Up @@ -330,13 +330,13 @@ const mergeFiles = () => {
<a-modal
centered
v-model:open="modelOpen"
title="MagicShare 提示"
cancel-text="取消"
:title="$t('message.downloadBusy.title')"
:cancel-text="$t('message.downloadBusy.cancelText')"
@cancel="handleCancel"
ok-text="查看当前加密下载进度"
:ok-text="$t('message.downloadBusy.okText')"
@ok="handleOk"
>
加密下载任务被占用,不支持同时加密下载多个文件。
{{ $t('message.downloadBusy.content') }}
</a-modal>
</div>

Expand Down

0 comments on commit addbcf5

Please sign in to comment.