refactor: remove Anki import/export and simplify card system
- Remove Anki apkg import/export functionality - Remove OCR feature module - Remove note and note-type modules - Simplify card/deck modules (remove spaced repetition complexity) - Update translator and dictionary features - Clean up unused translations and update i18n files - Simplify prisma schema
This commit is contained in:
@@ -168,12 +168,12 @@ export async function executeTranslation(
|
||||
let targetIpa: string | undefined;
|
||||
|
||||
if (needIpa) {
|
||||
log.debug("[Stage 3] Generating IPA");
|
||||
sourceIpa = await generateIPA(sourceText, detectedLanguage);
|
||||
log.debug("[Stage 3] Source IPA", { sourceIpa });
|
||||
|
||||
targetIpa = await generateIPA(translatedText, targetLanguage);
|
||||
log.debug("[Stage 3] Target IPA", { targetIpa });
|
||||
log.debug("[Stage 3] Generating IPA in parallel");
|
||||
[sourceIpa, targetIpa] = await Promise.all([
|
||||
generateIPA(sourceText, detectedLanguage),
|
||||
generateIPA(translatedText, targetLanguage),
|
||||
]);
|
||||
log.debug("[Stage 3] IPA complete", { sourceIpa, targetIpa });
|
||||
}
|
||||
|
||||
// Assemble final result
|
||||
|
||||
Reference in New Issue
Block a user