cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
GerbenIndito
Level: Powered On

Switching languages in the studio causes syntax error

Hi there,

 

We are using PowerApps Studio with several users, I personally prefer English eversince that's my preferred syntax. We have noticed that switching languages can cause the interpeter to get a conversion mismatch and cause syntax errors. These are most of the time ; and ;; and , with .

 

Is there any solution? And why is there a difference in syntax anyway? I can't lookup anything with the Dutch syntax and have to convert it by hand anyway, really, really inconvinient.

 

Regards,

Gerben

2 REPLIES 2
Community Support Team
Community Support Team

Re: Switching languages in the studio causes syntax error

Hi @GerbenIndito ,

Yes, different languages have different syntaxes in PowerApps.

I suggest you use Translation service.

Try this formula:

MicrosoftTranslator.Translate( "Hello", Language() )

Then, languange will automatically transfer.

Here's a doc about it for your reference:

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/connections/connection-microsoft-transl...

 

Here's a bog about how to create an app that supports multiple languages for your reference:

https://blogs.msdn.microsoft.com/carlosfigueira/2017/09/08/building-multilingual-apps-in-powerapps/

 

 

Best regards,

Community Support Team _ Phoebe Liu

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
GerbenIndito
Level: Powered On

Re: Switching languages in the studio causes syntax error

Hi Yutliu,

 

I was kind of scared someone would reply with this. My question is about the studio, not the app itself. I've noticed a piece of syntax that causes the interpreter to malform the syntax. This issue is caused after I wrote code in the English studio and then switched to the Dutch studio. (Changing the Chrome language.)

 

As I said: in Dutch we end a single statement with ";;" instead of the English ";". The Dutch interpreter goes twice over the code for some reason causing endings to be straight syntax faults.

Example:

// Invalid code
statement;;;;
// Should be (Dutch syntax)
statement;;
// English equivalent
statement;

For some reason "," also get "translated" to ";"

Example:

// Dutch syntax
UpdateContext({ myVar: 1,0 });;
// English equivalent
UpdateContext({ myVar: 1.0 });
// Interpreted code. Very, very invalid code.
UpdateContext({ myVar: 1;0 });;;;

 

I really hope that these examples clear my question. Or rather the complete my question.

Helpful resources

Announcements
Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Join THE global Microsoft Power Platform event series

Attend for two days of expert-led learning and innovation on topics like AI and Analytics, powered by Dynamic Communities

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Microsoft Business Applications Virtual Launch

Join us for the Microsoft Business Applications Virtual Launch Event on Thursday, April 2, 2020, at 8:00 AM PST.

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (10,412)