Since Japan was closed up, were there any translators within Japan who knew English? Why would they study English if they were closed?
Here is a previous answer by /u/diana_mn on the translators used by Commodore Perry's expedition to Japan. This thread responded to by the same user provides some additional background in response for the OP's followup questions.