feat: pre translate time

This commit is contained in:
Gabe
2025-11-10 01:08:09 +08:00
parent 4b3853dd22
commit 222428ad47
4 changed files with 45 additions and 4 deletions

View File

@@ -30,6 +30,8 @@ export default function SubtitleSetting() {
apiSlug,
segSlug,
chunkLength,
preTrans = 90,
throttleTrans = 30,
toLang,
isBilingual,
skipAd = false,
@@ -114,6 +116,32 @@ export default function SubtitleSetting() {
max={20000}
/>
</Grid>
<Grid item xs={12} sm={12} md={6} lg={3}>
<ValidationInput
fullWidth
size="small"
label={i18n("pre_trans_seconds")}
type="number"
name="preTrans"
value={preTrans}
onChange={handleChange}
min={10}
max={36000}
/>
</Grid>
<Grid item xs={12} sm={12} md={6} lg={3}>
<ValidationInput
fullWidth
size="small"
label={i18n("throttle_trans_interval")}
type="number"
name="throttleTrans"
value={throttleTrans}
onChange={handleChange}
min={1}
max={3600}
/>
</Grid>
<Grid item xs={12} sm={12} md={6} lg={3}>
<TextField
fullWidth