Pass the already discoverd main file to wp.getHeader() when looking up the text domain.
Initial take on the addtextdomain task.