Issue with "Switching Languages with Links" (LocalizeJS)

I’ve been drying to create a dropdown menu in my NavBar to change between languages using LocalizeJS service.

this is localizejs help:


What I did

I’ve created drop menu, used a “language-link” class for the styling and each link got a second class (English, Chinese, Japanese).

Also, I’ve added the custom attrinutes to each of the links:

<a href='javascript:Localize.setLanguage("en")'>English</a>
<a href='javascript:Localize.setLanguage(“zh”)’>Chinese</a>
<a href='javascript:Localize.setLanguage(“ja”)’>Japanese</a>

but the links are not working, what can I do?
thanks

Welcome to the Webflow forum!

Could you please edit and provide ALL the necessary details in your post so we can take a look at your site/issue?

Hope to hear from you soon. Thanks!

This topic was automatically closed after 60 days. New replies are no longer allowed.