feat(mobile): ai summary language
This commit is contained in:
parent
6539b1b984
commit
f229f9f89d
|
|
@ -44,7 +44,7 @@ export const AISummary: FC<{
|
|||
return (
|
||||
<Animated.View
|
||||
layout={CurvedTransition}
|
||||
className={cn("border-system-fill mx-2 rounded-lg border p-3", className)}
|
||||
className={cn("border-system-fill mx-2 rounded-lg border p-4", className)}
|
||||
>
|
||||
<View className="flex-row items-center gap-2">
|
||||
<Magic2CuteReIcon height={16} width={16} color={labelColor} />
|
||||
|
|
|
|||
|
|
@ -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({
|
||||
|
|
|
|||
Loading…
Reference in New Issue