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

Implement a language management feature to support change application language and multi-language message translations #31

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

kido-luci
Copy link

@kido-luci kido-luci commented Nov 15, 2024

Feature:

- Support application language changes: users can select a language in the Application Language tab within the Language Management popup on the Login or Chat Box screen, the UI will update dynamically when the App Language value in the Language Cubit state changes.
- Support multi-language message translations: users can select a language in the Message Language tab within the Language Management popup on the Chat Box screen. The list of available languages is fetched from the Restcountries API, allowing users to search by language name, code, or country name. The selected language is saved to Firestore under the user's data; if the language is new, it will be added to the Languages collection. When a user sends a new message in the public chat room, a Firebase Cloud Function triggers to translate the message into all languages in the languages collection by using Gemini ai model of Vertex AI API. The recipient receives both the original message and a translated version based on their selected language.

demo video

User data:
image

Language data:
image

Chat data:
image

@kido-luci kido-luci requested a review from suesitran as a code owner November 15, 2024 06:05
@thenartus
Copy link

Good implementation

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.

2 participants