DEV Community

Cover image for Integrating Google Translate into Your Next.js Website

Integrating Google Translate into Your Next.js Website

kstulgys on February 22, 2024

In the global digital landscape, offering your website in multiple languages is not just an optionโ€”it's a necessity. This tutorial guides you throu...
Collapse
 
aliimron123 profile image
Aliimron227

Recomended for user next js :)

Collapse
 
amehelijah profile image
Ameh Elijah

When I navigate between pages, the dropdown doesn't work again. I inspected it to see the issue and I noticed the div with the id "google_translate_element" is now empty.

Collapse
 
malvinjay profile image
George Arthur

Same issue here... I think you'd have to manually trigger the entire process on route change. I have a hack but seems it comes with other minor bottlenecks. So far I haven't found a perfect fix for it. I am almost close to it though.

Collapse
 
abruzy profile image
Abubakar Diallo

have you found a perfect fix for this George

Thread Thread
 
malvinjay profile image
George Arthur

Not yet!