With LLMs that’s not a terrible approach. They are generally very good at translating between programming languages.