[loc] add support for right-to-left languages

* Closes #192