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

Retrieve full translated text #2

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

AlecJY
Copy link

@AlecJY AlecJY commented Jul 9, 2023

Currently, when translating multiline texts, only the first line is being retrieved. For example, when translating "Halo\nDunia" to English the API only returns "Hello" instead of "Hello\nWorld". This PR fixes the issue by adding a loop to combine other parts of the text.

Fix a bug when the translated text have multiple lines, only
the first line is retrieved.
@gedw99
Copy link

gedw99 commented Dec 5, 2023

yeah its probably best to have a catalogue of text and feed one at a time in.

like this https://github.com/vorlif/xspreak

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