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

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
Dual Super User

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

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
Helper IV
Helper IV

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

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
Frequent Visitor

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

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
Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

secondImage

Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

secondImage

Super Users Coming in August

We are excited for the next Super User season.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (6,489)