I am wondering if there already exists a translator to export a scratch project to HTML and javascript or to export a project so it can be played on a tablet.
As Scimonster mentioned in a comment, Phosphorus (written by Nathan) will run your projects on an HTML5 Canvas and let you export the project to other places.
However, Sulfurous is an improvement to the Phosphorus player and might run projects more accurately to how the Scratch Player would.
Note that both players have issues and might not replicate the projects perfectly.
You don't need Phosphorus or Sulpherous now, since Scratch 3.0 (the current version) allows you to directly play on a tablet from the Scratch website. This is because Scratch 3.0 doesn't need Adobe Flash.
来源:https://stackoverflow.com/questions/40887064/translate-scratch-script-to-html-and-javascript