feat(renderer): 修改部分页面提示、增加英文版README

This commit is contained in:
himeditator
2025-06-23 20:23:03 +08:00
parent fae8b32edf
commit c086725d98
4 changed files with 113 additions and 6 deletions

View File

@@ -2,7 +2,7 @@
<div class="caption-stat">
<a-row>
<a-col :span="6">
<a-statistic title="字幕引擎" :value="engine" />
<a-statistic title="字幕引擎" :value="(customized && customizedApp)?'自定义':engine" />
</a-col>
<a-col :span="6">
<a-statistic title="字幕引擎状态" :value="engineEnabled?'已启动':'未启动'" />
@@ -81,7 +81,7 @@ import { useCaptionControlStore } from '@renderer/stores/captionControl'
const captionLog = useCaptionLogStore()
const { captionData } = storeToRefs(captionLog)
const captionControl = useCaptionControlStore()
const { engineEnabled, engine } = storeToRefs(captionControl)
const { engineEnabled, engine, customized, customizedApp } = storeToRefs(captionControl)
const pagination = ref({
current: 1,
pageSize: 10,

View File

@@ -90,11 +90,14 @@ export const useCaptionControlStore = defineStore('captionControl', () => {
window.electron.ipcRenderer.on('control.engine.started', () => {
engineEnabled.value = true
const str0 =
`原语言:${sourceLang.value},是否翻译:${translation.value?'是':'否'}` +
`字幕引擎:${engine.value},音频类型:${audio.value ? '输入音频' : '输出音频'}` +
(translation.value ? `,翻译语言:${targetLang.value}` : '');
const str1 = `类型:自定义引擎,引擎路径:${customizedApp.value},命令参数:${customizedCommand.value}`;
notification.open({
message: '字幕引擎启动',
description: `原语言:${sourceLang.value},是否翻译:${translation.value?'是':'否'}` +
`字幕引擎:${engine.value},音频类型:${audio.value ? '输入音频' : '输出音频'}` +
(translation.value ? `,翻译语言:${targetLang.value}` : '')
description: (customized.value && customizedApp.value) ? str1 : str0
});
})