cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
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
Highlighted
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
thirdimage

Power Automate Community User Group Member Badge

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

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors
Users Online
Currently online: 251 members 6,580 guests
Please welcome our newest community members: