I have several clients that needs true multi language support on their pages and the built in Wix one doesn’t do the trick for us. So I decided after waiting for something else to test an idea on my own.
The concept is actually really easy but not perfect in any way. I went with the idea of looping through all the elements on a page, testing if it is a text or button. Then look up the id in a data collection, get the translation and return the correct text or label for that language.
This could be done in a better way I am sure, but this works really good for us. It also provides a really simple way for our clients to change and administer text and labels on pages done for them through the database app.
I decided to make the code and everything freely available on Wix Show for you all. The code is inside our Code Library and the video can be found in the Videos section.
The blog post is here:
https://www.wixshow.com/blog/multilanguage-in-wix-code-made-easy
The video is here:
https://www.wixshow.com/videos/
Everything is free for you to use, recode and do whatever you want with it. Please comment below if you like it or have any thoughts on making it a better solution.