How to localize Memberstack modals and error messages in Spanish using Weglot on a Webflow site? Answered
We're using Weglot for all our translations and want to apply it to your modals for sign up, settings etc. What's the best way to integrate this with Weglot and get it all working?
You can see our Spanish site here: https://promptpal.net/es
It's all translated except for the Memberstack modals. What're we doing wrong?
Comments
4 comments
Hello Dean 👋
Great question. So it looks like Weglot can translates text. If you’re using a data-ms-modal attribute to launch your signup then Memberstack adds text with JS, so it will not work.
The simplest solution is to drop the pre-build UI and use some of our Webflow components instead. You can copy and paste them right into the page and Weglot will be able to translate them like any other element 🎉
https://www.memberstack.com/freebies
Here are articles for setting up signup, login, profile, and forgot password forms incase you need all of them.
Hope that helps 💪
GM All - can anyone recommend localization (Spanish) our webflow/memberstack onboarding/registration forms error messages, etc. For example they put in a wrong email and they get the default error message in Spanish. We are working currently with the webflow localization paid feature but also looked at Weglot but did not see that capability? Thank you!
Hola Chad!
It's been a while since I used Weglot, but I assume they translate the content that's already on the page (correct me if I'm wrong). The thing is, that this content inside the alert component is dynamically generated by memberstack. So far, they only allow translation, not localization. Anytime you use Memberstack's attributes to handle membership related transactions (login, logout, update profile ... ) you'll be bound to how memberstack handles the the alerts. The good thing is that you can handle those transactions manually by using the frontend API already available in the page, and therefor handle the localization part whenever it throws an error.
To give you an idea, the script would look something like this, and should handle any language that you include in the object. Keep in mind that this is an example. This snippet was generated with the help of ReyBotÂ
Thank you Raquel Lopez great! Aman Devchandani FYI
Please sign in to leave a comment.