mirror of
https://github.com/jeffvli/feishin.git
synced 2026-06-15 16:04:19 +02:00
Fix Lyric Translation Not Resetting (#1208)
* Refactor lyrics translation and index handling * Add auto translation toggle to lyric settings * Add enableAutoTranslation setting to lyrics
This commit is contained in:
@@ -225,6 +225,7 @@ const HotkeysSettingsSchema = z.object({
|
||||
const LyricsSettingsSchema = z.object({
|
||||
alignment: z.enum(['center', 'left', 'right']),
|
||||
delayMs: z.number(),
|
||||
enableAutoTranslation: z.boolean(),
|
||||
enableNeteaseTranslation: z.boolean(),
|
||||
fetch: z.boolean(),
|
||||
follow: z.boolean(),
|
||||
@@ -612,6 +613,7 @@ const initialState: SettingsState = {
|
||||
lyrics: {
|
||||
alignment: 'center',
|
||||
delayMs: 0,
|
||||
enableAutoTranslation: false,
|
||||
enableNeteaseTranslation: false,
|
||||
fetch: false,
|
||||
follow: true,
|
||||
|
||||
Reference in New Issue
Block a user