cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Helper V
Helper V

The method 'Translate' has an invalid value for parameter 'LanguageTo'

MicrosoftTranslator.Translate failed

 

Hi guys,  I've been trying to figure out how to fix this error. When I test it on my desktop this does not show up, only when I publish it to mobile. I have several languages on different screens and each time I select a new screen this message shows up. 

 

Any ideas on what needs to be done to fix this would be greatly appreciated. 

 

 

Screenshot_20190916-094608.jpg

3 REPLIES 3
Highlighted
Dual Super User II
Dual Super User II

Hi @Courtney 

 

 

Check to see if you have passed value to languageto param

The translate frunction requires the languageto value to translate

 

example : MicrosoftTranslator.Translate("hello","fr")

 

Regards,

Reza Dorrani

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

Highlighted

Thanks for your response. I'm still new to the platform so i'm not quite sure how/where to implement this change. Is there any chance you could simplifiy it for me?

It only seems to happen once when the screen is first made visible and once the error box is closed down, it works as normal until the app is closed. Its just really annoying when it pops us each time and gives the impression that the app in broken when accessed form a mobie device. 

Highlighted

I am having this exact same issue, except I only have the error appear in the app for ~20 seconds when the app is first opened. 

 

The error:
MicrosoftTranslator.Translate failed: The Method 'Translate' has an invalid value for parameter 'languageTo'

 

The error only shows right when the app is opened. I do not have any issues with anything being translated, and there are no issues when in Dev mode. 

Did you ever find a solution?

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Community Highlights

Community Highlights

Check out the Power Platform Community Highlights

Top Solution Authors
Top Kudoed Authors
Users online (9,610)