cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Jan-Kodet
Frequent Visitor

Translation of button in modern command bar

Hello,

I would like to create button in modern command bar. The environment where I would like to deploy support 3 languages. How to create button in modern command designer with localization support? I know that this feature is still in preview but soon will be in GA (I hope).

 

Below is links to release plan:

https://docs.microsoft.com/en-us/power-platform-release-plan/2022wave1/power-apps/command-designer-p...

https://powerapps.microsoft.com/en-us/blog/announcing-command-designer-with-power-fx-preview/

 

3 REPLIES 3
Mira_Ghaly
Dual Super User
Dual Super User

@Jan-Kodet 

To handle Localization you need to use the Export and Import Translations as per the below Link:

https://docs.microsoft.com/en-us/power-apps/maker/data-platform/export-customized-entity-field-text-...

You will find your command button after opening the translation file and going to the Localized labels , you will find it under appaction, add the labels of the other languages and re-import back

Mira_Ghaly_0-1650664228155.png

 

 

If this post helps you with your problem, please mark your as Accepted solution.If you like my response, please give it a Thumbs Up.

Blog: here
Jan-Kodet
Frequent Visitor

Hi Mira,

thank you for answer but e.g. when I have in the expression the "Notify" I'm not able to translate. Do you have any tip for this?

JanKodet_0-1650702609330.png

Jan

@Jan-Kodet 

I understand your problem now but there is currently no out of the box way to handle such translation because it is embedded in your button logic, so what I would suggest here:

1. Create a custom table to hold the notification message per language 

Language lookup to languages table 

Message Id or identifier.

2. Modify the existing ribbon button to use a JavaScript function where you can retrieve the correct translation using web API and display it.

This is not a very easy solution but this is what I am aware of maybe others can have easier or better solution

 

 

 

 

 

 

If this post helps you with your problem, please mark your as Accepted solution.If you like my response, please give it a Thumbs Up.

Blog: here

Helpful resources

Announcements
Super User 2 - 2022 Congratulations 768x460.png

Welcome Super Users

The Super User program for 2022 - Season 2 has kicked off!

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

<
Users online (4,048)