-
Notifications
You must be signed in to change notification settings - Fork 595
Proposal: Right-to-left support #2139
Copy link
Copy link
Closed
Labels
Area-Globalization&LocalizationTracking localization & globalization related issuesTracking localization & globalization related issuesDesign Discussion - NeededIssue requires a design discussion before proceedingIssue requires a design discussion before proceedingFeaturePartner-MsftTeamsMobileBugs related specifically to Teams Mobile integration (iOS/Android)Bugs related specifically to Teams Mobile integration (iOS/Android)ProposalResolution-Duplicate
Metadata
Metadata
Assignees
Labels
Area-Globalization&LocalizationTracking localization & globalization related issuesTracking localization & globalization related issuesDesign Discussion - NeededIssue requires a design discussion before proceedingIssue requires a design discussion before proceedingFeaturePartner-MsftTeamsMobileBugs related specifically to Teams Mobile integration (iOS/Android)Bugs related specifically to Teams Mobile integration (iOS/Android)ProposalResolution-Duplicate
Solves requests
Summary
Add a
rtlBoolean property to AdaptiveCard. When set to true, the card renders in right-to-left.Design
Adaptive renderers will look for the
rtlproperty at the AdaptiveCard level and adjust rendering accordingly.If a card is specified to render in RTL direction, here are some of the things that will change :
Column Layout
By default, the columns in a ColumnSet are rendered left-to-right in horizontal direction. This will change to right-to-left in case of RTL.
LTR with Columns and separators:

RTL with Columns and separators:

Text Alignment
Example
LTR:

RTL:

Padding and margins
Left and right paddings/margins in LTR become right and left in RTL.
Inputs
Example
LTR.

RTL:

Text directionality
Text specified in LTR languages should translate to follow RTL directionality.
An example would be : 'Hello World!' should translate to "!Hello World' in RTL.
More details here - https://dotancohen.com/howto/rtl_right_to_left.html
Down-level impact
None.
Host burden
Very low. Just update to the new Adaptive renderer which does all the work.