cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Regular Visitor

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
Community Support

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.
Highlighted

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
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 (3,353)