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

feat: Language detection for non-English input #74

Open
4 tasks
JustinhSE opened this issue Dec 7, 2024 · 3 comments
Open
4 tasks

feat: Language detection for non-English input #74

JustinhSE opened this issue Dec 7, 2024 · 3 comments
Labels
Enhancement 🚀 New feature or request

Comments

@JustinhSE
Copy link
Collaborator

Overview

Implement language detection and translation for non-English input in the VerseMatch feature using Google Translate. When users type verses in languages other than English and click Find Similar Verses, the system should use Google Translate to detect the language, translate the input to English, and then proceed with the verse vectorization and matching process.

Tasks

  • Set up Google Cloud project and enable the Cloud Translation API.
  • Install the Google Cloud Translation library:
    npm install @google-cloud/translate
  • Modify the existing "Find Similar Verses" function to incorporate Google Translate
  • Implement error handling for cases where translation fails

This issue is still in early development, so feel free to thread any ideas, suggestions or feedback!

@JustinhSE
Copy link
Collaborator Author

Considerations:

  • Only do this for languages other than English. English input should not call this
  • Output should be converted to that language including our "void" output message

@JustinhSE JustinhSE added the Enhancement 🚀 New feature or request label Dec 7, 2024
@JustinhSE JustinhSE changed the title feat: Add Language detection for non-English input feat: Language detection for non-English input Dec 7, 2024
@Agastya18
Copy link

let me try @JustinhSE

@JustinhSE
Copy link
Collaborator Author

@Agastya18 do you mind giving me a high level overview of how you are thinking of proceeding with this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement 🚀 New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants