add dir attr to body for required langs