[issue 5440] fix rtl direction bug for full language codes
Merge pull request #5447 from araghava/issue-5440-rtl-bug

[issue 5440] fix rtl direction bug for full language codes