The Firefox browser now has a built-in page translator that works even without the Internet::Mozilla has announced the release of an update to its Firefox browser. In version number 118, users will find a significant innovation - a built-in translator
I’m willing to bet you could work something out to make it work
Otherwise there’s always selenium which I imagine would include functionality to do the page translations.
+1 for interest!