33import { useAppStore } from "@/lib/store" ;
44import { TranslationResult , TranslationTarget } from "@/lib/types/minecraft" ;
55import { FileService } from "@/lib/services/file-service" ;
6- import { TranslationService } from "@/lib/services/translation-service" ;
6+ import { TranslationService , TranslationJob } from "@/lib/services/translation-service" ;
77import { TranslationTab } from "@/components/tabs/common/translation-tab" ;
88import { invoke } from "@tauri-apps/api/core" ;
99import { runTranslationJobs } from "@/lib/services/translation-runner" ;
@@ -137,7 +137,7 @@ export function QuestsTab() {
137137 // Create jobs for all quests
138138 const jobs : Array < {
139139 target : TranslationTarget ;
140- job : any ;
140+ job : TranslationJob ;
141141 content : string ;
142142 } > = [ ] ;
143143
@@ -267,7 +267,7 @@ export function QuestsTab() {
267267 await FileService . writeTextFile ( outputFilePath , translatedText ) ;
268268 } ,
269269 onResult : addTranslationResult ,
270- onJobStart : async ( job , i ) => {
270+ onJobStart : async ( job ) => {
271271 const questData = jobs . find ( j => j . job . id === job . id ) ;
272272 if ( ! questData ) return ;
273273 try {
@@ -276,7 +276,7 @@ export function QuestsTab() {
276276 } ) ;
277277 } catch { }
278278 } ,
279- onJobComplete : async ( job , i ) => {
279+ onJobComplete : async ( job ) => {
280280 const questData = jobs . find ( j => j . job . id === job . id ) ;
281281 if ( ! questData ) return ;
282282 try {
@@ -285,7 +285,7 @@ export function QuestsTab() {
285285 } ) ;
286286 } catch { }
287287 } ,
288- onJobInterrupted : async ( job , i ) => {
288+ onJobInterrupted : async ( job ) => {
289289 const questData = jobs . find ( j => j . job . id === job . id ) ;
290290 if ( ! questData ) return ;
291291 try {
0 commit comments