You can either use a dedicated translation api, the best ones are easy to google, for instance:
Best Document Translation APIs in 2024 - Eden AI
Top 10 Best Translation APIs for Developers
Alternatively you can make use of a more general LLM such as chatgpt to translate for you. It depends on your use case which one you might want to use, so it's good to make a comparison between the commonly used translation APIs and pick the one that works best for your particular use case.