microsoft / coe-starter-kit

Other
754 stars 225 forks source link

[CoE Starter Kit - Feature]: Make Teams cards configurable and localizable. (especially Pulse Adaptive Card) #4546

Open binaryjam opened 1 year ago

binaryjam commented 1 year ago

Is your feature request related to a problem? Please describe.

In the Flow Pulse [Child] - Post adaptive cards to maker The card json is hard coded

Describe the solution you'd like

As a multilingual company we try to hit at least two languages, so would redo this card with Eng/German content.

Id rather this be config than creating a solution layer.

This is an example. Yes it's ugly, but I dont know where we store a users spoken language. Ideally, if this was possible send in users chosen Lang, perhaps ask first, then store against a maker. Then all comms could be default or chosen if exits.

{ "type": "AdaptiveCard", "body": [ { "type": "TextBlock", "size": "Medium", "weight": "Bolder", "text": "We need your feedback" }, { "type": "ColumnSet", "columns": [ { "type": "Column", "width": "stretch" } ] }, { "type": "TextBlock", "text": "As a Power Platform developer, we really value your feedback. As part of our commitment to continually improve our service, we would appreciate it if you could provide us with some feedback? What can we do better, what are we doing well and what isn't working well for you today?\n\nAls Power Platform-Entwickler ist uns Ihr Feedback sehr wichtig. Im Rahmen unseres Engagements, unseren Service kontinuierlich zu verbessern, würden wir uns freuen, wenn Sie uns ein wenig Feedback geben könnten. Was können wir besser machen, was machen wir gut und was funktioniert für Sie heute nicht gut?", "wrap": true }, { "type": "TextBlock", "text": "Describe how satisfied you are with the internal Power Platform adoption program and what works well for you today?\n\nBeschreiben Sie, wie zufrieden Sie mit dem internen Programm zur Einführung der Power Platform sind und was für Sie heute gut funktioniert?", "wrap": true, "weight": "Bolder" }, { "type": "Input.Text", "placeholder": "", "isMultiline": true, "maxLength": 20000, "id": "myCurrentSatisfaction" }, { "type": "TextBlock", "text": "What else would you like to see as part of our Power Platform adoption program?\n\nWas würden Sie sich sonst noch von unserem Power Platform Adoptionsprogramm wünschen?", "wrap": true, "weight": "Bolder" }, { "type": "Input.Text", "placeholder": "", "isMultiline": true, "maxLength": 2000, "id": "myFutureIdeas" } ], "$schema": "http://adaptivecards.io/schemas/adaptive-card.json", "version": "1.5", "actions": [ { "type": "Action.Submit", "title": "Submit Feedback / Feedback abgeben", "id": "btnSubmit" } ] }

Describe alternatives you've considered

I can of course edit the flow, every time I upgrade. :-(

Additional context?

No response

AB#2052

Jenefer-Monroe commented 1 year ago

We have a localization system for this for emails sent by flows in Core today, and are expanding to the other solutions in the next release. It uses the preferred language setting in Azure AAD Portal which can be configured by the user.

This localization is configured in the Admin - Command Center, and the UX for it is being redone for next release as well. See https://github.com/microsoft/coe-starter-kit/issues/4489

I can use this bug to track also using this system to work for Adaptive Cards, that was in our long term vision but is more difficult than email and has not been fully vetted. Thanks for posting.

iamjina commented 10 months ago

Hi Jenefer,

Has this issue been fixed? I'm also trying to edit the Adaptive Cards message; however, it's been a bit difficult. I've went into the CoE Admin Command Center, but I was only able to customize Emails, not Adaptive Cards. Of course, I can edit in the flow, but then upgrade would get a bit complicated... Has this been updated in the past couple of months?