All it takes is to implement a button that outputs the following:
<div class= "text-rtl" >
*some right to left text*
</div>
@good-karma More important than translation: I suggest that esteem leads the way by adding a button for directional text editing ( right-to-left/left-to-right ). This has been a big missing feature on all the other interfaces and is of utmost importance to those who speak right-to-left languages such as hebrew, arabic, persian, etc .... without it text is almost unreadable and very hard to write. It's esteem's opportunity to attract those communities.
This is the only way that works as the other ways to indicate right-to-left texts are blocked by the editor (for security reasons, I believe ).