f9e3e148e3
Added a util function for getting the language's direction. Added lang and dir attributes for every language item in the list.