tomdionysus / foaas

FOAAS (Fuck Off As A Service) provides a modern, RESTful, scalable solution to the common problem of telling people to fuck off.
http://foaas.com
Do What The F*ck You Want To Public License
2.99k stars 394 forks source link

From becomes "undefined" when i18n is used #259

Open gene-pavlovsky opened 2 years ago

gene-pavlovsky commented 2 years ago

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.

gene-pavlovsky commented 2 years ago

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 commented 2 years ago

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