I was looking at the responsiveConfig of the Responsive mixin documentation and realized that one of the obvious addition in the scopes will be "rtl". In an earlier discussion, "RTL Support: Is There A Right Way Left?" @dongryphon has suggested a way to handle cases where developers of multi-lingual applications may choose for "dock" config or "region" in border layout if they want it to switch the left/right or east/west directions when switching between RTL and LTR languages. Sometimes it is not desired to mirror the sidebars when switching to a langues with different direction while sometimes it is.

Adding a "direction" or "rtl" scope in "responsiveConfig" seems to be very clean approach to solve this problem. Here is the quote from @dongryphon's post:





All very good points and thanks for taking the time to provide so much detail.

We discussed adding "start" and "end" options, but those words did not make sense in a 2D space... for example: left, top, right, bottom would become start, top, end, bottom. Also north, south, east, west ... all were problematic nomenclature.


That said, there are ways to achieve this goal, though not declaratively:



Code:



region: rtl ? 'east' : 'west'

dock: rtl ? 'right' : 'left'

We could probably add something declarative here. Perhaps "west!" and "left!". Thoughts?