Multi Language Mobile Menu Problem

Hi,

When you open a lightbox, you can wait until it’s closed and get back a value from it:

export function eventHandler() {
  wixWindow
    .openLightbox("lightboxName")
    .then(function(dataFromLightbox /* "chinese" */) {
      // Do translation.
    });
}

See: https://www.wix.com/code/reference/wix-window.html#openLightbox

To close the lightbox with a data, do:

wixWindow.lightbox.close("chinese");

See: Lightbox - Velo API Reference - Wix.com

Also, Wix is working on a nice and simple solution for translations so that you won’t need to invent your own. But I don’t know when it’s gonna be released.