There is no automatic way to do it. You can find tools like
this[
^] and get most of it in place but then you have to spend time to make sure all is right and close on the loose ends. This would mean you need to have basic understanding of both the languages so that you can confidently convert it.
You can always post specific query when you are trying to convert and get help. Attempt and see where you get stuck.