web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / User properties (ie la...
Power Apps
Unanswered

User properties (ie language) in embedded canvas app

(0) ShareShare
ReportReport
Posted on by

Hi dear reader,

Today I'm embedding a canvas app in a form. Nothing special really besides the requirement that it should be aware of the personal language settings of the user.

So, if it's set on English, the labels should display English and when it's set on Dutch the labels (and dates ofcourse) should display in Dutch.

 

Usually I'd use the Language() function, but for some reason that doesn't do the trick in an embedded app, whatever I change in my personal settings, it remains en-US.

Any tricks that would suit up my sleave too?

Thanks,
Jeroen

 

Categories:
I have the same question (0)
  • Sanshubh Profile Picture
    512 on at

    I don't know which way you're trying but You can set variables for Language like varLanguage and you can change variable values "English" and "Dutch".
    Then write if condition on Lable's text property Like this

    If(varLanguage = "English","Task Name","Opdrachtnaam")

     

  • Jeroen J Profile Picture
    on at

    Thanks, that does make sense.
    My main challenge in this is that I need to retreive the users' langauage. In a regular canvas app or custom page I can use Language(), but once the canvas app is embedded in a Model Driven App, the value of this property remains en-US.

  • frederikbisback Profile Picture
    222 on at

    I have the same issue. 
    We need to translate the embedded canvas app in the form of the model-driven app to Dutch and French based on the selected end-user language. But the language on the canvas app always stays en-US (the environment's main language). Do you have Any ideas? 

  • frederikbisback Profile Picture
    222 on at

    I found a solution: the canvas app language() depends on the browser language.

    Switching the browser language solved my issue. 

  • FC-02051025-0 Profile Picture
    13 on at

    Hello! 

    I have the same issue here and changing the browser language did not affect the embedded app.

    I've found this field uilanguageid (UserSettings entity reference (Dynamics 365 Customer Engagement) | Microsoft Learn) in the entity UserSettings, and was hopping to use it, but it is not accessible. 

     

    I would really appreciate some insights on this!

     

    Thanks!

    Filipa

     

  • FC-02051025-0 Profile Picture
    13 on at

    Hello, just to share the solution that we've found:

     

    The uilanguageid field belongs to the User Settings table (usersettingses) which is not accessible via the table search directly in Dataverse, although there are some very similar ones that might confuse...

     

    • Using the User().EntraObjectId function (user ID in Azure AD), filter the Users table to get the user record, where you can find the systemuserid field.
    • Using the systemuserid, filter the User Settings table (logical name: 'usersettings') to get the user record, where the uilanguageid field is found.
    • Using the uilanguageid field, filter the Languages table ('Locale ID'=uilanguageid) to obtain the language record.
    • Use the field you want, which in my case was the code.

       

     

    Set(
     language,
     Left(
     LookUp(
     Languages,
     'Locale ID' = First(
     Filter(
     'User Settings',
     SystemUserId = LookUp(
     ShowColumns(
     Filter(
     Users,
     'Azure AD Object ID' = User().EntraObjectId
     ),
     "systemuserid",
     "azureactivedirectoryobjectid"
     ),
     azureactivedirectoryobjectid = User().EntraObjectId
     ).systemuserid
     )
     ).UILanguageId
     ).Code,
     2
     )
    );

     

     

    Hope this helps! 

    Filipa

     

     

     

     

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 505

#2
WarrenBelz Profile Picture

WarrenBelz 502 Most Valuable Professional

#3
Haque Profile Picture

Haque 324

Last 30 days Overall leaderboard