This works in the same way as the `lang` option, which pulls directly from the `dir` property on DOM nodes.