From f229f9f89d08ba46b5bf4e1a830734f06eb83fa8 Mon Sep 17 00:00:00 2001 From: DIYgod Date: Tue, 11 Mar 2025 20:59:55 +0800 Subject: [PATCH] feat(mobile): ai summary language --- apps/mobile/src/modules/ai/summary.tsx | 2 +- apps/mobile/src/store/summary/store.ts | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/apps/mobile/src/modules/ai/summary.tsx b/apps/mobile/src/modules/ai/summary.tsx index 4ee4f2926..4f313e558 100644 --- a/apps/mobile/src/modules/ai/summary.tsx +++ b/apps/mobile/src/modules/ai/summary.tsx @@ -44,7 +44,7 @@ export const AISummary: FC<{ return ( diff --git a/apps/mobile/src/store/summary/store.ts b/apps/mobile/src/store/summary/store.ts index 5db003452..232154778 100644 --- a/apps/mobile/src/store/summary/store.ts +++ b/apps/mobile/src/store/summary/store.ts @@ -103,8 +103,7 @@ class SummarySyncService { state.generatingStatus[entryId] = SummaryGeneratingStatus.Pending }) - // TODO: Use the language of the entry - const language = "en" + const language = entry.settings?.translation // Use Our AI to generate summary const summary = await apiClient.ai.summary .$get({