Custom attributes for a menu item
Maybe starting from https://www.drupal.org/project/link_attributes and contributing a dir attribute patch (this way you have a UI for non tech users that will maintain the site)