adding data-dir attribute for languages