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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Translate Items in a L...
Power Apps
Unanswered

Translate Items in a List dropdown which is populated from another list

(1) ShareShare
ReportReport
Posted on by 2

I'm new to powerapps and I'm wondering if anyone can help?

 

I have a list which is in English, I use the form to populate and I want it to be displayed in multiple languages.

 

So far I have managed to translate all the labels using MicrosoftTranslator.Translate and they all work.

 

e.g. MicrosoftTranslator.Translate(Parent.DisplayName,lstChooserLanguage.selected.value)   where lstChooserLanguage is another dropdown with options "EN","ES","FR".

 

The challenge I have now is one of the list items is a Choice and I want to know if it is possible to translate the options in this choice list. I want the options in the form to be displayed in French but when the user clicks on Save it is saved in English.

 

thanks

Categories:
I have the same question (0)
  • Rivius Profile Picture
    269 on at

    Aside from having many different choice lists, maybe you could display the choices to the user as a table/collection with the translated values and then when saving you could translate back to english and record the filtered/search/lookup choice.

  • Verified answer
    v-albai-msft Profile Picture
    on at

    Hi @Nimmers80 ,

    Since your dropdown is populated from another list, I assume that the Items property of your dropdown looks like this formula:

    ListXXX.ColumnName

    v-albai-msft_0-1620876279600.png

     

    If my assumption is correct, I did a test on my side, you can refer to my steps:

    1. Set OnStart property of your App to(I get value from Title column in list10, replace to your list name and column name):

    ClearCollect(list10_2,AddColumns(list10,"TitleinFR",MicrosoftTranslator.Translate(Title,"FR")))

    v-albai-msft_1-1620876279603.png

     

    2. Set Items property of your dropdown to:

    list10_2.TitleinFR

    v-albai-msft_2-1620876279607.png

     

    3. Set OnSelect property of your save button to(DataCardValue12 is the name of my dropdown control):

    Patch(list10,Defaults(list10),{Title:MicrosoftTranslator.Translate(DataCardValue1.Text,"FR"),Choice1:{Value:MicrosoftTranslator.Translate(DataCardValue12.Selected.TitleinFR,"EN")}})

    v-albai-msft_5-1620876622524.png

     

     

    Above code will save records with "Title" in "FR" format and "Choice1" in "EN" format. 

    v-albai-msft_6-1620876647396.png

     

     

    Best regards,

    Allen

  • Laura3 Profile Picture
    71 on at

    Thanks for this, any suggestions on how to do this with a combobox with multiple choices? (Sharepoint as a datasource). thanks

  • IgnacioIOB Profile Picture
    11 on at

    Hi Laura3, I'm just wondering if you were able to do it and if so, how did you do it. I find myself in a very similar situation. Thank you!

  • Laura3 Profile Picture
    71 on at

    Hi @IgnacioIOB I was successful at doing so, but I did not use the Microsoft translation option. Instead manually translated everything using the switch function to read and write data from the database back and forth. It's quite a bit of work but it works fine. You need to use the switch formula on the default (or default items) and on the update property of the datacard so that the data is read well (display the previous selected choice) and updated correctly (patched correctly in English/original language back into the database).  Of course you also need to enter the translation in the items property of the combo/dropdown but that does not require a switch formula. 

    I hope this helps

     

    Laura

  • IgnacioIOB Profile Picture
    11 on at

    Thank you for sharing! It's a bit of what I was doing.

     

    I have an Excel file with the localizations and different languages, so I ended up bringing those as Items into the Options such as:

    Items: [LookUp(Localization,LanguageTag = varCurrentLanguage && TextID = "Option1").LocalizedText,LookUp(Localization,LanguageTag = varCurrentLanguage && TextID = "Option2").LocalizedText] ...and so on.

    Then stored that selection into an item, and if Option1 selected used the En language to store it.

     

    Hopefully it helps someone.

  • Suggested answer
    Mehmet_Powerapps Profile Picture
    26 on at

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard