The language of the platform under test. For backend API automation, that means whatever your services run on.
Developers can then review and extend the suite, and it reuses the libraries and model classes that already exist. Frontend E2E follows the frontend stack for the same reasons.

