question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

What should `translate (join (apple) (banana)) to (<language other than english>)` do?

See original GitHub issue

Expected Behavior

Plugging in blocks into translate block with a language other than the viewer’s language selected should translate that phrase into the selected language.

Actual Behavior

This is really a question about what the translate block should do if it fails to translate a phrase.

The following combination of blocks (composed of unchanged blocks found in the toolbox) results in ‘applebanana’ in English. screen shot 2018-06-05 at 12 16 03 pm

This feels a little broken, especially since it still translates to a string in English. Maybe this should result in the empty string, indicating that a translation for that phrase in the desired language could not be found.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:14 (9 by maintainers)

github_iconTop GitHub Comments

5reactions
picklesruscommented, Jun 12, 2018

Just a note on the technical side: “applebanana” is what the translate api returns for that query and many other made up words just return the original as well. If we did want to return the empty string instead, I don’t see any score in the response that we could use to help make that decision.

This is my new favorite example of this 😄 screen shot 2018-06-11 at 5 13 07 pm

1reaction
fsihcommented, Aug 7, 2018

That’s a valid translation of broken in Japanese. A lot of Japanese words are basically English :p

Read more comments on GitHub >

github_iconTop Results From Across the Web

Google Translate on the App Store
Download Google Translate and enjoy it on your iPhone, iPad and iPod touch. ... when you're translating from one foreign language to another...
Read more >
Report bugs in translations here - Discuss Scratch
English version of translation (if possible - this will help us find the ... Description of the problem: this is not a correct...
Read more >
apple banana - Portuguese translation - Linguee
Many translated example sentences containing "apple banana" – Portuguese-English dictionary and search engine for Portuguese translations.
Read more >
RESUMES - ERIC
AND INTLRMEDIATE OR ADVANCED SWAHILI LANGUAGE STUDENTS AS ... translation and notes. ... part of thepopulation is completelydetribalized and does not.
Read more >
spaCy 101: Everything you need to know
Unlike a platform, spaCy does not provide a software as a service, ... This is why each available language has its own subclass,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found