Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Display translated messages in chat #19

Merged
merged 3 commits into from
May 26, 2023
Merged

Conversation

Ashesh3
Copy link
Member

@Ashesh3 Ashesh3 commented May 25, 2023

Requires coronasafe/ayushma#145

This PR adds a new field called 'translated_message' to the ChatMessage type, which will allow messages to be translated and displayed in the chat.

The PR also includes changes to the ChatBlock component, which implements the 'translated_message' field in the UI. When the field is present in the message object, it displays the translated message followed by the original message, separated by a horizontal rule. If the field is absent, it falls back to displaying only the original message.

image

@Ashesh3 Ashesh3 requested a review from skks1212 May 25, 2023 14:44
@vercel
Copy link

vercel bot commented May 25, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
ayushma-fe ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 26, 2023 10:29pm

@skks1212 skks1212 merged commit 5b17055 into master May 26, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants