How do I embed Google Translate on my website?

When I was browsing my competitor’s website. I found that his website can automatically switch to local language in different countries. This is when I search his website in Indonesia, his website automatically switches to Indonesian, and it seems that his Google Translate is not a function on the browser, but on his website. How can I get Google Translate embedded on my website?

This is not anything to do with Cloudflare.

A better place to look for assistance for this is the Google Translate Help Community.