feat: use OP's language as recommendation when replying (#8832)

* feat: use OP's language as recommendation when replying

* fix: address nits
This commit is contained in:
Elijah Seed-Arita
2025-08-15 06:16:13 -07:00
committed by GitHub
parent 4e0be91cff
commit 5ca665467e
12 changed files with 31 additions and 4 deletions
+5 -1
View File
@@ -621,7 +621,11 @@ export const ComposePost = ({
const footer = (
<>
<SuggestedLanguage text={activePost.richtext.text} />
<SuggestedLanguage
text={activePost.richtext.text}
// NOTE(@elijaharita): currently just choosing the first language if any exists
replyToLanguage={replyTo?.langs?.[0]}
/>
<ComposerPills
isReply={!!replyTo}
post={activePost}