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

From becomes "undefined" when i18n is used #259

Open
gene-pavlovsky opened this issue Sep 27, 2022 · 2 comments
Open

From becomes "undefined" when i18n is used #259

gene-pavlovsky opened this issue Sep 27, 2022 · 2 comments

Comments

@gene-pavlovsky
Copy link

Example: https://foaas.com/off/Tom/Everyone?i18n=de

Result:
Verpiss dich, Tom.
undefined

Without ?i18n=de: https://foaas.com/off/Tom/Everyone
Fuck off, Tom.

  • Everyone
@gene-pavlovsky
Copy link
Author

gene-pavlovsky commented Sep 27, 2022

As I see, the server makes a request similar to this: http://api.mymemory.translated.net/get?q=fuck%20off,%20tom%20%E2%90%A4%20everyone&langpair=en|de
Using some "Unicode Newline" character as a separator.
The API returns just the first part (the message) translated, there is no separator or the translated subtitle in the result.

@gene-pavlovsky
Copy link
Author

Personally, not sure the subtitle (e.g. names) should be translated at all...

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

No branches or pull requests

1 participant