make it possible to pass in a target_language, used for the export #10537