getTextInfo

external fun getTextInfo(): TextInfo(source)

Returns the ordering of characters indicated by either ltr (left-to-right) or by rtl (right-to-left) for this locale.

MDN Reference