Translations works with Cohere IA API, that's not the best choice to make translations, but it's a free alternative, works in most cases but only support 5 translations per minute.
git clone https://github.com/MrVega01/google-translate-clone.git
cd ./google-translate-clone
npm install
VITE_COHERE_API_KEY=<YOUR_API_KEY>
npm run dev
https://google-translate-clone-eight.vercel.app/