Skip to content

Commit 144f310

Browse files
author
Hiram
committed
[changes] i18n
1 parent 7cb7bae commit 144f310

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

src/renderer/src/locales/lang/en_US/pages/md.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ export default {
1717
privacyPolicy: {
1818
title: 'Disclaimer',
1919
content: privacyPolicyMD,
20+
quitTip: 'Auto quit app after 5 seconds',
2021
confirm: "Aagree",
2122
cancel: "Disagree"
2223
},
23-
};
24+
};

src/renderer/src/locales/lang/zh_CN/pages/md.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ export default {
1717
privacyPolicy: {
1818
title: '用户协议与免责声明',
1919
content: privacyPolicyMD,
20+
quitTip: '5秒后自动退出软件',
2021
confirm: "同意并继续",
2122
cancel: "不同意"
2223
},
23-
};
24+
};

src/renderer/src/pages/Disclaimer.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ import { MessagePlugin } from 'tdesign-vue-next';
2020
import { computed, ref, watch } from 'vue';
2121
import { MdPreview } from 'md-editor-v3';
2222
23+
import { t } from '@/locales';
2324
import { useSettingStore } from '@/store';
2425
import { setDefault } from '@/api/setting';
2526
@@ -59,7 +60,7 @@ const updateAgreementMask = async (status) => {
5960
6061
const cancelEvent = () => {
6162
updateAgreementMask(false);
62-
MessagePlugin.warning({ content: '5秒后自动退出软件', duration: 5000 });
63+
MessagePlugin.warning({ content: t('pages.md.privacyPolicy.quitTip'), duration: 5000 });
6364
setTimeout(() => {
6465
window.electron.ipcRenderer.send('quit-app');
6566
}, 5000);

0 commit comments

Comments
 (0)